.section-1 {
    background-image: url(../Imgs/o_mne/o_mne.jpg);
    background-size: cover;
    background-position: center;
}

.under-section-1 {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.under-section-1 h1 {
    max-width: 511px;
    font-family: Playfair Display;
    font-size: 50px;
    font-weight: 700;
}

.under-section-1 h2 {
    margin-top: 5px;
    margin-bottom: 3rem;
    font-family: Playfair Display;
    font-size: 35px;
    font-weight: 400;
}

.under-section-1 p {
    max-width: 511px;
    font-family: Nunito Sans;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.375;
}

.under-section-1 img {
    align-self: center;
    aspect-ratio: 1;
    height: 300px;
    border-radius: 50%;
}

.hidden {
    transform: translateX(100%);
}

.shown {
    transform: translateX(0);
    transition: transform 2s;
}


@media screen and (max-width: 905px){
    .under-section-1 {
        flex-direction: column;
        align-items: center;
    }
    
    .under-section-1 img {
        align-self: inherit;
        margin-top: 5rem;
    }
}

@media screen and (max-width: 530px){
    .under-section-1 h1,
    .under-section-1 h2 {
        font-size: 30px;
    }

    .under-section-1 p {
        font-size: 1rem;
        max-width: 400px;
    }

    .under-section-1 h2 {
        margin-top: 3px;
        margin-bottom: 1.5rem;
    }

    .under-section-1 .container {
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion){
    .shown {
        transition: none;
    }
}