/************************ Gallery ***************************/
.gallery_heading {
    margin-top: 50px;
    margin-bottom: 10px;
}

.gallery_wrapper {
    display: grid;
    width: 100%;
    grid-gap: 30px;
    --auto-grid-min-size: 230px;
    grid-template-columns: repeat(auto-fill, minmax(var(--auto-grid-min-size), 1fr));
    transition: 0.5s ease-in-out;
    margin-top: 20px;
}

.gallery_image img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    background-color: transparent;
    aspect-ratio: 1;
}

.gallery_nav_modal {
    position: absolute;
    display: flex;
    justify-content: space-between;
    text-align: center;
    width: 90%;
    left: 50%;
    top: 50%;
    margin-top: -20px;
    margin-left: -45%;
    z-index: 15;
}

.previous, .next {
    font-size: 26px;
    cursor: pointer;
    color: var(--white);
    padding: 10px;
}

.previous {
    margin-left: -10px;
}

.next {
    margin-right: -10px;
}

.overlay_modal {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.85); 
    z-index: 999; 
}

.mySlides {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    z-index: 999;
}

.mySlides img {
    background-color: var(--white);
    box-sizing: border-box;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.landscape {
    width: 60%;
    max-height: auto;
}

.portrait {
    height: 70vh;
    width: auto;
}

.close_button {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    width: 100%;
    height: 100vh;
    color: var(--white);
}

.close_button i {
    position: absolute;
    font-size: 25px;
    top: 25px;
    right: 30px;
}

.modal_open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .landscape {
        width: 78%;
    }
}

@media (max-width: 600px) {
    .portrait {
        width: 78%;
        height: auto;
    }
}