/* ══════════════════════════════════════════════════════
   Shared styles for all event-specific gallery pages
   ══════════════════════════════════════════════════════ */

/* ── Cover Banner ── */
.cover-wrapper {
    position: relative;
    width: 100%;
}

.gallery-cover-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
}

.gallery-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gallery-cover-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 3px 14px rgba(0,0,0,0.6);
    font-family: Arial, sans-serif;
    margin: 0;
    text-align: center;
}

.gallery-cover-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cde8f5;
    font-size: 0.85rem;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 5px 14px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.gallery-cover-back:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Page body ── */
.event-gallery-page {
    background: #f8fafc;
    min-height: 60vh;
    padding: 50px 30px 80px;
}

/* ── Year Section ── */
.year-section {
    max-width: 1100px;
    margin: 0 auto 60px;
}

.year-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f2027;
    font-family: Georgia, serif;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1e88e5;
    display: inline-block;
}

/* ── Photo Grid ── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    border-radius: 4px;
}

.photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.88);
}

.photo-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.6);
}

.photo-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.78rem;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    padding: 20px 10px 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-item-label {
    opacity: 1;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.lightbox-caption {
    color: #cde8f5;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .photo-grid { grid-template-columns: 1fr; }
    .photo-item img { height: 200px; }
    .gallery-cover-title { font-size: 1.5rem; letter-spacing: 2px; }
    .event-gallery-page { padding: 30px 14px 60px; }
}
