﻿body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #000;
    font-family: 'Zincel', sans-serif;
    background-color: #fff;
    font-size: 0.85em;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    text-transform: lowercase;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

html {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
}

body::-webkit-scrollbar {
    display: none;
}

::selection {
    background-color: #919191;
    color: #fff;
    opacity: 0.3;
}

  @font-face {
            font-family: 'Zincel';
            src: url('./fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }
       
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0.5em 0.5em 0.5em;
    box-sizing: border-box;
    width: 100%;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 100;
}

.filter-toggle {
    display: none;
}

.filter-options {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-between;
}

.filter-menu {
    display: flex;
    justify-content: space-between;
    width: 50%;
}

.filter-menu button {
    font-family: 'Zincel', sans-serif;
    cursor: pointer;
    font-size: 1em;
    color: #919191;
    background-color: transparent;
    border: none;
}

.filter-menu button:hover {
    color: #000;
}

.filter-menu button.active {
    color: #000;
}

.home-button {
    font-family: 'Zincel', sans-serif;
    cursor: pointer;
    font-size: 1em;
    color: #000000;
    background-color: transparent;
    border: none;
}

.home-button:hover {
    color: #919191;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1em;
}

.invert-button {
    font-family: 'Zincel', sans-serif;
    cursor: pointer;
    font-size: 1em;
    color: #000000;
    background-color: transparent;
    border: none;
}

.invert-button:hover {
    color: #919191;
}

html.inverted {
    background-color: #000;
}

body.inverted {
    background-color: #000;
    color: #fff;
}

body.inverted .filter-menu button {
    color: #666;
}

body.inverted .filter-menu button:hover,
body.inverted .filter-menu button.active {
    color: #fff;
}

body.inverted .home-button,
body.inverted .invert-button {
    color: #fff;
}

body.inverted .home-button:hover,
body.inverted .invert-button:hover {
    color: #666;
}

body.inverted .project-row {
    border-bottom-color: #444;
}

body.inverted .project-row.expanded {
    background-color: #000;
}

body.inverted .project-row:not(.deactivated) .project-summary:hover {
    background-color: #111;
}

body.inverted .projects-footer {
    background-color: #000;
}

body.inverted .projects-header {
    background-color: #000;
}

.project-list-container {
    padding-left: 1em;
    padding-right: 1em;
    flex-grow: 1;
}

.project-row {
    border-bottom: 1px solid #ccc;
    position: relative;
}

.project-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.7em 0;
    cursor: pointer;
}

.expandable-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.project-row.expanded {
    background-color: #ffffff;
}



.project-row.deactivated {
    color: #919191;
    cursor: default;
}

.project-row:not(.deactivated) .project-summary:hover {
    background-color: #f7f7f7; 
}

.extra-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 1em 0 0;
    position: sticky;
    top: 0;
    align-self: stretch;
}

.extra-info p:first-child {
    margin-top: 0;
}

.caption-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.caption-details div:nth-child(2) {
    text-align: right;
}

.project-gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5em;
}


.project-gallery {
    padding-bottom: 1em;
    max-height: 80vh;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.project-gallery::-webkit-scrollbar {
    display: none;
}

/* ---- Rotating cross loader ---- */
@keyframes loader-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    font-family: 'Zincel', sans-serif;
    font-size: 3em;
    color: white;
    mix-blend-mode: difference;
    animation: loader-spin 1s linear infinite;
}

/* ---- Video gallery item ---- */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 0.5em;
    overflow: hidden;
}

.vimeo-target {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* SDK injects a responsive div > iframe; force both to fill the wrapper */
.vimeo-target > div,
.vimeo-target iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 0.7em;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
    box-sizing: border-box;
}

.video-wrapper:hover .video-controls {
    opacity: 1;
}

.vc-play,
.vc-mute,
.vc-expand {
    font-family: 'Zincel', sans-serif;
    font-size: 0.8em;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    text-transform: lowercase;
    transition: color 0.15s;
}

.vc-play:hover,
.vc-mute:hover,
.vc-expand:hover {
    color: #aaa;
}

.vc-time {
    font-family: 'Zincel', sans-serif;
    font-size: 0.8em;
    color: #ccc;
    flex-shrink: 0;
    white-space: nowrap;
}

.vc-progress {
    flex: 1;
    min-width: 0;
    height: 2px;
    cursor: pointer;
    accent-color: #fff;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    appearance: none;
    -webkit-appearance: none;
}

