/* VARIABLES */
:root {

    /* COLORS */
    --red: rgb(210, 45, 49);
    --offred: rgb(235, 105, 107);
    --offwhite: rgb(253, 250, 245);
	--white: rgb(255, 255, 255);
    --black: rgb(0, 0, 0);
    --darkred: rgb(156, 51, 41);
    

    --softsand: #D7C3AC;
    --darkgreen: #748C87;
    --bronze: #C0A37B;
    --green: #95A595;

    --bgcolorsingle: var(--offwhite);


    /* STYLES */
    --opacityfade: .35;


    /* UNIDADES */
    --0un: 15px;
    --1un: 30px;
    --2un: 60px;
    --3un: 120px;
    --gutter: var(--1un);

    --maxwidthuniversal: 1600px;


    /* INTERACTION VARIABLES */
    --mousex: 0px;
    --mousey: 0px;


    /* GRID */
    --columntotal: 12;
    --templatecolumns: repeat(var(--columntotal), 1fr);
    --singlecolumn: calc(((100vw - var(--1un) * 2) - (var(--gutter) * (var(--columntotal) - 1))) / var(--columntotal));


    /* TYPOGRAPHY */
    --serif: "Crimson Pro", serif;
    --sansserif: 'Inter', sans-serif;

    --fontsizeuniversal: 15px;
    --fontsizexs: .8rem;
    --fontsizem: 1.5rem;
    --fontsizexm: 1.9rem;
    --fontsizel: 2.5rem;
    --fontsizexl: 3.5rem;

    /* MENU */
    --maxheightmenu: 150px;
    --minheightmenu: 50px;

}


/* UNIVERSAL STYLES */
html {
    font-family: 'Inter', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 550;
    font-size: var(--fontsizeuniversal);
    scroll-behavior: smooth;
}

html * {
        line-height: 130%;
        color: var(--red);
}

body {
    background-color: var(--offwhite);
    width: 100vw;
    overflow-x: hidden;
}

body.no-transition *,
body.no-transition *::before,
body.no-transition *::after {
    transition: none !important;
    animation: none !important;
}

a, a:link {
    color: var(--red);
    text-decoration: none;
    transition: opacity .5s ease;
    cursor: pointer;
    outline : none;
}

a:focus:not(:focus-visible) {
    outline: none;
}

a:link:hover {
    opacity: var(--opacityfade);
}

*::selection {
    background-color: transparent;
    color: var(--black);
}

.mobile {
    display: none;
}

.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}





/* TYPESETTING */
.serif {
    font-family: 'Crimson Pro', serif;
    letter-spacing: -.05rem;
}

.large {
    font-size: var(--fontsizel);
    line-height: 95%;
}

p {
    max-width: 60ch;
}

strong, .strong {
    font-weight: 700;
}

figcaption {
    font-size: var(--fontsizexs);
    margin-top: calc(var(--0un) / 2);
	/*
    color: var(--black);*/
}

h1 {
    font-style: italic;
    font-size: var(--fontsizexl);
    letter-spacing: -.1rem!important;
    line-height: 90%;
}

h2 {
    font-size: var(--fontsizem);
    font-style: italic;
}

.button {
    --buttoncolor: var(--red);
    color: var(--buttoncolor);
    padding: var(--0un);
    border: 1px solid var(--offred);
    display: inline-block;
    width: max-content;
    border-radius: 100px;
    transition: all .5s ease!important;
}

.button:hover {
    --buttoncolor: var(--black);
    background-color: var(--red);
    border: 1px solid var(--offred);
}

a:link.button:hover {
	color: var(--black);
	opacity: 1;
}



/* HEADER */
body > header {
    position: fixed;
    width: 100vw;
    padding: var(--1un);
    box-sizing: border-box;
    --menuheight: var(--maxheightmenu);
    z-index: 10;
    transition: top .35s ease, max-height .5s ease, transform .75s ease, height .75s ease;
    top: 0;
    overflow: hidden;
    pointer-events: none;
}


body.page-template > header, body.single-post > header, body.single-post > header, body.page-template-page-projects > header {
    --menuheight: var(--minheightmenu);
}


header.shrink {
    --menuheight: var(--minheightmenu);
top: calc(var(--menuheight) * -1 - var(--1un) * 2);
    transition: top .5s ease, max-height .5s ease;
	background: var(--offwhite);
}

header.shrink.scrollback {
    top: 0;
background: var(--offwhite);
background-color: var(--offwhite);
}

header.shrink.scrollback * {
    color: var(--red);
}

header.shrink.scrollback nav {
    align-items: center;
}

/*
header.shrink.scrollback nav ul a {
    color: var(--offwhite)!important;
}

header.shrink.scrollback #logomenu a#logo {
background-image: url(/assets/logos/Logo_Emma_white.svg);
}
*/

/*
header.shrink.scrollback nav {
     align-items: center;
}
     */

header #logomenu a#logo {
 	position: fixed;
	top: var(--1un);
}


