@import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800);
@import url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic);
@import url(https://fonts.googleapis.com/css?family=Open+Sans&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic);
@import url(https://fonts.googleapis.com/css?family=Bad+Script);


@import url("colors/color-gold.css");

/* #Font-Face
================================================== */

@font-face {
    font-family: 'OpenSans-Light-webfont';
    src: url('font/OpenSans-Light-webfont.eot');
    src: url('font/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
        url('font/OpenSans-Light-webfont.woff') format('woff'),
        url('font/OpenSans-Light-webfont.ttf') format('truetype'),
        url('font/OpenSans-Light-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sifonn-Basic';
    src: url('font/Sifonn-Basic.eot');
    src: url('font/Sifonn-Basic.eot?#iefix') format('embedded-opentype'),
        url('font/Sifonn-Basic.woff') format('woff'),
        url('font/Sifonn-Basic.ttf') format('truetype'),
        url('font/Sifonn-Basic.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NexaBold';
    src: url('font/NexaBold.eot');
    src: url('font/NexaBold.eot?#iefix') format('embedded-opentype'),
        url('font/NexaBold.woff') format('woff'),
        url('font/NexaBold.ttf') format('truetype'),
        url('font/NexaBold.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'ABSTER';
    src: url('font/NexaBold.otf');
    font-weight: normal;
    font-style: normal;
}

/* ──────────── CSS ──────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    z-index: 1000;
    padding: 20px 0;
}

.site-header__inner {
    /* max-width: 1200px; */
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
}

.site-header__logo img {
    width: 200px;
}

/* Nav */
.site-header__nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    position: relative;
    margin-right: 2rem;
}

.nav-item>a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Sub-menu (on hover) */
.subnav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    padding: 1rem 0;
}

.nav-item:hover .subnav-menu {
    display: block;
}

.site-header__logo {
    display: block;
}

.site-header__logo-wrapper {
    position: relative;
}

.logo-dropdown {
    position: relative;
    top: 20px;
    display: none;
}

.site-header__logo-wrapper:hover .logo-dropdown {
    display: block;
}

.logo-dropdown li {
    margin-bottom: 12px;
}

.logo-dropdown li a {
    display: flex;
    font-size: 20px;
    opacity: 0.7;
}

.logo-dropdown li a:hover {
    color: #fff;
    opacity: 1;
}

.logo-dropdown li a svg {
    width: 18px;
    margin-right: 15px;
}

/* Mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
}

/* wrapper to position dropdown relative to nav */
.more-dropdown-wrapper {
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* 2) Take the menu out of the flow */
.more-dropdown {
    display: flex;
    /* hidden by default */
    flex-direction: row;
    /* stack vertically */
    list-style: none;
    padding: 0.5rem 0;
    white-space: nowrap;
    z-index: 1000;
    visibility: hidden;
    padding: 0;
}

/* style the button to look like just an icon */
.more-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    /* cursor: pointer; */
    color: #fff;
    font-size: 1.5rem;
    /* adjust if needed */
    line-height: 1;
    padding: 0;
}

.more-toggle svg {
    width: 24px;
}

.more-toggle.minus {
    display: none;
}

.more-dropdown-wrapper:hover .more-dropdown {
    visibility: visible;
}

.more-dropdown-wrapper:hover .more-toggle.plus {
    display: none;
}

.more-dropdown-wrapper:hover .more-toggle.minus {
    display: inline-block;
}

/* dropdown links */
.more-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* hover state on links */
.more-dropdown li a:hover {
    /* background: #333; */
    opacity: 0.8;
}

#about {
    text-align: center;
}

#about p {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact-content * {
    color: #fff;
    font-weight: normal;
    margin-bottom: 20px;
    font-size: 15px;
}


.projects-wrapper {
    position: relative;
    width: 100%;
    height: calc(100vh - 105px);
    position: relative;
    overflow: hidden;
    position: absolute;
    top: 105px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    cursor: url('../images/icons/cursor.svg') 0 0, auto;
}

.projects-wrapper:active {
    cursor: url('../images/icons/cursor.svg') 0 0, auto;
}

.VerticalGenerativeGrid {
    position: relative;
}

