:root {
    --bg: #3a3a3c;
    --ink: #171719;
    --light: #f4f4f2;
    --white: #fff;
    --orange: #fec616;
    --line: rgba(255, 255, 255, 0.18);
    --dark-line: rgba(23, 23, 25, 0.14);
}


/* HERO */

.portfolio-hero {
    min-height: 86vh;
    min-height: 86svh;
    background: var(--bg);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(20, 20, 21, 0.86) 0%, rgba(20, 20, 21, 0.62) 52%, rgba(20, 20, 21, 0.42) 100%), linear-gradient( 180deg, rgba(20, 20, 21, 0.25) 0%, rgba(20, 20, 21, 0.72) 100%), url("https://images.unsplash.com/photo-1556761175-b413da4baf72?w=2400&q=90") center/cover no-repeat;
    transform: scale(1.02);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image: linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 25vw 25vw;
}

.hero-orbit {
    position: absolute;
    width: min(62vw, 850px);
    aspect-ratio: 1;
    right: -8vw;
    top: 8vh;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.hero-orbit:before,
.hero-orbit:after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    inset: 10%;
}

.hero-orbit:after {
    inset: 22%;
}

.hero-content {
    width: min(1450px, 100%);
    margin: 0 auto;
    padding: 0 4vw 6vw;
    position: relative;
    z-index: 2;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    margin: 0;
    max-width: 1250px;
    font-size: clamp(3.2rem, 8.7vw, 10rem);
    line-height: 0.86;
    letter-spacing: -0.07em;
    font-weight: 900;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.hero-title span {
    color: var(--orange);
}

.hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 4rem;
    align-items: end;
    margin-top: 3.2rem;
}

.hero-description {
    max-width: 600px;
    margin: 0;
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
}

.hero-count {
    justify-self: end;
    text-align: right;
}

.hero-count strong {
    display: block;
    color: var(--orange);
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.hero-count small {
    display: block;
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* CATEGORY INDEX */

.category-index {
    background: var(--orange);
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
}

.index-label {
    padding: 1.25rem 4vw;
    border-right: 1px solid rgba(23, 23, 25, 0.25);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-index-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    max-width: 1450px;
    margin: 0 auto;
}

.index-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.index-links::-webkit-scrollbar {
    display: none;
}

.index-links a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.index-links a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 1rem 1.2rem;
    border-right: 1px solid rgba(23, 23, 25, 0.2);
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.25s ease, color 0.25s ease;
}

.index-links a:hover {
    background: var(--ink);
    color: var(--orange);
}

.portfolio-section {
    position: relative;
    background: #cfcfcf;
    color: var(--ink);
    padding: 7rem 4vw 7.5rem;
    border-bottom: 1px solid var(--dark-line);
    scroll-margin-top: 20px;
    overflow: hidden;
}

.portfolio-section:nth-of-type(even) {
    background: #fff;
}


/* BRANDING — full photographic background + two-row client logo rail */

.branding-section {
    color: #fff;
    isolation: isolate;
    /* background: var(--bg); */
}

h2.section-heading.reveal.is-visible {
    color: rgb(23, 23, 25);
}

.branding-section .branding-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-top {
    position: relative;
    z-index: 2;
    max-width: 1450px;
    margin: 0 auto 3rem;
}

.section-heading-wrap {
    display: grid;
    /* grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr); */
    /* align-items: end; */
    gap: 1rem;
}

.section-heading {
    margin: 0;
    max-width: 100%;
    font-size: clamp(3.1rem, 7.4vw, 8.2rem);
    line-height: 0.86;
    font-weight: 900;
    letter-spacing: -0.065em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: normal;
}

.section-intro {
    max-width: 420px;
    /* margin: 0 0 0.35rem auto; */
    color: #656565;
    font-size: 0.76rem;
    line-height: 1.7;
    /* text-align: left; */
}

.branding-section .section-intro {
    color: #171719;
}


/* REAL SLIDERS — no native horizontal scrollbar */

.media-slider {
    position: relative;
    z-index: 2;
    max-width: 1450px;
    margin: 0 auto;
    overflow: hidden;
}

.media-track {
    display: flex;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.65s cubic-bezier(0.22, 0.9, 0.34, 1);
    will-change: transform;
}

.media-track>* {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}

.branding-section .media-slider {
    overflow: hidden;
}

.branding-section .media-track {
    width: 100%;
}

.branding-section .branding-logo-slide {
    box-sizing: border-box;
}


/* Branding: 2 rows × 5 logos per slide */

.branding-section .media-track {
    display: flex;
    gap: 0;
}

.branding-logo-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    height: 392px;
}

