/*
Theme Name: nesto 2025 - v2
Author: Ernst Dommisse
Author URI: http://nesto.studio/
Version: 2.0
.
*/


/* CSS Document */

/* ==================================================================== */
/* Reset all kinds of defaults */
/* ==================================================================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==================================================================== */



/* ==================================================================== */
/* Load and define some font fams */
/* ==================================================================== */


/* just lovely */
@font-face {
    font-family: 'Just Lovely';
    src: url('fonts/JustLovely.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* geist-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/geist-v1-latin-regular.woff2') format('woff2');
}
/* geist-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/geist-v1-latin-600.woff2') format('woff2');
}

/* ==================================================================== */


:root {
    --large-display-line-height: 1.1;
    /* unfortunately, CSS variables in media queries don't seem to work, so unused below */
    --bp-tablet-up: 601px;
    --bp-laptop-up: 1025px;
    --bp-desktop-up: 1441px; /* not used yet */
    --bp-huge-up: 1601px;
    --dynamic-color: hsl(0, 60%, 60%);
}


html {
    font-size: 16px;
}



body {
    font-family: Geist, helvetica, sans-serif;
    font-weight: 400;
    background: #FFFBDA;
    font-size: 1.0rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


* {
    letter-spacing: -0.01em; /* -1% of the font size */
    box-sizing: border-box;
}

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

.br-desktop {
  display: none;
}

@media (min-width: 501px) {
  .br-desktop {
    display: inline;
  }
}

.lovely {
    /*
    font-family: "Just Lovely", Geist, helvetica, sans-serif;
    letter-spacing: normal !important;
    font-weight: normal !important;
    line-height: 0.4;
    text-rendering: optimizeLegibility;
    font-size-adjust: 0.66;
    */
}



.quincy {
    /*
    font-family: quincy-cf, serif;
    font-weight: 200;
    font-style: normal;


    font-variant-ligatures: common-ligatures;
    -moz-font-feature-settings: "liga", "clig";
    -webkit-font-feature-settings: "liga", "clig";
    font-feature-settings: "liga", "clig";
    */
}


.display-xl, .display-l, h3 {
    font-family: quincy-cf, serif;
    font-weight: 200;
    font-variant-ligatures: common-ligatures;
    -moz-font-feature-settings: "liga", "clig";
    -webkit-font-feature-settings: "liga", "clig";
    font-feature-settings: "liga", "clig";
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}


.display-xl {
    font-size: 3rem;
}

.single .display-xl, .page-template-page-contact .display-xl {
  font-size: 3rem;
}

.display-l, h3 {
    font-size: 1.75rem;
}

.text-xxl {
    font-size: 1.75rem;
    line-height: 1.3;
}
.text-xl {
    font-size: 1.125rem;
}
.text-l {
    font-size: 1.0rem;
}


@media (min-width: 601px) {
    body {
        font-size: 1.0625rem;
    }
    .display-xl, .single .display-xl, .page-template-page-contact .display-xl {
        font-size: 3.5rem;
    }
    .display-l, h3 {
        font-size: 2.25rem;
    }
    .text-xxl {
        font-size: 2.0rem;
    }
    .text-xl {
        font-size: 1.25rem;
    }
    
}


@media (min-width: 1025px) {
    .display-xl, .single .display-xl, .page-template-page-contact .display-xl {
        font-size: 5.5rem;
    }
    body {
        font-size: 1.125rem;
    }

    .display-l, h3 {
        font-size: 2.75rem;
    }

    .text-xxl {
        font-size: 2.5rem;
    }

    .text-xl {
        font-size: 1.5rem;
    }

    .text-l {
        font-size: 1.25rem;
    }
}

@media (min-width: 1601px) {
    body {
        font-size: 1.25rem;
    }
    .filter {
        font-size: 1.125rem;
    }
    .display-xl, .single .display-xl, .page-template-page-contact .display-xl {
        font-size: 6rem;
    }

    .display-l, h3 {
        font-size: 3.5rem;
    }
}



/* ========================================================= */
/* top level wrappers and rules
/* ========================================================= */


/* containes top menu bar (#top-bar) and optionally case intro */

.top-wrapper {
    padding-top: 0;
}



@media (min-width: 1025px) {
    .top-wrapper {
        padding-top: 48px;
    }
}

@media (min-width: 1601px) {
    .top-wrapper {
        padding-top: 64px;
    }
}


.content-wrapper img, .content-wrapper video, .content-wrapper iframe, .content-wrapper .youtube-player, .image-wrapper {
    width: 100%;
    border-radius: 12px;
}

.content-wrapper {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 1920px;
    margin: auto;
}

@media (min-width: 601px) {
    .content-wrapper {
        padding-left: 32px;
        padding-right: 32px;
    }

    .content-wrapper img, .content-wrapper video, .content-wrapper iframe, .content-wrapper .youtube-player, .image-wrapper {
        border-radius: 16px;
    }
}

@media (min-width: 1601px) {
    .content-wrapper {
        padding-left: 5%;
        padding-right: 5%;
    }
}





/* ========================================================= */




/* ========================================================= */
/* top-bar navigation */
/* ========================================================= */

#top-bar {
    padding: 24px 16px;
    display: flex;
    justify-content: center; /* space-between; */
    align-items: center;
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.5s ease-in-out , background-color 0.2s ease;

    color: #fff;
    /* mix-blend-mode: difference; */

    z-index: 100;

    will-change: transform, background-color;
}




