*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.clearfix:before, .clearfix:after { content: ''; display: table; }
.clearfix:after { clear: both; }

@font-face {font-family: Bitter-Light; src: url("../fonts/Bitter-Light.ttf");}
@font-face {font-family: Bitter-Regular; src: url("../fonts/Bitter-Light.ttf");}
@font-face {font-family: Tenor Sans; src: url("../fonts/TenorSans-Regular.ttf");}
@font-face {font-family: Tinos; src: url("../fonts/Tinos-Regular.ttf");}
@font-face {font-family: Futurist; src: url("../fonts/Futurist-FW.ttf");}
@font-face {font-family: Magnolia-Regular; src: url("../fonts/Magnolia-Regular.ttf");}
@font-face {font-family: Magnolia-Medium; src: url("../fonts/Magnolia-Medium.ttf");}
@font-face {font-family: Magnolia-Bold; src: url("../fonts/Magnolia-Bold.ttf");}

li, ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

a           {text-decoration: none; color: var(--color-gold);}
a:hover     {color:var(--color-black);}
h1          {font-size: 30px; font-family: 'Tinos', serif; margin-bottom: calc(25px + 1vw); line-height: 1.15;}
h1.big      {font-size: 50px; font-family: 'Bitter-Regular', sans-serif;}
h2          {font-size: 25px; font-family: 'Bitter-Regular', sans-serif; margin-bottom: calc(25px + 1vw); line-height: 1.15;}
h2.big      {font-size: 30px; font-family: 'Bitter-Regular', sans-serif; text-transform: uppercase; line-height: 1;}
p.small     {font-size: 14px;}
h3          {line-height: 1; margin:0;}

body {
    font-family: 'Tinos', serif;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
	color: #000;
    -webkit-font-smoothing: antialiased;
	top: 0;  
    left: 0;
}

html, body {
    width: 100%;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background: #fff;
}

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

/* ------------------------- Colors -------------------------------------------------- */

:root {
    --color-black: #000000;
    --color-black-rgb: 0, 0, 0;
    --color-black: rgba(var(--color-black-rgb), 1);
    --color-dark-rgb: 4, 25, 20;
    --color-dark: rgba(var(--color-dark-rgb), 1);

    --color-gold: #6c5b43;
 
    --color-white-rgb: 255, 255, 255;
    --color-white: rgba(var(--color-white-rgb), 1);
    --color-light-rgb: 245, 242, 239;
    --color-light: rgba(var(--color-light-rgb), 1); 
 
    --color-text: rgba(var(--color-dark-rgb), 0.7);
    --color-text-light: rgba(var(--color-light-rgb), 0.7);

    --bg-light: rgba(180, 180, 180, 0.20);

    --animation-primary: all .4s cubic-bezier(.7, 0, .3, 1);
	--animation-fast: all .2s cubic-bezier(.7, 0, .3, 1);
	--animation-smooth: all .6s cubic-bezier(.7, 0, .3, 1);
	--animation-slow: all .8s cubic-bezier(.7, 0, .3, 1);

	--section-padding: clamp(2em, 7vh, 8.5em);
	--container-padding: clamp(2.5em, 9vw, 8em);
	
	--gap-padding: clamp(2em, 4vw, 2.5em);
	--gap-padding-medium: clamp(1em, 6vw, 6em);
	--gap-padding-big: clamp(1em, 8vw, 8em);
	
	--title-size: clamp(2.5em, 3.5vw, 4.5em);

  }
 
/* ------------------------- All -------------------------------------------------- */

