/*
Theme Name: Afrim Spahiu
Theme URI: https://afrimspahiu.com
Author: Custom build
Description: Custom theme replicating the original Swiss-design photography/DOP portfolio for Afrim Spahiu.
Version: 1.0
Text Domain: afrim-spahiu
*/

        :root {
            --bg-color: #0c0c0c;
            --surface-color: #161616;
            --text-main: #f5f5f7;
            --text-muted: #8e8e93;
            --kodak-gold: #e5a93b;
            --border-color: #262626;
            --font-stack: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            --grid-gap: 2rem;
            --transition-speed: 0.4s;
        }

        /* --------------------------------------------------
           RESET & BASE STYLES
        -------------------------------------------------- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: var(--font-stack);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        a {
            color: inherit;
            text-decoration: none;
            cursor: pointer;
        }

        button {
            background: none;
            border: none;
            font-family: inherit;
            color: inherit;
            cursor: pointer;
        }

        img, video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
        }

        .grid-12 {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: var(--grid-gap);
        }

        h1, h2, h3 {
            font-weight: 700;
            letter-spacing: -0.03em;
            text-transform: uppercase;
        }

        .section-label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--kodak-gold);
            margin-bottom: 1.5rem;
            display: block;
            font-weight: 600;
        }

        .swiss-border {
            border-top: 1px solid var(--border-color);
            padding-top: 3rem;
            margin-top: 5rem;
        }

        /* --------------------------------------------------
           HEADER & NAVIGATION
        -------------------------------------------------- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background: rgba(12, 12, 12, 0.96);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
        }

        /* Some Chromium builds paint the page black in screenshots when a fixed,
           backdrop-filtered bar scrolls over content. Keep the blur only where
           the browser can do it cheaply. */
        @supports not (backdrop-filter: blur(10px)) {
            header { background: rgba(12, 12, 12, 0.98); }
        }

        .nav-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .nav-toggle { display: none; }

        .brand-logo {
            font-size: 1.1rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            text-transform: uppercase;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2.5rem;
            align-items: center;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 500;
            transition: color var(--transition-speed);
            padding: 1rem 0;
            display: inline-block;
        }

        .nav-link:hover {
            color: var(--kodak-gold);
        }

        /* Down-caret on menu items that have a submenu (class added by main.js). */
        .nav-link.has-sub { cursor: pointer; }
        .nav-link.has-sub::after {
            content: "\25BE";
            display: inline-block;
            margin-left: 0.45em;
            font-size: 0.8em;
            transition: transform 0.25s ease;
        }
        .nav-item:hover > .nav-link.has-sub::after,
        .nav-item.is-expanded > .nav-link.has-sub::after {
            transform: rotate(180deg);
        }

        .lang-switcher {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            border: 1px solid var(--border-color);
            padding: 0.3rem 0.6rem;
            margin-left: 1rem;
        }

        .lang-btn {
            color: var(--text-muted);
            transition: color var(--transition-speed);
        }

        .lang-btn.active {
            color: var(--kodak-gold);
        }

        .lang-btn:hover {
            color: var(--text-main);
        }

        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all var(--transition-speed) ease;
            list-style: none;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item a {
            display: block;
            padding: 0.8rem 1.2rem;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid var(--border-color);
            transition: background var(--transition-speed);
        }

        .dropdown-item:last-child a {
            border-bottom: none;
        }

        .dropdown-item a:hover {
            background-color: var(--border-color);
            color: var(--kodak-gold);
        }

        /* --------------------------------------------------
           HERO SECTION
        -------------------------------------------------- */
        #hero {
            height: 100vh;
            position: relative;
            overflow: hidden;
            margin-top: 0;
        }

        .hero-slider {
            width: 100%;
            height: 100%;
            position: relative;
        }

        .hero-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .hero-slide.active {
            opacity: 1;
        }

        .hero-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 4rem 2rem;
            background: linear-gradient(0deg, rgba(12,12,12,0.9) 0%, rgba(12,12,12,0) 100%);
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .hero-title {
            font-size: clamp(3rem, 8vw, 6.5rem);
            line-height: 0.9;
            letter-spacing: -0.04em;
        }

        .hero-counter {
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            color: var(--kodak-gold);
        }

        /* --------------------------------------------------
           BIOGRAPHY (SHORT VIEW)
        -------------------------------------------------- */
        #biography-short {
            padding-top: 8rem;
            padding-bottom: 4rem;
        }

        .bio-lead {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 300;
            line-height: 1.3;
            letter-spacing: -0.02em;
            grid-column: span 10;
        }

        .btn-swiss {
            display: inline-flex;
            align-items: center;
            gap: 1rem;
            margin-top: 2.5rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            font-weight: 600;
            color: var(--text-main);
            border: 1px solid var(--text-main);
            padding: 1rem 2rem;
            transition: all var(--transition-speed);
        }

        .btn-swiss:hover {
            background-color: var(--kodak-gold);
            border-color: var(--kodak-gold);
            color: #000;
        }

        /* --------------------------------------------------
           GALLERY SLIDESHOW
        -------------------------------------------------- */
        #gallery {
            padding-top: 4rem;
            padding-bottom: 4rem;
        }

        .gallery-container {
            position: relative;
            width: 100%;
            height: 70vh;
            background-color: var(--surface-color);
            overflow: hidden;
        }

        .gallery-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-slide.active {
            opacity: 1;
        }

        .gallery-slide img {
            width: auto;
            max-width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .gallery-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1rem;
        }

        .gallery-nav-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            transition: all var(--transition-speed);
        }

        .gallery-nav-btn:hover {
            border-color: var(--kodak-gold);
            color: var(--kodak-gold);
        }

        /* --------------------------------------------------
           EXHIBITIONS SLIDESHOWS
        -------------------------------------------------- */
        #exhibitions {
            padding-top: 4rem;
            padding-bottom: 4rem;
        }

        .exhibition-slider-wrapper {
            position: relative;
            background-color: #080808;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            padding: 4rem 1rem;
            margin-bottom: 4rem;
        }

        .exhibition-slider-track {
            position: relative;
            min-height: 140px;
        }

        .exhibition-slide-group {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 1.5rem;
            text-align: center;
            position: absolute;
            width: 100%;
            top: 0;
            left: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
        }

        .exhibition-slide-group.active {
            opacity: 1;
            visibility: visible;
            position: relative;
        }

        .exhibition-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 0.5rem;
        }

        .exhibition-col .year {
            font-size: 1.6rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 1rem;
            letter-spacing: 0.02em;
        }

        .exhibition-col .venue {
            font-size: 0.85rem;
            line-height: 1.4;
            color: #d1d1d6;
            font-weight: 400;
        }

        .exhibition-indicator {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 2.5rem;
        }

        .indicator-dot {
            width: 8px;
            height: 8px;
            background-color: var(--border-color);
            border-radius: 50%;
            transition: background-color 0.4s ease, transform 0.4s ease;
        }

        .indicator-dot.active {
            background-color: var(--kodak-gold);
            transform: scale(1.3);
        }

        /* --------------------------------------------------
           FILMOGRAPHY VIDEO SECTION (MAIN PLAYER)
        -------------------------------------------------- */
        #filmography-video {
            padding-top: 4rem;
            padding-bottom: 8rem;
        }

        .video-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            overflow: hidden;
            margin-bottom: 1.5rem;
        }

        .video-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            border-top: 1px solid var(--border-color);
            padding-top: 1rem;
        }

        .video-details strong {
            color: var(--text-main);
            font-weight: 700;
        }

        .video-details .film-year {
            color: var(--kodak-gold);
            font-weight: 600;
        }

        /* --------------------------------------------------
           PAGE VIEW CONTAINER MANAGEMENT
        -------------------------------------------------- */
        .page-view {
            display: none;
            padding-top: 120px;
            padding-bottom: 8rem;
            min-height: 100vh;
        }

        .page-view.active-page {
            display: block;
        }

        .page-view-header {
            font-size: clamp(3rem, 7vw, 6rem);
            margin-bottom: 2rem;
            line-height: 0.9;
        }

        .page-view-subtitle {
            color: var(--kodak-gold);
            font-size: 1rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            margin-bottom: 3rem;
        }

        .bio-content p {
            font-size: 1.05rem;
            color: #d1d1d6;
            margin-bottom: 1.8rem;
            line-height: 1.8;
            font-weight: 300;
        }

        .bio-content p strong {
            color: var(--text-main);
            font-weight: 600;
        }

        .bio-content p em {
            color: var(--kodak-gold);
            font-style: normal;
        }

        .bio-section-title {
            font-size: 1.2rem;
            color: var(--text-main);
            margin: 2.5rem 0 1rem 0;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0.5rem;
        }

        /* Filmography Grid with Interactive Movie Cards */
        .filmography-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-top: 2.5rem;
            margin-bottom: 3rem;
        }

        .film-card {
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            transition: border-color var(--transition-speed), transform var(--transition-speed);
        }

        .film-card:hover {
            border-color: var(--kodak-gold);
            transform: translateY(-4px);
        }

        .film-cover-wrap {
            width: 100%;
            height: 380px;
            background-color: #080808;
            overflow: hidden;
            position: relative;
        }

        .film-cover-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .film-play-badge {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            background: rgba(12, 12, 12, 0.85);
            border: 1px solid var(--border-color);
            color: var(--kodak-gold);
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.4rem 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            backdrop-filter: blur(5px);
        }

        .film-card-info {
            padding: 1.25rem 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
            border-top: 1px solid var(--border-color);
        }

        .film-card-head {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }

        .film-card-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .film-card-year {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--kodak-gold);
        }

        .film-card-meta {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .film-card-meta strong {
            color: var(--text-main);
        }

        .bio-layout {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: var(--grid-gap);
            margin-top: 2rem;
        }

        .contact-card {
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            padding: 2.5rem;
            position: sticky;
            top: 100px;
        }

        .contact-card h3 {
            margin-bottom: 1.5rem;
            font-size: 1.2rem;
            color: var(--kodak-gold);
        }

        .contact-detail-item {
            margin-bottom: 1.2rem;
        }

        .contact-detail-item span {
            display: block;
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--text-muted);
            letter-spacing: 0.1em;
            margin-bottom: 0.2rem;
        }

        .contact-detail-item a, .contact-detail-item p {
            font-size: 0.95rem;
            color: var(--text-main);
            line-height: 1.6;
        }

        /* --------------------------------------------------
           PHOTOGRAPHY: FOLDERS & CYCLE VIEW
        -------------------------------------------------- */
        .folder-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem;
            margin-top: 3rem;
        }

        .folder-card {
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: border-color var(--transition-speed), transform var(--transition-speed);
        }

        .folder-card:hover {
            border-color: var(--kodak-gold);
            transform: translateY(-4px);
        }

        .folder-preview-img {
            height: 340px;
            width: 100%;
            overflow: hidden;
        }

        .folder-info {
            padding: 1.8rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--border-color);
        }

        .folder-info h3 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .folder-info span {
            color: var(--kodak-gold);
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .cycle-detail-header {
            margin-bottom: 3rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 2rem;
        }

        .photo-gallery-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-top: 2rem;
        }

        .photo-card {
            background-color: var(--surface-color);
            border: 1px solid var(--border-color);
            overflow: hidden;
        }

        .photo-card-img {
            height: 520px;
            width: 100%;
            background-color: #080808;
        }

        .photo-card-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background-color: #0a0a0a;
        }

        /* --------------------------------------------------
           FOOTER STYLES
        -------------------------------------------------- */
        footer {
            margin-top: auto;
            background-color: #080808;
            border-top: 1px solid var(--border-color);
            padding: 4rem 0 2rem 0;
            font-size: 0.85rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-brand h4 {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: -0.02em;
            margin-bottom: 0.5rem;
        }

        .footer-brand p {
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .footer-col h5 {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--kodak-gold);
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--text-muted);
            transition: color var(--transition-speed);
        }

        .footer-links a:hover {
            color: var(--text-main);
        }

        .footer-bottom {
            border-top: 1px solid var(--border-color);
            padding-top: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* --------------------------------------------------
           RESPONSIVE DESIGN
        -------------------------------------------------- */
        @media (max-width: 1000px) {
            .exhibition-slide-group {
                grid-template-columns: repeat(2, 1fr);
                gap: 2rem;
            }
            .folder-grid, .photo-gallery-grid, .filmography-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 800px) {
            .grid-12 {
                grid-template-columns: 1fr;
            }
            .contact-card {
                position: static;
                margin-top: 2rem;
            }
            .bio-lead {
                grid-column: span 1;
            }
            .hero-title {
                font-size: 3rem;
            }
            .nav-menu {
                gap: 1.2rem;
            }
            .exhibition-slide-group {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            .video-details {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            .folder-grid {
                grid-template-columns: 1fr;
            }
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            .footer-bottom {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }
        }

        /* --------------------------------------------------
           WORDPRESS INTEGRATION ADJUSTMENTS
        -------------------------------------------------- */
        .admin-bar header { top: 32px; }
        @media screen and (max-width: 782px) {
            .admin-bar header { top: 46px; }
        }

        /* Inner pages render as <main class="page-view active-page"> — a real
           URL, not a toggled panel, so it must always be visible. */
        main.page-view { display: block; }

        /* Cover-only film cards: not clickable, muted badge. */
        .film-card--soon { cursor: default; }
        .film-card--soon:hover { border-color: var(--border-color); transform: none; }
        .film-card--soon .film-play-badge {
            color: var(--text-muted);
            border-color: var(--border-color);
        }

        /* Language switcher links inside the nav. */
        .lang-switcher a { text-decoration: none; }

        /* ==================================================
           MOBILE — hamburger dropdown nav, one exhibition per
           slide, tighter type, comfortable side gutters.
           (The original demo had no mobile menu at all.)
        ================================================== */
        @media (max-width: 860px) {
            .container { padding-left: 1.75rem; padding-right: 1.75rem; }

            #hero { height: 88vh; }
            .page-view { padding-top: 96px; }

            /* ---- header: stays pinned, reads as a floating bar ---- */
            header {
                position: fixed;
                background: #0c0c0c;
                -webkit-backdrop-filter: none;
                backdrop-filter: none;
                box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
            }
            .nav-inner { height: 58px; }
            .brand-logo { font-size: 1rem; }

            .nav-toggle {
                display: block;
                position: relative;
                width: 44px;
                height: 44px;
                margin-right: -10px;
                background: none;
                border: 0;
                cursor: pointer;
            }
            .nav-toggle span {
                position: absolute;
                left: 10px;
                right: 10px;
                height: 2px;
                background: var(--text-main);
                transition: transform 0.3s ease, opacity 0.2s ease;
            }
            .nav-toggle span:nth-child(1) { top: 15px; }
            .nav-toggle span:nth-child(2) { top: 21px; }
            .nav-toggle span:nth-child(3) { top: 27px; }
            .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
            .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
            .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

            .nav-menu {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                padding: 0.25rem 0 0.75rem;
                background: var(--surface-color);
                border-bottom: 1px solid var(--border-color);
                max-height: calc(100vh - 58px);
                overflow-y: auto;
                display: none;
            }
            .nav-menu.is-open { display: flex; }

            .nav-item { position: static; border-top: 1px solid var(--border-color); }
            .nav-item:first-child { border-top: 0; }
            .nav-link { display: flex; align-items: center; padding: 0.95rem 1.5rem; font-size: 0.95rem; }
            .nav-link.has-sub { justify-content: space-between; }
            .nav-link.has-sub::after { margin-left: 0; font-size: 0.9em; }

            /* Works submenu: collapsed until its row is tapped */
            .nav-item > .dropdown {
                display: none;
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                border: 0;
                min-width: 0;
                background: rgba(0, 0, 0, 0.25);
                padding: 0.25rem 0 0.4rem;
            }
            .nav-item.is-expanded > .dropdown { display: block; }
            .dropdown-item a { border: 0; padding: 0.7rem 1.5rem 0.7rem 2.5rem; }

            .lang-switcher { margin: 0.9rem 1.5rem 0.4rem; align-self: flex-start; }

            .section-label { font-size: 0.72rem; letter-spacing: 0.08em; }

            /* ---- home: extra breathing room on the section content ---- */
            #biography-short .bio-lead { padding-right: 0.25rem; }
            .gallery-controls { padding: 0 0.25rem; gap: 0.75rem; }
            .gallery-nav-btn { padding: 0.5rem 0.75rem; }

            /* ---- biography: stack the sticky contact card ---- */
            .bio-layout { grid-template-columns: 1fr; gap: 2rem; }
            .contact-card { position: static; padding: 1.75rem; }

            /* ---- exhibitions: one per slide ---- */
            .exhibition-slider-wrapper { padding: 2.5rem 1.25rem; }
            .exhibition-slide-group { grid-template-columns: 1fr; gap: 1rem; }
            .exhibition-col { padding: 0; }
            .exhibition-col .year { font-size: 1.9rem; margin-bottom: 0.5rem; }
            .exhibition-col .venue { font-size: 0.95rem; }
            .exhibition-slider-track { min-height: 110px; }

            /* ---- keep big blocks off the screen edges ---- */
            .hero-overlay { padding: 2.5rem 1.5rem; gap: 1rem; }
            .hero-counter { white-space: nowrap; flex-shrink: 0; }
            .gallery-container { height: 52vh; }
            .video-details { flex-wrap: wrap; gap: 0.35rem 1rem; }
            .folder-info { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
            .film-cover-wrap { height: 300px; }
            .folder-preview-img { height: 240px; }
            .photo-card-img { height: 340px; }
            .page-view-header { font-size: clamp(2rem, 9vw, 3rem); }
            .cycle-detail-header .page-view-header { font-size: clamp(1.8rem, 8vw, 2.6rem); }
        }

        @media (max-width: 480px) {
            .hero-title { font-size: clamp(2.1rem, 11vw, 2.9rem); word-break: break-word; }
            .page-view-header { font-size: clamp(1.9rem, 9vw, 2.5rem); word-break: break-word; }
            .page-view-subtitle { font-size: 0.82rem; }
            .bio-lead { font-size: 1.3rem; }
            .exhibition-col .year { font-size: 1.7rem; }
            #biography-short { padding-top: 6rem; padding-bottom: 2rem; }
        }

        /* the_content() images/iframes on Biography + generic pages. */
        .bio-content img,
        .bio-content iframe { width: 100%; height: auto; margin: 1.5rem 0; }
        .bio-content h2,
        .bio-content h3 { text-transform: none; letter-spacing: -0.01em; }
        .bio-content a { color: var(--kodak-gold); }
        .bio-content ul,
        .bio-content ol { margin: 0 0 1.8rem 1.4rem; color: #d1d1d6; line-height: 1.8; font-weight: 300; }

        /* WP pagination */
        .pagination .page-numbers,
        .nav-links .page-numbers {
            display: inline-block;
            padding: 0.5rem 0.9rem;
            border: 1px solid var(--border-color);
            margin-right: 0.4rem;
            font-size: 0.85rem;
        }
        .nav-links .page-numbers.current { border-color: var(--kodak-gold); color: var(--kodak-gold); }
