/*
Theme Name: Stephan Offermann Photography
Author: So Uncalled—For, SU—F Studio, suf.studio
Description: Custom Theme for Stephan Offermann Photography by SU—F Studio
Version: 0.0.1
Tags: custom, su-f, souncalledfor, sufsufstudio, stephan, offermann, photography
*/

/*
 * Globals
 */

@font-face {
    font-family: "SOP Font";
    src: url("fonts/AkkuratLight.woff") format("woff"),
         url("fonts/AkkuratLight.woff2") format("woff2");
    font-weight: 300;
}

@font-face {
    font-family: "SOP Font Alt";
    src: url("fonts/AkkuratLight.otf") format("opentype");
    font-weight: 300;
}

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

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

@keyframes blurOut {
    from {
        filter: blur(15px);
    }
    to {
        filter: blur(0);
    }
}

@keyframes blurIn {
    from {
        filter: blur(0);
    }
    to {
        filter: blur(15px);
    }
}

@keyframes backgroundIn {
    from {
        background: rgba(255, 255, 255, 0);
    }
    to {
        background: rgba(255, 255, 255, 1);
    }
}

@keyframes backgroundOut {
    from {
        background: rgba(255, 255, 255, 1);
    }
    to {
        background: rgba(255, 255, 255, 0);
    }
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

body {
    -ms-autohiding-scrollbar: auto;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    scroll-behavior: smooth;
    background-color: #ffffff;
    color:#101010;
}

h1, h2, h3, h4, h5, h6, p, ul, figcaption, .wp-block-button .wp-block-button__link {
    font-family:"SOP Font", Helvetica, Arial, sans-serif;
    font-weight:normal;
    font-size: 12px;
    line-height: 1.33;
    letter-spacing: 0.066rem;
    color: #101010;
    margin:0;
    padding:0;
}

h1, h2 {
    font-size: 24px;
    text-transform: uppercase;
}

p, h3 {
    font-size: 15px;
    letter-spacing: 0.033rem;
    margin-bottom: calc(15px * 1.33);
}

h3 {
    text-transform: uppercase;
    margin-bottom: calc((15px * 1.33) * 2);
}

strong {
    font-weight: normal;
}

a {
    text-decoration: none;
    color: #808080;
}

a:hover {
    color: #101010;
}

ul {
    list-style: none;
}

ul.post-list li {
    font-size: 15px;
    letter-spacing: 0.033rem;
    margin-bottom: 8px;
    text-transform: uppercase; 
}

container.post-info li, container.page li {
    font-size: 15px;
    letter-spacing: 0.033rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

ul.post-list li:last-of-type {
    margin-bottom: 0;
}

ul.post-list li span {
    font-family: "SOP Font Alt", sans-serif;
    font-feature-settings: 'sups'; 
    letter-spacing: 0.033rem;
    margin-left: 8px;
}

.no-scroll {
    overflow:hidden;
}

container > *:last-child, container > * .wp-block-column > * {
    margin-bottom: 0;
}

.wp-block-columns, .wp-block-list {
    margin: calc((15px * 1.33) * 2) 0;
    gap:0;
}

/*
 * Fig
 */

 figure {
    font-size:0;
    margin:0;
    width:100%;
    height:100%;
}

img, video, #main .wp-block-image img {
    object-fit: contain;
    object-position: 50% 50%;
    width: 100%;
    height: 100%;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.blur {
    filter: blur(15px);
    animation: blurIn 1s ease forwards;
}



/*
 * Buttons
 */

 .wp-block-button  .wp-block-button__link {
    background-color: rgba(240, 240, 240, 0.66);
    color: #808080;
    backdrop-filter: blur(15px);
    border-radius: 8px;
    text-transform: uppercase;
    line-height: 1;
    padding: 10px 12px 10px;
}

.wp-block-button .wp-block-button__link.active {
    background-color: rgba(160, 160, 160, 0.66);
    color: #101010;
}

.wp-block-button:hover  .wp-block-button__link:not(.active) {
    color: #101010;
    background-color: rgba(210, 210, 210, 0.66);
}

/*
 * Nav
 */

nav {
    position: fixed;
    top:40px;
    left:50%;
    transform: translateX(-50%);
    z-index:100;
}

nav #menu-header-menu {
    display: flex;
}

nav #menu-header-menu li {
    margin: 0 5px;
}

/*
 * Logo
 */

logo {
    background-color: rgba(255, 255, 255, 1);
    position: fixed;
    inset: 0;
    z-index:150;
    pointer-events: none;
}

logo.animate-middle {
    animation: backgroundOut 1s ease 1.5s forwards;
}