body.home header:not(.logoshrink) #logomenu a#logo {
	position: fixed;
	left: var(--1un);
    top: calc(100vh - (100vw - var(--1un) * 2) * 0.21 - var(--1un));
	width: calc(100vw - var(--1un) * 2);
	height: 100%;
	pointer-events: none;
	background-image: url(/assets/logos/Logo_Emma_completa.svg);
}

header.logoshrink #logomenu a#logo {
	height: var(--minheightmenu);
}

header.logoshrink.shrink:not(.scrollback) #logomenu a#logo, body:not(.home) header.shrink:not(.scrollback) #logomenu a#logo {
	top: calc(var(--minheightmenu) * -1 - var(--1un));
}

header.logoshrink.scrollback #logomenu a#logo, body:not(.home) header.scrollback #logomenu a#logo {
    transition: height .75s ease, width .75s ease, transform .75s ease, top .5s ease;
}


body > header nav {
    max-width: var(--maxwidthuniversal);
    margin: auto;
}


body > header *:not(a) {
    pointer-events: none;
}

body > header a {
    pointer-events: all;
}


nav, nav ul {
    display: flex;
    flex-direction: row;
    gap: var(--gutter);
}

nav {
    justify-content: flex-end;
}


nav ul {
    flex: 1;
     justify-content: flex-end;
}

nav ul:not(.lang_switch) {
    justify-content: flex-start;
}

nav ul a {
    text-transform: uppercase;
    color: var(--red) !important;
}


#logomenu {
    flex: 2;
    width: 100%;
    height: var(--menuheight);
    pointer-events: none;
    transition: height .75s ease;
    display: flex;
    justify-content: space-between;
}

#logomenu a#logo {
    display: block;
    height: var(--minheightmenu);
    width: calc(var(--minheightmenu) * 1.57);
    background-image: url(/assets/logos/Logo_Emma_red.svg);
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: all;
    transition: height .75s ease, width .75s ease, transform .75s ease, top .75s ease;
}

#logomenu a#logo:hover {
/*
	transform: scale(.95);
*/
	opacity: 1;
}


#logomenu a#menu_toggle, a#search_close { 
    display: none;
    width: var(--minheightmenu);
    height: var(--minheightmenu);
    pointer-events: all;
    position: relative;
}

#logomenu a#menu_toggle::before, #logomenu a#menu_toggle::after, a#search_close::before, a#search_close::after {
    content: '';
    width: 80%;
    height: 3px;
    background-color: var(--red);
    position: absolute;
    top: 13px;
    transition: all .35s ease;
    left: 10%;
    border-radius: 15px;
}

#logomenu a#menu_toggle::after, a#search_close::after {
    top: unset;
    bottom: 13px;
    left: unset;
    right: 10%;
}

header.active #logomenu a#menu_toggle::before, a#search_close::before {
    transform-origin: 50% 50%;
    transform: rotate(45deg);
        background-color: var(--offwhite);
                top: calc(50% - 2px);
    width: 100%;
    left: 0;

}

header.active #logomenu a#menu_toggle::after, a#search_close::after {
transform-origin: 50% 50%;
    transform: rotate(-45deg);
        background-color: var(--offwhite);
        bottom: calc(50% - 2px);
    width: 100%;
right: 0;
}


nav#menu_mobile {
    display: none;
    flex-direction: column;
height: calc(100vh - var(--maxheightmenu) - var(--1un) * 2);
height: calc(100dvh - var(--maxheightmenu) - var(--1un) * 2);
    gap: 0;
}

nav#menu_mobile ul {
    flex-direction: column;
    gap: 0;
    flex: auto;
        text-align: center;
justify-content: flex-end;
}

nav#menu_mobile ul.lang_switch {
    gap: 5px;
}

nav#menu_mobile ul li * {
    color: var(--offwhite)!important;
}

nav#menu_mobile ul:not(.lang_switch) li * {
    font-size: var(--fontsizel);
    text-transform: none;
    font-weight: 400;
    line-height: 120%;
}



/*
header.shrink #logomenu a {
    background-image: url(/assets/logos/Logo_Emma_white.svg);
}
    */

.lang_switch li:not(.active) a {
    opacity: var(--opacityfade);
}

.lang_switch li:not(.active):hover a {
    opacity: 1;
}

.lang_switch li.active {
    pointer-events: none;
}

/*
body.home header:not(.shrink) #logomenu a#logo {
	display: none;
}

body.home header:not(.shrink) #logomenu a#logo {
opacity: 0;
}
*/

/* Initial hidden states */
.home_gallery .nav_menu_gallery,
.home_gallery .lang_switch {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    padding: var(--1un);
    box-sizing: border-box;
    text-transform: uppercase;
    transition: opacity .5s ease;
    
    /* Animation */
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: .5s; /* Starts after logo animation */
	display: none;
}

.home_gallery .lang_switch {
    top: calc(49vh - ((100vw - var(--1un) * 2) * 0.193) / 2);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
	display: none;
}

