/* ==========================================================================
   1. GLOBAL & BODY STYLES
   ========================================================================== */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.8;
    color: #333; 
    margin: 0;
    padding: 0;
    background-image: url('/images/dsworlds7-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Container to center the floating glass window on the background */
.page-center-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
}


/* ==========================================================================
   2. LAYOUT CONTAINERS (Glassmorphism)
   ========================================================================== */
.floating-window {
    background-color: transparent;
    max-width: 900px;
    min-width: 0px; 
    width: 100%;
    border: 1px solid #316bb3;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* FIX: Stabilizes cursor tracking over blur effects */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* The White "Paper" area. Negative margins sit flush against Nav/Window edges */
.main-content-area {
    background-color: rgba(255, 255, 255, 0.85); 
    /* Changed: Removed the -15px top margin to prevent overlap flicker */
    margin: 0 -40px 0 -40px; 
    padding: 40px; 
    min-height: 100%;
    padding-top: 20px; 
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   3. HEADER & BANNER
   ========================================================================== */
.header-banner {
    margin: -40px -40px 0 -40px; 
    background-color: #aad2e699; 
    height: 160px; 
    display: flex;
    align-items: center; 
    padding: 0 40px;
    border-bottom: 2px solid #e2e8f0;
    overflow: hidden; 
    position: relative;
    z-index: 2; /* Ensures it stays above the main content area */
}

.header-text-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15px;
    /* Add this: ensures the stack itself centers its children vertically */
    min-height: 100px; 
    padding-top: 10px;
    box-sizing: border-box;
    max-width: none;
    white-space: nowrap;
}

h1.header-text { 
    font-family: 'Dimitri Swank', sans-serif !important; 
    color: #234871;
    font-weight: normal;
    font-size: 52px; /* This becomes the "Maximum" size */
    margin: 0;
    line-height: 1.0;
    white-space: nowrap; /* Prevents wrapping during calculation */
    display: inline-block;
    max-width: 100%;
}

.header-subtitle {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #366eb5;
    font-size: 18px;
    font-weight: 600;
    margin-top: 1px;
    line-height: 1.2;
    white-space: normal;
    display: block;
    max-width: 90%
}

/* NEW: This is the key. It removes the 'invisible' subtitle box from the math 
   when it's empty, allowing the Title to sit in the center of the stack. */
.header-subtitle:empty {
    display: none;
}

/* Duplicate Header Code ========================================================= */

/* Container to keep them grouped */
.header-stack-container {
    display: flex;
    flex-direction: column;
    width: auto;
}

/* 1. The Outer Wrapper */
.header-banner-mobile {
    margin: 0px -40px 0 -40px; /* Removed the -40px top margin */
    background-color: #aad2e699; 
    height: 130px; 
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center; 
    padding: 25px 0px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
    z-index: 1; 
}

/* 2. The Internal Gradient Box */
.main-header-gradient-mobile { 
    display: flex; 
    align-items: left; 
    padding: 0px 10px;
    gap: 10px; 
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
    width: 100%; 
    margin-bottom: 5px;
}

.header-icon-mobile {
    border-radius: 50%; 
    box-shadow: 0 0 10px 10px white; 
    flex-shrink: 0;
    margin-left: 15px;
}

/* 3. The Text Container */
.header-text-stack-mobile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    margin-left: 0px;
    min-height: 100px; 
    padding-top: 10px;
    box-sizing: border-box;
    /*white-space: nowrap; */
}

/* 4. The Specific Text Styles */
h1.header-text-mobile { 
    font-family: 'Dimitri Swank', sans-serif !important; 
    color: #234871;
    font-size: 38px;
    margin: 0;
    line-height: 1.1;
    display: inline-block; 
    
    /* These three lines ensure the weight matches the original exactly */
    font-weight: 400 !important; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    

}

.header-subtitle-mobile {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #234871;
    font-size: 16px;
    font-weight: 600; /* Match the original 600 weight */
    margin-top: 1px;
    margin-left: 0px;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    display: block;
    width: 100%;
    text-align: center !important;
}

/* End of Duplicate Header Code ========================================================= */

/* ==========================================================================
   4. GRADIENT & ICON
   ========================================================================== */
