@charset "UTF-8";

/*
    Theme Name: ELLE
    Author: Dopeler
    Author URI: https://dopeler.com
    Description: Website of ELLE Comunica
    Requires at least: 5.3
    Tested up to: 6.2
    Requires PHP: 5.6
    Version: 1.3
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: elle
    Tags: elle

    ELLE Comunica, (C) 2024 All rights reserved.
*/

:root {
    --bg: #FFF;
    --bgRed: #ec5729;
    --bgMagenta: #eb4ec7;
    --light-gray: #EBEBEB;
    --gray: #ababab;
    --color: #000;
    --app-height: 100vh;
    --padding: 10px;
    --section-padding: 100px;
    --gap: 10px;
    --fs-baseline: 50px;
    --fs-baseline-lh: 40px;
    --fs-main: 15px;
    --fs-secondary: 12px;
    --nav-height: calc(var(--fs-baseline-lh) + (var(--padding) * 2));
    --footer-height: 65px;
}
@media(max-width: 1024px) {
    :root {
        --app-height: 100svh;
        --fs-baseline: 45px;
        --fs-baseline-lh: 35px;
        --fs-main: 13px;
        --fs-secondary: 11px;
        --nav-height: calc(var(--fs-baseline-lh) + (var(--padding) * 2));
    }
}
@media(max-width: 780px) {
    :root {
        --app-height: 100svh;
        --fs-baseline: 40px;
        --fs-baseline-lh: 30px;
        --nav-height: calc(var(--fs-baseline-lh) + (var(--padding) * 2));
        --fs-main: 15px;
        --fs-secondary: 12px;
    }
}

