/* ---------- MEDIA QUERIES ---------- */


@media (min-width: 701px) and (max-width: 1150px) {

    .menu-left a {
        display: none;
    }

    .selected,
    .works {
        font-size: 7vw;
        margin: 0;
        line-height: 0.9;
    }

    .portfolio {
        position: absolute;
        font-size: 2.2vw;
        line-height: 1;

        right: 25%;
        margin-top: 7%;

        opacity: 0;
        transform: translateX(-60px);
    }

    html[lang="pt"] .portfolio,
    html[lang="fr"] .portfolio {
        right: 11%;
    }

    .footer-scroll {
        margin-top: -60vh;
    }
}



@media (min-width: 451px) and (max-width: 700px) {

    .topbar {
        padding: 0 var(--double-margin);
    }

    .topbar .col.center-col {
        display: none !important;
    }

    body:not(.menu-aberto) .topbar .col.center-col {
        display: block;
    }

    .menu-fullscreen {
        padding: var(--double-margin);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 2vh;
    }

    .menu-fullscreen-img {
        position: absolute;
        top: 7vh;
        left: 25px;
    }

    .menu-fullscreen .menu-left .menu-fullscreen-img {
        max-width: 30vw;
    }

    .menu-fullscreen .menu-left img {
        transform: translateY(-4vh);
    }

    .menu-col,
    .menu-col.center-col,
    .menu-col.right-col {
        flex: unset;
        width: 100%;
        height: auto !important;

        display: flex;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .menu-left,
    .menu-links,
    .menu-socials {
        display: flex;
        align-items: center;
        text-align: center;
    }

    .menu-left {
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: space-between;
    }

    .menu-socials {
        flex-direction: column;
        justify-content: flex-start;
    }

    .menu-links,
    .menu-socials {
        width: fit-content;
    }

    .menu-links {
        margin-top: 6vh;
    }

    .menu-links a,
    .menu-socials a,
    .menu-left a {
        transform-origin: center;
    }

    .menu-links a {
        font-size: 3rem;
    }

    .menu-socials a {
        font-size: 2rem;
    }

    .menu-left a {
        position: absolute;
        bottom: 3%;
        margin: 0;
        font-size: 1rem;
        white-space: nowrap;
        opacity: 0.7;
        text-align: center;
    }

    .selected,
    .works {
        font-size: 7vw;
        margin: 0;
        line-height: 0.9;
    }

    .portfolio {
        position: absolute;
        font-size: 2.2vw;
        line-height: 1;

        right: 23%;
        margin-top: 7%;

        opacity: 0;
        transform: translateX(-60px);
    }

    html[lang="pt"] .portfolio {
        right: 14%;
    }

    html[lang="fr"] .portfolio {
        right: 14%;
    }

    .footer-scroll {
        position: relative;
        height: 120vh;
        margin-top: -60vh;
    }

    .sticky_wrap {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    .column-nav,
    .column-socials {
        display: inline-flex;
        flex-direction: column;
        margin-left: 13%;
    }

    .horizontal_scroll.footer-track {
        padding: 0 0 var(--half-margin) 70vw;
    }

    .credits {
        padding: 15px 0 12px;
    }

    .credits p {
        font-size: 0.75rem;
    }

    .credits .center {
        margin-left: 0;
    }
}



@media (max-width: 450px) {

    .topbar {
        padding: 0 var(--double-margin);
    }

    .topbar .col.center-col {
        display: none !important;
    }

    body:not(.menu-aberto) .topbar .col.center-col {
        display: block;
    }

    .menu-fullscreen {
        padding: var(--double-margin);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 2vh;
    }

    .menu-fullscreen-img {
        position: absolute;
        top: 7vh;
        left: 25px;
    }

    .menu-fullscreen .menu-left .menu-fullscreen-img {
        max-width: 30vw;
    }

    .menu-fullscreen .menu-left img {
        transform: translateY(-4vh);
    }

    .menu-col,
    .menu-col.center-col,
    .menu-col.right-col {
        flex: unset;
        width: 100%;
        height: auto !important;

        display: flex;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .menu-left,
    .menu-links,
    .menu-socials {
        display: flex;
        align-items: center;
        text-align: center;
    }

    .menu-left {
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: space-between;
    }

    .menu-links,
    .menu-socials {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1vh;
        width: fit-content;
    }

    .menu-links a {
        font-size: 3rem;
        line-height: 1;
    }

    .menu-socials a {
        font-size: 2rem;
        line-height: 1;
        margin-top: 0 !important;
    }

    .menu-links a,
    .menu-socials a,
    .menu-left a {
        transform-origin: center;
    }

    .menu-left a {
        position: absolute;
        bottom: 25px;
        margin: 0;

        font-size: 0.8rem;
        white-space: nowrap;

        opacity: 0.7;
        text-align: center;
    }

    .selected,
    .works {
        font-size: 7vw;
        margin: 0;
        line-height: 0.9;
    }

    .portfolio {
        position: absolute;

        right: 32%;
        margin-top: 7%;

        font-size: 2.5vw;
        line-height: 1;

        opacity: 0;
        transform: translateX(-60px);
    }

    html[lang="pt"] .portfolio {
        right: 19%;
    }

    html[lang="fr"] .portfolio {
        right: 20%;
    }

    .selected-works {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--margin);
        margin-top: var(--margin);
    }

    .sub-section {
        display: contents;
    }

    .img-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .img-wrapper img {
        display: block;
        width: 100%;
        height: auto;

        position: relative;
        z-index: 2;

        object-fit: cover;
        aspect-ratio: unset;

        transition: transform 0.4s ease;
    }

    .img-wrapper p {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 1;

        width: 100%;
        margin: 0;
        padding-top: 5px;

        transition: all 0.3s ease;
    }

    .img-wrapper:hover img {
        transform: translateY(-30px);
    }

    .img-wrapper:hover p {
        transition-delay: 0.15s;
    }

    .img1,
    .img2,
    .img3,
    .img4,
    .img5,
    .img6,
    .img7,
    .img8 {
        width: 100%;
        grid-column: span 1;
    }

    .footer-scroll {
        position: relative;
        height: 120vh;
        margin-top: -60vh;
    }

    .sticky_wrap {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    .column-nav,
    .column-socials {
        display: inline-flex;
        flex-direction: column;
        margin-left: 13%;
    }

    .horizontal_scroll.footer-track {
        padding: 0 0 var(--half-margin) 70vw;
    }

    .credits {
        padding: 15px 0 12px;
    }

    .credits p {
        font-size: 0.5rem;
    }

    .credits .center {
        margin-left: 0;
    }
}



/* ==================================================
    tablet em portrait
================================================== */

@media (min-width: 701px) and (max-width: 1024px) and (min-height: 1100px) {

    .menu-fullscreen-img {
        position: absolute;
        top: 6vh;
    }

    .menu-fullscreen .menu-left .menu-fullscreen-img {
        max-width: 25vw;
    }

    .menu-fullscreen .menu-left img {
        transform: translateY(-3vh);
    }

    .menu-links {
        gap: 1vh;
    }

    .menu-socials {
        gap: 1vh;
    }

    .menu-socials a {
        font-size: 2rem;
    }

    .menu-links a {
        font-size: 3rem;
    }

    html[lang="pt"] .portfolio,
    html[lang="fr"] .portfolio {
        right: 11%;
    }

    .footer-scroll {
        margin-top: -60vh;
    }

    .lang-selector a,
    .lang-selector .separator,
    #btn-header {
        font-size: 2rem;
    }

    body.menu-aberto .topbar {
        transform: translateY(calc(-48vh + 1rem + 120px));
    }
}



/* ==================================================
    tablet em landscape
================================================== */

@media (min-width: 1024px) and (max-width: 1366px) and (max-height: 1024px) {

    .menu-fullscreen .menu-left img {
        transform: translateY(2vh);
    }

    .menu-socials a {
        font-size: 2rem;
    }

    .menu-links a {
        font-size: 3rem;
    }

    .lang-selector a,
    .lang-selector .separator,
    #btn-header {
        font-size: 2rem;
    }

    html[lang="fr"] .portfolio {
        right: 31%;
    }

    html[lang="pt"] .portfolio {
        right: 30%;
    }

    html[lang="en"] .portfolio {
        right: 37%;
    }

    body.menu-aberto .topbar {
        transform: translateY(calc(-49vh + 1rem + 120px));
    }
}



/* ==================================================
    iphone em potrait
================================================== */

@media (max-width: 430px) and (min-height: 800px) {

    .menu-fullscreen .menu-left img {
        transform: translateY(-3vh);
    }

    .menu-links {
        margin-top: -9vh;
    }
}



/* ==================================================
    iphone em landscape
================================================== */

@media (max-width: 932px) and (max-height: 450px) {

    html[lang="pt"] .portfolio,
    html[lang="fr"] .portfolio {
        right: 12%;
    }

    body.menu-aberto .topbar {
        transform: translateY(calc(-55vh + 1rem + 120px));
    }
}