/* ============================================
   gallery.css — styles specific to gallery.html
   ============================================ */

.gallery-grid{
  columns: 4;
  column-gap: 20px;
}
.gallery-item{
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  position: relative;
}
.gallery-item img{
  width: 100%;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item.tall img{ aspect-ratio: 3/4; object-fit: cover; }
.gallery-item:not(.tall) img{ aspect-ratio: 1/1; object-fit: cover; }

.gallery-item img:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

@media (max-width: 960px){ .gallery-grid{ columns: 3; } }
@media (max-width: 680px){ .gallery-grid{ columns: 2; } }

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 22, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 30px;
}
.lightbox.open{ display: flex; }
.lightbox img{
  max-width: 90vw;
  max-height: 86vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close{
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover{ background: rgba(255,255,255,.25); }