::selection {
    background-color: #000;
    color: #fff;
}
* {
    padding: 0;
    margin: 0;
    -ms-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html {
    -webkit-text-size-adjust: none;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: var(--app-height);
    position: relative;
    overflow-x: hidden;
    font-family: 'Helvetica Now Display';
    font-weight: 500;
    font-size: var(--fs-main);
    line-height: 1em;
    background: var(--bg);
    color: var(--color);
}
body.red {
    background: var(--bgRed);
}
body.magenta {
    background: var(--bgMagenta);
}
body.nav-expanded {
    height: var(--app-height);
    overflow: hidden;
}
a {
    color: var(--color);
    text-decoration: none;
}
::-webkit-scrollbar {
    display: none;
}
::scrollbar {
    display: none;
}

/* Body */
.body {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: var(--padding);
    padding-bottom: var(--nav-height);
    align-items: flex-start;
    align-content: flex-start;
}
@media(max-width: 780px) {
    .body {
        padding-top: 0;
        padding-bottom: var(--nav-height);
    }
}

/* Page */
main {
    display: block;
    width: 100%;
    padding: var(--padding);
    min-height: calc(var(--app-height) - var(--footer-height));
}
.single-page {
    padding-top: var(--nav-height);
}

/* Homepage */
.homepage {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    padding: var(--padding);
    padding-top: var(--nav-height);
}

/* Projects */
.projects {
    display: block;
    width: 100%;
    padding: var(--nav-height) 0;
    min-height: calc(var(--app-height) - 35px);
}
.projects-ribbon {
    display: grid;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    padding: calc(var(--padding) / 2) var(--padding);
    margin-top: 20px;
}
.projects-ribbon-element {
    width: 100%;
    height: 10px;
    background-color: var(--color);
}
.projects-pagination {
    display: block;
    width: 100%;
    padding: var(--padding);
    padding-top: var(--nav-height);
}
.projects-pagination .current {
    font-weight: bold;
}
.projects-pagination .nav-links {
    display: flex;
    width: 100%;
    gap: var(--gap);
}
.project-preview-item {
    display: block;
    width: 100%;
}
.project-preview-mobile {
    display: none;
}
.project-preview {
    display: grid;
    width: 100%;
    align-items: flex-start;
    align-content: flex-start;
    grid-template-columns: minmax(0, 6fr) minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    padding: calc(var(--padding) / 2) var(--padding);
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}
.project-preview-title {
    display: block;
    width: 100%;
    font-size: 5vw;
    line-height: 3.9vw;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
}
.project-preview-title.shifted {
    padding-left: 35px;
}
.project-preview-title.shifted:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    left: 5px;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5NS41MSAxNjkuNTMiPjxwYXRoIGQ9Ik05NS41MSA4NC43N2MwLTIuNDQtLjk4LTQuNjktMi44My02LjQ1TDE1LjMzIDIuNTRDMTMuNTcuODggMTEuNDIgMCA4Ljg4IDAgMy45MSAwIDAgMy44MSAwIDguODljMCAyLjQ0Ljk4IDQuNjkgMi41NCA2LjM1bDcxLjA5IDY5LjUzTDIuNTQgMTU0LjNDLjk4IDE1NS45NiAwIDE1OC4xMSAwIDE2MC42NWMwIDUuMDggMy45MSA4Ljg5IDguODkgOC44OSAyLjU0IDAgNC42OS0uODggNi40NS0yLjY0bDc3LjM0LTc1LjY4YzEuODUtMS44NiAyLjgzLTQgMi44My02LjQ1WiIgLz48L3N2Zz4=');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.project-preview-title-text {
    display: inline-block;
    font-size: 5vw;
    line-height: 3.9vw;
}
.project-preview-images {
    vertical-align: top;
    display: none;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    height: 3.85vw;
    overflow: hidden;
    transition: all ease 200ms;
    -webkit-transition: all ease 200ms;
}
.project-preview-images div {
    display: block;
    height: 100%;
    width: auto;
}
.project-preview-images img {
    display: block;
    height: 100%;
    width: auto;
}
.project-preview-index {
    display: inline-block;
    font-family: 'Droulers';
    font-weight: 400;
    font-size: var(--fs-secondary);
    line-height: var(--fs-secondary);
    vertical-align: top;
    margin-left: calc(var(--gap) * -1);
}
.project-preview-year {
    font-size: 5vw;
    line-height: 3.9vw;
}
.project-preview-type {
    font-family: 'Droulers';
    font-weight: 400;
}
@media(hover:hover) {
    .project-preview:hover {
        border-top-color: var(--color);
        border-bottom-color: var(--color);
    }
}
@media(max-width: 780px) {
    .projects-ribbon {
        display: none;
    }
    .project-preview {
        display: none;
    }
    .project-preview-mobile {
        display: grid;
        width: 100%;
        position: relative;
        padding: var(--padding);
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gap);
    }
    .project-preview-mobile-images {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        overflow-x: auto;
        border-radius: 12px;
        white-space: nowrap;
        background: #D1D2D4;
    }
    .project-preview-mobile-images img {
        display: inline-block;
        height: 100%;
        width: 50%;
        object-fit: cover;
        object-position: center;
    }
    .project-preview-mobile-title {
        font-size: var(--fs-baseline);
        line-height: var(--fs-baseline-lh);
    }
    .project-preview-mobile-metadata {
        display: block;
        font-size: var(--fs-secondary);
        font-family: 'Droulers';
        font-weight: 400;
    }
}

