.galery {
    margin-top: 4rem;
    display: block;

    @media only screen and (max-width: 1200px) {
        display: flex;
        padding: 0 0 20vh;
        margin-top: 1rem;
        flex-direction: column;
    }
}

.galery-header {
    width: 100%;
    min-height: 70vh;
    position: relative;
}

.galery-white-box {
    margin-left: 2rem;
    width: 50vw;
    height: 32vh;
    background: #fff;
    border-radius: 2rem;
    padding: 2rem;

    @media only screen and (max-width: 900px) {
        margin-left: 0;
        margin-right: 8%;
        border-radius: 0 0.7rem 0.7rem 0;
        padding: 1rem 1rem 20vh;
        align-self: flex-start;
        width: 90vw;
        height: 37vh;
    }

    @media only screen and (min-width: 900px) and (max-width: 1200px) {
        margin-left: 0;
        margin-right: 8%;
        border-radius: 0 0.7rem 0.7rem 0;
        padding: 1rem 1rem 20vh;
        align-self: flex-start;
        width: 90vw;
        height: 35vh;
    }
}

.galery-text-box {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    gap: 1rem;
    margin-left: 2rem;

    @media only screen and (max-width: 600px) {
        width: 80%;
        margin-left: 1rem;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        width: 80%;
        margin-left: 1rem;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1650px) {
        width: 70%;
    }

    @media only screen and (max-height: 800px) {
        gap: 0.25rem;
    }
}

.galery-text-box h1 {
    color: #000;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;

    @media only screen and (max-width: 600px) {
        font-size: 1.5rem;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        font-size: 2rem;
    }
}

.galery-text-box p {
    color: #4A4A4A;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;

    @media only screen and (max-width: 600px) {
        font-size: 0.75rem;
    }

    @media only screen and (min-width: 601px) and (max-width: 1200px) {
        font-size: 0.85rem;
    }
}

.galery-container {
    padding: 0 8rem 8rem;

    @media only screen and (max-width: 1200px) {
        padding: 0 1rem 1rem;
    }
}

.galery-images {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 3rem;

    @media only screen and (max-width: 1200px) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.galery-images img {
    width: 15vw;
    height: 15vw;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid #000;
    cursor: pointer;
    object-fit: cover;

    @media only screen and (max-width: 1200px) {
        width: 44vw;
        height: 44vw;
    }
}

.galery-photo-border {
    position: absolute;
    bottom: 20%;
    right: 5%;
    border-radius: 1rem;
    border: 2px solid #000;
    display: flex;
    justify-content: center;
    height: 35vh;
    width: 50vw;
    z-index: -1;

    @media only screen and (max-width: 1200px) {
        top: auto;
        bottom: 0;
        right: -10%;
        height: 50vh;
        width: 90vw;
    }

    @media only screen and (min-width: 1201px) and (max-width: 1600px) {
        right: 3%;
        width: 45%;
    }
}

.galery-photo-border img {
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 1rem;
    align-self: center;
    height: 98%;
    width: 99%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

#modal-image {
    border-radius: 0.5rem;
    height: 80vh;
    width: 80vh;
    object-fit: cover;
    padding: 0.5rem;

    @media only screen and (max-width: 1200px) {
        height: 48vh;
        width: 48vh;
        border-radius: 1rem;
        padding: 1rem;
    }
}

#modal-close {
    cursor: pointer;
    align-self: flex-end;
    @media only screen and (max-width: 1200px) {
        padding-right: 0.5rem;
    }
}

.modal-container {
    display: flex;
    flex-direction: column;
    width: 90vh;
    height: 100vh;
    justify-content: center;
    align-items: center;

    @media only screen and (max-width: 1200px) {
        height: 100vh;
        width: 100vw;
    }
}

.modal-container-bottom {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    width: 80vh;
    justify-content: space-between;
    align-items: center;

    @media only screen and (max-width: 1200px) {
        width: 48vh;
    }
}

#modal-label {
    color: #FFF;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.arrow-modal {
    cursor: pointer;
}

.left {
    transform: rotate(180deg);
}