/* Design System & Root Variables */
:root {
    --bg-blue: #A1C0DE;
    --text-deep-blue: #3061eb;
    --accent-green: #cde9de;
    --text-tabtitle: #ffffff;

    /* Font Families */

    --font-body: 'Archivo', sans-serif;
    --font-heading: 'Helvetica 97 Black Condensed', Helvetica, Arial, sans-serif;
    --font-heading-2: 'Archivo Black', sans-serif;
    /*--font-body: 'Helvetica 97 Black Condensed', Helvetica, Arial, sans-serif;*/

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    /* CRITICAL: No rounded corners anywhere */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-blue);
    color: var(--text-deep-blue);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%233061eb' stroke='%23ffffff' stroke-width='1.5' d='M4.5 2.5v17l4.5-4.5h6.5l-11-12.5z'/%3E%3C/svg%3E") 4 2, auto;
}

/* Preloader CSS variables for responsive fly targets */
:root {
    --amblem-dest-x: calc(50vw - 80px);
    --amblem-dest-y: calc(-50vh + 80px);
    --amblem-dest-scale: 0.66;
}

@media (max-width: 1024px) and (orientation: portrait) {
    :root {
        --amblem-dest-x: calc(50vw - 50px);
        --amblem-dest-y: calc(-50vh + 50px);
        --amblem-dest-scale: 0.5;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    :root {
        --amblem-dest-x: calc(50vw - 50px);
        --amblem-dest-y: calc(-50vh + 50px);
        --amblem-dest-scale: 0.5;
    }
}

/* Preloader Overlay */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-blue);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-in-out;
}

.preloader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-amblem {
    width: 120px;
    height: 120px;
    animation: spin-and-fly 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes spin-and-fly {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }

    20% {
        transform: rotate(180deg) scale(1.5);
        opacity: 1;
    }

    45% {
        transform: rotate(360deg) scale(1.2);
    }

    65% {
        transform: rotate(360deg) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(var(--amblem-dest-x), var(--amblem-dest-y)) rotate(720deg) scale(var(--amblem-dest-scale));
        opacity: 0;
    }
}

/* Main Container Preloading State */
.bienal-container {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.bienal-container.ready {
    opacity: 1;
}

/* Fade in the actual icon-img with a delay to match the flying animation completion */
.icon-img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out 0.2s;
}

.bienal-container.ready .icon-img {
    opacity: 1;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    /* Key out black background, leave only light wave details */
    opacity: 0.35;
    /* Adjust this value (e.g. 0.1 to 0.5) to change the wave intensity */
}

html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%233061eb' stroke='%23ffffff' stroke-width='1.5' d='M4.5 2.5v17l4.5-4.5h6.5l-11-12.5z'/%3E%3C/svg%3E") 4 2, auto;
}

/* Custom Pointer Cursor for interactive elements */
a,
button,
[role="button"],
.cursor-pointer,
.arrow,
.close-folder,
.fancybox-button,
.artist-name-link,
.tab-title,
.tab-index,
.folder-tab,
input[type="submit"],
input[type="button"],
select {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%233061eb' stroke='%23ffffff' stroke-width='1.5' d='M9.5 2c-.8 0-1.5.7-1.5 1.5v7.3L6.8 9.6c-.6-.6-1.5-.6-2.1 0-.6.6-.6 1.5 0 2.1l5.5 5.5c1 .9 2.2 1.5 3.5 1.5h2.8c2.5 0 4.5-2 4.5-4.5V11c0-.8-.7-1.5-1.5-1.5s-1.5.7-1.5 1.5V9.5c0-.8-.7-1.5-1.5-1.5S15 8.7 15 9.5V8.5c0-.8-.7-1.5-1.5-1.5S12 7.7 12 8.5V3.5c0-.8-.7-1.5-1.5-1.5z'/%3E%3C/svg%3E") 8 2, pointer !important;
}

/* Scrollbar Styling - Sharp and Minimal */
.scrollable::-webkit-scrollbar {
    width: 4px;
}

.scrollable::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.scrollable::-webkit-scrollbar-thumb {
    background: var(--text-deep-blue);
}