.home_gallery .lang_switch a {
    pointer-events: all;
}

.home_gallery .logo_gallery {
    position: absolute;
    left: var(--1un);
    width: calc(100vw - var(--1un) * 2);
    height: calc((100vw - var(--1un) * 2) * 0.193);
	pointer-events: none;
	user-select: none;
	z-index: 8;
    box-sizing: border-box;
    
    /* Animation - starts off-screen */
    bottom: calc(-1 * (100vw - var(--1un) * 2) * 0.193);
    animation: slideUp 1s ease forwards .5s;
	display: none;
}

.home_gallery .logo_gallery img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 1;
	pointer-events: none;
	user-select: none;
}

/* Keyframes */
@keyframes slideUp {
    from {
        bottom: calc(-1 * (100vw - var(--1un) * 2) * 0.193);
    }
    to {
        bottom: var(--1un);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* GRIDS */

.grid {
    display: grid;
    grid-template-columns: var(--templatecolumns);
    column-gap: var(--gutter);
    row-gap: var(--2un);
}


/* HOME MAIN */
main {
    display: flex;
    flex-direction: column;
    gap: var(--3un);
    /* max-width: var(--maxwidthuniversal); */
    margin: auto;
    transition: transform .75s ease;
}




/* GALLERY HOME */
.home_gallery {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background-color: var(--black);
}

.home_gallery, .home_gallery * {
    user-select: none;
}

.image_about_intro img {
	width: 100%;
}


.home_gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    /*transition: opacity 1s ease-in-out;*/
}

.home_gallery img.active {
    opacity: .8;
    z-index: 1;
}

/* Áreas de navegação */
.home_gallery::before,
.home_gallery::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/*
.home_gallery:before, .home_gallery:after {
        background: #00000000;
   background: linear-gradient(180deg, rgba(0, 0, 0, .3) 5%, rgba(0, 0, 0, 0) 20%)
}
*/

.home_gallery::before {
    left: 0;
    cursor: w-resize;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="rgb(253, 250, 245)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>') 15 15, auto;
}

.home_gallery::after {
    right: 0;
    cursor: e-resize;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="rgb(253, 250, 245)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>') 15 15, auto;
}



    


/* HOME DIVS */
#home_text_intro {
        padding: 0 var(--1un);
        box-sizing: border-box;
        row-gap: var(--0un);
}

#home_text_intro p {
	grid-column: 7 / -1;
}

#home_text_intro .p_wrapper {
    grid-column: 1 / 6;
}

#home_text_intro .p_wrapper p {
	    color: var(--red);

}




/* HOME - PROJECT HIGHLIGHTS */
#projects_highlight_intro {
        padding: 0 var(--1un);
        box-sizing: border-box;
        grid-template-rows: min-content;

}

#projects_highlight_intro .project_thumbnail {
    grid-column: span 5;
    height: max-content;
}

.project_thumbnail {
    position: relative;
    transition: transform .75s ease;
}

.project_thumbnail:hover {
    transform: scale(.98);
}

.project_thumbnail a {
    display: contents;
}

.project_thumbnail .info_area {
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: var(--0un);
    box-sizing: border-box;
    background: #00000000;
background: linear-gradient(0deg, rgba(0, 0, 0, .6) 20%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: opacity .75s ease;
}

.project_thumbnail .info_area * {
    color: var(--offwhite);
}

.project_thumbnail .info_area .area > a {
    display: contents;
}

.project_thumbnail .info_area .area {
    display: flex;
    flex-direction: column;
}

.project_thumbnail:not(:hover) .info_area {
    opacity: 0;
}

.project_thumbnail .info_area .area:not(:first-child) {
    text-align: right;
}

.project_thumbnail figure {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    overflow: hidden;
}



.project_thumbnail figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#projects_highlight_intro .project_thumbnail:nth-child(2) {
    grid-column: 10 / -1;
}

#projects_highlight_intro .project_thumbnail:nth-child(3) {
    grid-column: 1 / -1;
    
}

.project_thumbnail .info_area * {
    font-size: var(--fontsizexs);
}

#projects_highlight_intro .project_thumbnail:nth-child(2), #projects_highlight_intro .project_thumbnail:nth-child(6) {
    align-self: end;
}

#projects_highlight_intro .project_thumbnail:nth-child(5) {
    align-self: center;
}

#projects_highlight_intro .project_thumbnail:not(:nth-child(3)) figure {
    aspect-ratio: 4 / 5;
}

#projects_highlight_intro .project_thumbnail:nth-child(3) figure {
    aspect-ratio: 16 / 9;
}

#projects_highlight_intro .project_thumbnail:nth-child(2) figure, #projects_highlight_intro .project_thumbnail:nth-child(4) figure, #projects_highlight_intro .project_thumbnail:nth-child(6) figure {
    aspect-ratio: 1 / 1;
}

