/* R108_CCC_GALLERY_SLIDESHOW_V35_ACTIVE */
.gallery-slideshow-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 34%),
    var(--landing-background, #f4f5f7);
  color: var(--landing-text, #374151);
}

.gallery-page-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--primary) 93%, #071c22);
  box-shadow: 0 10px 30px rgba(5, 26, 31, .16);
}

.gallery-page-nav {
  min-height: 78px;
}

.gallery-page-nav .brand,
.gallery-page-nav .brand strong,
.gallery-page-nav .brand-text span {
  color: #fff;
}

.gallery-page-nav .brand-mark {
  border-color: rgba(255, 255, 255, .56);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.gallery-back-button {
  border-color: rgba(255, 255, 255, .38) !important;
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}

.gallery-page-main {
  min-height: calc(100vh - 78px);
}

.gallery-page-heading {
  padding: 34px 0 22px;
}

.gallery-page-heading .eyebrow {
  margin-bottom: 7px;
  color: var(--accent);
  letter-spacing: .18em;
}

.gallery-page-heading h1 {
  margin: 0;
  color: var(--landing-heading, #111827);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.1;
}

.gallery-page-heading p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--landing-text, #374151);
  font-size: 14px;
  line-height: 1.75;
}

.gallery-viewer-section {
  padding: 0 0 46px;
}

.gallery-viewer {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--landing-card-radius, 24px);
  background: #071318;
  box-shadow: 0 26px 70px rgba(5, 26, 31, .22);
}

.gallery-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 14px 10px 18px;
  background: color-mix(in srgb, var(--primary) 88%, #071318);
  color: #fff;
}

.gallery-viewer-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
}

.gallery-viewer-counter strong {
  color: var(--accent);
  font-size: 20px;
}

.gallery-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.gallery-tool-button:hover,
.gallery-tool-button:focus-visible {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.gallery-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 760px);
  background:
    radial-gradient(circle at center, rgba(255,255,255,.08), transparent 48%),
    #071318;
  touch-action: pan-y;
}

.gallery-stage-figure {
  position: relative;
  width: 100%;
  height: min(68vh, 760px);
  margin: 0;
  overflow: hidden;
}

.gallery-stage-figure > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: opacity .24s ease, transform .36s ease;
}

.gallery-viewer.is-changing .gallery-stage-figure > img {
  opacity: .25;
  transform: scale(.985);
}

.gallery-stage-figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 70px 22px 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .76));
  color: #fff;
  pointer-events: none;
}

.gallery-stage-figure figcaption strong {
  overflow: hidden;
  max-width: 78%;
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-stage-figure figcaption span {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 78%, transparent);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.gallery-arrow-prev {
  left: 18px;
}

.gallery-arrow-next {
  right: 18px;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
  background: color-mix(in srgb, var(--primary) 82%, #071318);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumbnail {
  position: relative;
  flex: 0 0 96px;
  height: 66px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: calc(var(--landing-card-radius, 24px) * .42);
  background: #15262d;
  opacity: .62;
  cursor: pointer;
  scroll-snap-align: center;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.66);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-visible,
.gallery-thumbnail.is-active {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-page-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
}

.gallery-empty-section {
  padding: 10px 0 48px;
}

.gallery-empty-card {
  padding: 38px;
  border-radius: var(--landing-card-radius, 24px);
  background: var(--landing-surface, #fff);
  text-align: center;
  box-shadow: 0 18px 50px rgba(5, 26, 31, .12);
}

.gallery-empty-card h2 {
  margin-top: 0;
  color: var(--landing-heading, #111827);
}

.gallery-viewer:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #050d11;
}

.gallery-viewer:fullscreen .gallery-stage,
.gallery-viewer:fullscreen .gallery-stage-figure {
  height: calc(100vh - 138px);
  min-height: 0;
}

@media (max-width: 760px) {
  .gallery-page-nav {
    min-height: 66px;
  }

  .gallery-page-nav .brand-text span {
    display: none;
  }

  .gallery-back-button {
    min-height: 38px;
    padding: 8px 11px !important;
    font-size: 11px !important;
  }

  .gallery-page-heading {
    padding: 22px 0 16px;
  }

  .gallery-page-heading h1 {
    font-size: 28px;
  }

  .gallery-page-heading p:last-child {
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .gallery-viewer-section {
    padding-bottom: 28px;
  }

  .gallery-viewer {
    margin-right: -4px;
    margin-left: -4px;
    border-radius: calc(var(--landing-card-radius, 24px) * .65);
  }

  .gallery-viewer-toolbar {
    min-height: 50px;
    padding: 8px 9px 8px 12px;
  }

  .gallery-viewer-counter strong {
    font-size: 17px;
  }

  .gallery-tool-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 10.5px;
  }

  .gallery-tool-button [data-gallery-play-label] {
    display: none;
  }

  .gallery-stage,
  .gallery-stage-figure {
    min-height: 0;
    height: min(62vh, 560px);
  }

  .gallery-stage-figure figcaption {
    display: block;
    padding: 56px 14px 12px;
  }

  .gallery-stage-figure figcaption strong {
    display: block;
    max-width: 100%;
    font-size: 13px;
  }

  .gallery-stage-figure figcaption > span {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .gallery-arrow-prev {
    left: 8px;
  }

  .gallery-arrow-next {
    right: 8px;
  }

  .gallery-thumbnails {
    gap: 7px;
    padding: 10px;
  }

  .gallery-thumbnail {
    flex-basis: 72px;
    height: 50px;
  }

  .gallery-thumbnail span {
    right: 3px;
    bottom: 3px;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .gallery-page-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
  }

  .gallery-page-footer-actions .button {
    width: 100%;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  .gallery-viewer:fullscreen .gallery-stage,
  .gallery-viewer:fullscreen .gallery-stage-figure {
    height: calc(100vh - 118px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-stage-figure > img,
  .gallery-arrow,
  .gallery-thumbnail,
  .gallery-tool-button {
    transition: none !important;
  }
}