/* Main Container */
.bienal-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 40px;
    position: relative;
}

/* Header Styles */
.bienal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.icon-img {
    height: 80px;
    width: auto;
    display: block;
}

/* Hero Section (Center Titles & Dates) */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    /* Centered vertically */
    justify-content: center;
    padding-bottom: 60px;
    /* Space for bottom navigation */
    /*margin-top: -75px;*/
    /* Shift up slightly to balance the taller 160px header */
    width: 100%;
}

.hero-content-wrapper {
    width: 100%;
    margin-top: -3.5vw;
    /* Fluid upward shift to clear bottom folders */
}

.title-wrap {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 14vw;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -4px;
    margin-bottom: 0;
}

.title-tr {
    color: var(--text-deep-blue);
}

.title-en {
    color: var(--accent-green);
}

/* Optional Gelgit (Tidal Wave) Animations */
.gelgit-tr {
    color: transparent !important;
    background-image:
        linear-gradient(180deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 255, 255, 0.45) 55%,
            rgba(255, 255, 255, 0.45) 100%),
        linear-gradient(to bottom, var(--text-deep-blue), var(--text-deep-blue)) !important;
    background-size: 100% 200%, 100% 100% !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 0% 0%, 0% 0% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: ebbflow-anim 10s alternate infinite ease-in-out !important;
}

.gelgit-en {
    color: transparent !important;
    background-image:
        linear-gradient(180deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 255, 255, 0.45) 55%,
            rgba(255, 255, 255, 0.45) 100%),
        linear-gradient(to bottom, var(--accent-green), var(--accent-green)) !important;
    background-size: 100% 200%, 100% 100% !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 0% 0%, 0% 0% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: ebbflow-anim 10s alternate infinite ease-in-out !important;
    animation-delay: -10s !important;
}

@keyframes ebbflow-anim {
    0% {
        background-position: 0% 0%, 0% 0%;
    }

    100% {
        background-position: 0% 100%, 0% 0%;
    }
}

.hero-dates-container {}

.date-block {
    font-family: var(--font-heading);
    font-size: 7vw;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -3px;
}

.tr-date-block {
    color: var(--text-deep-blue);
}

.en-date-block {
    color: var(--accent-green);
}

/* Animations */
.animate-text {
    animation: fadeInUp 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Folder Overlay (Backdrop Blur) */
.folder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(21, 56, 167, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.folder-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Folder Navigation Container */
.folder-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 350px;
    z-index: 50;
    pointer-events: none;
}

/* Folder Item */
.folder-item {
    position: absolute;
    width: 26vw;
    height: 28vw;
    /* Option A: Fluid height to maintain aspect ratio */
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    color: var(--text-color);
    transition: var(--transition-smooth), bottom 0.4s ease;
    bottom: -19vw;
    /* Proportional resting state */
}

.folder-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--folder-color);
    z-index: 1;
    transition: var(--transition-smooth);

    /* Default slanted folder shape (middle items) - parallelogram rising left-to-right */
    clip-path: polygon(7% 10%, 82% 0%, 83% 100%, 8% 70%);
    -webkit-clip-path: polygon(7% 10%, 82% 0%, 83% 100%, 8% 70%);
}

.folder-item[data-folder="kavramsal"] {
    left: 0vw;
    bottom: -18.8vw;
    /* Shift up by 0.4vw (approx 5-6px) to match height visually */
}

.folder-item[data-folder="kavramsal"]::before {
    /* Touch screen left edge - vertical left side, slanted right side */
    clip-path: polygon(0% 10%, 82% 0%, 83% 100%, 0% 70%);
    -webkit-clip-path: polygon(0% 10%, 82% 0%, 83% 100%, 0% 70%);
}

.folder-item[data-folder="sanatcilar"] {
    left: 11.55vw;
}

.folder-item[data-folder="etkinlikler"] {
    left: 24.92vw;
}

.folder-item[data-folder="mekanlar"] {
    left: 38.29vw;
}

.folder-item[data-folder="destekciler"] {
    left: 51.66vw;
}