main {
    float: left;
    width: 100%;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.section {
    float: left;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.wrap {
    margin: 0 auto;
    max-width: 1220px;
    padding: 0 10vw;
    position: relative;
}

.wrap-wide {
    margin: 0 auto;
    padding: 0 5vw;
    position: relative;
}

.wrap-text {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    position: relative;
}

.wrap-block {
    width: 1420px;
    padding-left: 30px;
    padding-right: 30px;
    left: 50%;
    top: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.container {
    margin: 0 auto;
    padding-left: 2em;
    padding-right: 2em;
    max-width: 72em;
}

.row {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.flex-col {
    display: block;
    width: 100%;
    order: 2;
    position: relative;
}

.default-header {
    text-align: center;
}

@media screen and (max-width: 1740px) {
.wrap-wide {
    max-width: 100%;
}
}

/* ------------------------- Home -------------------------------------------------- */

/* --- Filter 

.filter {
    padding-top: calc(40px + 4em);
    padding-bottom: 60px;
}

.filter .tags {
    float: left;
    width: 100%;
    text-align: center;
    position: absolute;
    height: 50px;
    left: 0;
    z-index: 12;
}

.filter .tags li {
    display: inline-block;
    padding: 0 10px;
}

.filter .tags li a {
    float: left;
    height: 50px;
    font-size: 1em;
    text-transform: capitalize;
    line-height: 30px;
    padding: 10px;
}

.filter .tags li a:hover, .filter .tags li.active a {
    opacity: .5;
}

--- */

/* --- Grid --- */

.section.project-grid {
    padding-top: calc(var(--section-padding)*2);
}

.section.projects-grid {
    padding-top: calc(var(--section-padding)*2);
}

.section.projects-grid.related {
    padding-top: 0;
}

.projects-grid .wrap-wide {
    padding: 0 10px;
}

.projects-grid ul {
    float: left;
    width: 100%;
}

.projects-grid .projects-projects-grid {
    width: 100%;
    float: left;
}

.projects-grid li {
    float: left;
    width: 33.33%;
    position: relative;
    padding: 10px;
}

.projects-grid ul li {
    float: left;
    width: 33.33%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.projects-grid ul li a {
    float: left;
    width: 100%;
    position: relative;
    background: #fff;
    overflow: hidden;
    display: flex;
}

.projects-grid li img {
    position: relative;
    float: left;
    width: 100% !important;
    border: 0;
    stroke: 0;
    outline: 0;
    height: auto !important;
    margin-bottom: 5px;
}

.projects-grid .project-thumb-content {
    position: absolute;
    bottom: 1%;
    width: 100%;
    padding: 1vw;
}

.project-thumb-dark-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: #000;
}

.projects-grid .project-thumb-content h2 {
    margin-bottom: 1%;
    font-size: clamp(12px, 2.1vw, 15px);
    color: #fff;
}

.projects-grid .project-thumb-content p {
    opacity: 0;
    color: #fff;
}

.projects-grid .project-thumb-content svg {
    transform: translate(5px, 0);
}

.projects-grid .project-thumb-content, .projects-grid .project-thumb-content p {
    transition: all .4s cubic-bezier(0.7, 0, 0.3, 1); 
}

.projects-grid .project-info {
    display: flex;
    column-gap: 5px;
}

@media screen and (max-width: 1740px){
.projects-grid .wrap-wide {
    padding: 0 10px;
}
}

.project-title {
    font-size: 16px;
    font-family: 'Tinos', serif;
    font-weight: normal;
    margin:0;
}

.project-category {
    font-size: 16px;
    font-family: 'Tinos', serif;
    font-weight: normal;
    text-transform:capitalize;
    font-style: italic;
    margin: 0;
    color: var(--color-gold);
}

/* --- Animation home grid --- */

/* .projects-grid li.slide-in {
    transform: translate(0, 2vw);
    opacity: 1;
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1); 
    transition-delay: -.25s;   
}

.projects-grid li.slide-in.appear {
    transform: translate(0,0);
    opacity: 1;
} */

/* --- Hover --- */

.projects-grid ul li a:hover .project-thumb-content {
    position: absolute;
}

.projects-grid ul li a:hover .project-thumb-content p {
    opacity: 1;
}

.projects-grid ul li a:hover .project-thumb-dark-overlay {
    opacity: .3;
}

@media screen and (max-width: 1100px){
 
    .projects-grid .wrap-wide {
        padding: 0 10px;
    }    

    .projects-grid ul li {
        width: 50%;
        padding: 1.5vw;
    }

    .projects-grid .project-thumb .project-thumb-content h2 {
        font-size: clamp(12px, 2.1vw, 15px);
    }

    /* --- Hover OFF --- */

    .projects-grid ul li a:hover .project-thumb-back {
        bottom: 0;
        left: 0;
    }
    
    .projects-grid ul li a:hover .project-thumb-front, .projects-grid ul li a:hover .project-video-thumb, .projects-grid ul li a:hover .project-video-file {
        top: 0;
        right: 0;
    }
    
    .projects-grid ul li a .project-thumb-content, .projects-grid ul li a:hover .project-thumb-content {
        position: absolute;
        bottom: 0;
    }
    
    .projects-grid ul li a .project-thumb-content p {
        opacity: 1;
    }
    
}

@media screen and (max-width: 640px) {
    
    .project-title, .project-category {
        font-size: .8rem;
    }

    .projects-grid ul li {
        width: 50%;
        padding: 5px;
    }

    .projects-grid .project-thumb .project-thumb-content h2 {
        font-size: clamp(12px, 2.1vw, 15px);
    }
}

@media screen and (max-width: 540px){
    
    .projects-grid .wrap-wide {
        padding: 0;
    }
}

/* --- Animations --- */

.slide-in, .image-in {
	-webkit-transition: all 1.5s ease-in;
	-moz-transition: all 1.5s ease-in;
	-ms-transition: all 1.5s ease-in;
	-o-transition: all 1.5s ease-in;
	transition: all 1.5s ease-in;  
}

.fade-in {
    opacity: 0;
	transition: opacity 1s ease-in-out;  
}

.fade-in.appear {
    opacity: 1;
    transition-delay: .5s;
}

/* ------------------------- Work single -------------------------------------------------- */

.work-single h1 {
    font-size: 1em;
    margin-bottom: 0;
    font-weight: normal;
}

.section.default-header.work-single {
    padding-top: calc(var(--section-padding)*1.75);
    padding-bottom: calc(var(--section-padding)*.15);
}

.section.project-grid.work-single {
    padding-top: 0;
}

@media screen and (max-width: 640px){ 

.section.default-header.work-single {
    padding-top: calc(var(--section-padding)*2);
    padding-bottom: calc(var(--section-padding)*.15);
}
}

/* --- Project Grid --- */
 
.project-grid {
    padding-top: 0;
}

.project-grid .wrap-wide {
    padding: 0 10px;
}

.photoswipe-wrapper {
    float: left;
    width: 100%;
    padding-bottom: 60px;
}

.photoswipe-wrapper .photoswipe-item {
    float: left;
    padding: 10px;
    width: 33.33%;
}

.photoswipe-wrapper .photoswipe-item:nth-child(2), .photoswipe-wrapper .photoswipe-item:nth-child(4) {
    margin-top: 0px;
}

.photoswipe-wrapper .photoswipe-item a {
    float: left;
    width: 100%;
    position: relative;
    outline: 0;
    background: #fff;
}

.photoswipe-wrapper .photoswipe-item a img {
    float: left;
    width: 100% !important;
    border: 0;
    stroke: 0;
    outline: 0;
    height: auto !important;
}

.photoswipe-wrapper .photoswipe-item a .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
}

.photoswipe-wrapper .photoswipe-item a svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.5);
    width: 34px;
    opacity: 0;
}

.photoswipe-wrapper .photoswipe-item a:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
}