#top-bar.hide {
    transform: translateY(-100%);
}

#top-bar.hide-logo #logo {
    opacity: 0;
    visibility: hidden;
    scale: 1.5;
}

#logo {
    width: 56px;
    height: auto;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    scale: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease, scale 0.3s ease;
}

#logo svg {
    pointer-events: none;
}

@media (min-width: 601px) {
    #logo {
        width: 80px;
    }
}

@media (min-width: 1025px) {
    #logo {
        width: 90px;
    }

    #top-bar {
        justify-content: space-between;
    }
}

@media (min-width: 1601px) {
    #logo {
        width: 100px;
    }
}

#logo img {
    width: 100%;
    height: auto;
}


.pod-menu {
    display: flex;
    padding: 20px 36px;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 24px rgba(0,0,0,0.25);
    border-radius: 100px;
    position: fixed;
    bottom: 16px;
    color: #fff;
    font-size: 0.9375rem;
    z-index: 101;
    left: 50%;
    transform: translateX(-50%);
}

.pod-menu ul {
    display: inline-flex;
    gap: 32px;
}

.pod-back-container {
    display: inline-flex;
    margin-left: -8px;
    margin-right: 24px;
    gap: 18px;
}

.pod-back-container .vdiv {
    width: 1px;
    background-color: rgba(255,255,255,0.2);
}

.nav-item {
    position: relative;
    color: #fff;
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.nav-item:hover {
    text-shadow: 0 0 6px rgba(255,255,255,0.5), 0 0 10px rgba(255,255,255,0.3);
}

.nav-item:before, .back-button:before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
}

.is-selected .nav-item {
    opacity: 0.5;
    pointer-events: none;
}

.back-button {
    position: relative;
    transition: filter 0.3s ease;
}

.back-button:hover {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.8)) drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

@media (min-width: 601px) {
    #top-bar  {
        padding: 24px 24px;
    }
}

@media (min-width: 1025px) {
    .pod-menu {
        font-size: 1rem;
        padding: 24px 40px;
        bottom: 24px;
    }
    .pod-menu ul {
        gap: 40px;
    }
    .pod-back-container {
        margin-right: 32px;
        margin-left: -4px;
        gap: 24px;
    }
    .pod-back-container img {
        height: 11px;
    }
}

@media (min-width: 1601px) {
    #top-bar {
        /* padding: 48px 5%; */
        padding: 32px;
    }
}


/* ========================================================= */




/* ========================================================= */
/* case intro */
/* ========================================================= */

#case-intro {
    padding-top: 40px;
    padding-bottom: 64px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 48px;
    overflow: hidden;
}

