/* --- 1. CORE VARIABLES & BASE --- */
:root {
    --bg-dark: #061a14;
    --accent-1: #10b981;
    --accent-2: #34d399;
    --accent-3: #a7f3d0;
    --text-light: #ecfdf5;
    --glass-bg: rgba(6, 26, 20, 0.9);
    --drawer-height: 550px;
    --spine-width: 60px;
    --slider-width: 480px;
    --details-drawer-width: 40vw; 
    --pane-max-width: 550px;
    --image-gap: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* --- 2. MAP & CONTROLS --- */
#map {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
}

#map::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(6, 26, 20, 0.85) 0%, rgba(6, 26, 20, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.8s ease;
}

.map-active #map::after { opacity: 0; }

.mapboxgl-ctrl-top-right {
    display: none;
    margin: 20px;
}

.map-active .mapboxgl-ctrl-top-right { display: block; animation: fadeIn 0.5s ease; }

.mapboxgl-ctrl-group {
    background: rgba(6, 26, 20, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mapboxgl-ctrl-icon {
    filter: invert(58%) sepia(82%) saturate(435%) hue-rotate(113deg) brightness(92%) contrast(89%);
}

/* --- 3. NAVIGATION & SCROLL --- */
#dot-nav {
    position: fixed; right: 30px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 1000;
}
.scroll-nudge {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1000;
    pointer-events: none; /* Won't block clicks to the map */
    transition: opacity 0.6s ease;
}

/* The Mouse Shape */
.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent-1);
    border-radius: 15px;
    position: relative;
}

/* The Moving Scroll Wheel */
.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s infinite;
}

/* Animated Down Arrows */
.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-1);
    border-right: 2px solid var(--accent-1);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow-wave 1.8s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.3s;
}

/* Keyframes for the wheel "roll" */
@keyframes scroll-wheel {
    0% { opacity: 1; top: 8px; }
    30% { opacity: 1; top: 12px; }
    100% { opacity: 0; top: 18px; }
}

/* Keyframes for the pulsing arrows */
@keyframes arrow-wave {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

.dot {
    width: 12px; height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%; cursor: pointer; transition: 0.3s;
    border: 2px solid transparent;
}

.dot.active-dot { background: var(--accent-1); transform: scale(1.3); border-color: var(--bg-dark); }
.map-active #dot-nav { display: none; }

.scroll-container {
    position: relative; height: 100vh;
    overflow-y: scroll; scroll-snap-type: y mandatory;
    scroll-behavior: smooth; z-index: 3;
}

.map-active .scroll-container { pointer-events: none; opacity: 0; transition: opacity 0.5s; }
/* --- BACK TO TOP BUTTON (CENTERED) --- */
.back-top-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: none; /* 🎯 Removed background */
    border: none;     /* 🎯 Removed border */
    color: var(--accent-1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.3s ease;
    pointer-events: none;
}
.back-top-btn span {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.back-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure the mouse icon has size inside the button */
.back-top-btn .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent-1);
    border-radius: 15px;
    position: relative;
}

.back-top-btn .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s infinite;
}

.back-top-btn .arrow.reverse span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-1);
    border-right: 2px solid var(--accent-1);
    transform: rotate(-135deg); /* Points Up */
    margin: -5px;
    animation: arrow-wave-up 1.8s infinite;
}

@keyframes arrow-wave-up {
    0% { opacity: 0; transform: rotate(-135deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(-135deg) translate(5px, 5px); }
}

/* Add these to your style.css to ensure the button has a shape */
.back-top-btn .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--accent-1);
    border-radius: 15px;
    position: relative;
}

.back-top-btn .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s infinite;
}

/* Ensure the arrows exist inside the button */
.back-top-btn .arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent-1);
    border-right: 2px solid var(--accent-1);
    margin: -5px;
}

/* Visible state class */
.back-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-top-btn:hover {
    transform: translateX(-50%) translateY(-5px);
    filter: brightness(1.2);
}

section {
    height: 100vh; width: 100%;
    display: flex; align-items: center;
    padding-left: 5%; scroll-snap-align: start;
}

/* --- 4. THE GLASS CARD (MAIN VIEW) --- */
.card-wrapper {
    position: relative; display: flex; align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-left: 4px solid var(--accent-1);
    padding: 2.5rem;
    border-radius: 0 15px 15px 0;
    width: 460px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 15px 0 40px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    flex-shrink: 0;
}

