.gallery-section {
    padding: 60px 40px;
}

/* HEADER */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-title {
    color: green;
    font-size: 28px;
    font-weight: 600;
}

/* GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ITEM */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #b2dfb9;
    border-left: 1px solid #b2dfb9;
    border-right: 1px solid #b2dfb9;
    border-bottom: 6px solid #0f7c2e;
    background: #fff;
    cursor: pointer;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* OVERLAY */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 128, 0, 0.85),
        rgba(0, 128, 0, 0.5),
        rgba(0, 128, 0, 0.2),
        rgba(0, 128, 0, 0)
    );
    opacity: 0;
    transition: 0.4s ease;
}

/* DATE TEXT */
.gallery-date {
    color: #fff;
    font-size: 50px;
    font-weight: 800;
    text-align: center;
    transform: translateY(20px);
    transition: 0.4s ease;
}

/* HOVER EFFECTS */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-date {
    transform: translateY(0);
}


/* =========================================
   LIGHTBOX
   ========================================= */
.facility-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.facility-lightbox.active {
    display: flex;
}

.facility-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.facility-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 80px;
    box-sizing: border-box;
}

#lightboxImg {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: opacity 0.15s ease;
    opacity: 1;
}

.facility-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.facility-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 3;
}

.facility-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.facility-lightbox-prev,
.facility-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 3;
}

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

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


/* TABLET */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 150px;
    }

    .facility-lightbox-content {
        padding: 60px 16px 40px;
    }

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

/* SMALL MOBILE */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