.client-logo-tile {
    min-width: 0;
    min-height: 0;
    padding: 2rem 1.5rem;
    background: rgba(20, 20, 21, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.client-logo-tile:hover {
    background: rgba(254, 198, 22, 0.9);
    border-color: var(--orange);
    transform: translateY(-3px);
}

.client-logo-tile img {
    width: min(100%, 190px);
    max-height: 88px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.client-logo-tile:hover img {
    transform: scale(1.05);
    opacity: 1;
}


/* EDITORIAL TWO-ROW WORK SLIDER */

.media-work-track {
    display: flex;
    gap: 0;
}

.media-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.media-tile {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #222;
}

.media-tile.media-feature {
    grid-row: 1 / span 2;
}

.media-tile.media-support {
    grid-row: auto;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.22, 0.9, 0.34, 1);
}

.media-tile:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.86) 100%);
    opacity: 0.58;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.media-tile:hover .work-image {
    transform: scale(1.045);
}

.media-tile:hover:after {
    opacity: 0.86;
}

.work-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #111;
}

.work-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 2;
}

.video-badge {
    position: absolute;
    z-index: 4;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(20, 20, 21, 0.48);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.work-info {
    position: absolute;
    z-index: 3;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    transform: translateY(8px);
    opacity: 0.92;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.media-tile:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

.work-title {
    margin: 0;
    font-size: clamp(1rem, 1.55vw, 1.55rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.work-type {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.work-arrow {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 1rem;
}

.slider-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(23, 23, 25, 0.25);
    background: transparent;
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.slider-btn:hover {
    background: var(--ink);
    color: var(--orange);
    border-color: var(--ink);
}

.branding-section .slider-btn {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.branding-section .slider-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--ink);
}


/* FOOTER */

.site-footer {
    padding: 0;
}

.footer-inner {
    max-width: 1450px;
    margin: 0 auto;
}

.footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--line);
}

.footer-contact-intro {
    max-width: 360px;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    line-height: 1.65;
}

.footer-contact-items {
    border-top: 1px solid var(--line);
}

.footer-contact-item {
    min-height: 58px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 18px;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, padding 0.25s ease;
}

a.footer-contact-item:hover {
    color: var(--orange);
    padding-left: 6px;
}

.contact-type {
    font-size: 0.56rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-value {
    font-size: 0.74rem;
    font-weight: 600;
}

.contact-arrow {
    font-size: 0.9rem;
    text-align: right;
}

.footer-nav-row {
    min-height: 100px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.footer-brand {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a,
.footer-work-link {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-work-link:hover {
    color: var(--orange);
}

.footer-work-link {
    justify-self: end;
}

.footer-work-link span {
    color: var(--orange);
    margin-left: 0.35rem;
}

.footer-bottom-row {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* REVEALS */

.reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.8s cubic-bezier(0.22, 0.9, 0.34, 1), transform 0.8s cubic-bezier(0.22, 0.9, 0.34, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay1 {
    transition-delay: 0.08s;
}

.delay2 {
    transition-delay: 0.16s;
}

.delay3 {
    transition-delay: 0.24s;
}


/* PRELOADER */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preloader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 58, 60, 0.1);
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero-title {
        font-size: clamp(3.3rem, 9vw, 8rem);
    }
    .section-heading {
        font-size: clamp(3rem, 8vw, 6.5rem);
    }
    .section-heading-wrap {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }
    .section-intro {
        margin: 0;
        max-width: 620px;
    }
    .branding-logo-slide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: 360px;
    }
    .media-slide {
        height: 500px;
        grid-template-columns: minmax(0, 1.45fr) minmax(190px, 0.75fr) minmax( 190px, 0.75fr);
    }
}

@media (max-width: 900px) {
    .portfolio-hero {
        min-height: 78vh;
    }
    .hero-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-count {
        justify-self: start;
        text-align: left;
    }
    .category-index-inner {
        grid-template-columns: 1fr;
    }
    .index-label {
        border-right: 0;
        border-bottom: 1px solid rgba(23, 23, 25, 0.25);
        padding-bottom: 0.8rem;
    }
    .portfolio-section {
        padding-top: 6rem;
        padding-bottom: 6.25rem;
    }
    .section-top {
        margin-bottom: 2.35rem;
    }
    .branding-logo-slide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        height: 320px;
    }
    .media-slide {
        height: 440px;
        grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.75fr) minmax( 160px, 0.75fr);
    }
    .footer-contact {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-nav-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.6rem 0;
        align-items: start;
    }
    .footer-links {
        justify-content: flex-start;
    }
    .footer-work-link {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .chrome-controls {
        top: 0.75rem;
        left: 0.75rem;
    }
    .chrome-logo img {
        top: 0.75rem;
        right: 0.85rem;
    }
    .chrome-controls button {
        width: 38px;
        height: 38px;
    }
    .legal-links {
        left: 1rem;
        bottom: 1rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    .portfolio-hero {
        min-height: 82vh;
    }
    .hero-background {
        background: linear-gradient( 180deg, rgba(20, 20, 21, 0.48), rgba(20, 20, 21, 0.82)), url("https://images.unsplash.com/photo-1556761175-b413da4baf72?w=1800&q=88") center/cover no-repeat;
    }
    .hero-content {
        padding: 0 1.5rem 3rem;
    }
    .hero-meta {
        margin-bottom: 1.2rem;
        gap: 1rem;
        align-items: flex-start;
    }
    .hero-meta span:last-child {
        text-align: right;
    }
    .hero-title {
        max-width: 100%;
        font-size: clamp(3rem, 15vw, 6.3rem);
        line-height: 0.86;
    }
    .hero-description {
        font-size: 0.76rem;
    }
    .hero-count strong {
        font-size: 1.15rem;
    }
    .index-label {
        padding: 1rem 1.5rem;
    }
    .index-links {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .index-links::-webkit-scrollbar {
        display: none;
    }
    .index-links a {
        flex: 0 0 auto;
        padding: 0.85rem 0.8rem;
        font-size: 0.57rem;
    }
    .portfolio-section {
        padding: 4.5rem 1.25rem 5rem;
    }
    .section-top {
        margin-bottom: 2rem;
    }
    .section-heading {
        font-size: clamp(2.65rem, 13.5vw, 5.6rem);
        line-height: 0.88;
        letter-spacing: -0.06em;
    }
    .section-intro {
        font-size: 0.7rem;
        line-height: 1.65;
        max-width: 100%;
    }
    .branding-logo-slide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: 250px;
    }
    .client-logo-tile {
        padding: 0.75rem 0.5rem;
    }
    .client-logo-tile img {
        max-width: 120px;
        max-height: 52px;
    }
    .client-logo-tile {
        padding: 1rem;
    }
    .client-logo-tile img {
        max-width: 150px;
        max-height: 62px;
    }
    .media-slide {
        height: 560px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 3px;
    }
    .media-tile.media-feature {
        grid-column: 1 / span 2;
        grid-row: 1;
    }
    .media-tile.media-support {
        grid-row: 2;
    }
    .work-info {
        left: 0.9rem;
        right: 0.9rem;
        bottom: 0.85rem;
    }
    .work-title {
        font-size: 1rem;
    }
    .work-type {
        font-size: 0.5rem;
    }
    .video-badge {
        top: 0.75rem;
        left: 0.75rem;
        font-size: 0.5rem;
    }
    .video-play {
        width: 58px;
        height: 58px;
    }
    .slider-controls {
        justify-content: flex-start;
    }
    .slider-btn {
        width: 38px;
        height: 38px;
    }
    .site-footer {
        padding: 0;
    }
    .footer-heading {
        font-size: clamp(3.1rem, 14.5vw, 6rem);
    }
    .footer-contact-item {
        grid-template-columns: 62px minmax(0, 1fr) 18px;
        gap: 10px;
    }
    .footer-bottom-row {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 1rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

body {
    scroll-snap-type: none !important;
}

.panel {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}

.portfolio-hero {
    position: relative;
    width: 100%;
    height: 86vh;
    height: 91svh;
    min-height: 520px;
    overflow: hidden;
    background: #111;
}

.portfolio-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.work-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.work-local-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.work-media-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #111;
}

.work-video-preview {
    background: radial-gradient( circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.92)), #111;
}

.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(20, 20, 21, 0.45);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.media-play span {
    font-size: 1rem;
    margin-left: 3px;
}

.media-tile:hover .media-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--orange);
    border-color: var(--orange);
    color: var(--ink);
}

.work-document-preview {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(254, 198, 22, 0.12), rgba(0, 0, 0, 0.95)), #111;
}

.document-icon {
    width: 90px;
    height: 110px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.media-tile {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.media-tile:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.work-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.22, 0.9, 0.34, 1);
}

.media-tile:hover .work-image {
    transform: scale(1.045);
}

.work-media-preview {
    position: absolute;
    inset: 0;
    background: #111;
    display: grid;
    place-items: center;
}

.work-video-preview {
    background: radial-gradient( circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.95)), #111;
}

.media-play {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(20, 20, 21, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}

.media-play span {
    margin-left: 3px;
}

.media-tile:hover .media-play {
    transform: scale(1.1);
    background: var(--orange);
    color: var(--ink);
}

.work-document-preview {
    background: #111;
}

.document-icon {
    width: 80px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.media-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-media-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #111;
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-video-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.media-play span {
    margin-left: 3px;
    font-size: 1rem;
}

.media-tile:hover .media-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--orange);
    border-color: var(--orange);
    color: var(--ink);
}

.media-tile:hover .video-thumbnail {
    transform: scale(1.045);
}

.work-document-preview {
    display: grid;
    place-items: center;
    background: #111;
}

.document-icon {
    width: 80px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.media-tile {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.work-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: transform 0.8s cubic-bezier(0.22, 0.9, 0.34, 1);
}

.media-tile:hover .work-image {
    transform: scale(1.045);
}

.media-tile:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}

.gslide-description {
    display: none !important;
}

.gslide-title {
    display: none !important;
}

.gslide-desc {
    display: none !important;
}

.gslide-media {
    margin: 0 !important;
}


/* GLightbox */

.gslide-description,
.gslide-title,
.gslide-desc {
    display: none !important;
}

.gslide-media {
    margin: 0 !important;
}

.glightbox-container .gslide-image {
    max-width: calc(100vw - 120px) !important;
    max-height: calc(100vh - 100px) !important;
    margin: 0 auto !important;
}

.glightbox-container .gslide-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 120px) !important;
    max-height: calc(100vh - 100px) !important;
    object-fit: contain !important;
}