/*
#case-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 3px;           
    height: 32px;         
    background-color: #fff;
    left: 50%;            
    transform: translateX(50%);
    mix-blend-mode: difference;
}
*/

.v-line {
    position: relative;
    width: 3px;           
    height: 32px;         
    left: 50%;            
    transform: translateX(50%);
    order: 1;
}

#case-intro .project-name {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#case-intro .project-excerpt {
    max-width: 720px;
    margin: auto;
    order: 2;
}

#case-intro .project-client {
    margin-bottom: 0;
}

#case-intro .case-hero-image {
    order: 1;
    margin-bottom: 16px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    object-fit: cover;
    min-height: 320px;
}

.project-meta {
    order: 3;
    margin-top: 32px;
    font-size: 0.9375rem;
}

.project-meta ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.project-meta ul:last-child {
    margin-bottom: 0;
}

.project-meta .label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
}



.project-meta li {
    display: inline-block;
    border-radius: 100px;
    border: solid 1px #000;
}

.project-meta li:hover {
    background-color: #000;
    color: #fff;
}



.project-meta li .full-link {
    display: block;
    padding: 4px 14px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 601px) {
    #case-intro {
        padding-top: 72px;
        padding-bottom: 96px;
        margin-bottom: 96px;
    }
    .v-line {
        height: 48px;
    }
    #case-intro img {
        order: 2;
    }
    #case-intro .project-excerpt {
        order: 1;
        margin-bottom: 32px;
    }
    .project-meta {
        font-size: 1rem;
    }
}

@media (min-width: 1025px) {
    #case-intro {
        padding-bottom: 128px;
        margin-bottom: 128px;
    }
    .v-line {
        height: 64px;
    }
    #case-intro .project-excerpt {
        margin-bottom: 96px;
    }
    #case-intro .case-hero-image {
        width: 100%;
        margin-left: 0;
        border-radius: 16px;
    }
    .project-meta {
        font-size: 1.125rem;
        margin-top: 48px;
        display: flex;
        justify-content: center;
    }
    .project-meta .label {
        margin-right: 8px;
        margin-bottom: 0;
    }
    .project-meta ul {
        margin-right: 16px;
        margin-bottom: 0;
    }

    .project-meta ul:last-child {
        margin-right: 0;
    }
    
}

@media (min-width: 1601px) {
    

}


/* ========================================================= */


/* ========================================================= */
/* case content */
/* ========================================================= */

.case-content-container, .project-list-item {
    margin-bottom: 32px;
}

.text-content {
    max-width: 960px;
    margin-left: 8px;
    margin-right: 8px;
}



@media (min-width: 601px) {
    .case-content-container, .project-list-item {
        margin-bottom: 64px;
    }
}

@media (min-width: 1025px) {
    .case-content-container, .project-list-item {
        margin-bottom: 96px;
    }

    .text-content {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (min-width: 1601px) {
    .case-content-container, .project-list-item {
        margin-bottom: 128px;
    }
}




/* =========================================================== */
/* OEMBED - I.E. VIDEO
/* =========================================================== */

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    /* height: auto; */
}

.oembed-wrapper {
    position: relative;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}




    .youtube-player {
        position: relative;
        padding-bottom: 56.23%;
        /* Use 75% for 4:3 videos */
        height: 0;
        overflow: hidden;
        max-width: 100%;
        background: #000;
    }

    .youtube-player iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 11;
        background: transparent;
    }

    .youtube-player img {
        bottom: 0;
        display: block;
        left: 0;
        margin: auto;
        max-width: 100%;
        width: 100% !important;
        position: absolute;
        right: 0;
        top: 0;
        border: none;
        height: auto;
        cursor: pointer;
        -webkit-transition: .4s all;
        -moz-transition: .4s all;
        transition: .4s all;
    }

    .youtube-player img:hover {
        -webkit-filter: brightness(75%);
    }

    .youtube-player .play {
        height: 96px;
        width: 96px;
        left: 50%;
        top: 50%;
        margin-left: -48px;
        margin-top: -48px;
        position: absolute;
        background: url("img/play-btn.svg") no-repeat;
        background-size: fit;
        cursor: pointer;
        pointer-events: none;
    }