.main-header-gradient { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
    border-radius: 50px 0 0 50px; 
    margin: 0;
    padding: 0;
    width: 100%; 
    /* Keep height undefined so it doesn't stretch the banner */
}

.main-header-gradient img {
    border-radius: 50%; 
    box-shadow: 0 0 10px 10px white; 
    flex-shrink: 0; /* Prevents the icon from squishing */
}

/* ==========================================================================
   5. NAVIGATION & DROPDOWN (Corrected Alignment)
   ========================================================================== */
.top-nav {
    background-color: #366eb5;
    height: 35px; 
    width: calc(100% + 80px); 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-left: -40px;
    margin-right: -40px;
    position: relative; 
    z-index: 10; 
}

.nav-links-left {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.nav-links-left a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
}

.nav-pipe {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    font-size: 14px;
    user-select: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 17px;
    cursor: pointer;
    padding: 0 20px;
    height: 35px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropbtn::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid white; 
    transition: transform 0.4s ease;
    margin-left: 8px; /* Space between text and arrow */
}

/* Flip the arrow on hover */
.dropdown:hover .dropbtn::after {
    transform: rotate(180deg);
}

/* Updated Dropdown Menu - Left Aligned text now */
.dropdown-content {
    display: block;
    position: absolute;
    right: 0; 
    top: 35px; 
    width: max-content; 
    min-width: 220px; 
    padding: 5px 0; 
    z-index: 4; 
    background-color: #aad2e6ee; 
    backdrop-filter: blur(10px);
    border: 1px solid #366eb5;
    border-radius: 0 0 8px 8px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dropdown-content a {
    display: block;
    padding: 10px 20px; 
    text-align: left; /* Changed from right to left as requested */
    text-decoration: none;
    color: #234871;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: #366eb5;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ==========================================================================
   5. FEATURED ARTWORK
   ========================================================================== */

#featured-placeholder {
    margin-top: -10px; /* Reduces gap between intro text and featured art */
}

.featured-artwork-wrapper {
    /* Adjust this value based on your layout—400px to 500px is usually the sweet spot */
    min-height: 600px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    transition: min-height 0.3s ease; /* Smooths out any small adjustments */
}

.featured-tag {
    font-family: 'Segoe UI', sans-serif;
    color: #234871;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 800;
    
    /* This creates the physical space after the colon */
    margin-right: 12px; 
    display: inline-block; /* Ensures margin is respected */
}

.featured-header-line {
    text-align: center;
    border-bottom: 2px solid #aad2e6;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    white-space: pre-wrap;
}

/* Featured Image Scaling (80% Width) */
.featured-image-link {
    /* Remove width: 80% and use these instead */
    width: fit-content; 
    max-width: 80%; /* Keeps it from hitting the screen edges */
    height: auto;
    max-height: 550px; 
    cursor: zoom-in;
    margin: 0 auto; /* Keeps the "shrink-wrapped" box centered */
    background-color: #00000000; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    position: relative;
    display: flex; /* Helps with internal alignment */
}

#feat-image {
    display: block;
    max-width: 100%;
    max-height: 550px; /* The "Ceiling" for vertical images */
    width: auto;
    height: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

/* Interaction feedback */
.featured-image-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.featured-image-link:hover #feat-image {
    opacity: 1;
}

/* Centered Specs for Featured Artwork */
.painting-specs.centered {
    text-align: center;
    margin: 20px auto 0 auto; /* Centers the block itself */
    padding-top: 15px;
    border-top: 1px solid #aad2e6;
    width: 80%; /* Matches the image width for visual balance */
    display: flex;
    justify-content: center; /* Centers the items horizontally */
    align-items: center;
    gap: 0; /* Let the separators handle the spacing */
    flex-wrap: wrap; /* Allows stacking on very small mobile screens */
}

/* Ensure the separators have consistent spacing in the centered view */
.painting-specs.centered .spec-separator {
    padding: 0 15px;
}

/* Unique class for the Featured Artwork redirect button */
.featured-action-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    /* The Blue "Glass" Look */
    background: rgba(54, 110, 181, 0.8); /* Your specific brand blue with transparency */
    color: #ffffff !important;
    padding: 6px 28px;
    border-radius: 50px; /* pill-shaped */
    border: 0px solid transparent;
    
    /* Typography & Effects */
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    backdrop-filter: blur(8px); /* The frosted glass effect */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 4;
}