.glightbox-container .gslide-media {
    overflow: hidden !important;
}


/* Video popup */

.glightbox-container .gvideo,
.glightbox-container .gslide-video {
    width: min(90vw, 1200px) !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    margin: 0 auto !important;
}

.glightbox-container .gslide-video video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 80vh !important;
    object-fit: contain !important;
}

.glightbox-container .gslide iframe {
    width: min(90vw, 1200px) !important;
    height: min(80vh, 675px) !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    border: 0 !important;
}


/* Mobile */

@media (max-width: 768px) {
    .glightbox-container .gslide-image {
        max-width: calc(100vw - 80px) !important;
        max-height: calc(100vh - 60px) !important;
    }
    .glightbox-container .gslide-image img {
        max-width: calc(100vw - 80px) !important;
        max-height: calc(100vh - 60px) !important;
    }
    .glightbox-container .gvideo,
    .glightbox-container .gslide-video {
        width: 90vw !important;
        max-width: 90vw !important;
        max-height: 75vh !important;
    }
    .glightbox-container .gslide iframe {
        width: 90vw !important;
        height: 70vh !important;
        max-width: 90vw !important;
        max-height: 70vh !important;
    }
}

@media (max-width: 480px) {
    .glightbox-container .gslide-image {
        max-width: calc(100vw - 60px) !important;
        max-height: calc(100vh - 40px) !important;
    }
    .glightbox-container .gslide-image img {
        max-width: calc(100vw - 60px) !important;
        max-height: calc(100vh - 40px) !important;
    }
    .glightbox-container .gvideo,
    .glightbox-container .gslide-video {
        width: 88vw !important;
        max-width: 88vw !important;
        max-height: 70vh !important;
    }
}