:root {
    --bg: #df2a31;
    --black: #000;
    --white: #fff;
    --Montserrat: "Montserrat", sans-serif;
    --Outfit: "Outfit", sans-serif;
}

body {
    background-color: var(--bg);
    font-family: var(--Montserrat);
    margin: 0;
}

main {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

main > div {
}

.gallery {
    align-self: center;
    position: relative;
    width: 32vw;
    aspect-ratio: 6 / 5;
    /* overflow: hidden; */
}

.gallery .container.active {
    opacity: 1;
    z-index: 1;
}

.gallery .container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery .container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 35px; */
}

.center h3 {
    color: var(--white);
    font-weight: 650;
    font-size: 30px;
    line-height: 32px;
    text-align: center;
    margin-bottom: 12px;
    margin-top: 0;
    font-family: var(--Outfit);
}

.center p {
    color: var(--black);
    margin-bottom: 35px;
    margin-top: 0;
    text-align: center;
    font-weight: 600;
    font-size: 22px;
    line-height: 100%;
}

a,
a:hover,
a:focus,
a:visited {
    text-decoration: none;
}

.center button {
    text-transform: uppercase;
    font-weight: 650;
    font-size: 18px;
    line-height: 100%;
    background-color: var(--black);
    color: var(--white);
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 302px;
    height: 42px;
}

.right {
    position: relative;
    width: 283px;
    align-self: center;
    justify-self: flex-end;
    height: 350px;
}

.right .container {
    width: 233px;
    left: 50px;
    position: absolute;
    /* transform: translate(0, 50px); */
}

.right .container img {
    width: 100%;
}

.right-items {
    position: relative;
    top: 141px;
}

.right .texts {
    margin-bottom: 24px;
}

.right h3 {
    font-size: 38px;
    line-height: 41px;
    font-weight: 900;
    letter-spacing: -5%;
    color: #000400;
    margin-top: 0;
    margin-bottom: 0px;
}

.right p {
    font-size: 18px;
    line-height: 21px;
    font-weight: 400;
    letter-spacing: -5%;
    color: #000400;
    margin-top: 0;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    main {
        display: flex;
        flex-direction: column;
        gap: 116px;
        padding: 20px 0;
        height: auto;
    }

    .gallery {
        width: 80%;
    }

    .center h3 {
        color: var(--white);
        font-weight: 600;
        font-size: 24px;
        line-height: 26px;
        margin-bottom: 10px;
    }

    .center p {
        font-size: 18px;
        line-height: 20px;
        letter-spacing: -2%;
    }

    .center button {
        font-size: 14px;
    }

    .right {
        height: auto;
        justify-self: center;
    }

    .right .container {
        display: none;
    }

    .right-items {
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .right .texts {
        width: 200px;
    }

    .right h3 {
        font-size: 28px;
    }

    .right p {
        font-size: 14px;
        line-height: 16px;
    }
}
