.gallery-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-page {
    background: fixed;
    background-position: center;
    background-size: cover;
}

.gallery-page .button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.gallery-page .button-group button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.5s ease;
    background-color: #0c3587;
    color: white;
    border-radius: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0);
    transition: background-color 0.3s ease;
}

/* .gallery-page .button-group button:hover {
    background-color: #145a8d;
     transform: scale(1.05);
    border-bottom: 2px solid rgb(25, 0, 250);
} */

.gallery-page .gallery {
    display: flex;
    /* Existing CSS here */
    

    .modal-overlay {
        display: none;
        /* Hidden by default */
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: center;
        align-items: center;
    }

    .modal-content {
        max-width: 90%;
        max-height: 90%;
        margin: auto;
        display: block;
        border-radius: 5px;
    }

    .modal-content video {
        width: 100%;
    }

    .close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        cursor: pointer;
    }

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    justify-content: center;
}

.gallery-page .gallery-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    display: none;
}

.gallery-page .gallery-section img,
.gallery-section video {
    border: 2px solid rgb(0, 0, 77);
    border-radius: 6px;
    background: #f5f5f5;
    width: calc(25% - 20px);
}


#photoGallery {
    display: flex;
}


.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    border-radius: 5px;
}

.modal-content video {
    width: 100%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.gallery-page .gallery-section .image-container {
    position: relative;
    width: calc(25% - 20px);
    border-radius: 6px;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(13 24 86 / 70%);
    color: white;
    text-align: center;
    padding: 5px 10px;
    font-size: 14px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.gallery-page .gallery-section .image-container img {
    height: 200px;
    width: 100%;
}

.triangle-down {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 50px solid #555;
}

iframe {

    margin-bottom: 20px;
}

.speech-bubble {
    position: relative;
    background-color: #0c3587;
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    margin: 50px auto;
}



.speech-bubble.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: #0c3587 transparent transparent transparent;
}

.gallery-page .button-group .speech-bubble.bgRed{ background-color: #e11b1c;}
.gallery-page .button-group .speech-bubble.bgRed.active::after{border-color: #e11b1c transparent transparent transparent;}