.vc-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.vc-volume {
    width: 4em;
    height: 2px;
    cursor: pointer;
    accent-color: #fff;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.vc-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

/* ---- Fullscreen video modal ---- */
.video-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.video-modal-loader {
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Zincel', sans-serif;
    font-size: 4.5em;
    color: white;
    mix-blend-mode: difference;
    animation: loader-spin 1s linear infinite;
    pointer-events: none;
}

.video-modal-overlay.active .video-modal-loader {
    display: flex;
}

.video-modal-overlay.active .video-modal-inner.ready ~ .video-modal-loader {
    display: none;
}

.video-modal-inner {
    width: 80vw;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.video-modal-overlay.active .video-modal-inner.ready {
    opacity: 1;
    transform: scale(1);
}

.video-modal-overlay.closing .video-modal-inner {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-modal-target {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-modal-target > div,
.video-modal-target iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.video-modal-inner .video-controls {
    position: static;
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    padding: 0.6em 0.8em;
}

.video-modal-close {
    position: fixed;
    top: 1.2em;
    right: 1.2em;
    font-family: 'Zincel', sans-serif;
    font-size: 1.2em;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    padding: 0.2em 0.4em;
    line-height: 1;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: #aaa;
}

.project-col:nth-child(4) {
    text-align: right;
}

.hover-image-container {
    position: fixed;
    bottom: 3em;
    right: 1em;
    width: 25vw; /* One column width */
    z-index: 1003;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hover-image-container.visible {
    opacity: 1;
    visibility: visible;
}

.hover-image-container img {
    width: 100%;
    height: auto;
}

.menu-toggle {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;  
    font-size: 2em;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
    color: white;
    transition: transform 0.3s ease;
    mix-blend-mode: difference;
    background-color: transparent;
    border: none;
}

.menu-toggle.active {
    transform: translate(-50%, -50%) rotate(90deg);
}
.text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    padding: 0.8em;
    line-height: 0.7em;
    box-sizing: border-box;
    font-size: 0.3em;
    mix-blend-mode: difference;
    color: white;
}

.text-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2em;
}

.text-column p {
    font-size: 0.6em;
    line-height: 1.5;
    margin: 0;
}

.projects-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    padding: 0.7em 1em;
    box-sizing: border-box;
    width: 100%;
    background-color: #fff;
    color: #919191;
}

.footer-col a {
    color: #868686;
    text-decoration: none;
}

.footer-col a:hover {
    color: #919191;
}

.footer-col:nth-child(2) {
    text-align: center;
}

.footer-col:last-child {
    text-align: right;
}
.footer-col:last-child:hover {
    color: #919191;
}

@media (max-width: 768px) {
    .filter-menu {
        position: relative;
        width: auto;
    }

    .filter-toggle {
        display: block;
        font-family: 'Zincel', sans-serif;
        font-size: 1em;
        color: #000;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        text-transform: lowercase;
    }

    body.inverted .filter-toggle {
        color: #fff;
    }

    .filter-options {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        z-index: 200;
        padding: 0 0;
        min-width: 8em;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    }

    .filter-options.open {
        max-height: 12em;
        opacity: 1;
        pointer-events: auto;
        padding: 0.4em 0;
    }

    body.inverted .filter-options {
        background-color: #000;
    }

    .filter-options button {
        text-align: left;
        padding: 0.4em 0;
    }

 .project-summary, .projects-footer, .project-col.project-col:nth-child(2) {
        text-align: left;
    }

.project-col.project-col:nth-child(3) {
        text-align: right; /* Make the first column span all columns */
    }

    .project-summary {
        grid-template-columns: 1fr 1fr; /* Adjust to 2 columns */
    }

    .project-col:nth-child(2),
    .project-col:nth-child(4) {
        display: none;
    }

    .project-row {
        gap: 5px;
    }

    .project-col::before {
        content: none; /* Remove data-label prefixes */
    }

    .expandable-content {
        grid-template-columns: 1fr;
    }

    .extra-info {
        position: static; /* Remove sticky behavior on mobile */
    }

    .project-gallery {
        max-height: none;
        overflow-y: visible;
        padding-bottom: 1em;
    }

    .hover-image-container {
        display: none; /* Hide hover image on mobile */
    }

    /* Override to show footer on p-index.html responsive */
    body .projects-footer {
        display: grid !important;
        grid-template-columns: 1fr;
        line-height: 1.4em;
        text-align: center;
    }
    .footer-col.footer-col:nth-child(2), .footer-col.footer-col:nth-child(1) {
        display: none; 
    }
    .footer-col.footer-col:nth-child(3) {
        text-align: center;
    }
}



#email-container {
    position: relative;
    cursor: pointer;
}

#copy-popup {
    position: absolute;
    bottom: 125%; /* Position it above the footer text */
    right: 0;
    background-color: #000;
    color: #fff;
    padding: 0.5em 1em;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    z-index: 101;
}

#copy-popup.show {
    opacity: 1;
    visibility: visible;
}




