* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--dark-white);
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
}

h1 {
    font-size: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

:root {
    --dark-white: #d1d1d1;
    --dark-white2: #bebebe;
    --background-color: #111;
    --white: #ffffff;
    --gray: #555555;
    --background-modal: #222;
}

.container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 50px;
    padding-right: 50px;
}

body {
    background-color: var(--background-color);
    color: var(--dark-white);
    font-family: 'Open Sans';
    letter-spacing: 0.12rem;
    overflow-x: hidden;
}

.hero__wallpaper {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.hero__wallpaper__container {
    position: absolute;
    height: 100%;
    width: 100%;
}

.hero__wallpaper__container__image {
    transition: all 0.5s ease;
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center center;
}

.hero__wallpaper__container__overlay {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 103%;
    z-index: 2;
    background: linear-gradient(90.35deg, var(--background-color) 1.99%, rgba(17, 17, 17, 0) 38.43%), linear-gradient(269.91deg, #111111 0.08%, rgba(17, 17, 17, 0) 35.58%), linear-gradient(44.22deg, #111111 4.24%, rgba(17, 17, 17, 0) 43.21%), linear-gradient(320.89deg, #111111 5.71%, rgba(17, 17, 17, 0) 42.69%), linear-gradient(132.62deg, #111111 7.55%, rgba(17, 17, 17, 0) 41.03%), linear-gradient(226.33deg, #111111 9.45%, rgba(17, 17, 17, 0) 39.74%), linear-gradient(180deg, rgba(17, 17, 17, 0) 60.08%, #111111 100%), linear-gradient(180deg, #111111 1.98%, rgba(17, 17, 17, 0) 10.07%);
}

.hero__container {
    display: flex;
    justify-content: center;
}

.hero__title {
    position: absolute;
    text-align: center;
    bottom: 50px;
    padding-bottom: 0.5rem;
    color: var(--white);
    font-size: 78px;
    line-height: 100%;
    font-family: 'Cormorant', serif;
    font-weight: 300;
    letter-spacing: 0.00em;
    z-index: 5;
    text-transform: none;
}

.hero__undertitle {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: var(--dark-white);
    font-size: 14rem;
    line-height: 100%;
    font-family: 'Cormorant', serif;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.05;
    z-index: 4;
}

.gallery {
    margin-top: 30px;
}

.gallery__container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
}

.gallery__row {
    margin: 5px;
    flex: 1 1 auto;
}

.gallery__image {
    height: 160px;
    object-fit: cover;
    width: 100%;
    border-radius: 7px;
    transition: all 0.2s ease-in-out;
}

.gallery__image:hover {
    transform: scale(105%);
    outline: 5px solid var(--background-color);
}



.modal {
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
}

.modal__content {
    width: 55%;
    height: 75%;
    padding: 20px;
    margin: 0 auto;
    position: relative;
    top: 15%;
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: 0 0px 25px 0 rgba(199, 175, 189, 0.25);
    transform: scale(0);
    transition: transform .35s, opacity .35s;
}

.modal__header {
    width: 100%;
    height: 100%;
}

.modal__header__image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal__btn-close {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 15px;
    right: 15px;
    border-radius: 50%;
    border: 2px solid var(--dark-white2);
    cursor: pointer;
    transition: border 0.6s ease;
    outline: 5px solid var(--background-color);
    background-color: var(--background-color);
}

.modal__btn-close:after,
.modal__btn-close:before {
    content: "";
    position: absolute;
    width: 70%;
    height: 2px;
    background: var(--dark-white2);
    left: 15%;
    top: 50%;
    top: calc(50% - 1px);
    transform-origin: 50% 50%;
    transform: rotate(45deg);
    transition: background-color 0.6s ease;
}

.modal__btn-close:before {
    transform: rotate(-45deg);
}

.modal__btn-close:hover {
    border-color: var(--white);
}

.modal__btn-close:hover:before,
.modal__btn-close:hover:after {
 background-color: var(--white);
}

.back-to-top {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 50px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    transition: all 0.3s ease;
    z-index: 6;
}

.back-to-top__btn {
    transform: rotate(-90deg);
    font-size: 24px;
    color: var(--dark-white2);
    transition: all 0.3s ease;
}

.footer {
    padding: 25px 0;
}

.footer__info {
    font-size: 8px;
    font-weight: normal;
    line-height: 16px;
    color: var(--gray);
}

@media (max-width: 1600px) {
    .modal__content {
        width: 75%;
        height: 75%;
    }
}

@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 996px;
    }

    .modal__content {
        width: 80%;
        height: 65%;
        top: 20%;
    }

}

@media (max-width: 992px) {
    body {
        letter-spacing: 0.09rem;
    }

    .container {
        max-width: 720px;
    }

    .hero__wallpaper__container {
        right: 0;
        width: 100%;
    }

    .hero__undertitle {
        opacity: 0.15;
    }

    .modal__content {
        width: 85%;
        height: 60%;
    }

    .footer__info {
        font-size: 7px;
        line-height: 10px;
    }

}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .hero__title {
        font-size: 58px;
    }

    .hero__undertitle {
        bottom: 60px;
        left: 0px;
        font-size: 12rem;
    }

    .hero__wallpaper__container__overlay {
        background: linear-gradient(90.35deg, var(--background-color) 1.99%, rgba(17, 17, 17, 0) 30.43%), linear-gradient(269.91deg, #111111 0.08%, rgba(17, 17, 17, 0) 30.58%), linear-gradient(44.22deg, #111111 4.24%, rgba(17, 17, 17, 0) 30.21%), linear-gradient(320.89deg, #111111 5.71%, rgba(17, 17, 17, 0) 30.69%), linear-gradient(132.62deg, #111111 7.55%, rgba(17, 17, 17, 0) 25.03%), linear-gradient(226.33deg, #111111 9.45%, rgba(17, 17, 17, 0) 25.74%), linear-gradient(180deg, rgba(17, 17, 17, 0) 60.08%, #111111 100%), linear-gradient(180deg, #111111 1.98%, rgba(17, 17, 17, 0) 10.07%);
    }

    .modal__content {
        width: 100%;
        height: 100%;
        top: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
    }

    .hero__title {
        font-size: 40px;
    }

    body .modal {
        overflow: hidden;
    }

    .hero__undertitle {
        left: unset;
        font-size: 133px;
    }

    .gallery {
        margin: 0;
    }

    .gallery__container {
        padding: 0 0px;
    }

    .gallery__row {
        flex: 1 1 calc(33% - 10px);
        margin: 2px;
        margin-bottom: 0;
    }

    .gallery__image:hover {
        transform: none;
        outline: none;
    }

    .footer {
        display: none;
    }

}

@media (hover: hover) {
    .back-to-top:hover {
        box-shadow: 0 0px 10px 0 rgba(199, 175, 189, 0.25);
        background-color: rgba(0, 0, 0, 1);
    }

    .back-to-top:hover .back-to-top__btn {
        color: var(--white);
    }
}