.VerticalGenerativeGrid li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.GenerativeGridItem {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.GenerativeGridItem_container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    z-index: 1;
}

.GenerativeGridProjectThumbnail {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: url('../images/icons/cursor.svg') 0 0, auto;
}

.GenerativeGridProjectThumbnail_label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 0.4rem 0.8rem;
    font-size: 2rem;
    line-height: 1.2;
    display: none;
    color: #fff;
}

.GenerativeGridItem_container:hover .GenerativeGridProjectThumbnail_label {
    display: block;
}

.Thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.VideoContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ImageContainer_image,
.ImageContainer_placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.VideoContainer {
    /* opacity: 0;
    visibility: hidden; */
    transition: opacity 0.3s ease;
}

.VideoContainer.loaded {
    opacity: 1;
    visibility: visible;
}

.VideoContainer_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.GenerativeGridItem_container:hover {
    z-index: 10;
}

.project-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    /* grid-auto-rows: 130px; */
    gap: 20px;
    padding: 50px 0;
}

.project-box-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.project-box-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.image-modal.open {
    visibility: visible;
    opacity: 1;
}

.image-modal__content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.image-modal.open .image-modal__content {
    transform: scale(1);
}

.image-modal__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.image-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
}

.image-modal__nav svg {
    width: 27px;
}

.image-modal__prev {
    left: 2rem;
}

.image-modal__next {
    right: 2rem;
}

.image-modal__nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.reels-wrapper {
    position: relative;
    width: 100%;
    /* margin-top: 150px; */
    overflow: hidden;
}

.reels-grid {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
    max-width: 1250px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
    grid-auto-rows: 450px;
    gap: 0.5rem;
    justify-content: center;
    max-width: 2000px;
    width: 100%;
    min-height: calc(100vh);
    place-content: center;
}


.reels-grid-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reels-grid-item-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
}

.reels-grid-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.reels-grid-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 0.4rem 0.8rem;
    font-size: 1.9rem;
    line-height: 1.2;
    display: none;
    color: #fff;
}

.reels-grid-item-container:hover .reels-grid-label {
    display: block;
}

.reels-grid-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reels-grid-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.reels-grid-video-container.loaded {
    opacity: 1;
    visibility: visible;
}

.reels-grid-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reels-grid-item-container:hover .reels-grid-video-container {
    opacity: 1;
    visibility: visible;
}

.play-cursor {
    cursor: pointer;
}

.reels-wrapper .container {
    display: flex;
    justify-content: center;
}

.reels-grid-item-container:hover {
    z-index: 10;
}

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    aspect-ratio: 16/9;
    max-width: 1200px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
}

.video-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 3rem;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    display: flex;
}

.video-modal-prev {
    left: 0.5rem;
}

.video-modal-next {
    right: 0.5rem;
}

@media screen and (max-width: 1820px) {

    .reels-grid {
        grid-template-columns: repeat(auto-fit, minmax(470px, 1fr));
        grid-auto-rows: 420px;
        max-width: 1700px;
    }

}

@media screen and (max-width: 1520px) {

    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        grid-auto-rows: 350px;
        justify-content: center;
        max-width: 100%;
        gap: 0;
    }

}

@media screen and (max-width: 1280px) {

    .reels-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-auto-rows: 270px;
    }

}


@media screen and (max-width: 990px) {

    .reels-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }

}

@media (max-width: 768px) {
    .site-header__nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* .site-header__logo img {
        width: 200px;
    } */

    .site-header__nav {
        display: block;
    }

    .more-dropdown {
        padding: 0;
        position: absolute;
        right: 0;
    }

    .nav-item {
        margin-right: 1rem;
    }

    .nav-item:last-child {
        margin-right: 2rem;
    }

    .VerticalGenerativeGrid {
        margin: 0;
        padding: 0;
    }

    .GenerativeGridItem:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .video-modal-content {
        width: 95vw;
        max-width: none;
        aspect-ratio: auto;
        height: 60vh;
        border-radius: 0;
    }

    .video-modal-player {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-modal-nav,
    .video-modal-close {
        font-size: 1.5rem;
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
    }
}