.photoswipe-wrapper .photoswipe-item a:hover svg {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Transition  --- */

.photoswipe-wrapper.fade-in {
    /*transform: translate(0,100px);*/
    opacity: 0;
    /* transition: all 1s cubic-bezier(0.87, 0, 0.13, 1);  */
    /* transition-delay: -.15s; */
}

.photoswipe-wrapper.fade-in.appear {
    /*transform: translate(0,0);*/
    opacity: 1;
}

.photoswipe-wrapper .photoswipe-item.fade-in {
    opacity: 0;
    transition: all 1s cubic-bezier(0.87, 0, 0.13, 1);
    transition-delay: -.25s;   
}

.photoswipe-wrapper .photoswipe-item.fade-in.appear {
    opacity: 1;
}

/* --- Related work  --- */

h2.related-header {
    font-family: 'Magnolia-Regular', sans-serif;
    font-weight: 600;
}

@media screen and (max-width: 1080px){
    .photoswipe-wrapper .photoswipe-item {
        float: left;
        padding: 15px;
        width: 33.33%;
    }

    .photoswipe-wrapper .photoswipe-item:nth-child(4) {
        margin-top: 0px;
    }
}

@media screen and (max-width: 640px){ 
    .project-grid {
        padding-bottom: 0;
    }
    .project-grid .wrap-wide {
        padding-left: 10px;
        padding-right: 10px;
    }

    .photoswipe-wrapper .photoswipe-item {
        float: left;
        padding: 10px;
        width: 100%;
    }
}

/* ------------------------- About -------------------------------------------------- */

.about .flex-col {
    width: 45%;
}

.about .flex-col:last-child {
    padding-right:var(--gap-padding);
}

 .about .row {
    justify-content: space-between;
    align-items: center;
}

.section.about {
    min-height: 100vh;
    padding-top: 75px;
    display: flex;
    align-items: center;
}

.about img {
    width: 100%;
}

@media screen and (max-width: 540px) {
    .about .flex-col {
        width: 100%;
        padding: 20px 0 0 0;
    }

    .section.about {
        padding: 90px 0;
    }

    .about .flex-col:last-child {
        padding-right: 0;
    }
}

/* ------------------------- Buttons -------------------------------------------------- */

.btn-row {
	width: 100%;
	position: relative;
	display: flex;
}

.btn {
	position: relative;
	border: 0;
	outline: 0;
}

.btn:not(:last-child) {
	margin-right: .5em;
}

.btn input {
	cursor: pointer;
}

.btn:last-child {
	margin-bottom: 0;
}

.btn-click {
	cursor: pointer;
	border: 0;
	background: #fff;;
	min-width: 1em;
	height: 3.25em;
	padding: 0 1.5em;
	font-size: 1em;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	text-decoration: none;
	will-change: transform;
	transform: translateZ(0) rotate(0.001deg);
	-webkit-box-shadow: inset 0 0 0 1px var(--color-dark); 
	box-shadow: inset 0 0 0 1px var(--color-dark);
    font-family: 'Magnolia-Regular', sans-serif;
    font-weight: 600;
    color: var(--color-black);
}

.btn-click:hover {
	overflow: hidden;
	cursor: pointer;
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: inset 0 0 0 1px var(--color-gold);
}

/* ------------------------- Footer -------------------------------------------------- */

.section.footer {
    padding-top: var(--section-padding);
    padding-bottom: calc(var(--section-padding)*.5);
    font-size: 70%;
    text-align: center;
}