#projects_highlight_intro .project_thumbnail:nth-child(5) {
    grid-column: 5 / 9;
}

#projects_highlight_intro .project_thumbnail:nth-child(4) {
    grid-column: span 3;
}

#projects_highlight_intro .project_thumbnail:nth-child(6) {
    grid-column: 10 / -1;
}

#projects_highlight_intro .button {
    grid-column: 1 / -1;
    margin: auto;
}


/* HOME - VIDEO INTRO */
#video_intro .module_video_iframe {
    aspect-ratio: 16 / 9;
}

#video_intro .module_video_iframe iframe {
    width: 100%;
    height: 100%;
    display: block;
}


/* HOME - NEWS INTRO */
#news_intro {
    padding: 0 var(--1un);
}

#news_intro figure {
    grid-column: span 5;
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
}

#news_intro figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#news_intro .news_wrapper, .news_wrapper_scroll {
    grid-column: 7 / 12;
    display: flex;
    flex-direction: column;
    gap: var(--1un);
    scroll-behavior: smooth;
}

.news_wrapper_scroll::-webkit-scrollbar {
    display: none;
}

.news_wrapper_scroll {
    max-height: 350px;
    overflow: scroll;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .8), rgba(0, 0, 0, .9), rgba(0, 0, 0, 1));
    /*padding-bottom: 50%;*/
    box-sizing: border-box;
    transition: all .5s ease;
}

.news_wrapper_scroll:hover {
mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1));
}

#news_intro h3 {
    font-size: var(--fontsizexm);
}

#news_intro h3, #news_intro h3 a {
		line-height: 100%!important;

}

/*
.news_wrapper_scroll a {
	display: none;
}
*/

#news_intro p {
    margin-top: 1rem;
    font-size: var(--fontsizexs);
    max-width: 50ch;
}

#news_intro li {
    position: relative;
        --textcolor: var(--red);
        transition: opacity .5s ease;
        cursor: pointer;
}


#news_intro li * {
    color: var(--textcolor)!important;
}

#news_intro li:not(:hover) {
    opacity: .35;
    --textcolor: var(--black);
}

#news_intro li:not(:last-child) {
    margin-bottom: var(--1un);
}

#news_intro li:not(:last-of-type):after {
    content: '';
    display: block;
    position: absolute;
    bottom: calc(var(--1un) * -1 - 1px);
    width: 30px;
    height: 1px;
    background-color: var(--textcolor);
}

#news_intro .news_wrapper_scroll:not(:hover) li:first-child {
        opacity: 1;
    --textcolor: var(--red);
}

#news_intro .news_wrapper_scroll:not(:hover) .button {
    --buttoncolor: var(--black);
    opacity: var(--opacityfade);
}



/** FOOTER **/
footer {
    margin-top: var(--3un);
    padding: var(--1un);
    display: flex;
    flex-direction: column;
        gap: var(--1un);
}

.site_title_footer {
    width: 100%;
    text-align: center;
    text-transform: none;
    font-style: normal;
    color: var(--red)!important;
    font-weight: 550;
}

ul.footer_comp {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--0un);
}

ul.footer_comp li {
    flex: 1;
}

ul.footer_comp li * {
    text-transform: uppercase;
}

ul.footer_comp li:nth-child(2) {
    text-align: center;
}

ul.footer_comp li:nth-child(3) {
    text-align: right;
}





/** PROJECTS ARCHIVE **/
main header {
        padding: 0 var(--1un);
        box-sizing: border-box;
        width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--1un);
    flex-wrap: wrap;
    align-items: flex-start;
}

main header > * {
    flex: 1;
        justify-content: flex-end;
}

main header h1 {
    flex: 2;
}

main header #filter {
    text-align: right;
}

body:not(.home) main {
    margin-top: calc(var(--minheightmenu) + var(--1un) * 3);
}

#projects_front {
        padding: 0 var(--1un);
        box-sizing: border-box;
        grid-template-rows: min-content;
            align-items: center;
}

body.page-template-page-projects main {
    gap: var(--2un);
}

body.page-template-page-projects .page_title {
    visibility: hidden;
}

#projects_front .project_thumbnail {
    grid-column: span 6;
    height: max-content;
}

#projects_front .project_thumbnail:nth-child(2), 
#projects_front .project_thumbnail:nth-child(12n + 2),
#projects_front .project_thumbnail:nth-child(11),
#projects_front .project_thumbnail:nth-child(12n + 11) {
    grid-column: 10 / -1;
}

#projects_front .project_thumbnail:nth-child(3), 
#projects_front .project_thumbnail:nth-child(12n + 3) {
    grid-column: 8 / -1;
}

#projects_front .project_thumbnail:nth-child(4), 
#projects_front .project_thumbnail:nth-child(12n + 4) {
    grid-column: span 5;
}

#projects_front .project_thumbnail:nth-child(5), 
#projects_front .project_thumbnail:nth-child(12n + 5) {
    grid-column: 9 / -1;
}

