/* ===== Dynamic Gallery Page ===== */

.gallery-page-hero{
  position:relative;
  padding:120px 0 105px;
  text-align:center;
  background:
    linear-gradient(rgba(88,22,17,.62), rgba(88,22,17,.62)),
    url("../images/gallery-hero.jpg");
  background-size:cover;
  background-position:center;
  color:#fff;
}

.gallery-page-hero h1,
.gallery-page-hero p,
.gallery-page-hero .section-tag{
  color:#fff;
}

.gallery-page-hero .section-tag:before{
  background:var(--gold);
}

.gallery-page-hero h1{
  font-size:clamp(42px,5vw,76px);
  margin-bottom:16px;
}

.gallery-page-hero p{
  max-width:760px;
  margin:0 auto;
  font-size:18px;
}

.albums-section{
  padding:90px 0 110px;
  background:#fff;
}

.albums-head{
  text-align:center;
  max-width:780px;
  margin:0 auto 52px;
}

.album-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

.album-card{
  background:#fff;
  border:1px solid rgba(88,22,17,.08);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 22px 55px rgba(88,22,17,.11);
  transition:.35s ease;
}

.album-card:hover{
  transform:translateY(-8px);
  box-shadow:0 30px 75px rgba(88,22,17,.16);
}

.album-img{
  height:255px;
  overflow:hidden;
  background:linear-gradient(135deg,#fff3df,#f8efe1);
}

.album-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.55s ease;
}

.album-card:hover .album-img img{
  transform:scale(1.08);
}

.album-placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size:64px;
  color:var(--maroon);
}

.album-content{
  padding:26px 28px 30px;
}

.album-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.album-meta span{
  color:#d98516;
  font-size:13px;
  font-weight:700;
}

.album-content h3{
  font-size:25px;
  margin-bottom:10px;
}

.album-content p{
  font-size:15px;
  min-height:52px;
}

.album-link{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(88,22,17,.09);
  color:#d98516;
  font-weight:800;
  font-size:14px;
}

/* Album detail */
.album-detail-hero{padding-top:90px}
.back-link{display:inline-flex;color:var(--maroon);font-weight:800;margin-bottom:20px}
.album-detail-section{padding:90px 0 110px;background:#fff}
.album-detail-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:36px}
.album-detail-head h2{margin:0}

.photo-masonry{
  columns:3 280px;
  column-gap:22px;
}

.photo-item{
  display:block;
  break-inside:avoid;
  margin-bottom:22px;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 42px rgba(88,22,17,.12);
  background:#fff8ed;
}

.photo-item img{
  width:100%;
  height:auto;
  transition:.45s ease;
}

.photo-item:hover img{transform:scale(1.04)}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(20,8,6,.88);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
}

.lightbox.active{display:flex}
.lightbox img{max-width:92vw;max-height:88vh;width:auto;height:auto;border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.45)}
.lightbox-close{position:absolute;right:28px;top:22px;width:46px;height:46px;border:0;border-radius:50%;background:#fff;color:var(--maroon);font-size:32px;cursor:pointer;line-height:1}

@media(max-width:1100px){
  .album-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .album-grid{grid-template-columns:1fr}
  .album-detail-head{display:block}
  .photo-masonry{columns:1}
}