.step-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-2);
    letter-spacing: 0.1em;
}
.intro-logos {
    display: flex;
    flex-direction: row; /* Force horizontal */
    flex-wrap: wrap;   /* Prevent stacking/wrapping */
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    overflow: hidden;
    margin-top:15px;    /* Prevent logos from bleeding out */
}

.intro-logos img.full-width-logo {
    width: 100%;       /* 🎯 Forces it to occupy the whole row */
    max-width: 250px;   /* Set a larger max-width so it's bigger than the others */
    flex: 1 0 100%;    /* Ensures it doesn't shrink and stays 100% basis */
    margin-top: 10px;  /* Optional: adds space between the rows */
}

.intro-logos img {

    width: 45%; 
    max-width: 160px;    
    height: auto;
    
    flex: 0 0 auto; 
    
    object-fit: contain;
}

.drawer-open .glass-card .step-counter {
    display: none !important;
}
.active .glass-card { opacity: 1; transform: translateX(0); }

/* --- 5. THE VERTICAL SPINE (DRAWER OPEN VIEW) --- */
.drawer-open .glass-card {
    width: var(--spine-width);
    height: var(--drawer-height);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(4, 18, 14, 0.98);
    border-left: 4px solid var(--accent-1);
    border-right: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 15px 0 0 15px; 
    transform: translateX(0);
    opacity: 1;
    filter: none;
    z-index: 12;
    overflow: hidden;
    pointer-events: none;
}

.short-title { display: none; }
.full-title { display: block; }

.drawer-open .full-title,
.drawer-open .logo,
.drawer-open .glass-card p, 
.drawer-open .glass-card .content-area,
.drawer-open .glass-card h3,
.drawer-open .glass-card .card-timeline {
    display: none;
}

.drawer-open .short-title {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    white-space: nowrap;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-1);
}

/* --- 6. THE DETAILS DRAWER --- */
.details-drawer {
    position: absolute;
    width: var(--details-drawer-width);
    max-width: var(--pane-max-width);
    left: 80px; 
    background: rgba(6, 26, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-1);
    border-radius: 15px;
    width: 0;
    height: var(--drawer-height);
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    z-index: 10;
}

.drawer-open .details-drawer {
    left: calc(var(--spine-width) - 4px);
    width: 550px;
    opacity: 1;
    padding: 2.5rem 1.5rem;
    box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    border-left: none;
    border-radius: 0 15px 15px 0;
}

.drawer-sidebar {
    width: 140px;
    border-right: 1px solid rgba(16, 185, 129, 0.2);
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    padding-right: 20px;
}

.step-btn {
    background: none; border: none;
    color: var(--accent-3); text-align: right;
    font-size: 0.75rem; font-weight: 600;
    cursor: pointer; transition: 0.3s; opacity: 0.5;
}

.step-btn.active-step { opacity: 1; color: var(--accent-1); font-weight: 800; transform: translateX(5px); }

.drawer-content { flex-grow: 1; overflow-y: auto; padding-right: 10px; }

.drawer-text-block {
    display: none;
    animation: textFadeIn 0.5s ease forwards;
}


@keyframes textFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    max-width: 100%;
    filter: drop-shadow(0px 0px 90px #a7f3d0) drop-shadow(20px -20px 190px #a7f3d0);
    display:block;
}

.partnerlogo {
    max-width: 100%;
}

/* --- 7. FLOATING IMAGES & PORTAL --- */
.floating-images-portal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2000;
}

.floating-image-group {
    display: none;
    position: fixed;
    left: calc(
    (var(--spine-width) * 2) + 
    min(var(--details-drawer-width), var(--pane-max-width)) + 
    var(--image-gap));
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 20px;
    width: 35vw; 
    max-width: 600px;
    min-width: 300px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px 10px;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) transparent;
}

.floating-image-group.active-group {
    display: flex;
}

.floating-image-group::-webkit-scrollbar { width: 6px; }
.floating-image-group::-webkit-scrollbar-track { background: transparent; }
.floating-image-group::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 10px; }