.project {
    display: grid;
    width: 100%;
    height: var(--app-height);
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--nav-height);
    grid-template-rows: minmax(0, 1fr) 60px;
    position: relative;
    min-height: unset;
}
.project-gallery {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.project-gallery * {
    -webkit-user-select: none;
    user-select: none;
}
.project-gallery-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #D1D2D4;
}
.project-gallery-controller {
    position: absolute;
    z-index: 10;
    width: 50%;
    height: 100%;
    cursor: pointer;
    top: 0;
    display: flex;
    align-items: center;
    align-content: center;
    padding: var(--padding);
    mix-blend-mode: difference;
}
.project-gallery-controller svg {
    width: 30px;
    height: 30px;
    fill: var(--bg);
    pointer-events: none;
}
.project-gallery-prev {
    left: 0;
    justify-content: flex-start;
}
.project-gallery-next {
    right: 0;
    justify-content: flex-end;
}
.project-gallery-prev[aria-disabled=true] {
    display: none !important;
}
.project-gallery-next[aria-disabled=true] {
    display: none !important;
}
.project-gallery-container {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}
.project-gallery-image {
    display: block;
    height: 100%;
    width: 100%;
    cursor: pointer;
}
.tns-slide-active:has(~ .tns-slide-active) {
    padding-right: 5px !important;
}
.tns-slide-active:not(:has(~ .tns-slide-active)) {
    padding-left: 5px !important;
}
.project-gallery-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}
.project-gallery-image.next-project {
    display: inline-flex !important;
    width: 100%;
    height: 100%;
    justify-content: center !important;
    justify-items: center !important;
    align-content: center !important;
    align-items: center !important;
    text-align: center !important;
    font-size: 50px !important;
    line-height: 50px !important;
    text-transform: uppercase !important;
}
.project-footer {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
    padding: var(--padding) 0;
    align-items: flex-start;
    align-content: flex-start;
    gap: var(--padding);
}
.project-footer-title {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    align-content: center;
    font-size: 3vw;
    line-height: 2.5vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-footer-metadata {
    display: block;
    width: 100%;
    height: 100%;
    font-size: var(--fs-secondary);
    font-family: 'Droulers';
    font-weight: 400;
}
.project-footer-description {
    display: flex;
    font-size: var(--fs-secondary);
    font-family: 'Droulers';
    font-weight: 400;
    gap: var(--gap);
}
.project-footer-global {
    display: none;
}
.tns-outer {
    display: flex;
    height: 100%;
    width: 100%
}
.tns-inner {
    width: 100%;
}
.tns-ovh {
    display: flex;
    width: 100%;
    height: 100%;
}
@media(hover:hover) {
    .project-gallery-image.next-project:hover {
        background: #D1D2D4;
    }
}
@media(max-width: 780px) {
    .project {
        padding: 0;
        grid-template-rows: unset;
    }
    .project-gallery {
        height: calc(var(--app-height) - var(--fs-baseline-lh) - (var(--padding) * 2));
        min-height: 500px;
    }
    .project-gallery-controller {
        bottom: 0;
        width: 30px;
        height: 30px;
        margin: auto;
    }
    .tns-slide-active {
        padding: 0 !important;
    }
    .tns-slide-active:has(~ .tns-slide-active) {
        padding-right: 0 !important;
    }
    .tns-slide-active:not(:has(~ .tns-slide-active)) {
        padding-left: 0 !important;
    }
    .project-footer {
        padding: var(--padding);
        grid-template-columns: minmax(0, 1fr);
    }
    .project-footer-title {
        display: block;
        width: 100%;
        font-size: var(--fs-baseline);
        line-height: var(--fs-baseline-lh);
        text-overflow: unset;
        overflow: unset;
        white-space: unset;
    }
    .project-footer-description {
        flex-wrap: wrap;
    }
    .project-footer-global {
        display: block;
        width: 100%;
        padding-top: 50px;
    }
}

/* Nav */
.nav {
    display: flex;
    width: 100%;
    height: var(--nav-height);
    padding: var(--padding);
    background: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    color: var(--color);
    z-index: 100;
}
body.red .nav {
    background: var(--bgRed);
}
body.magenta .nav {
    background: var(--bgMagenta);
}
.nav-logo {
    display: flex;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    height: 100%;
    font-size: var(--fs-main);
    align-items: center;
    align-content: center;
}
.nav-logo img {
    width: auto;
    height: 100%;
    object-fit: contain;
}
.nav-link {
    display: inline-block;
    font-size: 50px;
    line-height: 50px;
    text-transform: uppercase;
}
.nav-expand-toggle {
    display: none;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 10;
    font-size: var(--fs-baseline);
    line-height: var(--fs-baseline-lh);
}
.nav-expand-toggle #expand {
    display: block;
}
.nav-expand-toggle #close {
    display: none;
}
.nav-expanded #expand {
    display: none;
}
.nav-expanded #close {
    display: block;
}
.nav-expand {
    display: none;
}
@media(max-width: 1024px) {
    .nav-link {
        font-size: 45px;
        line-height: 35px;
    }
}
@media(max-width: 780px) {
    .nav {
        align-items: center;
        align-content: center;
        padding: var(--padding);
        background: var(--bg);
        gap: 0;
    }
    .nav.project-page {
        background: transparent;
    }
    .nav-expanded .nav-expand {
        position: fixed;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: var(--app-height);
        background-color: var(--bg);
        padding: var(--padding);
        padding-top: var(--nav-height);
    }
    .nav-expand-toggle {
        display: flex;
    }
    .nav-link {
        display: none;
    }
    .nav-expand-stripe {
        display: flex;
        width: 100%;
        align-items: center;
        align-content: center;
        justify-content: space-between;
        margin: 30px auto;
    }
    .nav-expand-stripe-item {
        display: inline-block;
        width: 14%;
        height: 6px;
        background: var(--color);
    }
    .nav-expand-links {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--padding);
    }
    .nav-expand-link {
        font-size: var(--fs-baseline);
        line-height: var(--fs-baseline-lh);
        text-transform: uppercase;
    }
}

