/* =====================================================
   FILE PATH: public/css/Gallery.css
   PURPOSE  : Gallery list + Gallery event photo pages
===================================================== */

/* ── PAGE HEADER ──────────────────────────────────── */
.page-header {
    background: var(--peach);
    padding: 20px 0 16px;
    border-bottom: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    right: -50px; top: -50px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,150,26,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.page-header-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--maroon);
    margin-bottom: 4px;
    line-height: 1.2;
}
.page-header-sub {
    font-family: var(--font-marathi);
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 10px;
}

/* Breadcrumb */
.breadcrumb-vmf {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
}
.breadcrumb-vmf .breadcrumb-item a {
    color: var(--saffron);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-marathi);
}
.breadcrumb-vmf .breadcrumb-item.active {
    color: var(--text-soft);
    font-family: var(--font-marathi);
}
.breadcrumb-vmf .breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: var(--text-soft);
    padding: 0 4px;
}

/* ── GALLERY MAIN SECTION ─────────────────────────── */
.sec { }
.py-section { padding: 28px 0 40px; }
.bg-white { background: var(--white); }

/* ── YEAR TABS ────────────────────────────────────── */
.year-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.year-tab {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.year-tab:hover, .year-tab.active {
    background: var(--maroon);
    border-color: var(--maroon);
    color: var(--white);
}

/* ── ALBUMS GRID ──────────────────────────────────── */
.gallery-albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-album-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: var(--radius-card);
    border: 1.5px solid var(--border);
    overflow: hidden;
    background: var(--white);
    transition: transform 0.22s, border-color 0.2s, box-shadow 0.2s;
}
.gallery-album-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 8px 28px rgba(122,31,31,0.10);
}

/* Cover image */
.gac-img {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--light-orange);
}
.gac-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s;
    display: block;
}
.gallery-album-card:hover .gac-img img { transform: scale(1.08); }

/* Photo count badge — always visible on image */
.gac-photo-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.62);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
    backdrop-filter: blur(2px);
}

/* Hover overlay */
.gac-overlay {
    position: absolute;
    inset: 0;
    background: rgba(122,31,31,0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-marathi);
    opacity: 0;
    transition: opacity 0.2s;
    gap: 6px;
}
.gallery-album-card:hover .gac-overlay { opacity: 1; }

/* Card body */
.gac-body {
    padding: 12px 14px 13px;
    border-top: 1.5px solid var(--border);
}
.gac-month {
    display: block;
    font-family: var(--font-marathi);
    font-size: 10px;
    color: var(--saffron);
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.gac-title {
    font-family: var(--font-marathi);
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 6px;
    line-height: 1.45;
}
.gac-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gac-count {
    font-size: 11px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 4px;
}
.gac-view-link {
    font-size: 11px;
    color: var(--saffron);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ══════════════════════════════════════════════════
   GALLERY EVENT (Photo view) PAGE
══════════════════════════════════════════════════ */

/* event page hero has bigger title */
.page-header-event .page-header-title {
    font-size: 24px;
}

/* Photo count strip under title */
.photo-count-strip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--maroon);
    color: var(--light-gold);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-top: 8px;
    font-family: var(--font-marathi);
}

/* ── PHOTO GRID ───────────────────────────────────── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.photo-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--light-orange);
}

/* Zoom icon on hover */
.photo-item::after {
    content: '\F52A';
    font-family: 'Bootstrap Icons';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: rgba(255,255,255,0.9);
    background: rgba(122,31,31,0.40);
    opacity: 0;
    transition: opacity 0.2s;
}
.photo-item:hover::after { opacity: 1; }

.photo-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.photo-item:hover .photo-img { transform: scale(1.06); }

.photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.60));
    color: white;
    font-family: var(--font-marathi);
    font-size: 11.5px;
    padding: 22px 10px 8px;
    z-index: 1;
}

/* Show more button area */
.show-more-wrap {
    text-align: center;
    margin-top: 16px;
}
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-soft);
}

/* ── CUSTOM LIGHTBOX ──────────────────────────────── */
.vmf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,5,5,0.93);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vmf-lightbox.open {
    display: flex;
}

/* Close button */
.lb-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.lb-close-btn:hover { background: rgba(255,255,255,0.25); }

/* Prev / Next buttons */
.lb-prev-btn, .lb-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.lb-prev-btn { left: 16px; }
.lb-next-btn { right: 16px; }
.lb-prev-btn:hover, .lb-next-btn:hover { background: rgba(255,255,255,0.25); }

/* Main image */
.lb-img-wrap {
    max-width: 90vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img-wrap img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Caption + counter */
.lb-footer {
    margin-top: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.lb-caption-text {
    color: rgba(255,255,255,0.80);
    font-family: var(--font-marathi);
    font-size: 13px;
}
.lb-counter {
    color: rgba(255,255,255,0.40);
    font-size: 11px;
    font-weight: 600;
}

/* No events */
.no-events-msg {
    text-align: center;
    padding: 48px;
    color: var(--text-soft);
    font-family: var(--font-marathi);
}
.no-events-msg i { font-size: 40px; display: block; margin-bottom: 12px; }

/*You Tube link CSS*/

 .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    padding-left: 50px;
  }
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 600px;
    max-width: 350px;
    overflow: hidden;
  }
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 992px) {
    .gallery-albums-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
    .gallery-albums-grid { grid-template-columns: repeat(2,1fr); }
    .photo-grid          { grid-template-columns: repeat(2,1fr); }
    .lb-prev-btn         { left: 6px; }
    .lb-next-btn         { right: 6px; }
}
@media (max-width: 480px) {
    .gallery-albums-grid { grid-template-columns: 1fr 1fr; }
    .photo-grid          { grid-template-columns: 1fr 1fr; }
    .photo-img           { height: 160px; }
}