/* ===========================
   PREMIUM GALLERY PAGE
=========================== */

.temple-gallery-body{
  background:linear-gradient(180deg,#FFF9EE,#FFF6E7,#FFF9EE);
  padding:70px 0;
}

.gallery-container{
  width:90%;
  max-width:1350px;
  margin:auto;
}

/* Heading */

.gallery-header{
  text-align:center;
  margin-bottom:50px;
}

.gallery-header span{
  display:inline-block;
  padding:8px 18px;
  border-radius:999px;
  background:rgba(248,193,70,.12);
  border:1px solid rgba(248,193,70,.35);
  color:#D97706;
  font-weight:600;
}

.gallery-header h2{
  font-family:"Cinzel",serif;
  font-size:42px;
  color:#5B1812;
  margin:18px 0 12px;
}

.gallery-header p{
  max-width:700px;
  margin:auto;
  color:#6A5040;
  line-height:1.8;
}

.second-heading{
  margin-top:70px;
}

/* Same Gallery Layout */

.gallery-layout{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:30px;
  align-items:start;
}

/* Image Grid */

.image-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.img-card{
  overflow:hidden;
  border-radius:22px;
  background:white;
  border:1px solid rgba(217,119,6,.12);
  box-shadow:0 12px 28px rgba(0,0,0,.08);
  transition:.35s;
}

.img-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(217,119,6,.18);
}

.img-card img{
  width:100%;
  height:230px;
  object-fit:cover;
  display:block;
  transition:.45s;
}

.img-card:hover img{
  transform:scale(1.06);
}

/* Video */

.video-card{
  position:sticky;
  top:110px;
  background:white;
  border-radius:24px;
  padding:22px;
  border:1px solid rgba(217,119,6,.15);
  box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.video-head span{
  display:inline-block;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(248,193,70,.12);
  color:#D97706;
  font-size:13px;
  margin-bottom:10px;
}

.video-head h3{
  font-family:"Cinzel",serif;
  color:#5B1812;
  margin-bottom:18px;
}

.video-card video{
  width:100%;
  border-radius:18px;
  margin-bottom:18px;
}

.video-card p{
  color:#6A5040;
  line-height:1.7;
}

/* Masonry Gallery */

.masonry-gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows:180px;
  gap:18px;
  margin-top:25px;
}

.masonry-item{
  overflow:hidden;
  border-radius:22px;
  box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.masonry-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.45s;
}

.masonry-item:hover img{
  transform:scale(1.08);
}

.masonry-item.tall{
  grid-row:span 2;
}

.masonry-item.wide{
  grid-column:span 2;
}

/* Blessing */

.gallery-blessing{
  margin-top:80px;
  padding:55px 30px;
  border-radius:32px;
  text-align:center;
  background:linear-gradient(135deg,#5B1812,#3A0E0A);
  color:white;
  box-shadow:0 20px 45px rgba(0,0,0,.18);
}

.blessing-icon{
  font-size:50px;
  color:#F8C146;
  margin-bottom:15px;
}

.gallery-blessing h2{
  font-family:"Cinzel",serif;
  color:#F8C146;
  font-size:34px;
  margin-bottom:15px;
}

.gallery-blessing p{
  max-width:700px;
  margin:auto;
  line-height:1.8;
  color:#F5E7D6;
}

.gallery-buttons{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:30px;
}

.gallery-buttons a{
  text-decoration:none;
  padding:14px 28px;
  border-radius:999px;
  background:linear-gradient(135deg,#F8C146,#D97706);
  color:white;
  font-weight:600;
  transition:.35s;
}

.gallery-buttons a:hover{
  transform:translateY(-4px);
}

/* Tablet */

@media(max-width:992px){

  .gallery-layout{
    grid-template-columns:1fr;
  }

  .video-card{
    position:relative;
    top:auto;
  }

  .masonry-gallery{
    grid-template-columns:repeat(2,1fr);
  }

  .masonry-item.wide{
    grid-column:span 2;
  }

}

/* Mobile */

@media(max-width:576px){

  .temple-gallery-body{
    padding:40px 0;
  }

  .gallery-container{
    width:94%;
  }

  .gallery-header h2{
    font-size:30px;
  }

  .image-grid{
    gap:12px;
  }

  .img-card img{
    height:150px;
  }

  .masonry-gallery{
    grid-template-columns:repeat(2,1fr);
    grid-auto-rows:140px;
    gap:12px;
  }

  .gallery-blessing{
    padding:40px 20px;
  }

  .gallery-blessing h2{
    font-size:26px;
  }

  .gallery-buttons a{
    width:100%;
    text-align:center;
  }

}