/* Elle component */
.elle {
    display: flex;
    width: 100%;
    height: 30vh;
    max-height: 300px;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    gap: var(--gap);
    position: relative;
    margin: 100px auto;
}
.elle-element {
    display: inline-block;
    cursor: pointer;
    height: 100%;
    position: relative;
}
.elle-element svg {
    display: block;
    height: 100%;
    width: auto;
    fill: var(--color);
}
.elle-element-animation-reverse {
    opacity: 0;
}
.elle-element-animation {
    display: block;
    height: 100%;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.elle-element-animation > g {
    display: none;
}
.elle-element-main {
    display: block;
    height: 100%;
    position: relative;
}
.elle-element-secondary {
    display: none;
    height: 100%;
    position: relative;
}
.elle-element-float {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    font-size: 3vh;
    line-height: 3vh;
}
.elle-mobile {
    display: none;
}
@media(hover:hover) {
    .elle-element:hover .elle-element-main {
        display: none;
    }
    .elle-element:hover .elle-element-secondary {
        display: block;
    }
    .elle-element:hover .elle-element-animation-reverse {
        opacity: 1;
    }
    .elle-element:hover .elle-element-animation {
        opacity: 0;
    }
}
@media(max-width: 1024px) {
    .elle {
        max-height: 200px;
    }
}
@media(max-width: 780px) {
    .elle {
        display: none;
    }
    .elle-mobile {
        display: flex;
        width: 100%;
        align-items: center;
        align-content: center;
        justify-content: center;
        gap: var(--gap);
        position: relative;
        margin: 100px auto;
    }
    .elle-element-animation-mobile {
        display: block;
        width: 100%;
        height: auto;
    }

    .elle-element-animation-mobile > g {
        display: none;
    }
}

/* Not Found */
.not-found {
    display: grid;
    width: 100%;
    height: var(--app-height);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    padding: var(--padding);
    gap: var(--padding);
}
.not-found-element {
    display: flex;
    width: 100%;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-size: 4vw;
    line-height: 3vw;
    height: 3vw;
}
.not-found-element:first-child {
    justify-content: flex-start;
}
.not-found-element:last-child {
    justify-content: flex-end;
}
.not-found-element svg {
    width: auto;
    margin: auto;
    height: 100%;
}
@media(max-width: 780px) {
    .not-found {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: calc(var(--padding) * 2);
    }
    .not-found-element {
        justify-content: center !important;
        font-size: var(--fs-baseline);
        line-height: var(--fs-baseline-lh);
        height: var(--fs-baseline-lh);
    }
}

/* Mobile Stripe */
.mobile-stripe {
    display: none;
    width: 100%;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    margin: 30px auto;
}
.mobile-stripe.padded {
    padding: 0 var(--padding);
}
.mobile-stripe-item {
    display: inline-block;
    width: 14%;
    height: 6px;
    background: var(--color);
}
@media(max-width: 780px) {
    .mobile-stripe {
        display: flex;
    }
}

/* Footer */
.footer {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: flex-start;
    align-content: flex-start;
    gap: var(--padding);
    padding: var(--padding);
    position: relative;
    z-index: 10;
    font-size: var(--fs-secondary);
    font-family: 'Droulers';
    font-weight: 400;
}
.footer.mobile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.footer-element:last-child {
    display: flex;
    justify-content: flex-end;
    justify-items: flex-end;
    width: 100%;
    height: 100%;
    gap: var(--gap);
}
.footer-color {
    display: inline-flex;
    width: 40px;
    aspect-ratio: 1;
    text-align: center;
    border-radius: 100%;
    border: 1px solid var(--color);
    justify-items: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    cursor: pointer;
}
body.red .footer-color.active {
    background-color: var(--color);
    color: #ec5729;
}
body.magenta .footer-color.active {
    background-color: var(--color);
    color: #eb4ec7;
}
.footer-social {
    display: inline-flex;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 100%;
    border: 1px solid var(--color);
    justify-items: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    cursor: pointer;
    padding: 10px;
}
.footer-social svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #000;
}
@media(hover:hover) {
    .footer-color:hover {
        background: var(--color);
        color: var(--bg);
    }
    body.red .footer-color:hover {
        background-color: var(--color);
        color: #ec5729;
    }

    body.magenta .footer-color:hover {
        background-color: var(--color);
        color: #eb4ec7;
    }
    
    .footer-social:hover {
        background-color: var(--color);
    }

    body.red .footer-social:hover svg {
        fill: #ec5729;
    }

    body.magenta .footer-social:hover svg {
        fill: #eb4ec7;
    }

    /* Optional: fallback default color if theme isn't defined */
    body:not(.red):not(.magenta) .footer-social:hover svg {
        fill: var(--bg); /* or some neutral color */
    }
}
@media(max-width: 780px) {
    .footer {
        display: flex;
        align-items: end;
        align-content: end;
        justify-content: space-between;
    }
    .footer .web-only {
        display: none !important;
    }
    .footer-element {
        display: inline-flex !important;
        width: auto !important;
    }
    .footer.mobile-grid {
        display: grid;
        justify-content: flex-start;
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }
    .footer.mobile-grid .footer-element:last-child {
        justify-content: start;
    }
}

/* Fonts */
@font-face {
    font-family: 'Droulers';
    font-style: normal;
    font-weight: 400;
    src: url("assets/Droulers_WEBL-Regular.woff2") format("woff2"),
        url("assets/Droulers_WEBL-Regular.woff") format("woff"),
        url("assets/Droulers_WEBL-Regular.eot") format("eot");
}
@font-face {
    font-family: 'Helvetica Now Display';
    src: local('Helvetica Now Display Medium'), local('Helvetica-Now-Display-Medium'),
        url('assets/HelveticaNowDisplay-Medium.woff2') format('woff2'),
        url('assets/HelveticaNowDisplay-Medium.woff') format('woff'),
        url('assets/HelveticaNowDisplay-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Helvetica Now Display';
    src: local('Helvetica Now Display Regular'), local('Helvetica-Now-Display-Regular'),
        url('assets/HelveticaNowDisplay-Regular.woff2') format('woff2'),
        url('assets/HelveticaNowDisplay-Regular.woff') format('woff'),
        url('assets/HelveticaNowDisplay-Regular.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}