.featured-action-btn:hover {
    background: rgba(54, 110, 181, 1); /* Solid on hover */
    transform: translateX(-50%) scale(1.05); /* Slight pop out */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Carousel Arrows */
.carousel-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: 300px; 
    background: rgba(54, 110, 181, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    padding: 0;
}

/* This makes the arrow graphic itself larger and thicker */
.carousel-arrow svg {
    width: 32px; 
    height: 32px;
    display: block;
    /* This ensures the line is nice and chunky */
    stroke-width: 3.5; 
}

.carousel-arrow:hover {
    background: rgba(35, 72, 113, 1);
    transform: scale(1.1);
}

.carousel-arrow.left { left: 20px; }
.carousel-arrow.right { right: 20px; }
.carousel-arrow.left svg { transform: translateX(-2px);}
.carousel-arrow.right svg { transform: translateX(2px);}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
/* The 12px Frosted Band */
.footer-bridge {
    height: 12px;
    background-color: #aad2e699; 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #366eb5; 
    margin: 0 -40px; 
}

/* The Double-Tall Blue Footer Container */
.main-footer {
    background-color: #366eb5;
    min-height: 120px;
    margin: 0 -40px -40px -40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 2px solid #ffffff;
    color: white;
}

/* Container for the link row */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 5px; /* Spacing handled mostly by separator padding */
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* The Facebook Icon and Text Alignment */
.fb-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-icon {
    width: 18px;
    height: 18px;
    display: block;
    /* Manual nudge if the icon still looks a hair low */
    transform: translateY(-1px);
}

/* Unified Separator Style */
.separator {
    color: rgba(255, 255, 255, 0.4); 
    padding: 0 15px; /* Extra padding to spread links out */
    font-size: 0.9rem;
    display: inline-block;
}

/* Copyright Row */
.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin: 12px 0 0 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ==========================================================================
   7. TYPOGRAPHY & CUSTOM LISTS
   ========================================================================== */
h2 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 10px; margin-top: 50px; }
h3 { color: #2980b9; }

code { 
    background: #e8e8e8; 
    padding: 3px 6px; 
    border-radius: 4px; 
    font-family: 'Courier New', Courier, monospace; 
    font-weight: bold; 
    font-size: 0.95em;
}

/* Custom Image Bullets */
ul { list-style: none; padding-left: 20px; margin-bottom: 20px; }

ul li::before {
    content: "";
    display: inline-block;
    background-image: url('/images/black-hole-bullet.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 25px;
    height: 25px;
    position: relative;
    top: 15px; 
    margin-right: 5px;
}

ul li a {
    text-decoration: none;
    color: #2980b9;
    font-weight: 500;
    transition: all 0.3s ease; 
    display: inline-block; 
    vertical-align: middle;
}

ul li a:hover {
    color: #366eb5; 
    padding-left: 10px; /* This moves the text WITHOUT breaking the hover hitbox */
    text-shadow: 0px 0px 8px rgba(54, 110, 181, 0.3); 
}

/* ==========================================================================
    8. CONTACT FORM
    ========================================================================= */
    
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 20px auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #234871;
}

.form-group input, .form-group textarea {
    padding: 10px;
    border: 1px solid #aad2e6;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    background-color: #366eb5;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #234871;
}

/* ==========================================================================
    9. ARTWORK PROTECTION & NARRATIVE
    ========================================================================== */

/* Layout & Main Container */
.artwork-display-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   CONSOLIDATED ARTWORK PROTECTION LAYER
   ========================================================================== */
.image-protection-layer {
    /* 1. Layout & Positioning */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    max-height: 75vh;
    overflow: hidden;
    cursor: zoom-in !important; /* Indicates interactivity, can be overridden by specific IDs if needed */
    
    /* 2. Aesthetics */
    background-color: #00000000;
    border-radius: 12px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    
    /* 3. Protection & Interactions */
    pointer-events: auto;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific override for the Featured Artwork hover effect */
.featured-image-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

#main-image {
    width: auto;
    height: auto;
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    cursor: zoom-in !important;
}

.click-to-zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(54, 110, 181, 0.8);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    pointer-events: none;
    font-family: sans-serif;
}

