.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 90px;
    position: relative;
    height: 500px;
    width: 100%;
    margin-top: 55px;
}

.gallery-image-container{
    display: flex;
    width: 100%;
    min-height: 500px;
    position: absolute;
}

.gallery-image {
    width: 100%;
    height: 500px;
    position: absolute;
    object-position: center center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.gallery-image.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-overlay{
    position: absolute;
    color: white;
    font-size: 24px;
    text-align: center;
    width: 50vw;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-head{
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: -20px;
    font-size: 40px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin-top: 150px;
}

.gallery-text{
    background: rgb(0, 0, 0, 0.3);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-top: 20px;
    width: 550px;
}

.full-gallery {
    background-color: #063c68;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    font-family: Roboto, Arial, sans-serif;
    height: 50px;
    box-sizing: border-box;
    cursor: pointer;
}

.full-gallery:hover {
    background-color: #05314e;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.gallery-image-button-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: last baseline;
    margin-top: auto;
    margin-bottom: 6px;
    gap: 4%;
    width: 50%;
}
.show-gallery-image{
    display: flex;
    justify-content: center;
    width: 26px;
    height: 16px;
    margin-top: auto;
    margin-bottom: 6px;
    border: none;
    border-radius: 25%;
    background-color: rgba(0, 0, 0, 0.623);
}

.show-gallery-image:hover {
    cursor: pointer;
    background-color: rgba(170, 170, 170, 0.9);
    transition: background-color 0.3s ease;
}

.show-gallery-image.selected{
    background-color: rgba(170, 170, 170, 0.822);
}

@media (max-width: 768px) {

    .gallery {
        height: 400px;
        padding-top: 50px;
        margin-top: 90px;
    }

    .gallery-image-container {
        min-height: 400px;
    }

    .gallery-image {
        height: 400px;
        object-fit: cover;
    }

    .gallery-overlay {
        width: 90%;
        height: 400px;
    }

    .gallery-head {
        font-size: 28px;
        margin-top: 80px;
    }

    .gallery-text {
        width: 100%;
        font-size: 17px;
        padding: 10px;
    }

    .gallery-image-button-container {
        width: 100%;
    }
}