#projects_front .project_thumbnail:nth-child(6), 
#projects_front .project_thumbnail:nth-child(12n + 6) {
    grid-column: 2 / -1;
}

#projects_front .project_thumbnail:nth-child(7), 
#projects_front .project_thumbnail:nth-child(12n + 7) {
    grid-column: 1 / 5;
}

#projects_front .project_thumbnail:nth-child(8), 
#projects_front .project_thumbnail:nth-child(12n + 8) {
    grid-column: 7 / -1;
}

#projects_front .project_thumbnail:nth-child(9), 
#projects_front .project_thumbnail:nth-child(12n + 9) {
    grid-column: 5 / 9;
}

#projects_front .project_thumbnail:nth-child(12), 
#projects_front .project_thumbnail:nth-child(12n + 12) {
    grid-column: 8 / -1;
}

body.page-template-page-projects #load_more {
    grid-column: 1 / -1;
        justify-self: center;
}





/** PROJECTS ARCHIVE - VIEW **/
#view_modes li:not(.active) a {
    opacity: var(--opacityfade);
}

#view_modes li a:hover {
    opacity: 1;
}

#view_modes li a:before {
    content: '';
    display: inline-block;
    width: .8rem;
    height: .8rem;
    margin-right: .5rem;
background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='16' height='16' fill='%23D22D31'/%3E%3Crect x='20' width='16' height='16' fill='%23D22D31'/%3E%3Crect y='20' width='16' height='16' fill='%23D22D31'/%3E%3Crect x='20' y='20' width='16' height='16' fill='%23D22D31'/%3E%3C/svg%3E%0A");
    background-size: contain;
    background-repeat: no-repeat;
    content: '';
}

#view_modes li a#list-view:before {
background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 36 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 1V7H0V1H36Z' fill='%23D22D31'/%3E%3Cpath d='M36 15V21H0V15H36Z' fill='%23D22D31'/%3E%3Cpath d='M36 29V35H0V29H36Z' fill='%23D22D31'/%3E%3C/svg%3E%0A");
}



/** PROJECTS ARCHIVE - FILTER **/
main header ul a {
    text-transform: uppercase;
}

main header ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter_active #filter li:not(.active) a {
    opacity: var(--opacityfade);
}

.filter_active .project_thumbnail:not(.active) {
    display: none;
}

#filter li a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}

#filter li a::after {
    content: '';
    display: inline-block;
    width: .88rem;
    height: .88rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cline x1='.7' y1='8.3' x2='8.3' y2='.7' stroke='%23d22d31' stroke-width='1'/%3E%3Cline x1='8.3' y1='8.3' x2='.7' y2='.7' stroke='%23d22d31' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: .5rem;
    overflow: hidden;
    transform-origin: 50% 50%;
    transition: all .5s ease;
}

#filter li:not(.active) a::after {
    width: 0;
    height: 0;
    margin-left: 0;
}

main:not(.filter_active) #filter #filter_remove a {
    opacity: 0;
    pointer-events: none;
}


/** PROJECTS ARCHIVE - VIEWS **/

/* THUMB VIEW */
.thumb-view#projects_front .project_thumbnail {
    grid-column: span 4!important;
}

.thumb-view#projects_front .project_thumbnail figure {
    aspect-ratio: 4 / 3;
    height: auto;
}

.thumb-view#projects_front .project_thumbnail .info_area {
    opacity: 1;
}


/* LIST VIEW */
.list-view#projects_front .project_thumbnail {
    grid-column: 1 / -1!important;
}

.list-view#projects_front .project_thumbnail figure {
    position: fixed;
    top: var(--mousey);
    left: var(--mousex);
    width: calc(var(--singlecolumn) * 3 + var(--gutter) * 2);
    aspect-ratio: 4 / 3;
    height: auto;
    pointer-events: none;
    z-index: 100;
    /* border: 1px solid var(--offred); */
}


.list-view#projects_front .project_thumbnail:not(:hover) figure {
    display: none;
}

.list-view#projects_front .project_thumbnail:hover {
    transform: none;
}

.list-view#projects_front:hover .project_thumbnail:not(:hover) .info_area {
    opacity: var(--opacityfade);
}

.list-view#projects_front {
    gap: 0;
}

.list-view#projects_front #load_more {
    margin-top: var(--2un);
}

.list-view#projects_front .project_thumbnail .info_area {
    position: static;
    opacity: 1;
    padding: var(--1un) 0;
    background: none;
    border-bottom: 1px solid var(--offred);
}


.list-view#projects_front .project_thumbnail .info_area * {
    color: var(--red);
}

.list-view#projects_front .project_thumbnail .info_area .area {
    flex: 1;
        flex-direction: row;
}

.list-view#projects_front .project_thumbnail .info_area .area a > * {
    flex: 1;
    font-size: var(--fontsizeuniversal);
}

.list-view#projects_front .project_thumbnail .info_area .area a > h3 {
    flex: 3;
}