.folder-item[data-folder="ekip"] {
    left: 65.03vw;
}

.folder-item[data-folder="iletisim"] {
    left: 78.4vw;
    width: 28vw;
}

.folder-item[data-folder="iletisim"]::before {
    /* Stretch to 100% on right and clip at screen boundary to ensure zero gap */
    clip-path: polygon(7% 10%, 100% -2.4%, 100% 100%, 8% 70%);
    -webkit-clip-path: polygon(7% 10%, 100% -2.4%, 100% 100%, 8% 70%);
}

/* Folder Header/Tab (Text container) */
.folder-tab {
    position: absolute;
    top: 11%;
    /* Scales dynamically with fluid height */
    /* Moved up to top-left inside the parallelogram */
    left: 12%;
    /* pushed right to clear the left slant */
    z-index: 5;
    cursor: pointer;
    transition: var(--transition-smooth);
    pointer-events: none;
    /* Make tab unclickable by default while closed */
}

/* Enable clicking on tab title only when card is hovered, active-hovered (mobile), or open */
.folder-item:hover .folder-tab,
.folder-item.active-hover .folder-tab,
.folder-item.open .folder-tab {
    pointer-events: auto;
}

/* Folder Tab Title */
.tab-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-tabtitle) !important;
    letter-spacing: -0.5px;
    white-space: normal;
    /* Allow wrapping */
    word-wrap: break-word;

    margin-top: 6px;

    /* Forces wrapping for long titles */
    line-height: 1.0;
    /* Keep lines compact when wrapped */
    display: inline-block;

    /* CRITICAL: Text is completely hidden in resting state */
    opacity: 0;
    transform: translateY(10px) rotate(-9.5deg);
    transition: opacity 0.3s ease, transform 0.3s ease, font-size 0.3s ease;
}

.folder-item[data-folder="kavramsal"] .tab-title {
    margin-left: -10px;
}