.back-to-gallery-hint {
    position: absolute;
    bottom: 15px;
    left: 15px; /* Opposite side of the Zoom hint */
    background: rgba(54, 110, 181, 0.8);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.back-to-gallery-hint:hover {
    background: rgba(35, 72, 113, 1);
    transform: scale(1.05);
}

/* Styled Arrow to match your Carousel arrows */
.back-arrow-svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 4; /* Chunky like the carousel */
    fill: none;
}

/* Typography Refinements */
.artwork-title-line {
    margin-top: 10px;
    margin-bottom: 5px;
    border-bottom: 2px solid #aad2e6;
    padding-bottom: 10px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.series-tag {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #366eb5;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 10px;
}

.painting-name {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #234871;
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
}

.story-content p {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-top: 20px;
    text-align: left;
}

.painting-specs {
    margin-top: 25px;
    padding-top: 12px;
    font-family: sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0
}

.spec-separator {
    color: #366eb5;
    font-weight: 900;
    padding: 0 12px;
}

/* ==========================================================================
   FULLSCREEN INDEPENDENT LIGHTBOX
   ========================================================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;   /* Force full viewport width */
    height: 100vh;  /* Force full viewport height */
    background-color: #000000; /* Pure black, no transparency */
    z-index: 5; /* Higher than everything else on the page */
    
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    cursor: none;
}

.zoom-container {
    position: relative !important;
    display: block; /* Change back to block for stability */
    margin: 0 auto;
    line-height: 0;
    overflow: visible !important; /* Ensure the bubble can move freely */
    cursor: none !important;
}

.mobile-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2050; /* Sits between the image and the zoom bubble */
    background: rgba(0,0,0,0); /* Completely transparent */
    pointer-events: none;
}

#zoom-image {
    max-width: 95vw;
    max-height: 90vh;
    display: block;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.zoom-lens-bubble {
    position: fixed !important; /* Locks it to the screen coordinates, not the image */
    width: 280px;
    height: 280px;
    border: 3px solid #366eb5;
    border-radius: 50%;
    pointer-events: none; 
    visibility: hidden;
    z-index: 6; /* Sits above the lightbox and image */
    background-repeat: no-repeat;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    /* Prevent any parent CSS from moving this */
    margin: 0 !important;
    transform: none !important;
    cursor: none !important;
}

.lightbox-close {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: #ffffff;
    opacity: 0.5;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Disable the long-press menu and ghost image dragging on mobile */
#main-image, #zoom-image, .zoom-container {
    -webkit-touch-callout: none !important; /* iOS Safari */
    -webkit-user-select: none !important;  /* Safari */
    -khtml-user-select: none !important;   /* Konqueror HTML */
    -moz-user-select: none !important;     /* Firefox */
    -ms-user-select: none !important;      /* Internet Explorer/Edge */
    user-select: none !important;          /* Non-prefixed version, currently supported by Chrome and Opera */
    -webkit-user-drag: none !important;    /* Prevents dragging the image to a new tab */
} 

/* ==========================================================================
   10. INQUIRY FORM
   ========================================================================== */


.form-section {
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #366eb5;
}

.form-section h3 {
    font-size: 1rem;
    color: #234871;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkbox-group label, .radio-group label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: sans-serif;
    color: #444;
}

.disabled-option {
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Conditional Shipping Section */

.hidden-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s;
    opacity: 0;
}

.hidden-section.visible {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 25px;
}

.inquiry-intro {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #aad2e6;
}

.disclaimer {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Purchase Information Box */

.purchase-info-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(54, 110, 181, 0.08); /* Subtle blue tint */
    border: 1px solid #aad2e6;
    border-radius: 8px;
}

.purchase-header {
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    color: #234871;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.availability-notes {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}

.inquiry-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #366eb5;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
}

.inquiry-btn:hover {
    background-color: #234871;
}

/* ==========================================================================
   11. NEW CENTERING FIXES (Added for Availability Logic)
   ========================================================================== */

/* This forces the row inside the "Purchase Box" and Narrative to center perfectly */
#target-availability, 
#target-availability-narrative {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