/** SINGLE PROJECT **/

/*
.single-post nav ul a {
    color: var(--black) !important;
}
*/

.single-post {
        background-color: var(--bgcolorsingle);
}

.single-post header.shrink.scrollback, .single-post header.shrink {
    background: var(--bgcolorsingle)!important;
}

.single-post main {
    background-color: var(--bgcolorsingle);
    /*padding-top: calc(var(--minheightmenu) + var(--1un) * 2);*/
    gap: 0;
}

.single-post main header {
    position: relative;
    height: 85vh;
    box-sizing: border-box;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--bgcolorsingle);
}

main nav {
    padding: var(--1un);
    align-items: center;
    position: sticky;
    top: 0;
}

main nav * {
    font-style: normal!important;
    color: var(--black)!important;
}


main nav ul {
    flex-direction: row;
    display: flex;
    justify-content: flex-end!important;
    gap: var(--gutter);
}


.single-post main nav h1 {
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.single-post main header:after {
    content: '';
    width: 100%;
    height: 90%;
    position: absolute;
    top: 0;
    left: 0;
        background: #00000000;
   background: linear-gradient(180deg, rgba(0, 0, 0, .3) 5%, rgba(0, 0, 0, 0) 20%);

}

.single-post main header h1 {
    position: absolute;
    top: calc(100% + var(--1un));
    left: var(--1un);
    max-width: 75%;
}

.single-post .page_title {
    font-style: normal;
	/*
    color: var(--black);
	*/
}


#project_presentation .intro_text, #project_presentation .intro_img {
    grid-column: span calc(var(--columntotal) / 2);
}

#project_presentation .intro_img {
    grid-column: 9 / -1;
}


#project_presentation .intro_video {
    pointer-events: none;
	/* background-color: rgba(0, 0, 0, .1); */
}

#project_presentation .intro_text {
    align-self: end;
}

.single-post #project_presentation {
    padding: var(--1un);
    padding-bottom: var(--2un);
    padding-top: 0;
    box-sizing: border-box;
	max-width: 1200px;
    margin: auto;
}

/*
.single-post #project_presentation * {
    color: var(--black);
}
*/



.single-post #project_presentation .intro_text p {
    font-size: var(--fontsizexs);
}

.single-post #project_presentation .intro_text span + p {
margin-top: var(--1un);
}

#project_presentation figure {
    width: 100%;
    height: auto;
}

#project_presentation figure img {
    width: 100%;
    height: auto;
}


/* MODULES SINGLE PROJECT */
.module {
    display: flex;
    gap: var(--gutter);
}

.module figure {
    flex-grow: 0;
    width: 100%;
}

.module figure img {
    width: 100%;
    height: auto;
}

.module.center {
    justify-content: center;
}

.module.right {
    justify-content: flex-end;
}


/* FULL COLUMNS */
.module_full {
    grid-column: 1 / -1;
}

/*
.module_full figure {
    max-height: 100vh;
}

.module_full figure img {
    height: 100%!important;
    object-fit: cover;
    object-position: center;
}
*/


/* ONE COLUMN SMALLER */
.module_onecolumn_shrink {
    grid-column: span calc(var(--columntotal) - 3);
}

.module_onecolumn_shrink {
    grid-column: 1 / -1;
}

.module_onecolumn_shrink figure {
    width: 75%;
}


/* 2 COLUMNS */
.module_two_column {
    grid-column: 1 / -1;
}

.module_two_column figure {
    width: 50%!important;
}


/* 3 COLUMNS */
.module_tree_column {
    grid-column: 1 / -1;
}

.module_tree_column figure {
    width: calc(100% / 3)!important;
}


.module_iframe_content iframe {
	width: 100%;
}

.module_video {
	text-align: center;
}

/* vídeo MP4 */
.module figure video {
    width: 100%;
    height: auto;
    display: block;
}

/* iframe (oEmbed) — precisa de ratio forçado porque iframe não tem proporção intrínseca */
.module_video_iframe {
    aspect-ratio: 16 / 9;
}

.module_video_iframe iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.module_text p {
	font-size: var(--fontsizexs);
}






/* SINGLE PROJECT - RELATED PROJECTS END */
#related_projects {
    row-gap: var(--2un);
    column-gap: var(--2un);
    padding: var(--2un);
    padding-bottom: 0;
    background-color: var(--offwhite);
    box-sizing: border-box;
}

#related_projects h2 {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--red);
}

#related_projects .project_thumbnail {
    grid-column: span 4;
}

#related_projects .project_thumbnail figure {
    aspect-ratio: 4 / 3;
}


/** FOOTER SINGLE PROJECT **/
.single-post footer {
    margin: 0;
padding-top: calc(var(--2un));
/*background-color: var(--offwhite);*/
}

/*
.single-post footer * {
    color: var(--black);
}
*/

.single-post footer h2 {
    display: none;
}


