/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}


.activities-gallery {
    padding: 50px 20px;
}

.activity-block {
    margin-bottom: 50px;
}

.activity-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #800000;
    font-weight: bold;
    text-align: center;
}

/* Grid for images */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.hidden-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.hidden-images.show {
    max-height: 1000px;
    /* large enough to show all images */
    opacity: 1;
}

.activity-grid img,
.hidden-images img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.activity-grid img:hover,
.hidden-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* View More Button */
.view-more {
    display: block;
    margin: 0 auto;
    margin-top: 15px;
    padding: 10px 25px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
    font-size: 1rem;
    width: fit-content;
    min-width: 120px;
    text-align: center;
}

.view-more:hover {
    background: #0056b3;
}

/* Lightbox back button */
.lb-back {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    z-index: 1001;
}

.lb-back:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 992px) {

    .activity-grid img,
    .hidden-images img {
        height: 180px;
    }

    .view-more {
        min-width: 100px;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {

    .activity-grid img,
    .hidden-images img {
        height: 150px;
    }

    .view-more {
        min-width: 80px;
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}



/* ===============================
   IMAGE POPUP / CUSTOM LIGHTBOX
================================ */

.img-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.img-popup img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Close Button */
.img-popup .close-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-popup .close-btn:hover {
    background: #ff4444;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .img-popup {
        padding: 10px;
    }

    .img-popup img {
        max-width: 95%;
        max-height: 80vh;
    }

    .img-popup .close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}