/*
Theme Name: STUDIOV9 WORDPRESS
Author: Yannis Huber
Description: A simple template for studiov9.ch
Version: 2.0.0
Tags: 
*/

html,
body {
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0px;
    font-family: sukhumvit_setthin, sans-serif;
}

body.homepage {
    min-height: 200vh;
    grid-template-rows: auto auto;
    display: grid;
}

#content-area {
    position: relative;
    z-index: 5;
    background-color: white;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100%;
}

body.homepage #content-area {
    grid-row: 2;
    height: 100vh;
    min-height: 400px;
}

.main-content {
    width: 80%;
    max-width: 1100px;
    grid-row: 2;
    transition: .8s;
    z-index: 1;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    height: min-content;
}

body.homepage .main-content {
    grid-row: 2;
    opacity: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.wp-block-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

#title-bar {
    position: relative;
    top: 0;
    left: 0;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 80%;
    max-width: 1100px;
    z-index: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    font-family: sukhumvit_setthin, sans-serif;
}

body.homepage #title-bar {
    opacity: 0;
}

.mobile-nav-content a,
#title-bar a {
    text-decoration: none;
}

#title-bar a {
    color: black;
}

.mobile-nav-content a {
    font-size: 1.6em;
    font-weight: lighter;
}

#title {
    font-size: 3em;
    grid-column: 1;
    justify-self: left;
    align-self: center;
    font-family: sukhumvit_setthin, sans-serif;
}

#project-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
}

.project-item {
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sv9-menu-proj .current-menu-item {
    text-decoration: underline;
}

.sv9-menu-mobile-proj .sub-menu .current-menu-item {
    text-decoration: underline;
}

.sv9-menu-proj ul {
    margin: 0px;
    padding: 0px;
}

.project-item-image {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -ms-transition: opacity .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out;
    opacity: 0;
}

.project-item:hover>.project-item-image {
    -webkit-transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -ms-transition: opacity .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out;
    opacity: 0 !important;
}

.project-item:hover>span,
.project-item:active>span {
    -webkit-transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -ms-transition: opacity .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out;
    opacity: 1;
}

.project-item-title {
    -webkit-transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -ms-transition: opacity .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out;
    opacity: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    font-weight: bold;
    color: black;
    text-transform: uppercase;
}

.project-item-title:hover,
.project-item-title:active {
    color: black;
}

nav {
    grid-column: 2;
    justify-self: right;
    align-self: center;
}

.mobile-nav-btn {
    display: none!important;
}

.mobile-nav-content ul,
nav ul {
    list-style-type: none;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    padding-inline-start: 0;
}

nav li {
    display: inline-block;
    margin-left: 20px;
}

.mobile-nav-content li {
    margin-bottom: 50px;
}

.mobile-nav-content .sub-menu li {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    text-transform: none !important;
}

.entry-content div:hover,
.entry-content div:active {
    background-image: none!important;
}

footer {
    padding-top: 50px;
    margin: auto;
    width: 80%;
    max-width: 1100px;
    grid-row: 3;
    grid-column: 1;
    padding-bottom: 50px;
    font-family: sukhumvit_setthin, sans-serif;
    font-weight: lighter;
    font-size: 0.8em;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
}

#home-footer {
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
}

#instagram {
    margin-left: 8px;
}

#social {
    grid-row: 1 /span 2;
    justify-self: right;
    text-align: right;
}

#home-info {
    grid-row: 1;
    grid-column: 1;
    justify-self: left;
}

#home-footer a {
    text-decoration: none;
}

footer p {
    margin: 0;
}

.wp-block-file .wp-block-file__button {
    background: white!important;
    color: black!important;
}

.wp-block-file__button:hover {
    padding: 0;
    color: #555555;
}

#arrow {
    font-size: 1.5em;
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
}

#arrow:hover,
#arrow-down:hover {
    cursor: pointer;
}

footer .sv9 {
    font-weight: bold;
    margin-bottom: 15px;
}

#footer-biel {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 10px;
    justify-self: left;
    text-align: left;
}

#footer-vevey {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 10px;
    justify-self: left;
    text-align: left;
}

#copyright {
    grid-column: 1;
    grid-row: 3;
    justify-self: left;
    text-align: left;
}

#footer-biel,
#footer-vevey {
    display: block;
}

#legal {
    grid-row: 1;
    grid-column: 1;
    justify-self: left;
}

.mobile-nav-content {
    height: 100vh;
    position: fixed;
    padding: 0;
    margin: 0;
    top: 0;
    transition: 1s;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 10;
}

.mobile-nav-content .bg {
    background-color: #fff;
    height: 100%;
    width: 100%;
    margin-left: auto;
    text-align: center;
    display: grid;
    grid-auto-columns: auto;
}

.show {
    transition: .8s;
    right: 0 !important;
}

