@font-face {
    font-family: 'Gerstner-ProgrammMedium';
    src: url('../fonts/Gerstner-ProgrammMedium.woff2') format('woff2'),
         url('../fonts/Gerstner-ProgrammMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gerstner-ProgrammMedium';
    src: url('../fonts/Gerstner-ProgrammMediumItalic.woff2') format('woff2'),
         url('../fonts/Gerstner-ProgrammMediumItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

:root {
    --font-size: clamp(8px, calc(0.65vw + 0.65vh), 16px);
    --line-height: 1.21;
}

.type-regular {
    font-size: var(--font-size);
    line-height: var(--line-height);
}

.type-small {
    font-size: calc(0.87 * var(--font-size));
    line-height: var(--line-height);
}

::selection {
    background: rgba(210,215,211,1);
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-family: 'Gerstner-ProgrammMedium', Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    width: 100%;
    height: 100%;
    font-size: var(--font-size);
    line-height: var(--line-height);
    color: var(--font-color);
}

body:not(.page-home) {
    margin: 0;
    padding: 0;    
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.page-home {
    margin: 0;
    padding: 0;  
    /*position: absolute;*/
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.document-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /*max-height: 100vh;*/
}

a {
    color: inherit;
    transition: opacity 300ms;
    cursor: pointer;
    text-decoration: underline;
}

a:hover {
    opacity: 50%;
}

a:active, a:visited {
    opacity: 100%;
}

nav a:hover {
    opacity: 100%;
}

body:not(.page-about) .block-type-image a:hover,
body:not(.page-about) .block-type-imagehome a:hover,
body:not(.page-about) .block-type-videohome a:hover,
body:not(.page-about) .block-type-videoproject a:hover,
body:not(.page-about) .block-type-imageproject a:hover {
    opacity: 1;
}

.project-panel {
    font-size: var(--font-size);
}

main {
    flex: 1;
    padding: 0 2vw;
    scroll-behavior: smooth;
}

.hide {
    opacity: 0;
}


/* lazy loading */

img.lazy {
    opacity: 0;
}

img:not(.initial) {
    transition: opacity 1s;
}

img.initial,
img.loaded,
img.error {
    opacity: 1;
}

img:not([src]) {
    visibility: hidden;
}

/* nav */

nav {
    position: sticky;
    top: 0;
    padding: 2rem 2vw;
    background-color: white;
    z-index: 10;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    grid-gap: 2rem;
}

nav li {
    opacity: 100%;
    transition: opacity 300ms;
}

nav li.active {
    opacity: 100%;
}

nav li.active:hover {
    opacity: 50%;
}

nav li {
    opacity: 50%;
}

nav li:hover {
    opacity: 100%;
}

nav li:first-child {
    margin-right: 3.75vw;
    opacity: 100%;
}

nav li:first-child:hover {
    opacity: 50%;
}

nav a {
    text-decoration: none;
}

.page-home nav li {
    opacity: 100%;
}

.page-home nav li:hover {
    opacity: 50%;
}

/* footer */

footer {
    padding: 1.75rem 2rem 1.6rem 2rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

footer p {
    margin: 0;
}

footer a {
    text-decoration: none;
}

footer svg {
    height: 100%;
    position: relative;
    width: 1.5rem;
    padding: 0.1rem;
}

/* grid */

.grid {  
    display: grid;  
    grid-template-columns: repeat(12, 1fr);
    column-gap: 2vw;
}

.page-about .grid {
    grid-template-columns: repeat(11, 1fr);    
}

.grid > .column {
  grid-column: span var(--span);
}

.grid > .block {
  grid-column: var(--start) / span var(--span);
}

/* blocks */

h2 {
    margin: 0 0 1.25em 0;
    font-size: inherit;
    font-weight: inherit;
    text-transform: uppercase;
}

.mobile {
    display: none;
}

.desktop {
    display: block;
}

/* home */

.full-screen {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-panels {
    height: 100%;
    overflow: hidden;
}

.panels {
    height: 100%;
    overflow: auto;
    z-index: 10;
    font-size: 0;
}

.page-home main, .panels {
    overflow-y: hidden;
}

.panels .panels-container {
    height: 100%;
    white-space: nowrap;
    display: inline-block;
}

.panels .panels-container .panel {    
    white-space: normal;
}

.project-panels {
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    padding: 0;
    overflow: hidden;
}

.scroller__list {
    font-size: 0;
    display: inline-block;
    margin: 0;
    padding: 0;
    transform: transale3d(0,0,0); 
}

.scroller__list li {
    font-size: var(--font-size);
}

.scroller__arrows {
    position: absolute;
    top: calc(50% - 2vw);
    right: -0.25vw;
    z-index: 20;
    cursor: pointer;
    transform: translateY(-50%);
}

.scroller__arrows .scroller__arrow {
    font-family: inherit;
    font-size: 1.25em;
    background: transparent;
    border: 0;
    border-radius: 0;
    height: auto;
    opacity: 1;
    padding: 1.5vw 2vw;
    width: auto;
    cursor: pointer;
    transition: opacity 300ms;
    color: var(--font-color) !important;
}

.scroller__arrows .scroller__arrow:hover {
    opacity: 50%;
}

.scroller__arrow--next {
    /*right: 0;*/
}

.scroller__arrow--prev {
    /*left: 0;*/
    display: none;
}

.scroller__list {
    transition: transform 300ms;
}


.project-panels .project-panel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    text-align: left;
}

.panels .panels-container .panel {
    font-size: var(--font-size);
    width: auto;
    padding-right: 7.5vw;
    height: 100%;
    text-align: left;
}

.panels .panels-container .panel {
    display: inline-block;
    vertical-align: top;
}

.panels .panels-container .panel img {
    height: 100%;
    width: auto;
}

.panels .panels-container .panel section {
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    gap: 3rem;
}


/* projects page */

.page-projects main,
.page-project main {
    padding: 0;
    overflow: auto;
    scroll-snap-type: y mandatory;
}

.page-home main {
    padding: 0;
}

.project {
    position: relative;
    overflow-y: initial;
    scroll-snap-align: start;
    outline: 0;
}

.project:focus {
    outline: 0;    
}

.project .title {
    padding: 0 2vw 0.5em 2vw;
}

.project a.project-nav {
    padding: 2vw;
    position: absolute;
    top: 33vh;
    right: 0;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
}

.project-panels p {
    margin-top: 0;
}

.project-panels figure {
    margin: 0;
}

.project-panels figure .img-wrapper {
    display: inline-block;
}

.project-panels figure img {
    display: block;
}

.project-panels {
    overflow-y: initial;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
    height: 73vh;
}

.project-panels ul {
    font-size: 0;
    scroll-snap-type: x mandatory;
}

.project-panels ul li {

}

.no-snap {
    scroll-snap-type: unset;    
}

/* Hide scrollbar for Chrome, Safari and Opera */
.project-panels::-webkit-scrollbar {
  display: none;
}
.home-panels::-webkit-scrollbar {
  display: none;
}
.panels::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.project-panels {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.home-panels {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.panels {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.project-panels .project-panel {
    display: inline-block;
    vertical-align: top;
    scroll-snap-align: start;
    white-space: normal;
    padding: 0 12vw 0 2vw;
    overflow: visible;
    height: 59.25vh;
    width: 64vw;
}

.project-panels .project-panel[data-span="7"] {
    width: 64vw;
    padding-right: 12vw;
}
.project-panels .project-panel[data-span="5"] {
    width: 43.25vw;
    padding-right: 12vw;
}
.project-panels .project-panel[data-span="6"] {
    width: 53.825vw;
    padding-right: 12vw;
}
.project-panels .project-panel[data-span="5"][data-span-next="6"] {
    width: 49.25vw;
    padding-right: 18vw;
}
.project-panels .project-panel[data-span="6"][data-span-next="7"] {
    width: 47.825vw;
    padding-right: 6vw;
}

.project-panels .project-panel.project-details .type-small {
    max-width: 40vw;
}

.project-panel img {
    max-height: 59.25vh;
    max-width: 100%;
    cursor: pointer;
}

.project-panels .project-panel section {
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
}

.project-panels .project-panel .block-wrapper {
    width: 100%;
}

.size-cover.orientation-landscape figure,
.size-cover.orientation-square figure {
    height: 100%;
}

.size-cover.orientation-landscape .img-wrapper {
    width: 100%;
}

.size-cover.orientation-landscape figure img,
.size-cover.orientation-square figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.size-cover.orientation-portrait figure {
    height: 57.5vh;
}

.size-medium.orientation-portrait figure img,
.size-small.orientation-portrait figure img {
    width: auto !important;
}

.size-cover .img-wrapper {
    height: 100%;
}

.page-projects figure,
.page-project figure {
}

.page-projects .size-cover figure, 
.page-project .size-cover figure {
    width: auto;
}

.page-home .block > a {
    height: 100%;
} 

.page-home .size-small.orientation-landscape,
.page-home .size-small.orientation-square {
    height: 40vh;
}

.page-home .size-small.orientation-portrait {
    height: 45vh;
}

.page-home .size-medium.orientation-landscape,
.page-home .size-medium.orientation-square {
    height: 50vh;
}

.page-home .size-medium.orientation-portrait {
    height: 58vh;
}

.page-home .size-large.orientation-landscape,
.page-home .size-large.orientation-square {
    height: 60vh;
}

.page-home .size-large.orientation-portrait {
    height: 70vh;
}

.page-projects .grid.block-wrapper:has(div),
.page-project .grid.block-wrapper:has(div) {
    flex-grow: 1;
}

.grid.block-wrapper:nth-child(2) .block {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.page-projects .size-cover.orientation-landscape figure, 
.page-project .size-cover.orientation-landscape figure, 
.page-projects .size-cover.orientation-square figure,
.page-project .size-cover.orientation-square figure {
    width: 100%; 
    height: 100%;
}

.page-projects .size-cover.orientation-landscape figure img, 
.page-project .size-cover.orientation-landscape figure img, 
.page-projects .size-cover.orientation-square figure img,
.page-project .size-cover.orientation-square figure img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-projects .size-cover.orientation-portrait figure, 
.page-project .size-cover.orientation-portrait figure {
    width: 100%; 
    height: 100%;
}

.page-projects .orientation-portrait figure img, 
.page-project .orientation-portrait figure img {
    width: auto !important; 
}

.page-projects .size-large.orientation-landscape figure, 
.page-project .size-large.orientation-landscape figure, 
.page-projects .size-large.orientation-square figure,
.page-project .size-large.orientation-square figure {
    width: 100%; 
    height: 100%;
}

.page-projects .size-large.orientation-landscape figure img, 
.page-project .size-large.orientation-landscape figure img, 
.page-projects .size-large.orientation-square figure img,
.page-project .size-large.orientation-square figure img,
.page-projects .size-medium.orientation-landscape figure img, 
.page-project .size-medium.orientation-landscape figure img, 
.page-projects .size-medium.orientation-square figure img,
.page-project .size-medium.orientation-square figure img,
.page-projects .size-small.orientation-landscape figure img, 
.page-project .size-small.orientation-landscape figure img,
.page-projects .size-small.orientation-square figure img, 
.page-project .size-small.orientation-square figure img,
.page-projects .size-cover.orientation-portrait figure img, 
.page-project .size-cover.orientation-portrait figure img,
.page-projects .size-large.orientation-portrait figure img, 
.page-project .size-large.orientation-portrait figure img,
.page-projects .size-medium.orientation-portrait figure img, 
.page-project .size-medium.orientation-portrait figure img,
.page-projects .size-small.orientation-portrait figure img, 
.page-project .size-small.orientation-portrait figure img { 
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top left;
}

.page-projects .grid.block-wrapper:nth-child(2) .size-large.orientation-landscape figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-large.orientation-landscape figure img, 
.page-projects .grid.block-wrapper:nth-child(2) .size-large.orientation-square figure img,
.page-project .grid.block-wrapper:nth-child(2) .size-large.orientation-square figure img,
.page-projects .grid.block-wrapper:nth-child(2) .size-medium.orientation-landscape figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-medium.orientation-landscape figure img, 
.page-projects .grid.block-wrapper:nth-child(2) .size-medium.orientation-square figure img,
.page-project .grid.block-wrapper:nth-child(2) .size-medium.orientation-square figure img,
.page-projects .grid.block-wrapper:nth-child(2) .size-small.orientation-landscape figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-small.orientation-landscape figure img, 
.page-projects .grid.block-wrapper:nth-child(2) .size-small.orientation-square figure img,
.page-project .grid.block-wrapper:nth-child(2) .size-small.orientation-square figure img,
.page-projects .grid.block-wrapper:nth-child(2) .size-cover.orientation-portrait figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-cover.orientation-portrait figure img,
.page-projects .grid.block-wrapper:nth-child(2) .size-large.orientation-portrait figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-large.orientation-portrait figure img,
.page-projects .grid.block-wrapper:nth-child(2) .size-medium.orientation-portrait figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-medium.orientation-portrait figure img,
.page-projects .grid.block-wrapper:nth-child(2) .size-small.orientation-portrait figure img, 
.page-project .grid.block-wrapper:nth-child(2) .size-small.orientation-portrait figure img { 
    object-position: bottom left;
}

.page-projects .size-cover.orientation-landscape .img-wrapper,
.page-project .size-cover.orientation-landscape .img-wrapper,
.page-projects .size-cover.orientation-square .img-wrapper,
.page-project .size-cover.orientation-square .img-wrapper {
    width: 100%;
    height: 100%;
}

.page-projects .grid.block-wrapper,
.page-project .grid.block-wrapper {
    display: flex;
    flex-direction: column;
}

.page-projects .grid.block-wrapper:nth-child(1),
.page-project .grid.block-wrapper:nth-child(1) {
    justify-content: flex-start;
}

.page-projects .grid.block-wrapper:nth-child(2),
.page-project .grid.block-wrapper:nth-child(2) {
    justify-content: flex-end;
}

.page-projects .grid.block-wrapper:nth-child(2) .img-wrapper,
.page-project .grid.block-wrapper:nth-child(2) .img-wrapper{
    position: absolute;
    bottom: 0;
}

.page-projects .size-cover,
.page-project .size-cover {   
    height: 100%;
}

.page-projects .size-medium.orientation-landscape figure, 
.page-project .size-medium.orientation-landscape figure, 
.page-projects .size-medium.orientation-square figure,
.page-project .size-medium.orientation-square figure {
    width: 100%; 
    height: 60%;
}

.page-projects .size-small.orientation-landscape figure, 
.page-project .size-small.orientation-landscape figure, 
.page-projects .size-small.orientation-square figure,
.page-project .size-small.orientation-square figure {
    width: 100%; 
    height: 40%;
}

.page-projects .size-large.orientation-portrait figure, 
.page-project .size-large.orientation-portrait figure {
    width: 100%; 
    height: 100%;
}

.page-projects .size-medium.orientation-portrait figure, 
.page-project .size-medium.orientation-portrait figure {
    width: 100%; 
    height: 60%;
}

.page-projects .size-small.orientation-portrait figure, 
.page-project .size-small.orientation-portrait figure {
    width: 100%; 
    height: 40%;
}

.page-home figure {
    height: 100% !important;
}

.page-home figure img,
.page-home figure video {
    width: auto !important;
    height: 100% !important;
}

.page-projects .block-type-text,
.page-project .block-type-text,
.page-projects .block-type-textproject,
.page-project .block-type-textproject,
.page-home .block-type-text,
.page-home .block-type-texthome {
    grid-column: 1 / span 12;
}

.page-home .block-type-text,
.page-home .block-type-texthome {
    max-width: 25vw;
}

.page-projects .block-type-image,
.page-project .block-type-image,
.page-projects .block-type-imageproject,
.page-project .block-type-imageproject,
.page-projects .block-type-videoproject,
.page-project .block-type-videoproject,
.page-home .block-type-image,
.page-home .block-type-imagehome,
.page-home .block-type-videohome {
    grid-column: 1 / span 12;
}

.page-home .block-type-text,
.page-home .block-type-texthome {
    max-width: 25vw;
}

.page-home .block-type-text.width-half,
.page-home .block-type-texthome.width-half {
    max-width: 20vw;
}

.block-type-text p:last-child,
.block-type-textproject p:last-child,
.block-type-texthome p:last-child {
    margin: 0;
}

.text-wrapper {
    transition: opacity 300ms;
}

.page-projects .block-type-image figure,
.page-project .block-type-image figure,
.page-projects .block-type-imageproject figure,
.page-project .block-type-imageproject figure,
.page-projects .block-type-videoproject figure,
.page-project .block-type-videoproject figure,
.page-home .block-type-image figure,
.page-home .block-type-imagehome figure,
.page-home .block-type-videohome figure {
    margin: 0;
    position: relative;
    display: block;
    font-size: 0;
    line-height: 0;
}

.page-projects .block-type-image figcaption,
.page-project .block-type-image figcaption,
.page-projects .block-type-imageproject figcaption,
.page-project .block-type-imageproject figcaption,
.page-home .block-type-image figcaption,
.page-home .block-type-imagehome figcaption {
    position: absolute;
    top: calc(100% + 0.25rem);
}

.page-projects .block-type-videoproject figcaption,
.page-project .block-type-videoproject figcaption,
.page-home .block-type-videohome figcaption {
    position: absolute;
    top: calc(100% + 0.25rem);   
}

.page-home .block-type-image figcaption,
.page-home .block-type-imagehome figcaption,
.page-home .block-type-videohome figcaption {
    opacity: 0;
    transition: opacity 300ms;
}

.page-home .block-type-image:hover figcaption,
.page-home .block-type-imagehome:hover figcaption,
.page-home .block-type-videohome:hover figcaption {
    opacity: 1;
}

.page-home .desktop .panel-0:first-child {
    padding-left: 2vw;
}

.page-home .block-wrapper:last-child .block-type-image figcaption,
.page-home .block-wrapper:last-child .block-type-imagehome figcaption,
.page-home .block-wrapper:last-child .block-type-videohome figcaption {
    top: unset;
    bottom: calc(100% + 0.4rem);
}

.block-type-imageproject figcaption p:first-child,
.block-type-imageproject figcaption p:last-child,
.block-type-videoproject figcaption p:first-child,
.block-type-videoproject figcaption p:last-child,
.block-type-imagehome figcaption p:first-child,
.block-type-imagehome figcaption p:last-child,
.block-type-videohome figcaption p:first-child,
.block-type-videohome figcaption p:last-child {
    margin: 0;
}

.lightbox {
    position: fixed;
    background-color: white;
    display: none;
    z-index: 20;
    width: 100%;
    height: 100%;
    padding: 0 10vw;
}

.lightbox .button {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: 100vh;
    width: 6vw;
    cursor: pointer;
    padding: 0 2vw;
}

.lightbox a {
    text-decoration: none;
}

.lightbox .button.next {
    right: 0;
    text-align: right;
}

.lightbox .button.prev {
    left: 0;
    text-align: left;
}

.lightbox .button.close {
    right: 0;
    height: auto;
    width: auto;
    display: inline-block;
    padding: 1.5vw 2vw;
}

.lightbox .img-wrapper {
    position: absolute;
    top: 0;
    left: 10vw;
    width: 80vw;
    height: 100vh;
}

.lightbox img,
.lightbox video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms;
}

.lightbox img.active,
.lightbox video.active {
    opacity: 1;
}

.page-projects .project,
.page-project .project {
    opacity: 50%;
    transition: opacity 300ms;
    overflow-x: hidden;
}

.page-projects .project .project-panels,
.page-project .project .project-panels {
    overflow-x: hidden;
}

.page-projects .project.active,
.page-project .project.active {
    opacity: 1;
}

.page-projects .project.active .project-panels,
.page-project .project.active .project-panels {
    overflow-x: auto;
}

.page-projects .project img,
.page-project .project img {
    transform: translate3d(0, 0, 0);
    transition: filter 300ms;
    filter: sepia(70%) hue-rotate(90deg) saturate(15%);
}

.page-projects .project.active img,
.page-project .project.active img {
    filter: sepia(0) hue-rotate(0) saturate(100%);
}



/* about page */

body.page-about {
    height: unset;
}

.page-about main {
    align-content: start;
}

.page-about main > div:first-child {
    grid-column: 1 / span 6;
}

.page-about main > div:nth-child(2) {
    grid-column: 8 / span 5;
}

.page-about main .column {
    transition: opacity 300ms;
}

.page-about section {
    margin-bottom: 3vw;
}

.page-about .blocks p {
    margin: 0 0 1.25em 0;
}

.page-about figure {
    margin: 2vw 0 0 0;
}

.page-about figure img {
    display: block;
    width: 100%;
    height: auto;
}

.page-about .blocks figcaption {
    font-size: inherit;
    line-height: inherit;
    margin-top: 0.5vw;
}

.page-about .block-type-image {
    margin-bottom: 1.75vw;
}

.page-default main {
    padding: 1.75rem 2rem 1.6rem 2rem;
}

@media (min-width: 1025px) {
    :root {
        --font-size: clamp(6.5px, calc(0.65vw + 0.65vh), 16px);
    }
}

@media (min-width: 1025px) and (max-height: 800px) {
    :root {
        --font-size: clamp(6.5px, calc(0.625vw + 0.625vh), 16px);
    }
}

@media (min-width: 1025px) and (max-height: 600px) {
    :root {
        --font-size: clamp(6.5px, calc(0.575vw + 0.575vh), 16px);
    }
}

@media (min-width: 1025px) and (max-height: 500px) {
    :root {
        --font-size: clamp(6.5px, calc(0.525vw + 0.525vh), 16px);
    }
}

@media (min-width: 1300px) {
    :root {
        --font-size: clamp(6.5px, calc(0.6vw + 0.66vh), 18px);
    }
}

@media (min-width: 1300px) and (max-height: 800px) {
    :root {
        --font-size: clamp(6.5px, calc(0.575vw + 0.575vh), 16px);
    }
}

@media (min-width: 1300px) and (max-height: 600px) {
    :root {
        --font-size: clamp(6.5px, calc(0.5vw + 0.5vh), 16px);
    }
}

@media (min-width: 1300px) and (max-height: 500px) {
    :root {
        --font-size: clamp(6.5px, calc(0.45vw + 0.45vh), 16px);
    }
}

@media (min-width: 1600px) {
    :root {
        --font-size: clamp(6.5px, calc(0.575vw + 0.575vh), 16px);
    }
}

@media (min-width: 1600px) and (max-height: 800px) {
    :root {
        --font-size: clamp(6.5px, calc(0.55vw + 0.55vh), 16px);
    }
}

@media (min-width: 1600px) and (max-height: 600px) {
    :root {
        --font-size: clamp(6.5px, calc(0.5vw + 0.5vh), 16px);
    }
}

@media (min-width: 1600px) and (max-height: 500px) {
    :root {
        --font-size: clamp(6.5px, calc(0.45vw + 0.45vh), 16px);
    }
}

/* tablet */
@media (max-width: 1024px) {
    :root {
        --font-size: clamp(8px, calc(0.55vw + 0.55vh), 14px);
    }

    .project .title {
        padding: 3vh 2vw 1vh 2vw;
    }

    .project-panels {
        height: 60vh;
    }
    
    .project-panels .project-panel {
        height: 50vh;
    }

    .project-panel img {
        max-height: 50vh;
    }

    .size-cover.orientation-portrait figure {
        height: 50vh;
    }

    .page-home main {
        padding: 3vh 0;
    }

    .page-about main {
        padding-top: 3vh;
    }

    .page-about .grid .grid .column {
        grid-column: span 12;
    }

    .page-home .block-type-text,
    .page-home .block-type-texthome {
        max-width: 33vw;
    }

}


/* mobile */
@media (max-width: 768px) {
    :root {
        --font-size: clamp(12px, calc(1.225vw + 1.225vh), 16px);
    }

    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    h2 {
        margin: 0 0 calc(1.75vw * 2.5) 0;
    }

    main {
        padding: 2vw 6vw;
    }

    .page-home main {
        padding: 0;
    }

    nav {
        padding: 1.5rem 6vw;
    }

    .page-home .mobile .panel-0 {
        padding-left: 6vw;
    }

    nav ul {
        grid-gap: 6vw;
    }

    nav li:first-child {
        width: 100%;
    }

    .grid {  
        column-gap: calc(3vw * 2);
    }

    footer {
        padding: 1.5rem 6vw;
    }

    footer svg {
        width: 4vw;
        padding: 0.1vw;
    }

    .page-about main > div:first-child {
        grid-column: 1 / span 12;
    }

    .page-about main > div:nth-child(2) {
        grid-column: 1 / span 12;
    }

    .page-about .blocks p {
        margin: 0 0 calc(1.75vw * 2.5) 0;
    }

    .page-about figure {
        margin: calc(2vw * 2.5) 0 0 0;
    }

    .page-about .blocks figure + p {
        margin-top: calc(0.5vw * 2.5);
    }

    .document-inner {
        height: 100%;
    }

    .page-home figcaption {
        display: none;
    }

    .page-about .block-type-heading {
        cursor: pointer;
        transition: opacity 300ms;
    }
    .page-about .block-type-heading:hover {
        opacity: 50%;
    }
    .page-about .block-type-heading:active, {
        opacity: 100%;
    }

    .page-home .block-type-text,
    .page-home .block-type-texthome {
        max-width: 70vw;
    }

    .page-home .block-type-text.width-half,
    .page-home .block-type-texthome.width-half {
        max-width: 70vw;
    }

    .page-home figure {
        display: inline-block;
    }

    .page-home .block {
        /*text-align: center;*/
    }

    .page-home .panel-0:first-child .block {
        text-align: left;
    }

    .page-home .block figcaption, .page-home .text-wrapper {
        text-align: left;
    }

    .page-home #panel-0 {
        padding-left: 6vw;
    }
    .project .title {
        padding: 2vw 10vw 1vw 6vw;
    }
    .project-panels {
        height: 50vh;
    }
    .project-panels .project-panel {
        padding: 0 6vw;
        width: 100vw;
        margin-right: 10vw;
    }
    .project-panels .project-panel:nth-child(even) {
        width: 100vw !important;
    }

    .project-panels .project-panel img {
        /*width: calc(100vw - 12vw);*/
    }

    .project-panel .size-cover.orientation-landscape figure, 
    .project-panel .size-cover.orientation-square figure {
        width: 100%;
    }

    .project-panel .size-small.orientation-landscape figure,
    .project-panel .size-medium.orientation-landscape figure,
    .project-panel .size-large.orientation-landscape figure {
        width: 100%;
    }

    .project-panel figure img {
        /*object-position: center center !important;*/
    }

    .project-panels .project-panel {
        height: 40vh;
    }

    .project-panel img {
        max-height: 40vh;
    }

    .project-panels .project-panel:last-child {
        margin-right: 0;
    }

    .size-cover.orientation-portrait figure {
        height: 40vh;
    }

    .scroller__arrows {
        top: -1.25vw;
        padding-right: 4vw;
        transform: none;
    }

    .scroller__arrows .scroller__arrow {
        font-size: 1.5em;
    }

    .page-projects .size-cover.orientation-landscape .img-wrapper,
    .page-project .size-cover.orientation-landscape .img-wrapper {
        width: 100%;
    }

    .page-projects .size-large.orientation-landscape figure,
    .page-project .size-large.orientation-landscape figure,
    .page-projects .size-large.orientation-square figure,
    .page-project .size-large.orientation-square figure,
    .page-projects .size-large.orientation-landscape figure .img-wrapper,
    .page-project .size-large.orientation-landscape figure .img-wrapper,
    .page-projects .size-large.orientation-square figure .img-wrapper,
    .page-project .size-large.orientation-square figure .img-wrapper,
    .page-projects .size-large.orientation-landscape figure .img-wrapper img,
    .page-project .size-large.orientation-landscape figure .img-wrapper img,
    .page-projects .size-large.orientation-square figure .img-wrapper img,
    .page-project .size-large.orientation-square figure .img-wrapper img {
        width: 100%;
    }

    .page-projects .size-medium.orientation-landscape figure,
    .page-project .size-medium.orientation-landscape figure,
    .page-projects .size-medium.orientation-square figure,
    .page-project .size-medium.orientation-square figure,
    .page-projects .size-medium.orientation-landscape figure .img-wrapper,
    .page-project .size-medium.orientation-landscape figure .img-wrapper,
    .page-projects .size-medium.orientation-square figure .img-wrapper,
    .page-project .size-medium.orientation-square figure .img-wrapper,
    .page-projects .size-medium.orientation-landscape figure .img-wrapper img,
    .page-project .size-medium.orientation-landscape figure .img-wrapper img,
    .page-projects .size-medium.orientation-square figure .img-wrapper img,
    .page-project .size-medium.orientation-square figure .img-wrapper img {
        width: 100%;
    }

    .page-projects .size-small.orientation-landscape figure,
    .page-project .size-small.orientation-landscape figure,
    .page-projects .size-small.orientation-square figure,
    .page-project .size-small.orientation-square figure,
    .page-projects .size-small.orientation-landscape figure .img-wrapper,
    .page-project .size-small.orientation-landscape figure .img-wrapper,
    .page-projects .size-small.orientation-square figure .img-wrapper,
    .page-project .size-small.orientation-square figure .img-wrapper,
    .page-projects .size-small.orientation-landscape figure .img-wrapper img,
    .page-project .size-small.orientation-landscape figure .img-wrapper img,
    .page-projects .size-small.orientation-square figure .img-wrapper img,
    .page-project .size-small.orientation-square figure .img-wrapper img {
        width: 100%;
    }

    .page-projects .block-type-image img, 
    .page-project .block-type-image img, 
    .page-projects .block-type-imageproject img, 
    .page-project .block-type-imageproject img, 
    .page-projects .block-type-videoproject video, 
    .page-project .block-type-videoproject video {
        object-fit: unset;
        object-position: left top;
        width: auto; 
        height: 100%;
    }

    .page-projects .size-medium.orientation-portrait figure,
    .page-project .size-medium.orientation-portrait figure {
        width: auto;
    }

    .page-projects .size-small.orientation-portrait figure,
    .page-project .size-small.orientation-portrait figure {
        width: auto;
    }

    .page-home .size-small.orientation-landscape,
    .page-home .size-small.orientation-square {
        height: 25vh;
    }

    .page-home .size-small.orientation-portrait {
        height: 35vh;
    }

    .page-home .size-medium.orientation-landscape,
    .page-home .size-medium.orientation-square {
        height: 30vh;
    }

    .page-home .size-medium.orientation-portrait {
        height: 35vh;
    }

    .page-home .size-large.orientation-landscape,
    .page-home .size-large.orientation-square {
        height: 30vh;
    } 

    .page-home .size-large.orientation-portrait {
        height: 35vh;
    } 

    .panels .panels-container .panel {
        padding-right: 0;
        margin-right: -25vw;
    }  

    .panels .panels-container .panel:nth-last-child(4) {
        margin-right: 0;
    }   
}

@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --font-size: clamp(7px, calc(1vw + 1vh), 14px);
    }
    .page-home .block-type-text,
    .page-home .block-type-texthome,
    .page-home .block-type-text.width-half,
    .page-home .block-type-texthome.width-half {
        max-width: 33vw;
    }
}

@media (pointer: coarse) {
    a:hover {
        opacity: 100% !important;
    }
    .page-about .block-type-heading:hover {
        opacity: 100% !important;
    }
}