/* Forces the Blue Box items to center align */
.purchase-info-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Standardize the dynamic button width for a cleaner look */
.inquiry-btn {
    min-width: 280px;
    text-align: center;
    margin-top: 15px;
}

/* Ensure the Narrative availability row has no top border so it looks integrated */
.availability-row-narrative {
    margin-top: 10px;
    border-top: none;
}

/* --- TIGHTEN PURCHASE BOX SPACING --- */

/* 1. Reduce the internal padding at the top of the blue box */
.purchase-info-box {
    padding-top: 10px !important; 
    margin-top: 20px !important; /* Adjusts space above the box itself */
}

/* 2. Remove the "push-down" margin from the header text */
.purchase-info-box h3.purchase-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 10px !important; /* Space between header and the text below it */
}

/* 3. Ensure the availability notes don't add extra top gap */
.availability-notes {
    margin-top: 0 !important;
}



/* 1. THE CONTAINER */
#main-gallery-grid {
    display: flex;
    flex-wrap: wrap;      
    gap: 30px;            /* Increased gap for a cleaner look */
    justify-content: center; 
    padding: 20px;
    max-width: 1400px;    
    margin: 0 auto;
}

/* 2. THE ITEM WRAPPER */
.gallery-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover { 
    transform: translateY(-4px); 
}

/* 3. THE IMAGE LAYER (Fixed Height / No Crop) */
.thumb-protection-layer {
    height: 220px;        /* Lowered from 300px to allow ~3-4 images per row */
    width: auto;          
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border: 1px solid #aad2e6;
    pointer-events: none;
}

.thumb-protection-layer img {
    height: 100%;         
    width: auto;          
    display: block;
}

/* 4. RESTORING FONT STYLES */
.gallery-item h3 {
    font-family: 'Dimitri', sans-serif;
    margin: 8px 0 2px 0;
    font-size: 1.1rem;    /* Scaled font down slightly to match smaller images */
    color: #234871;
    font-style: italic;
    text-align: center;
    width: 100%;
    line-height: 1.1;
    max-width: 220px;     /* Prevents text from being wider than the thumbnail */
}

.gallery-item p {
    margin: 0;
    font-size: 0.8rem;
    color: #366eb5;       /* Your specific blue */
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    letter-spacing: 1px;  /* Makes uppercase easier to read */
}

.filter-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(54, 110, 181, 0.3);
    color: #333;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Dimitri', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(54, 110, 181, 0.1);
}

.filter-btn.active {
    background: #366eb5;
    color: white;
    border-color: #366eb5;
    box-shadow: 0 4px 10px rgba(54, 110, 181, 0.3);
}

/* Optional: Fade in animation for items */
.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 2. Tighten space around the Filter Bar */
.filter-container {
    margin-bottom: 5px !important;
}

/* 3. Reduce gap between Filter Buttons and Gallery Grid */
#main-gallery-grid {
    padding-top: 10px !important;
}

/* 4. Category Explanation Text Styling */
.category-description {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 20px auto;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

/* ==========================================================================
   AVAILABLE WORKS - V4 (FORCED BADGE WIDTH & TIGHT SPACING)
   ========================================================================== */

/* --- 1. Top Merch Cards (Stable) --- */
/* --- Updated Merch Cards with Images --- */
.merch-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

/* --- Updated Merch Cards: No Cropping --- */
.merch-card {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 5px solid #366eb5;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.merch-img-container {
    width: 100%;
    /* Remove fixed height to let the image dictate the size */
    background-color: transparent; 
    line-height: 0; /* Removes tiny ghost gap at the bottom of images */
    padding: 10px 10px 0 10px; /* Optional: adds that slight border/padding you mentioned */
    box-sizing: border-box;
}

.merch-img-container img {
    width: 100%;
    height: auto; /* Ensures the full landscape aspect ratio is preserved */
    display: block;
    border-radius: 6px; /* Optional: rounds the photo corners slightly to match the card */
}

.merch-info {
    padding: 10px 20px 20px 20px; /* Reduced top padding (10px) to tighten the gap */
    text-align: center;
}

.merch-info h3 {
    margin-top: 0;
    margin-bottom: 5px; /* Tighter space under the title */
    color: #234871;
    font-size: 1.2rem;
}

.merch-info p {
    margin: 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.price-text {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #366eb5;
    font-size: 1.1rem;
}

.merch-card.no-img {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-top: 5px solid #366eb5;
    border-radius: 10px;
    text-align: center;
    padding: 25px;
}

/* --- 2. The 2-Column Waterfall (Masonry) --- */
#available-works-grid {
    display: flex;
    align-items: flex-start; /* Keeps columns at their own heights */
    gap: 30px;               /* Space between the two columns */
    width: 100%;
    padding: 20px 0;
}

/* The actual columns */
.masonry-column {
    display: flex;
    flex-direction: column;
    flex: 1;                /* Makes both columns equal width */
    gap: 35px;              /* Space between items vertically */
}

/* Mobile: Stack the columns */

/* --- 3. Individual Art Cards (Keep your existing styling) --- */
#available-works-grid .gallery-item {
    display: block; 
    width: 100%;
    position: relative;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px !important; 
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
/* --- 4. Image Container (The Gap Killer) --- */
#available-works-grid .thumb-protection-layer {
    position: relative;
    width: 100%;
    height: auto;
    line-height: 0;
    overflow: hidden;
    border-radius: 4px;
    /* Snaps titles immediately under the image */
    margin-bottom: 5px !important; 
}