/* ========================================================= */



/* ========================================================= */
/* NEXT PROJECT CTA ON SINGLE
/* ========================================================= */

#next-case {
    text-align: center;
    margin-top: 128px;
}

#next-case .display-l {
    margin-bottom: 8px;
}

#next-case .project-list-item {
    margin-bottom: 0;
}

#next-case .next-image-wrapper {
    margin-top: 48px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#next-case .project-list-image:hover {
    transform: scale(1.03) translateY(-30px);
}

#next-case .logo-sticker {
    bottom: unset;
    top: 40px;
    width: 96px;
    height: 96px;
}


.next-image-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

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


@media (min-width: 601px) {
    #next-case {
        margin-top: 160px;
    }
    .next-image-wrapper {
        height: 360px;
    }

    #next-case .logo-sticker {
        top: 24px;
        width: 128px;
        height: 128px;
    }
}


@media (min-width: 1025px) {
    #next-case {
        margin-top: 192px;
    }

    .next-image-wrapper {
        height: 480px;
    }

    #next-case .logo-sticker {
        top: 0;
        width: 180px;
        height: 180px;
    }
}

@media (min-width: 1601px) {
    #next-case {
        margin-top: 256px;
    }
    .next-image-wrapper {
        height: 640px;
    }
    #next-case .logo-sticker {
        top: 0;
        width: 220px;
        height: 220px;
    }
}


/* ========================================================= */




/* ========================================================= */
/* main content */
/* ========================================================= */

#main-content {

}

#main-content.taxonomy-page, .page-template-page-work #main-content, .blog #main-content {
    margin-top: 96px;
}




/* ========================================================= */




/* ========================================================= */
/* homepage */
/* ========================================================= */

#intro, #outro {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


#intro {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 48px;
}

#intro .big-logo {
    display: inline-block;
    /* mix-blend-mode: difference; */
    width: 80px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}



#intro .intro-heading {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

#intro .intro-text {
    max-width: 720px;
    margin: auto;
    padding: 0 24px;
}

@media (max-width: 375px)
{
    #intro .intro-text {
        padding: 0;
    }
}

@media (min-width: 601px)
{
    #intro .big-logo {
        width: 104px;
    }
}

@media (min-width: 1025px)
{
    #intro .big-logo {
        width: 134px;
    }
}

@media (min-width: 1601px)
{
    #intro .big-logo {
        width: 140px;
    }
}


/* look into unifying with new BP's */
@media (max-width: 960px) {
  .hide-from-medium-down {
    display: none;
  }
}



.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin-bottom: 40px;
}

.filter, .button {
    padding: 12px 20px;
    outline: 1px solid #000;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button {
    display: inline-block;
}
 
.filter a, .button a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
    border-radius: 100px;
}


.filter.filter-toggle {
    position: relative;
    padding: 0;
    width: 49.5px; /* this is ugly and based on observing size of pills manually */
    aspect-ratio: 1 / 1;
}

.filter a::before, .button a::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -20px;
    right: -20px;
    bottom: -12px;
    border-radius: 100px;
}

.filter.filter-toggle a::before {
    content: none;
}

.toggle-line {
    width: 1px; 
    height: 17px; 
    background-color: #000;
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%) rotate(19deg);
    transition: transform 0.3s ease;
}

.toggle-line.toggled {
    transform: translate(-50%, -50%) rotate(-19deg);
}

.filter:hover, .button:hover, 
.filter.is-selected {
    background: #000;
    color: #fff;
}

.filter a:hover, .button a:hover {
    color: #fff;
}

.filter.filter-toggle:hover .toggle-line {
    background-color: #fff;
}

.filters-discipline.hidden {
    display: none;
}

.filters-sector {
    display: none;
}

.filters-sector.active {
    display: flex;
}



.project-list-item {
    position: relative;
    /* note padding below is managed together with case content higher up in this doc */
}

.project-list-item a {
    text-decoration: none;
    color: inherit;
}