/** SINGLE PROJECT - WRAPPER OVERLAY **/
body:has(.wrapper_overlay.active) {
    overflow: hidden;
}

.wrapper_overlay {
    --widthoverlay: 40vw;
    position: fixed;
    top: 0;
    left: calc(100vw - var(--widthoverlay));
    width: var(--widthoverlay);
    height: 100vh;
    padding: var(--1un) 0;
    z-index: 1000;
    overflow: auto;
    box-sizing: border-box;
    transition: left .75s ease;
}

.wrapper_overlay::after {
    content: '';
    position: fixed;
    width: var(--widthoverlay);
    height: 100vh;
    left: calc(100vw - var(--widthoverlay));
    top: 0;
    background-color: var(--white);
    z-index: -1;
    display: block;
    pointer-events: none;
        transition: left .75s ease, opacity 0s ease;

}

.wrapper_overlay .header_overlay {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: calc(var(--0un)/2) var(--1un);
    border: 1px solid var(--red);
    border-left: none;
    border-right: none;
    /* margin-bottom: var(--1un); */
    position: sticky;
    top: 0;
    background: var(--white);
}

.wrapper_overlay::before {
    content: '';
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: rgba(0,0,0,.4);
    z-index: -2;
    transition: opacity .75s ease;
}

.wrapper_overlay:not(.active) {
    opacity: 0;
            transition: left .75s ease, opacity 0s ease .75s;
}


.wrapper_overlay:not(.active), .wrapper_overlay:not(.active)::after {
    left: 100vw;
}

.wrapper_overlay:not(.active)::before {
    opacity: 0;
        pointer-events: none;

}

.wrapper_overlay .header_overlay * {
	/*
    color: var(--black);*/
    text-transform: uppercase;
    font-family: var(--sansserif);
    letter-spacing: 0;
}


.wrapper_overlay .content_overlay {
    padding: var(--1un);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--3un);
    
}


.wrapper_overlay .content_overlay figure, .wrapper_overlay .content_overlay figure img {
    width: 100%;
    height: auto;
}


.wrapper_overlay .content_overlay .content_overlay_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.wrapper_overlay .content_overlay .content_overlay_header h2 {
    font-style: normal;
	/*
    color: var(--black);*/
}


.wrapper_overlay .content_overlay .content_overlay_header .intro_text {
line-height: 105%;
    text-align: right;
}

.wrapper_overlay .content_overlay .content_overlay_header .intro_text span {
	/*
    color: var(--black);*/
    font-size: var(--fontsizexs);
}

.project_nav {
    transition: all .5s ease;
}

body.single-post header:not(.active) #logomenu a#menu_toggle::before, body.single-post header:not(.active) #logomenu a#menu_toggle::after {
    background-color: var(--red);
}




/** SEARCH TOGGLE **/
body:has(.search_wrapper.active) {
    overflow: hidden;
}

body:has(.search_wrapper.active) > main, body:has(.search_wrapper.active) > footer {
    transform: translateY(100vh);
}

body:has(.search_wrapper.active) > header {
    background: none!important;
    --menuheight: var(--minheightmenu);
}

body:has(.search_wrapper.active) > header a:not(#logo) {
    color: var(--red)!important;
    pointer-events: none;
    opacity: 0;
}

body:has(.search_wrapper.active) > header #logomenu a#logo {
    background-image: url(/assets/logos/Logo_Emma_white.svg);
	pointer-events: none;
}

.search_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--red);
    z-index: 1;
    padding: var(--1un);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: var(--1un);
    transform: translateY(-100vh);
    transition: transform .75s ease;
}

.search_wrapper.active {
    transform: translateY(0);
}

body:has(.search_wrapper.active) > header.shrink {
height: 100vh;
}

.search_wrapper:not(.active) {
    pointer-events: none;
}



body:has(.search_wrapper.active) > header #logomenu a#menu_toggle {
    pointer-events: none;
}

.search_wrapper input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    background: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    position: absolute;
    top: var(--1un);
    width: calc(100% - var(--1un) * 2 - var(--gutter) * 2 - ((var(--minheightmenu) * 1.57)) * 2);
    right: var(--1un);
    height: var(--minheightmenu);
    border-bottom: 1px solid var(--offwhite);
    color: var(--offwhite);
    font-family: var(--sansserif);
    transform: scaleX(0%);
    transition: width 1s ease, top 1s ease, transform 1s ease;
    text-align: center;
}

.search_wrapper.active input {
    transform: scaleX(100%);
top: calc(50% - var(--minheightmenu));
    transition: width 1s ease, top 1s ease, transform 1s ease .5s;

right: calc(var(--minheightmenu) * 1.57 + var(--gutter) + var(--1un));
}

.search_wrapper.search_mode input {

top: calc(var(--1un) - 1px);
    transition: top .5s ease;

}


.search_wrapper input::placeholder {
    color: var(--offred);
    opacity: 0;
}

.search_wrapper.active input::placeholder {
    opacity: 1;
    transition: opacity .35s ease 1.35s;
}

