/* ---------------------------------------
   GALLERY (green theme, matches Contact)
   --------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

/* Force correct palette */
body.page--gallery{
  background: var(--bottle-green, #021b12);
  color: var(--cream, #fff6d8);
}

.gallery-page{
  min-height: 100vh;
  background: var(--bottle-green, #021b12);
  color: var(--cream, #fff6d8);
}

/* HERO: NO GAP */
.gallery-hero{
  padding: 10px 6vw 10px; /* tight under navbar */
  margin: 0;
}

.gallery-hero-inner{
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #f1b646);
}

.gallery-divider{
  height: 2px;
  width: 86px;
  background: var(--gold, #f1b646);
  margin: 0 0 14px;
}

.gallery-hero p{
  margin: 0;
  max-width: 720px;
  line-height: 1.7;
  opacity: 0.92;
  color: var(--cream, #fff6d8);
}
.gallery-hero{
  padding: 28px 6vw 10px;
}

/* GRID */
.gallery-content{
  padding: 12px 6vw 70px;
}

.gallery-grid{
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Tiles */
.gallery-item{
  position: relative;
  display: block;
  border: 1px solid rgba(255, 246, 216, 0.16);
  background: rgba(0, 0, 0, 0.14);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border-radius: 12px;
}

.gallery-item::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-item:hover::after{ opacity: 1; }

.gallery-item img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gallery-item:hover img{
  transform: scale(1.03);
  opacity: 0.96;
}

/* Rhythm */
.gallery-item--wide{
  grid-column: span 2;
}

@media (max-width: 820px){
  .gallery-item--wide{ grid-column: span 1; }
}

@media (min-width: 1200px){
  .gallery-item img{ height: 260px; }
}

/* ---------------------------------------
   PhotoSwipe theming
   --------------------------------------- */

.pswp{
  --pswp-bg: rgba(0,0,0,0.92);
}

.pswp__counter,
.pswp__caption__center{
  color: var(--cream, #fff6d8);
}

.pswp__caption__center{
  text-align: center;
  max-width: 900px;
}

.pswp__button{
  width: 52px;
  height: 52px;
  opacity: 0.92;
}

.pswp__button:hover{ opacity: 1; }


/* ---------- Reveal animation (same feel as music cards) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 520ms ease;
  transition-delay: var(--d, 0ms);
}

/* Images get a tiny "pop" */
.reveal.reveal--img {
  transform: translateY(14px) scale(0.99);
}
.reveal.reveal--img.is-in {
  transform: translateY(0) scale(1);
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal--img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}