.project-list-item .project-label {
    margin: 8px 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-list-item .image-wrapper {
    overflow: hidden;
}

.project-list-item .project-list-image {
    object-fit: cover;
    max-height: 100vh;
    min-height: 400px;
    display: block;
    height: auto;
    /* box-shadow: 0 1px 8px rgba(0,0,0,0.1); */

    transition: transform 0.7s ease;
}

.project-list-item .project-list-image:hover {
    transform: scale(1.06);
}

.logo-sticker {
    border-radius: 200px;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.logo-sticker img {
    width: 80%;
    height: auto;
    mix-blend-mode: difference;
}


.project-list-item .logo-sticker {
    position: absolute;
    width: 72px;
    height: 72px;
    bottom: 48px;
    right: 16px;
}

@media (min-width: 601px)
{
    .project-list-item .logo-sticker {
        width: 80px;
        height: 80px;
        bottom: 56px;
        right: 24px;
    }

}


@media (min-width: 1025px)
{
    .project-list-item .logo-sticker {
        width: 128px;
        height: 128px;
        bottom: 68px;
        right: 32px;
    }

    .project-list-item .project-label {
        margin: 12px 8px 0;
    }

    #intro {
        padding-bottom: 64px;
    }

    #intro .intro-heading {
        margin-bottom: 32px;
    }

    .filters {
        margin-bottom: 72px;
    }

    .filter, .button {
        padding: 14px 28px;
    }

    .filter a:before, .button a:before {
        content: '';
        position: absolute;
        top: -14px;
        left: -28px;
        right: -28px;
        bottom: -14px;
    }

    .filter.filter-toggle {
        width: 55.5px; /* this is ugly and based on observing size of pills manually */
    }

    .button {
        font-size: 1.25rem;
    }
}

@media (min-width: 1601px)
{
    #intro .intro-heading {
        margin-bottom: 40px;
    }
    .project-list-item .logo-sticker {
        width: 160px;
        height: 160px;
        bottom: 80px;
        right: 44px;
    }
}



#end-home-cta #outro {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding-top: 128px;
    padding-bottom: 240px;
}

#end-home-cta #outro a, .intro-text a {
    color: inherit;
}

.intro-text a:hover {
    text-decoration: none;
}

.button {
    margin-top: 24px;
}

@media (min-width: 601px)
{
    #end-home-cta #outro {
        padding-top: 160px;
        padding-bottom: 320px;
    }
}

@media (min-width: 1025px)
{
    .button {
        margin-top: 40px;
    }
}



/* ========================================================= */



/* ========================================================= */
/* ARCHIVE PAGES (loves & agency) */
/* ========================================================= */

.archive #intro {
    padding-bottom: 48px;
}

@media (min-width: 1025px)
{
    .archive #intro {
        margin-top: 96px;
        padding-bottom: 96px;
    }
}


/* ========================================================= */


/* ========================================================= */
/* CONTACT PAGE */
/* ========================================================= */


.page-template-page-contact #bg-color-layer {
    background: var(--dynamic-color);
    transition: background-color 1s linear;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}




.page-template-page-contact #top-bar {
    mix-blend-mode: normal;
}

.page-template-page-contact .top-wrapper {
    padding-top: 0;
}


.page-template-page-contact .big-logo {
    position: fixed;
    width: 220vw;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-52%, -50%) rotate(-90deg);
    mix-blend-mode: difference;
}

.page-template-page-contact #main-content {
    display: flex;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

.page-template-page-contact #main-content a {
    color: var(--dynamic-color);;
    mix-blend-mode: difference;
    text-decoration: none;
    transition: color 1s linear;
}

.page-template-page-contact #main-content a:hover {
    mix-blend-mode: normal;
}

.text-bg {
    background: #fff;
    padding: 8px;
    white-space: nowrap;
}

@media (min-width: 961px)
{
    .page-template-page-contact .big-logo {
        width: 140vw;
        transform: translate(-52%, -50%);
    }
}

@media (min-width: 601px)
{
    .page-template-page-contact #main-content {
        gap: 8px;
    }
}

@media (max-width: 390px)
{
    .text-bg {
        transform: scale(0.95);
    }
}