#available-works-grid .thumb-protection-layer img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 5. THE PLAYMAT BADGE (THE "IRON-CLAD" FIX) --- */
.merch-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #366eb5 !important;
    color: white !important;
    
    /* FORCE THE SHAPE */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap !important;
    width: auto !important;
    min-width: fit-content !important;
    height: 32px; /* Fixed height prevents vertical squishing */
    padding: 0 16px !important; /* Horizontal padding only */
    
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 12;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- 6. TEXT CENTERING --- */
#available-works-grid h3, 
#available-works-grid .shop-series, 
#available-works-grid .shop-price, 
#available-works-grid .shop-dims {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    display: block !important;
}

#available-works-grid h3 {
    margin-top: 0 !important; 
    margin-bottom: 2px !important;
    color: #234871;
    font-size: 1.25rem;
    line-height: 1.1;
}

/* 1. Target the container holding the two columns */
.shop-columns-container, 
#available-works-grid { /* Check if you have an ID like this in your HTML */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important; /* Forces them to stay side-by-side */
    gap: 30px;
    justify-content: center;
}

/* 2. Prevent the columns themselves from getting too skinny */
#left-col, #right-col {
    flex: 1;
    min-width: 350px; /* Adjust this based on your card width */
    max-width: 450px;
}

/* 3. The "Nav Guard": Prevent the window from shrinking past the Wave Nav's width */
.floating-window {
    min-width: 850px; /* This is the "floor" that protects your header and nav */
}

