/* =============================================
   MAHA SHIVA NAADI JOTHIDAM — gallery.css
   ============================================= */

/* ── ANIMATIONS ─────────────────────────────── */
.gl-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gl-fade-up.gl-in { opacity: 1; transform: none; }

/* ── HERO ────────────────────────────────────── */
.gl-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('./images/Vaitheeswaran-Koil.jpg') center / cover no-repeat;
}
.gl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(70,0,0,0.88), rgba(15,5,0,0.85));
}
.gl-hero-content {
  position: relative;
  z-index: 2;
  padding: 65px 20px 50px;
  animation: glHeroIn 0.9s ease both;
}
@keyframes glHeroIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:none; }
}
.gl-hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 5px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}
.gl-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
}
.gl-breadcrumb a { color:#fff; text-decoration:none; }
.gl-breadcrumb a:hover { color: var(--gold-light); }
.gl-breadcrumb i { font-size:10px; color:rgba(255,255,255,0.4); }
.gl-breadcrumb span { color: var(--saffron); font-weight:600; }

/* ── SHARED ──────────────────────────────────── */
.gl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}
.gl-section-head {
  text-align: center;
  margin-bottom: 45px;
}
.gl-label {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
}
.gl-section-head h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
}
.gl-section-head p {
  font-size: 15px;
  color: #777;
}
.gl-line {
  width: 55px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ── PHOTO GALLERY SECTION ───────────────────── */
.gl-section {
  padding: 80px 0;
  background: var(--cream);
}

/* 4-column grid */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Each image item */
.gl-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: #e8ddd0;
  border: 2px solid rgba(212,175,55,0.2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gl-item:hover {
  box-shadow: 0 10px 30px rgba(139,0,0,0.2);
  transform: translateY(-4px);
}
.gl-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gl-item:hover img { transform: scale(1.08); }

/* Overlay on hover */
.gl-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,0,0,0.75), rgba(26,10,0,0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gl-item:hover .gl-overlay { opacity: 1; }
.gl-overlay i {
  font-size: 28px;
  color: #fff;
}
.gl-overlay span {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  text-align: center;
  padding: 0 12px;
}

/* ── YOUTUBE SHORTS SECTION ──────────────────── */
.gl-shorts {
  padding: 80px 0;
  background: linear-gradient(135deg, #2d0000, #5c1a00, #4a0a0a);
  position: relative;
}
.gl-shorts .gl-section-head h2 { color: #fff; }
.gl-shorts .gl-label { color: #ff4444; }

.gl-shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.gl-short-card {
  text-align: center;
}
.gl-short-card p {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold-light);
  margin-top: 14px;
  line-height: 1.4;
}
.gl-short-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 2px solid rgba(212,175,55,0.3);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gl-short-card:hover .gl-short-thumb {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.gl-short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gl-short-card:hover .gl-short-thumb img { transform: scale(1.06); }

/* Play button */
.gl-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s;
  text-decoration: none;
}
.gl-play:hover { background: rgba(139,0,0,0.6); }
.gl-play i {
  font-size: 52px;
  color: #ff0000;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.3s;
}
.gl-play:hover i { transform: scale(1.15); }

/* YouTube CTA button */
.gl-yt-btn-wrap { text-align: center; }
.gl-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 6px 22px rgba(255,0,0,0.35);
}
.gl-yt-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,0,0,0.45);
}
.gl-yt-btn i { font-size: 20px; }

/* ── LIGHTBOX ────────────────────────────────── */
.gl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.gl-lightbox.gl-lb-open { display: flex; }
.gl-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.gl-lb-content {
  position: relative;
  z-index: 2;
  max-width: 85vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lbIn 0.3s ease;
}
@keyframes lbIn {
  from { opacity:0; transform:scale(0.92); }
  to   { opacity:1; transform:none; }
}
.gl-lb-content img {
  max-width: 85vw;
  max-height: 78vh;
  border-radius: 10px;
  border: 2px solid rgba(212,175,55,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
  display: block;
}
.gl-lb-content p {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: var(--gold-light);
  margin-top: 14px;
  text-align: center;
}
.gl-lb-close, .gl-lb-prev, .gl-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
  z-index: 3;
}
.gl-lb-close:hover, .gl-lb-prev:hover, .gl-lb-next:hover {
  background: var(--deep-red);
  transform: scale(1.1);
}
.gl-lb-close { top: 20px; right: 20px; }
.gl-lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.gl-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.gl-lb-prev:hover, .gl-lb-next:hover { transform: translateY(-50%) scale(1.1); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1000px) {
  .gl-grid { grid-template-columns: repeat(3, 1fr); }
  .gl-shorts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .gl-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gl-section { padding: 50px 0; }
  .gl-shorts { padding: 50px 0; }
  .gl-container { padding: 0 16px; }
  .gl-hero-content h1 { letter-spacing: 3px; }
  .gl-lb-prev { left: 8px; }
  .gl-lb-next { right: 8px; }
  .gl-lb-close { top: 10px; right: 10px; }
  .gl-lb-content img { max-width: 96vw; max-height: 70vh; }
}
@media (max-width: 480px) {
  .gl-shorts-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gl-hero-content h1 { font-size: 24px; letter-spacing: 2px; }
}