body.gallery-open {
  overflow: hidden;
}

.gallery-item {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--brand-gold, #FBB900);
  outline-offset: 4px;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 54px 28px 22px;
  background: rgba(0, 0, 0, .95);
  color: #fff;
  backdrop-filter: blur(10px);
  animation: gallery-lightbox-in .3s cubic-bezier(.22,.72,.2,1) both;
}

.gallery-lightbox-stage,
.gallery-lightbox-thumbs {
  animation: gallery-content-in .42s .05s cubic-bezier(.22,.72,.2,1) both;
}

@keyframes gallery-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gallery-content-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: #111;
  color: #fff;
  font: 300 30px/1 var(--body);
  cursor: pointer;
}

.gallery-lightbox-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 22px;
  min-height: 0;
  align-items: center;
}

.gallery-lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.gallery-lightbox figure > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #c8c8c8;
  font-size: 14px;
}

.gallery-lightbox figcaption strong {
  color: var(--brand-gold, #FBB900);
  font: 600 17px var(--display);
  letter-spacing: .4px;
  text-transform: uppercase;
}

.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-gold, #FBB900);
  color: #000;
  font-size: 26px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible,
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: var(--brand-yellow, #FFEE26);
  color: #000;
  transform: scale(1.06);
}

.gallery-lightbox-thumbs {
  display: flex;
  gap: 9px;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 3px 2px 7px;
  overflow-x: auto;
  scrollbar-color: var(--brand-gold, #FBB900) #222;
}

.gallery-lightbox-thumbs button {
  flex: 0 0 92px;
  width: 92px;
  height: 62px;
  padding: 3px;
  border: 2px solid transparent;
  background: #151515;
  opacity: .55;
  cursor: pointer;
}

.gallery-lightbox-thumbs button.active {
  border-color: var(--brand-gold, #FBB900);
  opacity: 1;
}

.gallery-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .gallery-lightbox {
    gap: 12px;
    padding: 64px 10px 14px;
  }

  .gallery-lightbox-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
  }

  .gallery-lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  .gallery-lightbox figcaption {
    flex-direction: column;
    gap: 2px;
  }

  .gallery-lightbox-thumbs button {
    flex-basis: 74px;
    width: 74px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox-stage,
  .gallery-lightbox-thumbs { animation: none; }
}