.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
   background: var(--glass-bg);
    backdrop-filter: blur(12px);
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.4); /* Faint emerald border */
    border-top: 3px solid var(--accent-1); /* Emerald accent crown */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none; /* Controlled by toggleExplore in JS */
    width: 220px;
    color: var(--text-light);
    transition: opacity 0.3s ease;
}

.map-overlay h4 {
   margin: 0 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.map-overlay div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #d1fae5; /* Soft mint text */
}

.map-overlay div:last-child {
    margin-bottom: 0;
}

/* --- SURVEY MODAL --- */

/* --- TEXT LINK STYLE --- */
.text-link-btn {
    background: none;
    border: none;
    color: var(--accent-1);
    text-decoration: underline;
    font: inherit; /* Matches the surrounding paragraph font */
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.text-link-btn:hover {
    color: var(--accent-3);
}

/* --- MODAL FIXES --- */
/* --- TEXT LINK STYLE --- */
.text-link-btn {
    background: none;
    border: none;
    color: var(--accent-1);
    text-decoration: underline;
    font: inherit; /* Matches the surrounding paragraph font */
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.text-link-btn:hover {
    color: var(--accent-3);
}

/* --- MODAL FIXES --- */
.form-modal {
    position: fixed;
    inset: 0;
    z-index: 99999; /* Ensure it is above everything */
    background: rgba(6, 26, 20, 0.9);
    backdrop-filter: blur(10px);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
}

.form-modal-content {
    width: 90%;
    max-width: 640px;
    background: rgb(6 26 20 / 0%);
    border-radius: 8px;
    position: relative;
    padding: 5px;
    text-align: center;
}

.close-form {
    position: absolute;
    top: -35px;
    right: 0;
    color: var(--accent-1);
    font-size: 32px;
    cursor: pointer;
    font-weight: bold;
}

/* Ensure buttons don't overlap on mobile */
@media (max-width: 600px) {
    .form-trigger {
        top: auto;
        bottom: 100px; /* Sits above the back-to-top button */
    }
}

.legend-key {
  display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 12px;
    border-radius: 4px; /* Soft square markers to match buttons */
    flex-shrink: 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}
.map-floating-item {
    width: 100%;
    border-radius: 12px;
    padding: 10px;
    cursor: zoom-in;
    transition: transform 0.3s;
    backdrop-filter: blur(12px);
    flex-shrink: 0; 
    pointer-events: auto !important;
}

.map-floating-item:hover { transform: scale(1.02); }

.map-floating-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover; 
    object-position: center;
    display: block;
    margin: 0 !important;
}

.map-floating-item figcaption {
    color: var(--accent-3);
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* --- 8. LIGHTBOX OVERLAY --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 26, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

.lightbox.visible { opacity: 1; pointer-events: auto; }

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border: 1px solid var(--accent-1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.lightbox .image-before {
    height: 100% !important;
}

#lightbox-caption {
    color: var(--accent-3); /* Lighter green for better readability on dark */
    margin-top: 15px;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
    font-family: inherit;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nav Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20001;
}

.lightbox-nav:hover {
    background: var(--accent-1);
    color: var(--bg-dark);
}

.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--accent-1);
    font-size: 40px;
    cursor: pointer;
    z-index: 20002;
}

.lightbox.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

/* --- 9. UI ELEMENTS --- */
.drawer-toggle {
    display: inline-block; margin-bottom: 15px;
    background: none; border: 1px solid var(--accent-1);
    color: var(--accent-1); padding: 8px 15px;
    border-radius: 4px; cursor: pointer; transition: 0.3s;
    font-size: 0.8rem; font-weight: bold;
}

.drawer-toggle:hover { background: var(--accent-1); color: var(--bg-dark); }

.close-drawer {
    position: absolute; top: 5px; right: 19px;
    background: none; border: none; color: var(--accent-1);
    font-size: 1.2rem; cursor: pointer; z-index: 100;
}

.unlock-button {
    position: fixed; bottom: 30px; right: 30px; z-index: 2000;
    padding: 14px 28px; background: var(--accent-1); color: var(--bg-dark);
    border: none; border-radius: 50px; cursor: pointer;
    font-weight: 800; text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4); 
    transition: all 0.4s ease;
}

.glass-card::-webkit-scrollbar, .drawer-content::-webkit-scrollbar { width: 6px; }
.glass-card::-webkit-scrollbar-track, .drawer-content::-webkit-scrollbar-track { background: rgba(6, 26, 20, 0.4); border-radius: 10px; }
.glass-card::-webkit-scrollbar-thumb, .drawer-content::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 10px; border: 1px solid var(--bg-dark); }