/* Folder Body Content Wrapper */
.folder-body {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 60px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.folder-item:not(.open) .folder-body {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Close Button (Hidden by default) */
.close-folder {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 10;
}

/* Hover Interaction: Rises and reveals name */
@media (min-width: 769px) {

    .folder-item:hover,
    .folder-item.active-hover {
        bottom: -12.5vw !important;
        /* No z-index change so that it remains under the folder on its right */
    }

    .folder-item:hover .tab-title,
    .folder-item.active-hover .tab-title {
        opacity: 1;
        font-size: 2.1vw !important;
        max-width: 13vw !important;
        line-height: 0.95 !important;
        font-weight: 900;
        font-style: italic;
        transform: rotate(-9.5deg);
        /* Keeps the text inside the parallelogram */
    }
}

/* Active / Open State Styling */
.folder-item.open {
    position: fixed;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 100 !important;
    transform: translateY(0) !important;
}

.folder-item.open .folder-body {
    padding: 0 !important;
}

.folder-item.open::before {
    /* CRITICAL: Slant is disabled when open to see content clearly */
    clip-path: none !important;
    -webkit-clip-path: none !important;
}

.folder-item.open .folder-tab {
    display: none !important;
    /* Hide folder tab and title when open */
}

.folder-item.open .close-folder {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    font-size: 1.2rem;
    opacity: 0.7;
    pointer-events: auto;
    z-index: 20;
    transition: var(--transition-smooth);
}

.folder-item.open .close-folder:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: rotate(90deg);
}

/* Inner Folder Content styling */
.folder-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.folder-item.open .folder-content {
    opacity: 1;
    transform: translateY(0);
}

/* Centering Artists Slide content on Medium and Large Screens */
@media (min-width: 769px) {
    .slide-artists {
        display: flex !important;
        flex-direction: column;
    }

    .slide-artists .container {
        margin: auto !important;
        max-width: 800px;
    }
}

/* Yakında / Soon Slide Styling */
.slide-yakinda h2 {
    font-family: var(--font-heading);
    letter-spacing: -2px;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.9;
}

.slide-yakinda h3 {
    font-family: var(--font-heading);
    letter-spacing: -1px;
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    line-height: 0.9;
    opacity: 0.65;
}



/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet & Smaller Screens (Horizontal Overlapping Layout) */
@media (max-width: 1024px) and (min-width: 769px) {



    .folder-item {
        width: 30vw;
        height: 38vw;
        /* Option A: Fluid height on tablet */
        bottom: -26vw;
        /* Proportional resting state */
    }

    /* Left offsets for Tablet */
    .folder-item[data-folder="kavramsal"] {
        left: 0vw;
        bottom: -25.6vw;
        /* Shift up by 0.4vw (approx 5-6px) to match height visually */
    }

    .folder-item[data-folder="kavramsal"]::before {
        clip-path: polygon(0% 10%, 82% 0%, 83% 100%, 0% 70%);
        -webkit-clip-path: polygon(0% 10%, 82% 0%, 83% 100%, 0% 70%);
    }

    .folder-item[data-folder="sanatcilar"] {
        left: 10.76vw;
    }

    .folder-item[data-folder="etkinlikler"] {
        left: 23.62vw;
    }

    .folder-item[data-folder="mekanlar"] {
        left: 36.48vw;
    }

    .folder-item[data-folder="destekciler"] {
        left: 49.34vw;
    }

    .folder-item[data-folder="ekip"] {
        left: 62.2vw;
    }

    .folder-item[data-folder="iletisim"] {
        left: 75.06vw;
        width: 32vw;
    }

    .folder-item[data-folder="iletisim"]::before {
        /* Stretch to 100% on right and clip at screen boundary to ensure zero gap */
        clip-path: polygon(7% 10%, 100% -2.4%, 100% 100%, 8% 70%);
        -webkit-clip-path: polygon(7% 10%, 100% -2.4%, 100% 100%, 8% 70%);
    }

    .folder-tab {
        top: 11%;
        /* Scales dynamically with height */
        left: 12%;
    }

    .tab-title {
        white-space: normal;
        word-wrap: break-word;
        /*max-width: 150px;*/
        line-height: 1.0;
        transform: translateY(10px) rotate(-9.5deg);
        /* Matches stable slope angle */
    }

    .folder-item.active-hover {
        bottom: -17vw !important;
        /* Proportional rise in active state */
        /* No z-index change so that it remains under the folder on its right */
    }

    .folder-item.active-hover .tab-title {
        opacity: 1;
        font-size: 2.4vw !important;
        max-width: 18vw !important;
        line-height: 0.95 !important;
        font-weight: 900;
        font-style: italic;
        transform: rotate(-9.5deg);
        /* Matches stable slope angle */
    }


}

/* Mobile Screens */
@media (max-width: 1024px) and (orientation: portrait) {
    body {
        overflow: hidden;
        /* Prevent double scroll */
        height: 100vh;
    }

    .bienal-container {
        padding: 20px;
        height: 100vh;
    }

    .bienal-header {
        flex-direction: row;
        align-items: center;
    }

    .logo-img,
    .icon-img {
        height: 60px;
        /* Scaled down for mobile layouts */
    }

    .hero-section {
        padding-top: 20px;
        padding-bottom: 95vw;
        /* Matches the 95vw height of folders to prevent overlap dynamically */
        margin-top: 0;
        /* Reset desktop negative margin */
    }

    .hero-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .hero-title {
        font-family: var(--font-heading);
        font-size: 14vw;
        line-height: 0.85;
        letter-spacing: -2px;
    }

    .hero-dates-container {
        /*margin-top: 1rem;*/
    }

    .date-block {
        display: flex;
        flex-direction: column;
        /*gap: 2px;*/
        font-size: 6vw;
        line-height: 1.0;
        letter-spacing: -1px;
    }

    /* Mobile Folder Layout: Staggered and Overlapping (Fits Screen) */
    .folder-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 240px;
        overflow: visible;
        pointer-events: none;
        z-index: 50;
    }

    .folder-item {
        position: absolute;
        width: 60vw;
        height: 95vw;
        pointer-events: auto;
        transition: var(--transition-smooth), bottom 0.4s ease;
    }

    .folder-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--folder-color);
        z-index: 1;
        transition: var(--transition-smooth);
        clip-path: polygon(7% 10%, 82% 0%, 83% 100%, 8% 100%);
        -webkit-clip-path: polygon(7% 10%, 82% 0%, 83% 100%, 8% 100%);
    }

    /* Left & Bottom (Cascading Heights) Positions for Mobile */
    .folder-item[data-folder="kavramsal"] {
        left: -3vw;
        bottom: -8vw;
        /* Highest */
    }

    .folder-item[data-folder="kavramsal"]::before {
        clip-path: polygon(0% 10.9%, 82% 0%, 83% 100%, 0% 100%);
        -webkit-clip-path: polygon(0% 10.9%, 82% 0%, 83% 100%, 0% 100%);
    }

    .folder-item[data-folder="sanatcilar"] {
        left: 4.9vw;
        bottom: -14.5vw;
    }

    .folder-item[data-folder="etkinlikler"] {
        left: 14vw;
        bottom: -21vw;
    }

    .folder-item[data-folder="mekanlar"] {
        left: 23.1vw;
        bottom: -27.5vw;
    }

    .folder-item[data-folder="destekciler"] {
        left: 32.2vw;
        bottom: -34vw;
    }

    .folder-item[data-folder="ekip"] {
        left: 41.3vw;
        bottom: -40.5vw;
    }

    .folder-item[data-folder="iletisim"] {
        left: 50.4vw;
        bottom: -47vw;
        width: 65vw;
        /* Extended width to ensure right corner cuts off-screen */
        /* Lowest */
    }

    .folder-item[data-folder="iletisim"]::before {
        /* Move top-right corner up to -2.4% to align parallel with other folders */
        clip-path: polygon(7% 10%, 100% -2.4%, 100% 100%, 8% 100%);
        -webkit-clip-path: polygon(7% 10%, 100% -2.4%, 100% 100%, 8% 100%);
    }

    .folder-tab {
        top: 10% !important;
        left: 14% !important;
        z-index: 5;
        width: 82%;
        pointer-events: auto;
    }

    .tab-title {
        font-family: var(--font-heading);
        font-size: 4.8vw !important;
        max-width: none !important;
        line-height: 0.95 !important;
        font-weight: 900;
        opacity: 1 !important;
        /* ALWAYS VISIBLE */
        transform: rotate(-13deg) !important;
        /* Perfect slant alignment */
        transform-origin: left center;
        white-space: nowrap !important;
        color: var(--text-tabtitle) !important;
        letter-spacing: 0px;
        display: inline-block;
        transition: var(--transition-smooth);
    }

    /* Mobile Touch State */
    .folder-item.active-hover {
        transform: translateY(-8vw) !important;
        /* Kept behind sibling folders to match desktop layered behaviour */
    }

    .folder-item.active-hover .tab-title {
        font-size: 4.8vw !important;
        /* Keep the same size as resting state */
    }

    .folder-body {
        padding: 15px;
    }

    /* Mobile Open State */
    .folder-item.open {
        position: fixed;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 100 !important;
        clip-path: none !important;
        transform: none !important;
        /* Reset translateY shift when open to prevent bottom gap */
    }

    .folder-item.open::before {
        clip-path: none !important;
        -webkit-clip-path: none !important;
    }

    .folder-item.open .folder-tab {
        position: relative;
        margin-bottom: 20px;
        top: 0;
        left: 0 !important;
    }

    .folder-item.open .tab-title {
        opacity: 1;
        font-size: 1.1rem;
        font-style: normal;
        font-weight: 800;
        transform: none !important;
    }

    .folder-item.open .folder-body {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   Horizontal Slides System
   ========================================================================== */

.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars */
.slides-container::-webkit-scrollbar {
    display: none;
}

.slides-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

/* Background Media Styles */
.slide-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Raster / Dark Overlay to keep text readable */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

/* Vimeo Background video wrapper & iframe styling */
.vimeo-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.vimeo-background-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.vimeo-raster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 2;
}