a#search_close {
    display: block;
    left: calc(100% - var(--1un) - var(--1un) / 2);
}

#search_results {
    height: calc(100vh - var(--1un) - var(--minheightmenu));
    position: absolute;
    padding: 0 calc(var(--1un) + var(--minheightmenu) * 1.57 + var(--gutter));
    width: 100vw;
    left: 0;
    top: 100vh;
    overflow: auto;
    box-sizing: border-box;
    transition: top .75s ease, opacity .25s ease;
}

.search_wrapper.search_mode #search_results {
    top: calc(var(--minheightmenu) + var(--1un));
}

#search_results::-webkit-scrollbar {
      display: none;
}

.search_wrapper:not(.search_mode) #search_results {
    opacity: 0;
}


#search_results ul {
      width: 100%;
    display: grid;
    grid-template-columns: var(--templatecolumns);
    grid-auto-rows: min-content;
        gap: var(--gutter);
        padding: var(--1un) 0;
    box-sizing: border-box;

}

#search_results li {
    grid-column: span 4;
}

#search_results li figure {
    aspect-ratio: 4 / 3;
}

#search_results li.search_loading {
	display: none;
}

#search_results li.no_results,#search_results li.search_loading {
    text-align: center;
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#search_results li.no_results span, #search_results li.no_results,#search_results li.search_loading span {
    color: var(--offwhite);
        font-weight: 400;
}



/** ABOUT **/
body.page-template-page-sobre main {
gap: 0;
}


body.page-template-page-sobre .image_about_intro {
background-position: center;
    background-size: cover;
}

.page-template-page-sobre #home_text_intro {
    margin-bottom: var(--2un);
}

.list_about {
    position: relative;
    background-color: var(--darkred);
    padding: var(--3un) var(--1un);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.list_about > h2 {
    color: var(--black);
}


.list_about li a {
    font-size: var(--fontsizexm);
    color: var(--black);
    width: max-content;
}

.list_about:has(a:hover) li a:not(:hover) {
    opacity: var(--opacityfade);
}


.list_about li:not(:has(a:hover)) .details {
    opacity: 0;
}

.list_about .details {
    position: absolute;
    top: 50%;
    right: var(--1un);
    width: 50%;
    display: flex;
    flex-direction: row;
    transform: translateY(-50%);
    gap: var(--1un);
    transition: margin .5s ease;
}

.list_about .details > * {
    flex: 1;
    flex-shrink: 0;
    flex-grow: 1;
    color: var(--black);
}

.list_about .details img {
    width: 50%;
    height: 400px;
    max-height: 400px;
    object-fit: cover;
    transition: max-height .75s ease, opacity .5s ease .25s;
}

.list_about li:not(:has(a:hover)) .details img {
    max-height: 0;
    opacity: 0;
        transition: max-height .25s ease, opacity .25s ease;
}

.list_about li:not(:has(a:hover)) .details {
    margin: 0;
}

.list_about .details p {
    transition: opacity .25s ease .5s;
}


.list_about li:not(:has(a:hover)) .details p {
    opacity: 0;
    font-size: 0;
        transition: opacity .25s ease;
}



/* 404 NOT FOUND */
.error404 main {
	min-height: 100vh;
    display: flex;
    justify-content: center;
    margin-top: 0!important;
    padding-left: var(--1un);
    box-sizing: border-box;
	gap: var(--0un);
}

.error404 main a {
	text-transform: uppercase;
}

.error404 footer {
	margin-top: 0;
}




/* GRID ABOUT */
#contact_about {
    padding: var(--2un) var(--1un);
    padding-bottom: 0;
    row-gap: var(--2un);
}

#contact_about > * {
    grid-column: span 3;
}

#contact_about .getintouch {
    grid-row: span 2;
}

#contact_about .getintouch {
    align-self: center;
    font-size: var(--fontsizel);
}

#contact_about .contact_field a {
    font-weight: 700;
}

#contact_about .contact_field em {
font-family: var(--serif);
font-style: italic;
font-weight: 600;
text-transform: lowercase;
letter-spacing: -.02rem;
}

.page-template-page-sobre .home_gallery {
    background-color: var(--darkred);
}

.page-template-page-sobre .home_gallery.mini_gallery {
	grid-column: 8 / -1;
	width: 100%;
    height: auto;
	aspect-ratio: 4 / 3;
}

.page-template-page-sobre .home_gallery.mini_gallery:after, .page-template-page-sobre .home_gallery.mini_gallery:before {
	display: none;
}

.page-template-page-sobre .home_gallery img {
	/*
    --margingallery: var(--3un);
    width: calc(100% - var(--margingallery) * 2);
    height: calc(100% - var(--margingallery) * 2);
    object-fit: contain;
	top: var(--margingallery);
    left: var(--margingallery);
	*/

	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-template-page-sobre .home_gallery:before, .page-template-page-sobre .home_gallery:after {
    background: none;
}