[data-tooltip] { position: relative; cursor: help; border-bottom: 1px dotted var(--accent-1); color: var(--accent-2); }
.global-tooltip {
    position: fixed; background: rgba(6, 26, 20, 0.98); color: var(--text-light);
    padding: 10px 14px; border-radius: 8px; border: 1px solid var(--accent-1);
    font-size: 0.8rem; pointer-events: none; z-index: 9999;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease;
    max-width: 250px; transform: translate(-50%, -110%);
}
.global-tooltip.visible { opacity: 1; visibility: visible; }

#tooltip-bubble {
    position: fixed;
    padding: 15px; /* Increased padding for a more "gallery" feel */
    background: rgba(6, 26, 20, 0.98);
    border: 1px solid var(--accent-1);
    color: var(--text-light);
    border-radius: 12px; /* Slightly rounder corners for a larger box */
    font-size: 0.95rem; /* Slightly larger text for readability */
    pointer-events: none;
    z-index: 10000;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    
    /* --- THE SIZE CONTROLS --- */
    width: 400px;         /* Fixed base width */
    max-width: 90vw;      /* Prevents it from being wider than mobile screens */
    max-height: 500px;    /* Limits height so it doesn't cover the whole screen */
    overflow-y: auto;     /* Adds a scrollbar if the content is too long */
    /* ------------------------- */
    
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
}

#tooltip-bubble img {
    width: 100%;          /* Image will now fill the 400px width */
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    display: block;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Tooltip text styling */
.tooltip-credit {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    color: var(--accent-2);
    font-style: italic;
}

a {
  border-bottom: 1px dotted var(--accent-1);
  color: var(--accent-2);
  cursor: pointer;
}

/* --- 10. TYPOGRAPHY --- */
h1 { font-size: 3rem; color: var(--accent-1); margin-bottom: 1rem; line-height: 1.1; }
h2 { font-size: 1.8rem; color: var(--accent-2); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; color: var(--accent-1); margin-bottom: 0.8rem; }
p { line-height: 1.6; color: var(--accent-3); margin-bottom: 1.5rem; transition: opacity 0.25s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

body:has(.drawer-open) .unlock-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}


/* --- 11. BEFORE & AFTER COMPARISON SLIDER --- */
/* --- 11. BEFORE & AFTER COMPARISON SLIDER --- */

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--accent-1);
    background: #000;
    user-select: none;
    /* This makes 'cqw' units relative to THIS container */
    container-type: inline-size; 
}

/* Base image rules for both images */
.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center; /* Ensures they align from the center */
    display: block;
}

/* Bottom Layer */
.image-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Top Layer (The Crop Window) */
.image-before {
    position: absolute;
    top: 0; left: 0;
    width: 50%; /* Changed by JS */
    height: 100%;
    z-index: 2;
    overflow: hidden;
    border-right: 3px solid var(--accent-1);
}

/* CRITICAL: Preventing the 'Before' image from squeezing or shifting */
.image-before img {
    /* 100cqw forces the image to be the width of the ENTIRE .comparison-slider, 
       even though its parent (.image-before) is only 50% wide. */
    width: 100cqw !important; 
    height: 100% !important;
    max-width: none !important;
    position: absolute;
    left: 0;
    top: 0;
}

/* Lightbox Specific Scaling */
.lightbox .cloned-slider {
    width: 80vw !important;
    max-width: 1100px;
    aspect-ratio: 16 / 9 !important;
}

/* Ensure 'Before' image in Lightbox also spans the full container width */
.lightbox .cloned-slider .image-before img {
    width: 100cqw !important; 
}
.gallery-hint {
    display: none; /* Hidden on desktop */
}

/* UI Elements */
.slider-line {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 2px; background: var(--accent-1); z-index: 4; pointer-events: none;
}

