/* ===== Gallery Hero ===== */
.gallery-hero{
  position:relative;min-height:380px;
  display:flex;align-items:flex-end;
  padding:160px 0 50px;
  background:url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920') center/cover no-repeat;
  color:#fff;margin-top:-70px;
}
.gallery-hero .hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,30,40,.4),rgba(20,30,40,.55))}
.gallery-hero .hero-content{position:relative;z-index:2}
.gallery-hero .hero-title{color:#fff;font-size:clamp(2.6rem,5vw,4.2rem);margin-bottom:6px;font-weight:500}
.gallery-hero .hero-subtitle{color:rgba(255,255,255,.88);font-size:1.05rem}

/* ===== Gallery Grid (CSS columns = true masonry) ===== */
.gallery-section{background:#fcfbf8;padding:70px 0 100px}
.gallery-grid{
  column-count:4;
  column-gap:24px;
}
.gallery-item{
  break-inside:avoid;
  margin:0 0 24px;
  border-radius:22px;overflow:hidden;
  box-shadow:0 10px 30px -18px rgba(0,0,0,.18);
  position:relative;cursor:zoom-in;
  background:#eee;
  transition:transform .35s ease, box-shadow .35s ease;
}
.gallery-item:hover{transform:translateY(-4px);box-shadow:0 20px 40px -18px rgba(0,0,0,.3)}
.gallery-image{
  width:100%;display:block;height:auto;
  transition:transform .6s ease;
}
.gallery-item:hover .gallery-image{transform:scale(1.05)}

/* Dark fade + caption overlay */
.gallery-item::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.55));
  opacity:0;transition:opacity .3s ease;pointer-events:none;
}
.gallery-item:hover::after{opacity:1}
.gallery-caption{
  position:absolute;left:18px;bottom:14px;
  color:#fff;font-size:.82rem;letter-spacing:.12em;text-transform:uppercase;
  font-weight:600;
  opacity:0;transform:translateY(6px);
  transition:opacity .3s ease, transform .3s ease;
  z-index:2;
}
.gallery-item:hover .gallery-caption{opacity:1;transform:translateY(0)}

/* ===== Lightbox ===== */
.gallery-lightbox{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  z-index:200;padding:40px;
}
.gallery-lightbox.open{display:flex;animation:fade .3s ease both}
@keyframes fade{from{opacity:0}to{opacity:1}}
.lightbox-overlay{position:absolute;inset:0;background:rgba(10,15,20,.92);backdrop-filter:blur(8px)}
.lightbox-close{
  position:absolute;top:24px;right:30px;z-index:3;
  width:46px;height:46px;border-radius:50%;border:none;
  background:rgba(255,255,255,.12);color:#fff;font-size:1.6rem;cursor:pointer;
  transition:background .2s;
}
.lightbox-close:hover{background:rgba(255,255,255,.25)}
.lightbox-figure{position:relative;z-index:2;max-width:1100px;width:100%;text-align:center}
.lightbox-image{
  max-width:100%;max-height:82vh;border-radius:14px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.5);
  margin:0 auto;display:block;
}
.lightbox-caption{color:rgba(255,255,255,.85);margin-top:16px;font-size:.9rem;letter-spacing:.1em;text-transform:uppercase}

/* ===== Responsive ===== */
@media (max-width:1100px){.gallery-grid{column-count:3}}
@media (max-width:760px){
  .gallery-grid{column-count:2;column-gap:18px}
  .gallery-item{margin-bottom:18px;border-radius:18px}
  .gallery-hero{min-height:300px;padding:130px 0 40px}
}
@media (max-width:480px){
  .gallery-grid{column-count:1}
  .gallery-section{padding:50px 0 70px}
}