/* Artwork gallery + slideshow */

.gv-gallery {
  margin: 0;
}

.gv-gallery__grid {
  columns: 2;
  column-gap: 0.85rem;
}

@media (min-width: 700px) {
  .gv-gallery__grid {
    columns: 3;
    column-gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .gv-gallery__grid {
    columns: 4;
  }
}

.gv-gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 1px solid rgba(212, 180, 90, 0.22);
  border-radius: var(--radius, 0.55rem);
  background: var(--color-ink-soft, #1c1638);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.gv-gallery__item:hover,
.gv-gallery__item:focus-visible {
  border-color: rgba(212, 180, 90, 0.55);
  transform: translateY(-2px);
  outline: none;
}

.gv-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.gv-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 1px solid var(--color-line, rgba(232, 238, 244, 0.12));
  border-radius: var(--radius, 0.55rem);
  padding: 0;
  max-width: min(92vw, 56rem);
  max-height: 90vh;
  width: fit-content;
  height: fit-content;
  background: rgba(13, 10, 28, 0.96);
  color: var(--color-paper, #e8eef4);
  overflow: hidden;
}

.gv-lightbox::backdrop {
  background: rgba(8, 6, 18, 0.82);
  backdrop-filter: blur(6px);
}

.gv-lightbox__img {
  display: block;
  max-width: min(92vw, 56rem);
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.gv-lightbox__close,
.gv-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(212, 180, 90, 0.45);
  background: rgba(13, 10, 28, 0.75);
  color: var(--color-gold, #d4b45a);
  cursor: pointer;
  border-radius: var(--radius, 0.55rem);
}

.gv-lightbox__close {
  top: 0.65rem;
  right: 0.65rem;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.4rem;
  line-height: 1;
}

.gv-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.6rem;
  line-height: 1;
}

.gv-lightbox__nav--prev { left: 0.65rem; }
.gv-lightbox__nav--next { right: 0.65rem; }

/* Slideshow */
.gv-slideshow {
  position: relative;
  width: 100%;
}

.gv-slideshow__viewport {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: min(78vh, 40rem);
  margin-inline: auto;
  max-width: 28rem;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 90, 0.28);
  border-radius: calc(var(--radius, 0.55rem) + 2px);
  background: var(--color-ink-soft, #1c1638);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
  .gv-slideshow__viewport {
    max-width: 32rem;
  }
}

.gv-slideshow__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.gv-slideshow__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.gv-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gv-slideshow__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.gv-slideshow__btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--color-gold, #d4b45a);
  background: transparent;
  color: var(--color-gold, #d4b45a);
  border-radius: var(--radius, 0.55rem);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gv-slideshow__btn:hover,
.gv-slideshow__btn:focus-visible {
  background: rgba(212, 180, 90, 0.12);
  outline: none;
}

.gv-slideshow__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  max-width: min(100%, 18rem);
}

.gv-slideshow__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(232, 238, 244, 0.28);
  cursor: pointer;
}

.gv-slideshow__dot.is-active {
  background: var(--color-gold, #d4b45a);
}

@media (prefers-reduced-motion: reduce) {
  .gv-slideshow__slide {
    transition: none;
  }

  .gv-tunnel__glow {
    animation: none !important;
    opacity: 0.35;
  }

  .gv-tunnel__scene {
    transition: none !important;
  }
}

@keyframes gv-tunnel-pulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.55;
  }
}

/* —— Tunnel Hero (helix fly-through) —— */
.gv-tunnel {
  position: relative;
  width: 100%;
  margin: 0;
}

.gv-tunnel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(78vh, 40rem);
  overflow: hidden;
  cursor: crosshair;
  perspective: 1400px;
  background: radial-gradient(ellipse at center, #1a1528 0%, #0d0a1c 55%, #05040c 100%);
  border: 1px solid rgba(212, 180, 90, 0.22);
  border-radius: calc(var(--radius, 0.55rem) + 2px);
}

.gv-tunnel__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out;
  will-change: transform;
}

.gv-tunnel__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(11rem, 22vw, 21.25rem);
  height: clamp(15rem, 30vw, 28.75rem);
  margin: 0;
  margin-left: calc(clamp(11rem, 22vw, 21.25rem) / -2);
  margin-top: calc(clamp(15rem, 30vw, 28.75rem) / -2);
  transform-style: preserve-3d;
  opacity: 0;
  will-change: transform, opacity;
}

.gv-tunnel__mat {
  position: absolute;
  inset: 0;
  padding: 0.75rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #5a4224, #1c130a 60%, #0d0805);
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.7),
    inset 0 0 0 2px rgba(212, 175, 90, 0.4),
    inset 0 0 0 5px rgba(0, 0, 0, 0.5);
}

.gv-tunnel__glass {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
}

.gv-tunnel__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.06) brightness(0.96);
}

.gv-tunnel__fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, 0.5) 72%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.gv-tunnel__glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 220px rgba(212, 180, 90, 0.22);
  animation: gv-tunnel-pulse 1.6s ease-in-out infinite;
}

@media (max-width: 700px) {
  .gv-tunnel__viewport {
    aspect-ratio: 4 / 5;
    max-height: min(70vh, 32rem);
  }

  .gv-tunnel__frame {
    width: clamp(8.5rem, 42vw, 13rem);
    height: clamp(11.5rem, 56vw, 17.5rem);
    margin-left: calc(clamp(8.5rem, 42vw, 13rem) / -2);
    margin-top: calc(clamp(11.5rem, 56vw, 17.5rem) / -2);
  }
}
