/* =========================================
   GALLERY
========================================= */
.gallery-section {
  background: var(--white);
  padding: 56px 0 48px;
}
.gallery-section .section-header {
  padding: 0 24px;
  margin-bottom: 28px;
}
.gallery-wrap { position: relative; }
.gallery-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: calc(100% - 25px);
  width: 72px;
  background: linear-gradient(to right, transparent, var(--white));
  pointer-events: none;
  z-index: 1;
}
.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 24px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #f0e8d8;
  -webkit-overflow-scrolling: touch;
}
.gallery-strip::-webkit-scrollbar { height: 5px; }
.gallery-strip::-webkit-scrollbar-track { background: #f0e8d8; border-radius: 3px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.gallery-item {
  flex-shrink: 0;
  width: 272px;
  height: 204px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border: none;
  padding: 0;
  background: #e8e0d0;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(26,45,79,.18);
  outline: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-zoom {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  opacity: 0;
  background: rgba(26,45,79,.28);
  border-radius: 14px;
  transition: opacity 0.2s;
  pointer-events: none;
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom { opacity: 1; }

/* =========================================
   LIGHTBOX
========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8,12,24,.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 80px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: min(88vw, 960px);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.3rem;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  font-size: 2.2rem;
  cursor: pointer;
  width: 48px;
  height: 72px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background 0.15s;
  padding: 0;
  line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.22); color: #fff; }
.lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
  font-family: inherit;
  margin: 0;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  .gallery-item { width: 220px; height: 165px; }
  .lightbox { padding: 20px 52px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 56px; font-size: 1.8rem; }
}
