/* Hero Section */
#heroFacilities {
    min-height: calc(100svh - 80px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('/assets/images/sections/facilities/benches.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.heroFacilities {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.heroFacilities h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2.25rem);
    font-weight: 300;
    margin: 0;
}

.heroFacilities h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 6.75rem);
    font-weight: 500;
    margin: 10px 0;
}

/* About Content Section */
.facilities-content {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.facilities-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1000px; /* Ensures all sections have the same max width */
    margin: 0 auto;
}

/* About Us Container */
.facilities-us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 30px 30px;
}

/* Text Container Styles */
.text {
    text-align: center;
}

/* Video Styles */
.video-container {
    flex: 1;
    width: 100%;
    max-width: min(100%, 900px);
    margin: 20px 0;
}

.video-title {
    font-size: 1.2em;
    color: #ff4c4c;
    margin-bottom: 10px;
    text-align: center;
}

video {
    width: 100%;
    height: auto;
    border: none;
    outline: none;
}
#gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: auto;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 30px;
    width: 90%;
    align-items: center;
    justify-content: center;

}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: black;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    background-color: transparent;
    
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tablet and Small PC Screen */
@media screen and (max-width: 1200px) {
    .hero h3 {
        font-size: clamp(1.25rem, 2vw + 0.5rem, 2.25rem);
        font-weight: 300;
        margin: 0;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 5vw + 1rem, 6.75rem);
        font-weight: 500;
        margin: 10px 0;
    }

    .facilities-section {
        max-width: 90%;
    }

    .facilities-us-container {
        text-align: center;
        max-width: 90%;
    }

    .video-container {
        max-width: 100%;
    }
}

/* Mobile and Small Device Screen */
@media screen and (max-width: 768px) {
    /* Hero */
    #heroFacilities {
        flex-direction: column;
        background-position: center;
    }
    .heroFacilities h3 {
        font-size: clamp(1.25rem, 2vw + 0.5rem, 2.25rem);
        font-weight: 300;
        margin: 0;
    }

    .heroFacilities h1 {
        font-size: clamp(2.5rem, 5vw + 1rem, 6.75rem);
        font-weight: 500;
        margin: 10px 0;
    }

    .facilities-content {
        width: 100%;
    }

    .facilities-us-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .video-container {
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    .video-container {
        margin-bottom: 0;
    }
    .gallery {
    }
    
}