.slider-button {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 44px; height: 44px;
    background: var(--accent-1); border-radius: 50%;
    z-index: 5; display: flex; align-items: center; justify-content: center;
    pointer-events: none; color: var(--bg-dark); font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider {
    position: absolute !important; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: ew-resize; z-index: 10; margin: 0;
}

.label {
    position: absolute; top: 10px; padding: 3px 8px;
    background: rgba(6, 26, 20, 0.8); color: var(--accent-1);
    font-size: 0.7rem; font-weight: bold; border: 1px solid var(--accent-1);
    z-index: 7; text-transform: uppercase;
}
.before-label { left: 10px; }
.after-label { right: 10px; }

/* Ensure the button is at the very top of the stack */
.expand-slider-btn {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    z-index: 100; /* Higher than the .slider (which is 10) */
    background: var(--glass-bg); 
    border: 1px solid var(--accent-1);
    color: var(--accent-1); 
    border-radius: 4px; 
    padding: 6px 10px; 
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    pointer-events: auto; /* Force clickability */
}

.expand-slider-btn:hover {
    background: var(--accent-1);
    color: var(--bg-dark);
}

/* IMPORTANT: Because the invisible <input type="range" class="slider"> 
   is z-index: 10 and covers the whole box, it might be "stealing" the click.
   This rule ensures the button stays on top of the range input.
*/
.slider {
    z-index: 5 !important; /* Lower this slightly */
}

.expand-slider-btn {
    z-index: 20 !important; /* Keep this higher */
}

/* --- Glassmorphic Multi-Slider --- */
/* --- Multi-Stage Map Slider Container --- */
.multi-slider-container {
    position: relative;
    width: 100%;
    /* aspect-ratio ensures the container has height while images are absolute */
    aspect-ratio: 4/3; 
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

/* --- Map Image Stacking --- */
.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Start hidden */
    opacity: 0;
    z-index: 1; 
    transition: opacity 0.4s ease-in-out;
}

/* The class toggled by JavaScript */
.slider-img.active {
    opacity: 1;
    z-index: 2;
}

/* --- Frosted Glass Control Overlay --- */
.slider-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    /* Must be higher than images (z-index 2) to stay visible */
    z-index: 10; 
    background: rgba(25, 25, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Year Labels and Badge --- */
.year-label {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.current-year-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 11;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Custom Range Input (Slider) Styling --- */
.time-slider {
    -webkit-appearance: none;
    appearance: none;
    flex-grow: 1;
    background: transparent;
    cursor: pointer;
    outline: none;
}

/* Track: Chrome, Safari, Edge, Opera */
.time-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Thumb: Chrome, Safari, Edge, Opera */
.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-top: -7px; /* Centers thumb on track */
    transition: transform 0.2s ease, background 0.2s ease;
    border: none;
}

/* Interaction state */
.time-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: #00d2ff;
}

/* Track: Firefox */
.time-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Thumb: Firefox */
.time-slider::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Accessibility: Focus styles */
.time-slider:focus::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.4);
}

/* --- Caption styling --- */
figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.4;
}
/* --- Styled Popup Scrollbar --- */

/* 1. Target the container Mapbox creates */
.mapboxgl-popup-content {
    background: var(--bg-dark) !important;
    color: var(--accent-3);
    border: 1px solid var(--accent-1);
    padding: 15px;
    max-height: 250px; 
    overflow-y: auto; 
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-dark);
}

/* 2. Chrome, Edge, and Safari */
.mapboxgl-popup-content::-webkit-scrollbar {
    width: 6px;
}

.mapboxgl-popup-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

.mapboxgl-popup-content::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
    border: 1px solid var(--bg-dark);
}

.mapboxgl-popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* --- Style the Popup Arrow Tip --- */
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip { border-top-color: var(--accent-1); }
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip { border-bottom-color: var(--accent-1); }
.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: var(--accent-1); }
.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: var(--accent-1); }
.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip { border-bottom-color: var(--accent-1); }
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { border-bottom-color: var(--accent-1); }
.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip { border-top-color: var(--accent-1); }
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { border-top-color: var(--accent-1); }

.mapboxgl-popup-close-button {
    right: 5px;
    color: var(--accent-1);
    font-size: 1rem;
    padding: 5px;
    outline: none;
}