/* Content overlays */
/* Content overlays */
.artist-name-link {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-bounce);
    display: inline-block;
}

.artist-name-link:hover {
    transform: scale(1.05);
    background-color: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
}

/* Side navigation arrows - stacked vertically under close button */
.slide-nav-btn {
    position: absolute;
    right: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.folder-item.open .slide-nav-btn {
    opacity: 0.7;
    pointer-events: auto;
}

.folder-item.open .slide-nav-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.prev-slide {
    top: 80px;
    /* Sits directly below close button (top: 30px, height: 45px, gap: 5px) */
}

.next-slide {
    top: 130px;
    /* Sits directly below prev button */
}

.slide-nav-btn.disabled {
    opacity: 0.25 !important;
    cursor: not-allowed;
    pointer-events: none !important;
}

/* Mobile responsive styles for slider */
@media (max-width: 1024px) and (orientation: portrait) {
    .folder-item.open .close-folder {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .slide-nav-btn {
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-slide {
        top: 65px;
    }

    .next-slide {
        top: 110px;
    }

    .artist-name-link {
        bottom: 40px;
        right: 25px;
        font-size: 1rem;
        padding: 8px 16px;
    }

    .contact-slide {
        padding: 0px 25px 30px 25px;
        overflow-y: auto;
    }
}

/* Contact Slide styling (Non-BG text slide) */
.contact-slide {
    background-color: transparent;
    color: var(--text-color);
    width: 100%;
    height: 100%;
}

.contact-slide h3 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

.contact-slide p,
.contact-slide a {
    font-family: var(--font-body);
    color: var(--text-color);
}

.contact-slide .contact-link {
    transition: var(--transition-smooth);
}

.contact-slide .contact-link:hover {
    opacity: 0.7;
    text-decoration: underline !important;
    color: var(--text-color) !important;
}

.contact-slide .contact-map-btn,
.contact-slide .contact-kvkk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-slide .contact-map-btn:hover,
.contact-slide .contact-kvkk-btn:hover {
    background-color: var(--text-color);
    color: var(--folder-color, #ffffff) !important;
    border-color: var(--text-color);
}

.event-card-item {
    background-color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(48, 97, 235, 0.1);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.event-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(48, 97, 235, 0.08);
    background-color: rgba(255, 255, 255, 0.75);
}

.event-card-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

/* Custom Tabs Styling for Events */
#eventsTab {
    border-bottom: 2px solid rgba(48, 97, 235, 0.15);
}

#eventsTab .nav-link {
    color: rgba(48, 97, 235, 0.6);
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    background: transparent;
    padding: 10px 20px;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

#eventsTab .nav-link:hover {
    color: var(--text-deep-blue);
    border-bottom-color: rgba(48, 97, 235, 0.3);
}

#eventsTab .nav-link.active {
    color: var(--text-deep-blue);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid var(--text-deep-blue);
}

/* Ensure Fancybox overlay is always layered above Bootstrap offcanvas */
.fancybox__container {
    z-index: 2000 !important;
}

/* ==========================================================================
   Medcezir (Tidal Wave) Scroll/Swipe Animation Effect
   ========================================================================== */

/* Desktop (min-width: 769px) Wave Effect */
@media (min-width: 769px) {
    .folder-item.wave-rise {
        bottom: -13vw !important;
        /* Elegant partial rise to reveal shape */
        transition: bottom 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        z-index: 15 !important;
        /* Briefly float above sibling boundaries */
    }

    .folder-item.wave-rise .tab-title {
        opacity: 0.9;
        font-size: 1.8rem;
        font-weight: 900;
        font-style: italic;
        transform: rotate(-9.5deg);
        transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .folder-item.wave-fall {
        bottom: -19vw !important;
        /* Smooth return to desktop resting state */
        transition: bottom 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .folder-item.wave-fall .tab-title {
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }
}

/* Mobile & Tablet (max-width: 1024px) Wave Effect */
@media (max-width: 1024px) {
    .folder-item.wave-rise {
        bottom: -26vw !important;
        /* Gentle rise from resting bottom (-39vw) */
        transition: bottom 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        z-index: 15 !important;
    }

    .folder-item.wave-rise .tab-title {
        opacity: 0.95;
        font-size: 1.3rem;
        font-weight: 900;
        font-style: italic;
        transform: rotate(-9.5deg);
        transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .folder-item.wave-fall {
        bottom: -39vw !important;
        /* Return to mobile resting state */
        transition: bottom 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    .folder-item.wave-fall .tab-title {
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }
}

/* 10. Biennale Custom Dynamic Additions */
#osm-map {
    width: 100%;
    height: 100%;
    background-color: #222;
}

.map-dropdown-container {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 1100;
    max-width: 300px;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .map-dropdown-container {
        bottom: 40px;
        right: 25px;
        left: auto !important;
        margin-left: 0 !important;
    }
}

.map-dropdown-container select {
    border-radius: 0 !important;
    font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
    background: #ffffff;
    color: #333333;
}

.leaflet-popup-tip {
    background: #ffffff;
}

.map-popup-content h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-deep-blue);
    margin-bottom: 5px;
}

.map-popup-content p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.map-popup-content .btn-very-small {
    font-size: 0.75rem;
    padding: 4px 8px;
    background-color: var(--text-deep-blue) !important;
    color: #ffffff !important;
    border: none;
    transition: background-color 0.2s;
}

.map-popup-content .btn-very-small:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.program-list .list-group-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.contact-card {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    transition: border-color 0.3s;
}

.contact-card:hover {
    border-color: var(--accent-green) !important;
}

.artists-names {
    font-size: 1.8rem;
    line-height: 2.4rem;
    font-weight: 700;
}

.slide-text-wrapper {
    font-size: 1.1rem;
    line-height: 1.8rem;
}

.info-trigger-btn {
    border-radius: 0 !important;
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Adjust Leaflet zoom controls and dropdown to use dynamic folder color / text contrast */
.leaflet-top.leaflet-left {
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

.leaflet-control-zoom {
    position: absolute !important;
    bottom: 100px !important;
    right: 40px !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    border: none !important;
    pointer-events: auto !important;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .leaflet-control-zoom {
        bottom: 100px !important;
        right: 25px !important;
    }
}

.leaflet-bar a {
    background-color: var(--folder-color) !important;
    color: var(--text-color) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.leaflet-bar a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

#map-venue-select {
    background-color: var(--folder-color) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23888888' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

/* Map Popups text styling: Dark theme text on White popup card */
.map-popup-content h5 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--folder-color) !important;
    margin-bottom: 5px;
}

.map-popup-content p {
    font-size: 0.85rem;
    color: #333333 !important;
    margin-bottom: 8px;
}

.map-popup-content div {
    color: #444444 !important;
}

.map-popup-content .btn-very-small {
    font-size: 0.75rem;
    padding: 4px 8px;
    background-color: var(--folder-color) !important;
    color: var(--text-color) !important;
    border: none;
    transition: background-color 0.2s;
}

.map-popup-content .btn-very-small:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Dynamic Contrast Overrides for Folder Slides Content (excluding Leaflet map elements)
   ========================================================================== */
.slide-item h2:not(.leaflet-container *),
.slide-item h3:not(.leaflet-container *),
.slide-item h4:not(.leaflet-container *),
.slide-item .text-white:not(.leaflet-container *),
.slide-item .nav-link:not(.leaflet-container *),
.slide-item .list-group-item:not(.leaflet-container *),
.slide-item .artists-names:not(.leaflet-container *),
.slide-item .slide-text-wrapper:not(.leaflet-container *),
.slide-item .col-12:not(.leaflet-container *) {
    color: var(--text-color) !important;
}

.slide-item .text-white-50:not(.leaflet-container *),
.slide-item p.text-white-50:not(.leaflet-container *),
.slide-item .opacity-75:not(.leaflet-container *),
.slide-item .text-muted-dynamic:not(.leaflet-container *) {
    color: var(--text-color) !important;
    opacity: 0.75 !important;
}

.slide-item a:not(.contact-link):not(.artist-name-link):not(.btn):not(.leaflet-container *) {
    color: var(--text-color) !important;
    text-decoration: underline;
}

.slide-item .btn-outline-light {
    border-color: var(--text-color) !important;
    color: var(--text-color) !important;
}

.slide-item .btn-outline-light:hover {
    background-color: var(--text-color) !important;
    color: var(--folder-color, #ffffff) !important;
    border-color: var(--text-color) !important;
}

.slide-item .nav-tabs {
    border-color: var(--text-color) !important;
}

.slide-item .nav-tabs .nav-link {
    opacity: 0.6;
    border: none !important;
}

.slide-item .nav-tabs .nav-link.active {
    opacity: 1;
    border-bottom: 3px solid var(--text-color) !important;
    background-color: transparent !important;
}

.slide-item .border-secondary,
.slide-item .border-primary {
    border-color: var(--text-color) !important;
}

/* Mobile Landscape (Horizontal Phones) Responsive Adjustments */
@media (max-height: 480px) and (orientation: landscape) {
    .bienal-container {
        padding: 20px !important;
        height: 100vh !important;
    }

    .logo-img,
    .icon-img {
        height: 60px !important;
    }

    .hero-title {
        font-family: var(--font-heading);
        font-size: 5.5rem !important;
        font-weight: 900;
        line-height: 0.85;
        letter-spacing: -4px;
        margin-bottom: 0;
    }

    .date-block {
        font-family: var(--font-heading);
        font-size: 2.7rem !important;
        font-weight: 900;
        line-height: 0.85;
        letter-spacing: -1px;
    }

    .hero-section {
        padding-bottom: 30px !important;
    }
}

/* Cookie Consent Banner (Bottom Bar) */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: var(--accent-green);
    color: var(--text-deep-blue);
    z-index: 999999 !important;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)) 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-top: 1.5px solid var(--text-deep-blue);
    transition: transform 0.5s ease-in-out;
    transform: translateY(0);
}

.cookie-consent-banner.hide-banner {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-content-inner {
    width: 100%;
    max-width: 1000px;
}

.cookie-text {
    margin: 0;
    line-height: 1.4;
    display: inline;
}

.cookie-text .kvkk-link {
    color: var(--text-deep-blue);
    text-decoration: underline !important;
    font-weight: 700;
}

.cookie-text .kvkk-link:hover {
    opacity: 0.8;
}

.cookie-accept-btn {
    display: inline-block;
    vertical-align: middle;
    background-color: var(--text-deep-blue);
    color: #ffffff;
    border: none;
    padding: 3px 12px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    margin-bottom: 2px;
}

.cookie-accept-btn:hover {
    opacity: 0.9;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .cookie-consent-banner {
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    .cookie-accept-btn {
        padding: 2px 10px;
        font-size: 0.75rem;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .cookie-consent-banner {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .cookie-accept-btn {
        padding: 2px 10px;
        font-size: 0.75rem;
    }
}

/* Horizontal Archive Button on Bottom-Right */
.archive-link-btn {
    position: fixed;
    right: 0;
    bottom: 0;
    background-color: #141414;
    /* R20 G20 B20 */
    color: #ffffff !important;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)) 24px;
    font-family: var(--font-heading-2);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    z-index: 999999 !important;
    /* Top layer */
    border: none;
    border-left: 1.5px solid rgba(255, 255, 255, 0.2);
    border-top: 1.5px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.archive-link-btn:hover {
    background-color: #282828;
    opacity: 0.95;
}

@media (max-width: 1024px) and (orientation: portrait) {
    .archive-link-btn {
        padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)) 18px;
        font-size: 0.85rem;
    }
}

/* Slide Headings & Elements Font Override to Archivo Black */
.slide-item h1,
.slide-item h2,
.slide-item h3,
.slide-item h4,
.slide-item h5,
.slide-item h6,
.slide-yakinda h2,
.slide-yakinda h3,
.contact-slide h3,
.offcanvas-title,
.artist-name-link,
.map-popup-content h5,
#eventsTab .nav-link {
    font-family: var(--font-heading-2) !important;
}