.shop-series { font-style: italic; color: #666; font-size: 0.85rem; margin-bottom: 2px !important; }
.shop-price { font-weight: bold; color: #366eb5; font-size: 1.15rem; margin-bottom: 2px !important; }
.shop-dims { color: #888; font-size: 0.8rem; margin-top: 0 !important; }

/* ==========================================================================
   NAVBAR: "AVAILABLE WORKS" LIVING WAVE ANIMATION
   ========================================================================== */

/* 1. THE CONTAINER: Ensures the link stays on one line and has a solid base */
.nav-available-link {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    color: #ffffff !important; /* Absolute fallback if animation fails */
    white-space: nowrap !important;
    align-items: center;
    padding: 0 5px;
}

/* 2. THE LETTERS: Individual behavior for each span */
.nav-available-link span {
    display: inline-block;
    color: #ffffff;
    /* translateZ(0) pushes the rendering to the GPU for better performance */
    transform: translateZ(0); 
    will-change: transform, color, filter, margin;
    transition: margin 0.2s ease;
    
    /* Animation Assignment */
    animation: travelingWave 1.8s ease-in-out infinite;
}

/* 3. THE STAGGER: This creates the "Left-to-Right" movement */
.nav-available-link span:nth-child(1)  { animation-delay: 0.07s; }
.nav-available-link span:nth-child(2)  { animation-delay: 0.14s; }
.nav-available-link span:nth-child(3)  { animation-delay: 0.21s; }
.nav-available-link span:nth-child(4)  { animation-delay: 0.28s; }
.nav-available-link span:nth-child(5)  { animation-delay: 0.35s; }
.nav-available-link span:nth-child(6)  { animation-delay: 0.42s; }
.nav-available-link span:nth-child(7)  { animation-delay: 0.49s; }
.nav-available-link span:nth-child(8)  { animation-delay: 0.56s; }
.nav-available-link span:nth-child(9)  { animation-delay: 0.63s; }
.nav-available-link span:nth-child(10) { animation-delay: 0.70s; animation: none !important; } /* The Space (&nbsp;) */
.nav-available-link span:nth-child(11) { animation-delay: 0.77s; }
.nav-available-link span:nth-child(12) { animation-delay: 0.84s; }
.nav-available-link span:nth-child(13) { animation-delay: 0.91s; }
.nav-available-link span:nth-child(14) { animation-delay: 0.98s; }
.nav-available-link span:nth-child(15) { animation-delay: 1.05s; }

/* 4. THE WAVE LOGIC: Glow, Color, and Expansion */
@keyframes travelingWave {
    /* 0% to 10% and 35% to 100% are the "Normal" state */
    0%, 35%, 100% {
        transform: scale(1);
        color: #ffffff;
        filter: drop-shadow(0 0 0px transparent);
        margin: 0 0px;
    }
    /* 15% to 20% is the "Peak" of the wave as it hits each letter */
    17% {
        transform: scale(1.18); /* Slight pop forward */
        color: #aad2e6;        /* Brand light blue */
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)); /* Radiant white glow */
        margin: 0 2.5px;       /* The "ripple" displacement */
    }
}

/* 5. ACCESSIBILITY: Disable if user has "Reduce Motion" enabled in OS */
@media (prefers-reduced-motion: reduce) {
    .nav-available-link span {
        animation: none !important;
        color: #ffffff !important;
        transform: none !important;
        margin: 0 !important;
        filter: none !important;
    }
}

#mobile-nav-container {
    display: none;
}

/* --- Header Visibility Logic --- */

/* 1. Desktop View (Screens wider than 768px) */
@media screen and (min-width: 769px) {
    /* Hide the mobile-optimized copy */
    .header-banner-mobile {
        display: none !important;
    }
    
    /* Ensure the original stays visible */
    .header-banner {
        display: flex !important;
    }
}

/* 2. Mobile View (Screens 768px and narrower) */
@media screen and (max-width: 768px) {
    /* Hide the original desktop header */
    .header-banner {
        display: none !important;
    }
    
    /* Show the mobile-optimized copy */
    .header-banner-mobile {
        display: flex !important;
        margin-top: -20px !important;
    }
}

/* EVENT ANNOUNCEMENT CARD */

/* Event Card Styling */
.event-announcement-card {
    display: flex;
    align-items: center;
    background: rgba(54, 110, 181, 0.1);
    border: 2px solid #366eb5;
    border-radius: 12px;
    padding: 25px;
    /* CHANGE THIS: 40px top, 0px bottom */
    margin: 40px 0 0 0; 
    gap: 30px;
}

.event-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.event-logo:hover {
    transform: scale(1.05);
}

.event-details {
    flex: 1;
}

.event-title {
    font-family: 'Dimitri Swank', sans-serif;
    color: #234871;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.event-tagline {
    font-weight: 600;
    color: #366eb5;
    margin-bottom: 20px;
}

.event-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item strong {
    display: block;
    color: #234871;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.info-item span {
    display: block;
    font-size: 1.1rem;
}

.info-item small {
    display: block;
    color: #666;
    margin-top: 4px;
}

.event-link-btn {
    display: inline-block;
    background-color: #366eb5;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.event-link-btn:hover {
    background-color: #234871;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .event-announcement-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .event-info-grid {
        grid-template-columns: 1fr;
    }
    
    .event-logo {
        max-width: 150px;
    }
}

.image-protection-layer {
    position: relative;
}

.protection-shield {
    cursor: zoom-in !important; /* Keeps your custom cursor working */
}

/* Ensure the button stays on top of the shield */
.featured-action-btn {
    pointer-events: none; /* Let clicks pass through the button to the link */
}