#social a {
    text-decoration: none;
}

#contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

#contact-content {
    display: inline-block;
    grid-column: 1;
    grid-row: 1;
}

#contact-image-container {
    grid-row: 1;
    grid-column: 2;
    display: grid;
    justify-items: right;
}

#contact-image {
    max-height: 100%;
    width: 100%;
    max-width: 500px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#home-title-archi {
    opacity: .6;
    font-family: sukhumvit_setthin, sans-serif;
}

#home-title-v9 {
    font-family: sukhumvit_setsemi_bold, sans-serif;
}

#home-title-studio {
    font-family: sukhumvit_setlight, sans-serif;
}

.menu-icon {
    font-size: 2em;
    text-align: right;
    color: black;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    justify-self: end;
}

.menu-icon#close {
    margin-top: 30px;
    margin-right: 30px;
    color: black !important;
}

.menu-icon:hover,
a:hover {
    color: #555555;
}

p:empty {
    height: 1em;
}

a {
    color: black;
}

.sv9-menu {
    text-transform: uppercase;
    position: relative;
    z-index: 3;
}

.sv9-menu-mobile-proj {
    text-transform: uppercase;
    position: relative;
    z-index: 3;
}

.sv9-menu-mobile-proj .sub-menu {
    position: relative;
    z-index: 3;
    font-size: .75em;
}

.slider-item {
    position: absolute;
    transition: opacity .5s ease-in;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

::-webkit-scrollbar {
    display: none;
}

#home-images {
    grid-row: 1;
    grid-column: 1;
    display: grid;
    position: fixed;
    width: 100%;
    height: 100vh;
}

#home-title {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    z-index: 5;
    color: white;
    font-size: 5em;
    justify-self: center;
    align-self: center;
}

#home-text {
    grid-row: 1;
    grid-column: 1;
    display: grid;
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 5;
    grid-template-rows: 1fr auto;
}

#arrow-down {
    width: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
    align-self: end;
    justify-self: center;
}

#overlay {
    grid-row: 1;
    grid-column: 1;
    width: 100%;
    height: 100vh;
    background-color: #2A2A2A;
    opacity: .2;
    position: relative;
    z-index: 4;
}

ion-icon {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}

.slider-item {
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#about-text {
    font-size: 4em;
    margin: 0;
    align-self: center;
    text-align: center;
}

#about-text p {
    margin: 0px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
        filter: hue-rotate(360deg)
    }
}

footer span.white {
    color: white !important;
}

footer span.white {
    position: relative;
    z-index: 3;
    font-size: 2em;
}

#title-bar li.menu-item-703 a,
#title-bar li.menu-item-703.white a,
li.menu-item-703 a {
    color: #D0232D !important;
}

#title-bar.homepage>#title {
    display: none;
}

#title-bar.homepage>nav {
    display: none;
}

#title-bar.homepage>.mobile-nav-btn {
    display: inline!important;
}

#menu-project-menu {
    font-size: 1.0em;
}

#adresses {
    display: grid;
    grid-row: 1;
}

.wp-block-image{
    margin: 0;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.8em;
}

@media only screen and (max-width: 1400px) {
    #project-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 1000px) {
    #title-bar {
        width: 95vw;
    }
    #about-text {
        font-size: 2em;
    }
    #home-title {
        font-size: 3em;
    }
    .main-content {
        width: 95vw;
    }
    #page-main {
        width: 95vw;
    }
    #project-container {
        width: 95vw;
    }
    footer {
        width: 95vw;
    }
    #contact {
        width: 95vw;
    }
    .project-item-title {
        font-size: 1.2em;
    }
}

@media only screen and (max-width: 800px) {
    #contact-content {
        text-align: center;
    }
    footer {
        grid-template-columns: 1fr auto;
        padding-bottom: 20px
    }
    #home-footer {
        grid-template-columns: auto 1fr;
    }
    #legal {
        grid-row: 4;
        grid-column: 2;
        justify-self: left;
        margin-left: 8px;
    }
    #social {
        grid-row: 4 !important;
        text-align: left;
        justify-self: left !important;
    }
    #contact {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: 100%;
    }
    #contact-content {
        display: inline-block;
        grid-column: 1;
        grid-row: 1;
    }
    #contact-image-container {
        grid-row: 2;
        grid-column: 1;
        display: grid;
    }
    #project-container {
        grid-template-columns: 1fr;
    }
    #contact-image {
        height: auto;
        max-height: none;
        width: 100%;
        max-width: 100%;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }
    nav {
        display: none;
    }
    .mobile-nav-btn {
        display: inline!important;
    }
    #copyright {
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 600px) {
    #title {
        font-size: 2em;
    }
    #about-text {
        font-size: 1.4em;
    }
    #home-title {
        font-size: 1.8em;
    }
}