/*
Theme Name: film-portfolio
Text Domain: film-portfolio
Version: 1
Description: bla
Tags: bla
Author: Maximilian Botta
*/

:root {
    --background: rgb(5, 5, 5);
}

html body {
    background-color: var(--background);
    cursor: crosshair;
    /* font-family: 'Noto Sans', sans-serif; */
    font-family: 'Montserrat', sans-serif;
    transition: 0.5s;
    font-size: 14px;
}


img {
    filter: brightness(0.6);
}

p {
    font-size: 14px;
}

a{
    color: rgb(200, 200, 200) !important;
    text-decoration: none;
    cursor: pointer;
}

a, a:hover, a:active, .a:visited, a:focus {
    text-decoration: none !important;
}

a:hover {
    color: white !important;
}

.active {
    color: rgb(255, 255, 255) !important;
    text-decoration: none;
}

/* .contact {
    position: absolute;
    left: 100vw;
    top: 0px;
    width: 400px;
    height: 100vh;
    border-left: 1px solid white;
} */

nav {
    position: relative !important;
    z-index: 10;
    top: 0px;
    width: 100%;
    height: 80px;
    color: white;
    background-color: var(--background);
}

.nav-wrapper {
    width: 100%;
}

.nav-container {
    width: 100%;
    justify-content: space-between;
    display: flex;
    align-items: center;
    /* flex-direction: row; */
    height: 80px;
}


.nav-item {
    /* flex-grow: 1;
    flex-basis: 0; */
    /* width: 33.33%; */
    /* flex-direction: row; */
    display: flex;
    gap: 80px;
    width: auto;
}

.nav-container .categories {
    display: flex;
    gap: 20px;
}


nav .logo {
    color: rgb(200,200,200);
}

nav .logo .name {
    color: white;
    font-weight: 700;
}

.content {
    /* padding: 0px 80px !important; */
    padding-top: 0px !important;
    position: relative;
}

.menu {
    display: flex;
    gap: 40px;
    color: rgb(180, 180, 180) !important;
}
.menu a:hover {
    cursor: pointer;
    color: rgb(255, 255, 255) !important;
}

/* .contact {
    display: flex;
    justify-content: right;
    padding: 40px 0px;
    height: auto;
} */

nav .category {
    display: flex;
    justify-content: right;
    padding: 0px;
    height: auto;
    max-height: 0px;
    overflow: hidden;
    transition: 0.5s;
    min-width: 100%;
    padding: 0px 0px;
    /* padding-top: 60px; */
    background: var(--background);
}

.project-wrapper {
    /* animation: var(--time) move-in ease-in-out; */
    margin-bottom: 20px;
}

.project {
    width: 100%;
    padding-top: 42.85%; /* 16:9 */
    position: relative; /* If you want text inside of it */
    /* background-color: black; */
    overflow: hidden;
}


.project .buttons {
    position: absolute;
    width: calc(100% - 40px);
    bottom: 20px;
    left: 20px;
    color: white;
    z-index: 4;
    opacity: 0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}
.project .button {
    cursor: pointer;
    color: rgb(180, 180, 180);
    transition: 0.5s;
}
.project .button:hover {
    color: rgb(255, 255, 255);
}
.project .button.play {
    font-size: 24px;
}

.project:hover .title{
    opacity: 1;
    transition: 1s;
}
.project:hover .buttons {
    opacity: 1;
    transition: 1s;
}
.project:hover .wp-block-group.info {
    opacity: 1;
    transition: 1s;
}

.project .title {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 4;
    opacity: 0;
}

.project .featured-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 3;
    overflow: hidden;
}
.project .featured-image img {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* FORMAT VIDEOS */
figure.is-type-video .wp-block-embed__wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 0;
    opacity: 0;
    background-color: black;
}
.is-type-video .wp-block-embed__wrapper iframe{
    width: 100%;
    height: 100%;
}

/* FORMAT INFO */
.wp-block-group.info {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: white;
    z-index: 4;
    opacity: 0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

/* FORMAT IMAGES */
.wp-block-gallery {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.wp-block-gallery .wp-block-image {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* background-color: black; */
    margin: 0px;
    opacity: 0;
    transition: 0.5s;
}

.wp-block-gallery .wp-block-image.show {
    opacity: 1;
}

.wp-block-gallery .wp-block-image img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer {
    background: var(--background);
    z-index: 100;
}

.footer-inner {
    color: rgb(180, 180, 180);
    padding: 20px 0px;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

@keyframes move-in {
    0% {
        transform: translateY(2000px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes move-out {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(2000px);
    }
}

/* Medium devices and smaller (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    .categories {
        display: none !important;
    }

    .nav-item {
        gap: 20px;
    }

    .footer-inner {
        display: block;
        text-align: left;
    }

    .project .buttons {
        opacity: 1;
        bottom: 10px;
    }

    .project .button {
        color: rgb(255, 255, 255);
        font-size: 14px;
    }
    
    .project .title {
        top: 10px;
        opacity: 1;
    }
    
    /* FORMAT VIDEOS */
    figure.is-type-video .wp-block-embed__wrapper {
        opacity: 1;
    }
    
    /* FORMAT INFO */
    .wp-block-group.info {
        opacity: 0;
        transform: translateY(-40px);
    }

    .wp-block-gallery .wp-block-image {
        opacity: 0;
    }
}