logo.animate-end {
    background-color: rgba(255, 255, 255, 0);
}

logo > * {
    position: fixed;
    transition: inset 1s ease;
    display:flex;
    opacity: 0;
}

logo.animate-start > *:not(.logo-center), logo.animate-middle > *, logo.animate-end > * {
    opacity: 1;
    transition: inset 1s ease;
}

logo.animate-start .logo-top {
    right: calc(50% - 1.5px);
    top: calc(50% - 1.5px);
}

logo.animate-start .logo-center {
    left: calc(50% - (172px / 2));
    top: calc(50% - (47px / 2));
}

logo.animate-start .logo-bottom {
    left: calc(50% - 1.5px);
    bottom: calc(50% - 1.7px);
}

logo.animate-middle .logo-top {
    right: calc(50% - (172px / 2));
    top: calc(50% - 48px);
}

logo.animate-middle .logo-center {
    left: calc(50% - (172px / 2));
    top: calc(50% - (47px / 2));
    transition: inset 1s ease, opacity 1s ease 1s;
}

logo.animate-middle .logo-bottom {
    left: calc(50% - (172px / 2));
    bottom: calc(50% - 48px);
}

logo.animate-end .logo-top {
    right: 40px;
    top: 40px;
}

logo.animate-end .logo-center {
    left: 40px;
    top: 40px;
}

logo.animate-end .logo-bottom {
    left: 40px;
    bottom:40px;
}

logo svg {
    width: 172px;
    height:auto;
}

/*
 * Main
 */

#main {
    opacity:0;
    animation: fadeOut 1s ease forwards;
}

#main.show, .single #main.show {
    opacity:1;
    animation: fadeIn 1s ease forwards;
}

.single #main {
    opacity:0;
    animation: fadeOut 0s ease forwards;
}

#main wrap {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 40px;
    justify-content: space-around;
    align-items: center;
}
#main wrap:not(.blur) {
    animation: blurOut 1s ease forwards;
}

#main wrap a {
    margin: 4.16% 4.16% 8.33%;
    flex-grow: 0;
    flex-shrink: 0;;
}

#main wrap a.landscape:has(.home-l), #main wrap a.square:has(.home-l) {
    width: 66.66%;
}

#main wrap a.landscape:has(.home-m), #main wrap a.square:has(.home-l) {
    width: 50%;
}

#main wrap a.landscape:has(.home-s), #main wrap a.square:has(.home-s) {
    width: 33.33%;
}

#main wrap a.portrait:has(.home-l) {
    width: 50%;
}

#main wrap a.portrait:has(.home-m) {
    width: 33.33%;
}

#main wrap a.portrait:has(.home-s) {
    width: 25%;
}

#main wrap a:nth-of-type(2n+2) {
    align-self: flex-end;
}
#main wrap a:nth-of-type(2n+4) {
    align-self: center;
}
#main wrap a:nth-of-type(odd)  {
    margin-bottom: 16.66%
    
}


/*
 * Overlay
 */

#overlay {
    position: fixed;
    width: 100%;
    height:100%;
    inset: 0;
    z-index: 60;
    background-color: transparent;
    pointer-events: none;
    opacity: 0;
}
#overlay.hide {
    animation: backgroundOut 1s ease forwards, fadeOut 1s ease forwards;
}

#overlay.show {
    pointer-events: all;
    animation: backgroundIn 1s ease forwards, fadeIn 1s ease forwards;
}

.single #overlay.show {
    pointer-events: all;
    animation: backgroundIn 0s ease forwards, fadeIn 0s ease forwards;
}

#overlay wrap {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    opacity:0;
    animation: fadeIn 1s ease forwards;
}

#overlay wrap .wp-block-swiper {
    opacity: 0;
    filter: blur(15px);
    animation: fadeIn 1s ease 2s forwards, blurOut 1s ease 3s forwards;
}

#overlay wrap .wp-block-swiper.blur {
    opacity: 1;
    animation: blurIn 1s ease forwards;
}

#overlay wrap .wp-block-swiper.show {
    opacity: 1;
    animation: blurOut 1s ease forwards;
}


#overlay h1.post-title {
    position: fixed;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}


/*
 * Modal
 */

 #modal {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 80;
    display: flex;
    justify-content: center;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    align-items: center;
}

#modal.hide {
    animation: fadeOut 1s ease forwards;
}

#modal.show {
    pointer-events: all;
    animation: fadeIn 1s ease forwards;
}

#modal.show cover {
    position: fixed;
    inset: 0;
    width: 100%;
    height:100%;
}

