:root {
    --navy: #1A2A6C;
    --red: #BE182C;
    --bg: #f4f5f8;
    --surface: #ffffff;
    --border: rgba(26, 42, 108, 0.12);
    --text: #1a1e2e;
    --muted: #6b7280;
    --radius: 10px;
}

/* ── Section wrapper ── */
.gallery-section {
    /* padding: 2rem 4rem 3rem; */
    background: var(--bg);
    /* min-height: 80vh; */
}

/* ── Section label (CAMPUS LIFE) ── */
.gallery-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}

.gallery-section-label::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

/* ── Heading row ── */
.gallery-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-heading-row h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.gallery-heading-row h2 span {
    color: var(--navy);
    font-weight: 700;
}

.view-all-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s;
    white-space: nowrap;
}

.view-all-link:hover {
    gap: 7px;
    color: var(--red);
}

.view-all-link i {
    font-size: 14px;
}

/* ── Filter tabs ── */
.gallery-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    .gallery-section-label,
    .gallery-heading-row,
    .gallery-filters {
        padding-left: 10px;
    }
}

.gal-filter-btn {
    padding: 5px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.18s;
    line-height: 1.6;
}

.gal-filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.gal-filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ── Masonry grid ── */
.gallery-grid {
    column-count: 3;
    column-gap: 12px;
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* ── Gallery item ── */
.gal-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    display: block;
    background: #dde0ea;
}

.gal-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
    border-radius: var(--radius);
}

/* Tall featured image */
.gal-item.featured img {
    height: 340px;
    object-fit: cover;
}

/* Normal images */
.gal-item.normal img {
    height: 160px;
    object-fit: cover;
}

/* ── Hover overlay ── */
.gal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 42, 108, 0.85) 0%, rgba(26, 42, 108, 0.15) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.gal-item:hover .gal-overlay {
    opacity: 1;
}

.gal-item:hover img {
    transform: scale(1.04);
}

.gal-overlay-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--red);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
    align-self: flex-start;
}

.gal-overlay-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.35;
}

.gal-overlay-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    backdrop-filter: blur(4px);
}

/* ── Lightbox ── */
.gal-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 40, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gal-lightbox.open {
    display: flex;
}

.gal-lightbox-inner {
    position: relative;
    max-width: 860px;
    width: 100%;
    animation: lbIn 0.25s ease;
}

@keyframes lbIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gal-lightbox img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.gal-lb-caption {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}

.gal-lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
}

.gal-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 10;
}

.gal-lb-nav:hover {
    background: var(--red);
    border-color: var(--red);
}

.gal-lb-prev {
    left: -54px;
}

.gal-lb-next {
    right: -54px;
}

@media (max-width: 700px) {
    .gal-lb-prev {
        left: 4px;
    }

    .gal-lb-next {
        right: 4px;
    }
}

/* ── Empty state ── */
.gal-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.gal-empty i {
    font-size: 40px;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}