/* --- MOBILE ADAPTATIONS --- */
@media (max-width: 768px) {
    .glass-card {
        width: 90%;
        margin: 0 auto;
        border-left: none;
        border-top: 4px solid var(--accent-1);
        border-radius: 15px 15px 0 0;
        padding: 1.5rem;
        position: fixed;
        /*bottom: 20px;*/
        left: 5%;
        transform: translateY(100px);
    }

    .drawer-open .details-drawer {
        width: 100vw;
        height: 70vh;
        left: 0;
        bottom: 0;
        top: auto;
        border-radius: 20px 20px 0 0;
        flex-direction: column;
        padding: 1rem;
    }

    .drawer-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(16, 185, 129, 0.2);
        padding-bottom: 10px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .step-btn {
        text-align: center;
        white-space: nowrap;
        padding: 5px 15px;
    }

    .floating-image-group {
        right: 0;
        top: 10%;
        width: 100vw;
        height: auto;
        max-height: 250px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        transform: none;
        background: rgba(6, 26, 20, 0.5);
    }

    .map-floating-item {
        width: 200px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .drawer-open .glass-card {
        display: none;
    }
}

/* --- 🎯 ACCESSIBILITY FOCUS RINGS --- */

/* 1. Global Reset (Ensures native browser rings don't clash with your custom rings) */
:focus {
    outline: none !important;
}

/* 2. Custom Neon Ring for Keyboard Tab-navigation only */
:focus-visible {
    outline: 2px solid var(--accent-1) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 15px var(--accent-1) !important;
    border-radius: 4px !important;
}

/* 3. Special Case for circular navigation dots so the focus ring is a circle, not a square */
.dot:focus-visible {
    border-radius: 50% !important;
    outline-offset: 6px !important;
}

/* 4. Smooth transitions so focus rings don't 'snap' jarringly */
button, a, .dot, .map-floating-item {
    transition: outline-offset 0.2s ease, box-shadow 0.2s ease !important;
}
@media (min-width: 1920px) {
    :root {
        --image-gap: 80px; 
    }
}/* =======================================================
   RESPONSIVE OVERRIDE (PLACE AT THE VERY BOTTOM OF CSS)
   ======================================================= */
/* =======================================================
   💻 1. MEDIUM DESKTOPS (983px to 1350px)
   ======================================================= */
@media screen and (min-width: 983px) and (max-width: 1350px) {
    
    /* [Size Styles - Do not delete] */
    .card-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 100% !important;
    }

    .drawer-open .details-drawer {
        width: 45vw !important; 
        max-width: 500px !important; 
        min-width: 380px !important;
        position: relative !important;
        left: 0 !important;
    }

    .floating-images-portal {
        display: block !important;
        position: fixed !important;
        pointer-events: none !important;
    }

    .floating-image-group {
        position: fixed !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: calc(var(--spine-width) + 550px + 30px); 
        right: auto !important; 
        width: 35vw !important; 
        max-width: 450px !important;
        min-width: 320px !important;
        max-height: 80vh !important;
        display: none;
        background: rgba(6, 26, 20, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        border-radius: 12px !important;
        padding: 15px !important;
         flex-direction: column;
    gap: 20px;
    z-index: 12;
        
    }
    
   

    .floating-image-group.active-group {
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }

    .map-floating-item {
        width: 100% !important;
        margin-bottom: 15px !important;
    }


    /* --- 📐 PORTRAIT OVERRIDES (983px - 1350px) --- */
    @media (orientation: portrait) {
        /* Add overrides here for upright medium screens (e.g. iPads/Tablets) */
        
    }
}


/* =======================================================
   📱 2. TABLETS & PHONES (982px and below)
   ======================================================= */
@media screen and (max-width: 982px) {
    
    /* [Size Styles - Do not delete] */
    body {
        overflow: hidden !important;
        height: 100vh !important;
    }
#dot-nav{
    display: none !important
}
    .scroll-container {
        position: relative !important;
        height: 100vh !important;
        overflow-y: scroll !important;
        scroll-snap-type: y mandatory !important; 
        z-index: 2 !important;
    }

    section {
        height: 100vh !important;
        min-height: 100vh !important;
        padding: 0 !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        position: relative !important;
        scroll-snap-align: start !important;
    }

    .card-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        position: relative !important;
    }

    .glass-card {
        position: relative !important;
        box-sizing: border-box !important; 
        width: 92% !important; 
        min-width: 0 !important; 
        max-width: 600px !important;
        left: 0 !important; 
        right: 0 !important;
        transform: none !important;
        margin: 50px auto !important; 
        z-index: 5 !important;
        padding: 1.2rem !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .glass-card h2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        margin-bottom: 1rem !important;
    }

    /* --- Pin Title to the top-left of the Details Drawer (Horizontal Tab) --- */