#modal wrap {
    background-color: rgba(240, 240, 240, 0.66);
    backdrop-filter: blur(15px);
    min-width:600px;
    max-width: 33.33%;
    max-height:calc(100% - 240px);
    border-radius: 8px;
    padding:40px;
    box-sizing: border-box;
    z-index:5;
    overflow: scroll;
}


/*
 * Swiper
 */

 #overlay .swiper {
    height: 100%;
    margin: 0 auto;
    width: inherit;
    overflow: hidden;
    box-sizing: border-box;
    background-color: white;
}

.swiper figure img {
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding:120px;
    max-height: 100%;
    max-width: 100%;
}

.swiper figure figcaption {
    position: absolute;
    bottom: 0;
    color: #888888;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin:0;
}

.swiper figure.swiper-slide-active figcaption {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/*
 * Footer
 */


footer {
    position: fixed;
    bottom:40px;
    left:50%;
    transform: translateX(-50%);
    z-index:50;
}

.footer-container {
    display: flex;
}

.footer-container li {
    margin: 0 5px;
}

@media (max-width: 750px){

    h1, h2, h3, h4, h5, h6, p, ul, figcaption, .wp-block-button .wp-block-button__link {
        font-size: 10px;
    }
    
    h1, h2 {
        font-size: 15px;
    }

    p, h3 {
        font-size: 12px;
        letter-spacing: 0.033rem;
        margin-bottom: calc(15px * 1.33);
    }

    h3 {
        margin-bottom: calc((15px* 1.33)* 2);
    }

    ul.post-list li {
        font-size: 12px;
        margin-bottom: 6px;
    }

    container.post-info li, container.page li {
        font-size: 12px;
    }

    /*
    * Nav
    */

    nav {
        top:20px;
        transform: translateX(-25%);
    }

    nav #menu-header-menu li {
        margin: 0 3px;
    }

    /*
    * Logo
    */

    logo.animate-start .logo-top {
        right: calc(50% - 0.9px);
        top: calc(50% - 1px);
    }

    logo.animate-start .logo-center {
        left: calc(50% - (86px / 2));
        top: calc(50% - (24px / 2));
    }

    logo.animate-start .logo-bottom {
        left: calc(50% - 0.7px);
        bottom: calc(50% - 0.6px);
    }

    logo.animate-middle .logo-top {
        right: calc(50% - (86px / 2));
        top: calc(50% - 24px);
    }

    logo.animate-middle .logo-center {
        left: calc(50% - (86px / 2));
        top: calc(50% - (24px / 2));
        transition: inset 1s ease, opacity 1s ease 1s;
    }

    logo.animate-middle .logo-bottom {
        left: calc(50% - (86px / 2));
        bottom: calc(50% - 24px);
    }

    logo.animate-end .logo-top {
        right: 20px;
        top: 20px;
    }

    logo.animate-end .logo-center {
        left: 20px;
        top: 20px;
    }

    logo.animate-end .logo-bottom {
        left: 20px;
        bottom:20px;
    }

    logo svg {
        width: 86px;
    }

    /*
    * Buttons
    */

    .wp-block-button  .wp-block-button__link {
        border-radius: 5px;
        padding: 7px 9px 7px;
    }

    /*
    * Main
    */

    #main wrap {
        padding: 20px;
        justify-content: flex-start;
    }

    #main wrap a {
        margin: 40px 0;
    }

    #main wrap a.landscape:has(.home-l), #main wrap a.square:has(.home-l) {
        width: 100%;
    }
    
    #main wrap a.landscape:has(.home-m), #main wrap a.square:has(.home-l) {
        width: 83.33%;
    }
    
    #main wrap a.landscape:has(.home-s), #main wrap a.square:has(.home-s) {
        width: 83.33%;
    }
    
    #main wrap a.portrait:has(.home-l) {
        width: 83.33%;
    }
    
    #main wrap a.portrait:has(.home-m) {
        width: 66.66%;
    }
    
    #main wrap a.portrait:has(.home-s) {
        width: 66.66%;
    }
    
    #main wrap a:nth-of-type(odd)  {
        margin-bottom: 40px;
        margin-left:auto;
        
    }


    /*
    * Overlay
    */

    #overlay h1.post-title {
        position: fixed;
        top:50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }


    /*
    * Modal
    */

    #modal wrap {
        min-width:calc(100% - 40px);
        max-width: calc(100% - 40px);
        border-radius: 5px;
        padding:20px;
        max-height: calc(100% - 120px);
    }

    /*
    * Swiper
    */

    .swiper figure img {
        padding:20px;
    }

    /*
    * Footer
    */


    footer {
        bottom:20px;
    }

    .footer-container li {
        margin: 0 3px;
    }
}


    