/* All catalog media occupies one rectangle; every control is an overlay. */
.catalog-cover-carousel {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  width: 100%;
  height: 100%;
  isolation: isolate;
  container-type: inline-size;
}

.catalog-cover-carousel > :is(.preview-visual,.service-preview) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.catalog-cover-carousel > .service-preview:not(.is-playing) video { opacity: 0; }
.catalog-cover-carousel > .service-preview.is-playing .catalog-cover-photo { opacity: 0; }

.catalog-cover-frame {
  position: absolute;
  inset: 0;
  display: block;
  isolation: isolate;
  overflow: hidden;
  opacity: 0;
  transition: opacity 450ms cubic-bezier(.2,.65,.2,1);
}
.catalog-cover-frame.is-current { opacity: 1; }

.catalog-cover-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-cover-brand {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 62px);
  min-height: 23px;
  padding: 4px 6px;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 7px;
  background: rgb(255 255 255 / .92);
  color: #171a20;
  box-shadow: 0 1px 6px rgb(0 0 0 / .12);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.catalog-cover-brand[data-logo-plate="dark"] {
  background: #20293a;
  color: #fff;
  border-color: rgb(255 255 255 / .21);
}
.catalog-cover-brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-media .catalog-cover-brand-logo {
  flex: none;
  min-width: 0;
  width: 14px;
  height: 14px;
  object-fit: contain;
  transform: none;
}
.card-media .has-lockup .catalog-cover-brand-logo {
  width: auto;
  max-width: 56px;
  height: 12px;
}
.catalog-cover-brand.has-lockup .catalog-cover-brand-name { display: none; }

/* Older media metadata may say “below”; it now shares the same overlay. */
.catalog-cover-credit {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 62px);
  min-width: 0;
  pointer-events: none;
}
.service-card[data-id="aprons"] .catalog-cover-credit {
  inset: auto 7px 26px auto;
  max-width: calc(100% - 48px);
}
.catalog-cover-credit .catalog-cover-brand {
  position: static;
  min-width: 0;
  max-width: 100%;
}
.service-card.is-selected:has(.catalog-cover-credit:not(:empty), .catalog-cover-frame.is-current .catalog-cover-brand) .card-selection {
  display: none;
}

.catalog-cover-carousel-controls {
  position: absolute;
  z-index: 4;
  inset: 0;
  color: white;
  pointer-events: none;
}
.catalog-cover-pager {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  width: 48px;
  height: 30px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}
.has-catalog-video .catalog-cover-pager { left: min(50%, calc(100% - 70px)); }
.catalog-cover-pager::before {
  position: absolute;
  width: 39px;
  height: 15px;
  border-radius: 999px;
  background: rgb(12 15 20 / .74);
  content: '';
}
.catalog-cover-count {
  position: relative;
  color: white;
  font-size: 9px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.catalog-cover-carousel-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  pointer-events: auto;
}
.catalog-cover-carousel-controls button[hidden] { display: none; }
.catalog-cover-carousel-controls button:focus-visible { outline: 2px solid white; outline-offset: -2px; }
.catalog-cover-nav {
  position: absolute;
  z-index: 1;
  top: 0;
  width: 24px;
  height: 100%;
  border-radius: 8px;
}
.catalog-cover-nav--prev { left: 0; }
.catalog-cover-nav--next { right: 0; }
.catalog-cover-nav::before {
  position: absolute;
  top: calc(50% - 1.5px);
  width: 3px;
  height: 3px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: '';
}
.catalog-cover-nav--prev::before { left: 9px; transform: rotate(135deg); }
.catalog-cover-nav--next::before { right: 9px; transform: rotate(-45deg); }
.catalog-cover-carousel-controls .catalog-cover-carousel-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
}
.catalog-cover-carousel-toggle::after {
  position: absolute;
  z-index: -1;
  content: '';
  inset: 7px;
  border: 1px solid rgb(255 255 255 / .22);
  border-radius: 50%;
  background: rgb(13 17 23 / .55);
  backdrop-filter: blur(8px);
}
.catalog-cover-carousel-toggle::before {
  content: '';
  box-sizing: border-box;
  width: 7px;
  height: 9px;
  border-inline: 2px solid currentColor;
}
.catalog-cover-carousel-toggle[data-paused='true']::before {
  content: '↻';
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  font-size: 22px;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-cover-frame { transition: none; }
}