.short-title {
    display: block !important;
    text-align: center !important;
    
    /* 1. Flush alignment to the top-left of the Details Drawer container */
    top: -33px !important; /* Pulls it up just enough to sit on the top rim */
    left: 15px !important; 
    transform: none !important; 

    writing-mode: horizontal-tb !important; 
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--accent-1) !important;
    z-index: 100 !important;
    
    /* 2. Style matching the desktop neon aesthetic */
    padding: 6px 14px !important;
    border-radius: 6px 6px 0 0 !important; /* Rounded top corners only, flat bottom */
    border-bottom: none !important; /* Merges visually into the Details Drawer card */
}

    .drawer-open .glass-card {
        display: block !important;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 0 !important;
        z-index: 15 !important;
    }

    .drawer-open .glass-card h1,
    .drawer-open .glass-card .content-area {
        display: none !important;
    }

    .drawer-open .details-drawer {
        position: relative !important; 
        box-sizing: border-box !important;
        width: 92% !important; 
        min-width: 0 !important; 
        max-width: 600px !important;
        height: 42vh !important; 
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        top: auto !important;
        margin: 50px auto 5px auto !important; 
        border-radius: 15px !important;
        flex-direction: column !important;
        padding: 1rem !important;
        opacity: 1 !important;
        z-index: 10 !important; 
        pointer-events: auto !important;
        border: 1px solid var(--accent-1) !important; 
    }

    .drawer-sidebar {
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
        padding-bottom: 12px !important;
        margin-right: 0 !important;
        margin-top: 15px !important; 
        margin-bottom: 10px !important;
        display: flex !important;
        gap: 15px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: var(--accent-1) rgba(6, 26, 20, 0.4) !important;
    }

    .drawer-sidebar::-webkit-scrollbar,
    .drawer-content::-webkit-scrollbar {
        height: 6px !important;
        width: 6px !important;
    }

    .drawer-sidebar::-webkit-scrollbar-track,
    .drawer-content::-webkit-scrollbar-track {
        background: rgba(6, 26, 20, 0.4) !important;
        border-radius: 10px !important;
    }

    .drawer-sidebar::-webkit-scrollbar-thumb,
    .drawer-content::-webkit-scrollbar-thumb {
        background: var(--accent-1) !important;
        border-radius: 10px !important;
        border: 1px solid var(--bg-dark) !important;
    }



    
    .step-btn {
        text-align: left !important;
        white-space: nowrap !important;
        padding: 12px 30px 12px 30px !important; 
        background: rgba(16, 185, 129, 0.1) !important;
        color: var(--accent-3) !important;
        font-size: 0.8rem !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        border: none !important;
        cursor: pointer !important;
        clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%) !important;
        margin-left: -15px !important; 
        transition: all 0.2s ease-in-out !important;
        scroll-snap-align: center !important;
    }

    .drawer-sidebar .step-btn:first-child {
        margin-left: 0 !important;
        scroll-snap-align: start !important; 
    }


    .step-btn.active-step {
        background: var(--accent-1) !important;
        color: var(--bg-dark) !important;
        font-weight: bold !important;
        z-index: 10 !important; 
    }

    .drawer-content {
        height: 100% !important;
        overflow-y: auto !important;
        padding-right: 5px !important;
        margin-top: 5px !important;
    }

    .floating-images-portal {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        height: 38vh !important; 
        pointer-events: none !important;
        z-index: 1000 !important;
        display: flex !important;
        justify-content: center !important;
    }

    .floating-image-group {
        position: absolute !important; 
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: auto !important;
        width: 92% !important; 
        max-width: 600px !important;
        height: 100% !important;
        max-height: 38vh !important;
        flex-direction: row !important; 
        overflow-x: auto !important; 
        overflow-y: hidden !important;
        padding: 10px !important;
        background: rgba(6, 26, 20, 0.9) !important; 
        border: 1px solid var(--accent-1) !important;
        border-bottom: none !important;
        border-radius: 15px 15px 0 0 !important;
        pointer-events: auto !important;
        display: none;
        gap: 15px !important;
    }

    .floating-image-group.active-group {
        display: flex !important;
    }

    .map-floating-item {
        width: 250px !important;
        max-width: 250px !important;
        flex-shrink: 0 !important;
        background: rgba(0, 0, 0, 0.3) !important;
        border-radius: 10px !important;
        border: 1px solid rgba(16, 185, 129, 0.2) !important;
    }


    /* --- 📐 PORTRAIT OVERRIDES (982px and below) --- */
    @media (orientation: portrait) {
        /* Add overrides here for standard upright phones and small tablets */
        /* Inside @media screen and (max-width: 982px) -> @media (orientation: portrait) */
/* --- MOBILE OVERLAP FIX --- */
@media screen and (max-width: 982px) {
    
    /* 1. Nudge the Explore Map button up so it's not on the very bottom */
    .unlock-button {
        bottom: 83px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    #back-to-top {
        z-index: 1;
    }

    /* 2. Keep the Navigation Icons (Mouse/Back to Top) at the base */
    .scroll-nudge, 
    .back-top-btn {
        bottom: 20px !important;
        /* Ensure they don't get too wide on small screens */
        width: auto;
        white-space: nowrap;
    }

    /* 3. Adjust spacing for the 'Back to Top' text to keep it compact */
    .back-top-btn {
        gap: 4px !important;
    }
    
    .back-top-btn span {
        font-size: 9px !important;
        letter-spacing: 1px !important;
    }
}
        .drawer-open .details-drawer {
    height: 52vh !important; /* Bumped from 42vh to 52vh to eat up the dead space */
}

/* Recalculate your folder tab title location so it stays attached to the new taller rim */
.details-drawer .short-title {
    top: -33px !important;
    margin-top:10px;
}

        .floating-images-portal {
            /* 1. Pull the container up from the bottom glass edge of the screen */
            bottom: 15px !important; 
            
            /* 2. Recalculate height to account for the 15px gap we just added */
            height: calc(38vh - 15px) !important; 
        }

        .floating-image-group {
            /* 3. Drop the hard-coded border-bottom: none so it frames nicely as a floating island */
            border-bottom: 1px solid var(--accent-1) !important;
            border-radius: 15px !important; /* Curves all four corners! */
            
            /* 4. Keep it visually centered and floating */
            bottom: 0 !important;
            left: 50% !important;
            transform: translateX(-50%) !important;

            display: none; /* JS toggles this to flex */
            align-items: center !important; /* Vertically centers the items */
            padding: 15px !important;
        }

        .map-floating-item figcaption {
            display: none !important;
        }

        .map-floating-item {
            width: auto !important; /* Let width scale naturally based on height */
            max-width: none !important;
            height: 100% !important; /* Force it to take the panel's height */
            padding: 0 !important;
            display: flex !important;
            align-items: center !important;
        }

        .map-floating-item img {
            height: 100% !important; /* Locks image to item height */
            width: auto !important; /* Keeps aspect ratio intact */
            object-fit: contain !important; /* Prevents squishing */
        }
        .gallery-hint {
            display: block !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            transform: none !important;
            width: 100% !important;
            text-align: center !important;
            
            /* Heavy dark background strip so it sits cleanly above photos */
            background: rgba(6, 26, 20, 0.95) !important; 
            padding: 10px 0 !important; 
            border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
            z-index: 20 !important;
        }

    /* Push images down slightly so they don't overlap the hint text */
    .floating-image-group {
        padding-top: 35px !important; 
    }

    /* Put this inside @media screen and (max-width: 982px) -> @media (orientation: portrait) */

/* Put this inside @media screen and (max-width: 982px) -> @media (orientation: portrait) */

.single-image-panel {
    justify-content: center !important; 
    align-items: center !important; 
    overflow-x: hidden !important; 
}

.single-image-panel .map-floating-item {
    margin: 0 auto !important; 
    width: auto !important;
    
    /* 🎯 FIX: Prevent wide landscape photos from bleeding off the screen edges */
    max-width: 100% !important; 
    height: auto !important; /* Overrides height: 100% if width becomes the limiting factor */
}

.single-image-panel .map-floating-item img {
    /* 🎯 FIX: Force the image to scale down proportionally inside the item container */
    max-width: 100% !important; 
    width: auto !important;
    height: auto !important; 
    max-height: 100% !important; /* Ensures it still doesn't get taller than the panel! */
    object-fit: contain !important; 
}
    }
}