@media (max-width: 375px)
{
    .text-bg {
        transform: scale(0.9);
    }
}


/* ========================================================= */


/* ========================================================= */
/* INDEX.PHP - REALLY MY 404 PAGE
/* ========================================================= */

#main-content-index {
    width: 100vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 0;
    max-width: unset;
}

@media (min-width: 601px)
{
    #main-content-index {
        height: 100vh;
    }
}


/* ========================================================= */



/* ========================================================= */
/* ABOUT PAGE
/* ========================================================= */

.page-template-page-about {
    background: #000;
    color: #fff;
}

.page-template-page-about #main-content {
    overflow: hidden;
}

.page-template-page-about .button {
    outline-color: #fff;
}

.page-template-page-about .button:hover {
    background: #fff;
}

.page-template-page-about .button a:hover {
    color: #000;
}


.page-template-page-about #content-container {
    padding-bottom: 96px;
}

.page-template-page-about #intro {
    padding-bottom: 48px;
}

.page-template-page-about .pod-menu {
    background-color: rgba(80,80,80,0.5);
}


.page-template-page-about #intro .big-logo {
    width: 160px;
}

@media (min-width: 601px)
{
    .page-template-page-about #intro .big-logo {
        width: 200px;
    }
}

@media (min-width: 1025px)
{
    .page-template-page-about #intro .big-logo {
        width: 240px;
    }
}

@media (min-width: 1601px)
{
    .page-template-page-about #intro .big-logo {
        width: 280px;
    }
}


.page-template-page-about .content-block {
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 48px;
}

.page-template-page-about .text-content {
    margin-left: auto;
    margin-right: auto;
}

.page-template-page-about .image-content {
    margin-left: auto;
    margin-right: auto;
    max-width: 1060px;
}

.page-template-page-about .image-content img {
    width: 100%;
    height: auto;
    min-width: 600px;
    margin-left: 46%;
    transform: translateX(-50%);
}

.page-template-page-about .display-xl {
    margin-bottom: 32px;
}

@media (min-width: 601px)
{
    /*
    .page-template-page-about #intro .big-logo {
        width: 240px;
    }
    */

    .page-template-page-about .content-block {
        margin-bottom: 64px;
    }

    .page-template-page-about .display-l {
        margin-bottom: 24px;
    }

    .page-template-page-about .display-xl {
        margin-bottom: 48px;
    }
}

@media (min-width: 1025px)
{
    .page-template-page-about #content-container {
        padding-bottom: 128px;
    }

    .page-template-page-about #intro {
        padding-bottom: 96px;
    }

    /*

    .page-template-page-about #intro .big-logo {
        width: 280px;
    }

    */

    .page-template-page-about .content-block {
        margin-bottom: 96px;
    }

    .page-template-page-about .display-l {
        margin-bottom: 32px;
    }

    .page-template-page-about .display-xl {
        margin-bottom: 64px;
    }
}

@media (min-width: 1601px)
{
    .page-template-page-about #intro {
        padding-bottom: 128px;
    }
    /*
    .page-template-page-about #intro .big-logo {
        width: 320px;
    }
    */

    .page-template-page-about .text-content {
        max-width: 1060px;
    }

    .page-template-page-about .image-content {
        margin-left: auto;
        margin-right: auto;
        max-width: 1200px;
    }

}













/* ========================================================= */


/* ========================================================= */
/* PAGE TRANSITIONS */
/* ========================================================= */

/* Initial state of the page wipe: covers the page from the top */
#page-wipe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120%;
  background-color: #222;
  transform: translateY(0); /* Start from the top (initially covering the page) */
  transition: transform 0.4s ease-in; /* Transition when wiping down */
  z-index: 1000; /* Ensure it's above all other content */
}

/* When the new page is loaded, it should animate down */
#page-wipe.page-wipe-down {
  transform: translateY(100%); /* Move the black bar down */
  transition: transform 0.4s ease-in; /* Transition for smooth down effect */
}

/* When navigating to another page, the page wipe animates from top to bottom */
#page-wipe.page-wipe-from-top {
  transform: translateY(-120%); /* Wipe from the top to cover the page */
}




