/*
 * Art Archive / Gallery Page Styles
 * Auto-split from style.css — loaded conditionally via functions.php
 */

/* ============================================
   Hero Section Styles
   ============================================ */

.art-archive-header-viewport {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile: let the hero set its own height — 100vh on the wrapper creates a
   black gap when the hero image doesn't fill the full viewport height. */
@media (max-width: 781px) {
    .art-archive-header-viewport {
        min-height: auto;
        height: auto;
    }

    .art-archive-header-viewport .art-page-hero {
        min-height: calc((var(--lara-vh, 100vh) - var(--lara-header-offset, 73px)) * 0.5) !important;
        height: auto !important;
        flex: 1 0 auto !important;
    }
}

/* Laptop Viewport - Original Layout */
@media (min-width: 1025px) and (max-width: 1440px) {
    .art-archive-header-viewport .art-page-hero {
        flex: 1 !important;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }
}

/* Wide Desktop Viewport - Robust Layout */
@media (min-width: 1441px) {
    .art-archive-header-viewport .art-page-hero {
        aspect-ratio: 16 / 9 !important;
        flex: none !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 900px !important;
    }
}

.art-archive-header-viewport .art-filter-section {
    flex-shrink: 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

/* Homepage Hero - Adaptive Strategy */
.hero-section-home {
    background-color: #1A1A1A;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    color: #FAFAFA !important;
    position: relative;
    overflow: hidden !important;
    width: 100%;
}

/* Laptop Viewport (1025px - 1440px) - Original "Perfect" Layout */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero-section-home {
        height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
        min-height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
        aspect-ratio: auto !important;
    }

    .hero-section-home .wp-block-cover__image-background {
        object-fit: cover !important;
    }
}

/* Wide Desktop Viewport (1441px+) - Robust "Full Image" Layout */
@media (min-width: 1441px) {
    .hero-section-home {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 900px !important;
    }

    .hero-section-home .wp-block-cover__image-background {
        object-fit: cover !important;
        /* Hero keeps cover for cinematic feel */
    }
}

/* Mobile & Tablet */
@media (max-width: 1024px) {
    .hero-section-home {
        height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
        min-height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
    }
}

.hero-section-home h1,
.hero-section-home h2,
.hero-section-home p {
    color: inherit !important;
}

.hero-section-home p.has-accent-1-color {
    color: #D4A574 !important;
}

.hero-section-home .wp-block-cover__image-background {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
}

/* Category card images - Adaptive Strategy */
.art-category-card {
    width: 100% !important;
    background-color: #1A1A1A !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Laptop Viewport (1025px - 1440px) - Original "Perfect" Layout */
@media (min-width: 1025px) and (max-width: 1440px) {
    .art-category-card {
        height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
        min-height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
        aspect-ratio: auto !important;
    }

    .art-category-card .wp-block-cover__image-background {
        object-fit: cover !important;
    }
}

/* Wide Desktop Viewport (1441px+) - "Zero Crop" Layout with Refined Positioning */
@media (min-width: 1441px) {
    .art-category-card {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 900px !important;
        justify-content: center !important;
        /* Keep centering but adjust inner container */
    }

    .art-category-card .wp-block-cover__image-background {
        object-fit: contain !important;
    }

    /* Move content higher on wide desktop to match laptop composition - fine-tuned */
    .art-category-card .wp-block-cover__inner-container {
        padding-bottom: 3rem !important;
    }
}

/* Mobile & Tablet */
@media (max-width: 1024px) {
    .art-category-card {
        min-height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
    }
}

.art-category-card .wp-block-cover__image-background {
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Ensure inner container stays on top and centered */
.art-category-card .wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
}

/* Category CTA Buttons - Enhanced Visuals */
.art-category-card .wp-block-button__link {
    font-weight: bold !important;
    border: 2px solid rgba(197, 160, 89, 0.8) !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3), inset 0 0 5px rgba(197, 160, 89, 0.2) !important;
    transition: all 0.3s ease-in-out !important;
}

.art-category-card .wp-block-button__link:hover {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.6), inset 0 0 10px rgba(197, 160, 89, 0.4) !important;
    border-color: rgba(197, 160, 89, 1) !important;
    transform: translateY(-2px);
}

/* Hero CTA Buttons Style Refinement - Unified Outline Style */
.hero-content .wp-block-buttons {
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

@media (max-width: 600px) {
    .hero-content .wp-block-buttons {
        gap: 1rem !important;
    }

    .hero-cta-primary .wp-block-button__link,
    .hero-cta-secondary .wp-block-button__link {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* White text on the gold CTA button on mobile — higher legibility */
    .hero-cta-primary .wp-block-button__link {
        color: #ffffff !important;
    }
}


/* Primary hero CTA — Gold filled (high visual weight) */
.hero-cta-primary .wp-block-button__link {
    background-color: #C5A059 !important;
    border: 1px solid #C5A059 !important;
    padding: 1rem 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    color: #000000 !important;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.35) !important;
    font-weight: 600 !important;
}

.hero-cta-primary .wp-block-button__link:hover {
    background-color: #b8935a !important;
    border-color: #b8935a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(197, 160, 89, 0.5) !important;
    color: #000000 !important;
}

/* Secondary hero CTA — Ghost style (low visual weight) */
.hero-cta-secondary .wp-block-button__link {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 1rem 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}

.hero-cta-secondary .wp-block-button__link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.hero-content .material-symbols-outlined {
    vertical-align: middle;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    font-size: 18px !important;
}

.hero-cta-primary .wp-block-button__link:hover .material-symbols-outlined {
    transform: translateX(5px);
}

.hero-cta-secondary .wp-block-button__link:hover .material-symbols-outlined {
    transform: rotate(10deg);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.85) 0%,
            rgba(26, 26, 26, 0.6) 50%,
            rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ============================================
   Art Grid Styles
   ============================================ */

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--wp--preset--spacing--40, 30px);
}

.art-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--wp--custom--border-radius--medium, 8px);
    background-color: transparent;
}

.art-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

.art-item:hover img {
    transform: scale(1.05);
}

.art-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(26, 26, 26, 0.9) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: var(--wp--preset--spacing--30, 20px);
}

.art-item:hover .art-item-overlay,
.art-item:focus-within .art-item-overlay {
    opacity: 1;
}

/* ============================================
   Art Style Navigation Links
   ============================================ */

.art-style-link-wrapper {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.art-style-link-wrapper:hover {
    transform: translateY(-4px);
}

.art-style-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.art-style-link:hover {
    text-decoration: none;
}

.art-style-link h3 {
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.art-style-link:hover h3 {
    color: var(--wp--preset--color--accent-1, #D4A574);
}

.art-style-link p {
    margin: 0;
    transition: color 0.3s ease;
}

.art-style-link:hover p {
    color: var(--wp--preset--color--contrast, #1A1A1A);
}

/* ============================================
   Art Category Section Styles
   ============================================ */

.art-category-section {
    position: relative;
}

.art-category-section:nth-child(even) {
    background-color: var(--wp--preset--color--accent-5, #F5F5F5);
}

.art-category-section.rich-dark-bg {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 50% 52%, rgba(255, 3, 254, 0.16) 0%, rgba(255, 3, 254, 0.05) 42%, transparent 76%),
        linear-gradient(180deg, #160815 0%, #0d0610 52%, #060408 100%) !important;
    --section-tint-1: rgba(255, 3, 254, 0.3);
    --section-tint-2: rgba(255, 3, 254, 0.24);
    --section-tint-3: rgba(255, 3, 254, 0.14);
}

.art-category-section.rich-dark-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(66% 76% at 8% 14%, var(--section-tint-1), transparent 74%),
        radial-gradient(60% 70% at 92% 88%, var(--section-tint-2), transparent 76%),
        radial-gradient(54% 62% at 50% 50%, var(--section-tint-3), transparent 80%);
}

.art-category-section.rich-dark-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 110% at 50% 4%, rgba(0, 0, 0, 0.3) 0%, transparent 48%),
        radial-gradient(120% 110% at 50% 96%, rgba(0, 0, 0, 0.34) 0%, transparent 50%),
        linear-gradient(180deg, rgba(8, 5, 10, 0.12) 0%, rgba(5, 4, 8, 0.26) 100%);
}

.art-category-section.rich-dark-bg>* {
    position: relative;
    z-index: 1;
}

.art-category-cubism.rich-dark-bg {
    --section-tint-1: rgba(0, 170, 255, 0.18);
    --section-tint-2: rgba(255, 3, 254, 0.2);
    --section-tint-3: rgba(255, 208, 64, 0.12);
}

.art-category-abstract.rich-dark-bg {
    --section-tint-1: rgba(255, 3, 254, 0.24);
    --section-tint-2: rgba(133, 85, 255, 0.18);
    --section-tint-3: rgba(255, 110, 205, 0.12);
}

.art-category-classic.rich-dark-bg {
    --section-tint-1: rgba(255, 196, 77, 0.14);
    --section-tint-2: rgba(255, 3, 254, 0.16);
    --section-tint-3: rgba(84, 133, 255, 0.1);
}

.art-category-childrens.rich-dark-bg {
    --section-tint-1: rgba(255, 127, 39, 0.16);
    --section-tint-2: rgba(255, 3, 254, 0.18);
    --section-tint-3: rgba(74, 226, 255, 0.12);
}

.art-category-custom.rich-dark-bg {
    --section-tint-1: rgba(255, 3, 254, 0.24);
    --section-tint-2: rgba(255, 130, 214, 0.16);
    --section-tint-3: rgba(124, 94, 255, 0.12);
}

.art-category-featured-image {
    overflow: hidden;
    margin-bottom: 0;
    position: relative !important;
    border-radius: 0 !important;
    background: #050507;
    isolation: isolate;
}

.art-category-cubism .art-category-featured-image {
    --category-bg-image: url('/wp-content/uploads/2026/02/lara-cubism-scaled.webp');
    --aura-1: rgba(0, 166, 255, 0.34);
    --aura-2: rgba(255, 3, 254, 0.26);
    --aura-3: rgba(255, 208, 48, 0.24);
}

.art-category-abstract .art-category-featured-image {
    --category-bg-image: url('/wp-content/uploads/2026/02/lara-abstract.webp');
    --aura-1: rgba(255, 3, 254, 0.34);
    --aura-2: rgba(119, 73, 255, 0.28);
    --aura-3: rgba(255, 108, 199, 0.24);
}

.art-category-classic .art-category-featured-image {
    --category-bg-image: url('/wp-content/uploads/2026/02/lara-classic.png');
    --aura-1: rgba(255, 197, 64, 0.3);
    --aura-2: rgba(255, 3, 254, 0.2);
    --aura-3: rgba(90, 132, 255, 0.18);
}

.art-category-childrens .art-category-featured-image {
    --category-bg-image: url('/wp-content/uploads/2026/02/lara-kids-art.png');
    --aura-1: rgba(255, 117, 24, 0.28);
    --aura-2: rgba(255, 3, 254, 0.24);
    --aura-3: rgba(57, 221, 255, 0.24);
}

.art-category-custom .art-category-featured-image {
    --category-bg-image: url('/wp-content/uploads/2026/02/lara-custom-art.png');
    --aura-1: rgba(255, 3, 254, 0.32);
    --aura-2: rgba(255, 126, 209, 0.24);
    --aura-3: rgba(131, 93, 255, 0.2);
}

.art-category-featured-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: var(--category-bg-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.18);
    filter: blur(30px) saturate(1.15) brightness(0.62);
}

.art-category-featured-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(58% 64% at 12% 50%, var(--aura-1), transparent 74%),
        radial-gradient(54% 62% at 86% 42%, var(--aura-2), transparent 72%),
        radial-gradient(44% 54% at 50% 88%, var(--aura-3), transparent 78%);
    opacity: 0.58;
}

.art-category-featured-image .wp-block-cover__inner-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: flex-end !important;
    padding-top: 2rem !important;
    position: relative !important;
    z-index: 4;
}

.art-category-featured-image h2 {
    position: absolute !important;
    top: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 0 !important;
    padding: 0.75rem 2.5rem !important;
    z-index: 10 !important;
    color: #C5A059 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    width: auto !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .art-category-featured-image h2 {
        top: 1.5rem !important;
        padding: 0.5rem 1.5rem !important;
        font-size: 1.25rem !important;
    }
}

.art-category-featured-image img {
    position: absolute !important;
    inset: 0;
    z-index: 6 !important;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    filter: none !important;
    transition: transform 0.65s ease;
}

.art-category-section:hover .art-category-featured-image img {
    transform: scale(1.02);
}

.art-category-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wp--preset--spacing--30, 20px);
}

.art-category-gallery-grid .wp-block-image {
    margin: 0 !important;
    overflow: hidden;
    border-radius: var(--wp--custom--border-radius--medium, 8px);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.art-category-gallery-grid .wp-block-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.art-category-gallery-grid .wp-block-image:hover img {
    transform: scale(1.08);
}

.art-category-cta {
    text-align: center;
}

.melaya-hero,
.about-hero,
.contact-hero {
    position: relative;
    padding-top: var(--wp--preset--spacing--80) !important;
    padding-bottom: var(--wp--preset--spacing--80) !important;
    width: 100%;
}

@media (min-width: 1025px) and (max-width: 1440px) {

    .melaya-hero,
    .about-hero,
    .contact-hero {
        min-height: var(--lara-vh) !important;
        aspect-ratio: auto !important;
    }
}

@media (min-width: 1441px) {

    .melaya-hero,
    .about-hero,
    .contact-hero {
        aspect-ratio: 16 / 9 !important;
        min-height: auto !important;
        height: auto !important;
        max-height: 900px !important;
    }
}

@media (max-width: 1024px) {

    .melaya-hero,
    .about-hero,
    .contact-hero {
        min-height: var(--lara-vh) !important;
    }
}

.art-page-hero {
    position: relative;
}

/* .art-page-intro border removed for cleaner design */

/* ============================================
   Art Category Cards (Homepage)
   ============================================ */

.art-categories-home {
    display: flex;
    flex-direction: column;
}

.art-category-card {
    position: relative;
    --category-accent-rgb: 197, 160, 89;
    transition: transform 0.3s ease;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* Force buttons to the bottom */
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
    height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
    min-height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
    max-height: calc(var(--lara-vh) - var(--lara-header-offset)) !important;
    margin-bottom: 6rem !important;
}

/* Make the card the positioning context for absolute elements */
.art-category-card>.wp-block-cover__inner-container {
    position: static !important;
}

.art-category-card:hover {
    transform: scale(1.005);
}

/* ── Scroll-reveal states (JS applies .lara-reveal-pending on init) ── */
.art-category-card.lara-reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    /* Override the hover scale while pending so it doesn't compound */
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-category-card.lara-reveal-pending:hover {
    /* Suppress hover scale until card is revealed */
    transform: translateY(24px);
}

.art-category-card.lara-revealed {
    opacity: 1;
    transform: translateY(0);
    /* Transition carries from pending → revealed smoothly */
}

/* Restore normal hover scale once fully revealed */
.art-category-card.lara-revealed:hover {
    transform: scale(1.005);
}

/* Instant reveal for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .art-category-card.lara-reveal-pending {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.art-category-card .wp-block-cover__inner-container,
.art-category-card .wp-block-group,
.art-category-card .is-layout-constrained {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.art-category-card .wp-block-cover__inner-container {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: flex-end !important;
    padding-top: 2rem !important;
}

.art-category-card .wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    position: static !important;
}

.art-category-card h2 {
    position: absolute !important;
    top: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 0 !important;
    padding: 0.75rem 2.5rem !important;
    z-index: 10 !important;
    color: #C5A059 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    width: auto !important;
    text-align: center !important;
}

@media (max-width: 768px) {
    .art-category-card h2 {
        top: 1.5rem !important;
        padding: 0.5rem 1.5rem !important;
        font-size: 1.25rem !important;
    }
}

.art-category-card .wp-block-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem 0.75rem 2rem !important;
    gap: 1.5rem !important;
    position: relative;
    z-index: 5;
}

.art-category-card .wp-block-button {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.art-category-card .wp-block-button__link {
    width: 100% !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 1px solid #C5A059 !important;
    color: #C5A059 !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 500;
    display: block !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition:
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        color 0.24s ease,
        background-color 0.24s ease !important;
}

.art-category-card .wp-block-button__link::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.28;
    transform: scaleX(0.72);
    transform-origin: center;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.art-category-card .wp-block-button:not(:last-child) .wp-block-button__link {
    border-right: 1px solid #C5A059 !important;
}

.art-category-card .wp-block-button__link:hover {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--category-accent-rgb, 197, 160, 89), 0.2);
}

.art-category-card .wp-block-button__link:hover::after,
.art-category-card .wp-block-button__link:focus-visible::after {
    opacity: 0.6;
    transform: scaleX(1);
}

.art-category-card .wp-block-button__link:focus-visible {
    outline: none;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow:
        0 0 0 2px rgba(var(--category-accent-rgb, 197, 160, 89), 0.38),
        0 8px 20px rgba(var(--category-accent-rgb, 197, 160, 89), 0.22);
}

.art-category-card .wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(var(--category-accent-rgb, 197, 160, 89), 0.16);
}

/* Category Specific Button Colors */

/* Abstract - Pink */
.category-abstract .wp-block-button__link {
    border-color: #ff03fe !important;
    color: #ff03fe !important;
}

.category-abstract {
    --category-accent-rgb: 255, 3, 254;
}

.category-abstract .wp-block-button:not(:last-child) .wp-block-button__link {
    border-right-color: #ff03fe !important;
}

.category-abstract .wp-block-button__link:hover {
    background: rgba(255, 3, 254, 0.15) !important;
}

/* Classic & Cubism - Gold */
.category-classic .wp-block-button__link,
.category-cubism .wp-block-button__link {
    border-color: #C5A059 !important;
    color: #C5A059 !important;
}

.category-classic,
.category-cubism {
    --category-accent-rgb: 197, 160, 89;
}

.category-classic .wp-block-button:not(:last-child) .wp-block-button__link,
.category-cubism .wp-block-button:not(:last-child) .wp-block-button__link {
    border-right-color: #C5A059 !important;
}

.category-classic .wp-block-button__link:hover,
.category-cubism .wp-block-button__link:hover {
    background: rgba(197, 160, 89, 0.15) !important;
}

/* Kids - Green */
.category-kids .wp-block-button__link {
    border-color: #4CAF50 !important;
    color: #4CAF50 !important;
}

.category-kids {
    --category-accent-rgb: 76, 175, 80;
}

.category-kids .wp-block-button:not(:last-child) .wp-block-button__link {
    border-right-color: #4CAF50 !important;
}

.category-kids .wp-block-button__link:hover {
    background: rgba(76, 175, 80, 0.15) !important;
}

/* Custom - Blue */
.category-custom .wp-block-button__link {
    border-color: #2196F3 !important;
    color: #2196F3 !important;
}

.category-custom {
    --category-accent-rgb: 33, 150, 243;
}

.category-custom .wp-block-button:not(:last-child) .wp-block-button__link {
    border-right-color: #2196F3 !important;
}

.category-custom .wp-block-button__link:hover {
    background: rgba(33, 150, 243, 0.15) !important;
}

.art-category-card .wp-block-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 781px) {
    .art-category-card {
        min-height: var(--lara-vh) !important;
    }

    .art-category-card h2 {
        font-size: var(--wp--preset--font-size--large) !important;
    }
}

@media (max-width: 1024px) {
    .art-category-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 781px) {
    .art-category-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--wp--preset--spacing--20, 15px);
    }

    .art-category-featured-image {
        border-radius: 0 !important;
    }
}

@media (max-width: 599px) {
    .art-category-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .art-category-section {
        padding-top: var(--wp--preset--spacing--60) !important;
        padding-bottom: var(--wp--preset--spacing--60) !important;
    }
}

/* Art Gallery Items (PHP rendered) - Grid Layout (Legacy) */
.art-gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.art-gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.art-gallery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.art-gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.art-gallery-item:hover .art-gallery-image {
    transform: scale(1.05);
}

.art-gallery-title {
    margin: 12px 0 0 0;
    font-family: var(--wp--preset--font-family--playfair, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

/* Art Gallery Vertical Layout */
.art-category-gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--40, 30px);
    max-width: 1000px;
    margin: 0 auto;
}

.rich-dark-bg {
    background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%) !important;
}

.art-gallery-item-vertical {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: var(--wp--preset--spacing--40, 30px);
    align-items: center;
    background: #161616;
    padding: 28px 36px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(197, 160, 89, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 560px;
}

.art-gallery-item-vertical:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 160, 89, 0.65);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(197, 160, 89, 0.2);
}

.art-gallery-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 380px;
}

.art-gallery-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.art-gallery-image-full {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.art-gallery-item-vertical:hover .art-gallery-image-full {
    transform: scale(1.03);
}

.art-gallery-placeholder-vertical {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-gallery-placeholder-vertical span {
    color: #999;
    font-size: 14px;
}

.art-gallery-details {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--30, 24px);
}

.art-gallery-item-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--playfair, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.art-gallery-item-title a {
    color: var(--wp--preset--color--contrast, #1A1A1A);
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-gallery-item-title a:hover {
    color: var(--wp--preset--color--accent-1, #D4A574);
}

.art-gallery-item-description {
    margin: 0;
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--wp--preset--color--accent-4, #666666);
}

.art-gallery-item-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
}

.art-meta-column {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.art-meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
    /* was 0.4 → 3.7:1 FAIL → now 7.1:1 PASS */
    font-variant: small-caps;
}

.art-meta-value {
    font-size: 1.0625rem;
    font-weight: 500;
    color: #FAFAFA;
}

.art-meta-value.status-available {
    color: var(--lara-artist-accent);
}

/* ── "SOLD" Rubber Stamp ── */
.art-meta-value.status-sold {
    /* Reset inherited value colour */
    color: rgba(200, 30, 30, 0.92);

    /* Constrain to text width so rotation doesn't stretch the badge */
    width: fit-content;

    /* Stamp geometry */
    display: inline-block;
    padding: 0.12em 0.52em 0.1em;
    border: 2.5px solid rgba(200, 30, 30, 0.82);
    border-radius: 3px;
    background: rgba(180, 20, 20, 0.07);

    /* Stamp typography */
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1.3;

    /* Pressed-ink depth */
    box-shadow:
        0 0 0 1px rgba(200, 30, 30, 0.18) inset,
        0 0 8px rgba(180, 20, 20, 0.22);
    text-shadow: 0 0 6px rgba(200, 30, 30, 0.28);

    /* Stamp tilt */
    transform: rotate(-8deg);
    transform-origin: center;

    /* Stamp press-in reveal */
    animation: stamp-press 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes stamp-press {
    0% {
        opacity: 0;
        transform: rotate(-8deg) scale(1.35);
        box-shadow:
            0 0 0 1px rgba(200, 30, 30, 0.05) inset,
            0 0 0 rgba(180, 20, 20, 0);
    }

    60% {
        opacity: 1;
        transform: rotate(-8deg) scale(0.94);
        box-shadow:
            0 0 0 1px rgba(200, 30, 30, 0.28) inset,
            0 0 14px rgba(180, 20, 20, 0.35);
    }

    100% {
        opacity: 1;
        transform: rotate(-8deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .art-meta-value.status-sold {
        animation: none;
    }
}

.art-gallery-trust-note {
    margin: 0.5rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 640px) {
    .art-gallery-item-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
    }

    /* Switch each meta row to inline: label → value side by side */
    .art-meta-column {
        flex-direction: row;
        align-items: baseline;
        gap: 0.35rem;
    }

    /* Add a colon after the label so it reads "Dimensions: 40 × 60 cm" */
    .art-meta-label::after {
        content: ":";
    }

    .art-meta-label {
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .art-meta-value {
        font-size: 0.875rem;
    }
}


.art-gallery-item-dimensions {
    position: relative;
    padding-left: 20px;
}

.art-gallery-item-dimensions::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.art-gallery-item-year {
    position: relative;
    padding-left: 20px;
}

.art-gallery-item-year::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.art-gallery-item-availability {
    position: relative;
    padding-left: 20px;
}

.art-gallery-item-availability::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.art-gallery-empty-state {
    text-align: center;
    padding: var(--wp--preset--spacing--60, 60px) 0;
}

/* Responsive adjustments for vertical layout */
@media (max-width: 1024px) {
    .art-category-gallery-vertical {
        max-width: 900px;
    }

    .art-gallery-item-vertical {
        gap: var(--wp--preset--spacing--30, 24px);
        padding: 24px 28px;
    }

    .art-gallery-image-container {
        max-height: 35vh;
    }

    .art-gallery-item-title {
        font-size: 1.375rem;
    }

    .art-gallery-item-description {
        font-size: 1rem;
    }

    .art-meta-value {
        font-size: 1rem;
    }
}

@media (max-width: 781px) {
    .art-gallery-item-vertical {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--30, 20px);
        padding: 20px 22px;
    }

    .art-gallery-image-container {
        max-height: 50vh;
    }

    .art-gallery-item-title {
        font-size: 1.25rem;
    }

    .art-gallery-item-description {
        font-size: 0.9375rem;
    }

    .art-meta-value {
        font-size: 0.9375rem;
    }

    .art-category-gallery-vertical {
        gap: var(--wp--preset--spacing--40, 32px);
    }
}

.art-gallery-title a {
    color: var(--wp--preset--color--contrast, #1A1A1A);
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-gallery-title a:hover {
    color: var(--wp--preset--color--accent-1, #D4A574);
}

/* Selected Works Grid - Home Page */
.selected-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
}

@media (max-width: 768px) {
    .selected-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .selected-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.selected-works-grid .art-item {
    display: flex;
    flex-direction: column;
}

.selected-works-grid .art-item-image {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.selected-works-grid .art-item-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.selected-works-grid .art-thumbnail {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.selected-works-grid .art-item:hover .art-thumbnail {
    transform: scale(1.05);
}

.selected-works-grid .art-item-content {
    padding-top: var(--wp--preset--spacing--30, 1rem);
}

.selected-works-grid .art-item-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--playfair, 'Playfair Display', serif);
    font-size: var(--wp--preset--font-size--large, 1.25rem);
    font-weight: 500;
    line-height: 1.4;
}

.selected-works-grid .art-item-title a {
    color: var(--wp--preset--color--contrast, #1A1A1A);
    text-decoration: none;
    transition: color 0.3s ease;
}

.selected-works-grid .art-item-title a:hover {
    color: var(--wp--preset--color--accent-1, #D4A574);
}

/* Artwork Status Indicators - Elegant Badge Design */
.artwork-status-badge {
    display: none;
}

/* Single artwork page availability - Consistent with gallery details */
.single-artwork-availability {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
    font-size: 0.875rem;
    color: var(--wp--preset--color--accent-4, #6B6B6B);
    letter-spacing: 0.01em;
    font-weight: 400;
    position: relative;
    padding-left: 22px;
}

.single-artwork-availability::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* Artwork Dimensions and Year Shortcodes (for single artwork pages) */
.artwork-dimensions,
.artwork-year {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--wp--preset--color--accent-4, #5a5a5a);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.artwork-dimensions::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.artwork-year::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.art-gallery-placeholder {
    width: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-gallery-placeholder span {
    color: #999;
    font-size: 14px;
}

.art-gallery-empty-message {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

/* ============================================
   Art Lightbox / Fullscreen Modal
   ============================================ */

/* Lightbox trigger button (wraps the image) */
.art-lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
}

.art-lightbox-trigger:focus {
    outline: 2px solid var(--wp--preset--color--accent, #D4A574);
    outline-offset: 2px;
}

.art-lightbox-trigger:focus:not(:focus-visible) {
    outline: none;
}

.art-lightbox-trigger:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent, #D4A574);
    outline-offset: 2px;
}

/* Lightbox overlay */
.art-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.art-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox content container */
.art-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Lightbox image */
.art-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.art-lightbox.is-active .art-lightbox-image {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox title */
.art-lightbox-title {
    display: none !important;
}

.art-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    display: none !important;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.art-lightbox-nav span {
    transform: translateY(-1px);
}

.art-lightbox-prev {
    left: 8px;
}

.art-lightbox-next {
    right: 8px;
}

.art-lightbox-nav:disabled {
    opacity: 0.28;
    cursor: default;
}

.art-lightbox.has-multiple-images .art-lightbox-nav {
    display: flex !important;
}

/* Close button */
.art-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 1000000;
}

.art-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.art-lightbox-close:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.art-lightbox-close::before,
.art-lightbox-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #fff;
}

.art-lightbox-close::before {
    transform: rotate(45deg);
}

.art-lightbox-close::after {
    transform: rotate(-45deg);
}

/* Loading spinner */
.art-lightbox-spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lightbox-spin 0.8s linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* ── Zoom states ─────────────────────────────────────── */

/* Give the image a compositing layer for smooth transform */
.art-lightbox-image {
    will-change: transform;
}

/* When zoomed: hide prev/next nav so they don't eat drag events,
   and allow the image to overflow the content box visually */
.art-lightbox.is-zoomed .art-lightbox-nav {
    display: none !important;
}

.art-lightbox-content.is-zoomed {
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
}

/* Zoom hint — bottom-centre, desktop only, fades out */
.art-lightbox::after {
    content: 'Scroll to zoom  •  Drag to pan  •  Dbl-click to reset';
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.art-lightbox.is-active::after {
    opacity: 1;
}

.art-lightbox.is-zoomed::after {
    opacity: 0;
}

@media (max-width: 768px) {

    /* Hide desktop hint on mobile; pinch is native and intuitive */
    .art-lightbox::after {
        display: none;
    }
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .art-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
        background: rgba(0, 0, 0, 0.56);
        border-color: rgba(255, 255, 255, 0.45);
    }

    .art-lightbox-prev {
        left: 6px;
    }

    .art-lightbox-next {
        right: 6px;
    }

    .art-lightbox-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .art-lightbox-close::before,
    .art-lightbox-close::after {
        width: 18px;
    }

    .art-lightbox-title {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .art-lightbox-content {
        max-width: 98vw;
    }
}

/* ============================================
   Art Page Filters - Soft Light + Pink Accent
   ============================================ */
.art-filter-section.rich-dark-bg {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0.96) 0%, rgba(5, 5, 8, 0.96) 100%) !important;
    border-bottom-color: rgba(255, 3, 254, 0.22) !important;
}

.art-filter-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(48% 62% at 10% 14%, rgba(255, 3, 254, 0.2) 0%, rgba(255, 3, 254, 0.08) 36%, rgba(255, 3, 254, 0) 74%),
        radial-gradient(54% 68% at 90% 88%, rgba(255, 3, 254, 0.2) 0%, rgba(255, 3, 254, 0.08) 34%, rgba(255, 3, 254, 0) 76%),
        radial-gradient(ellipse at center,
            rgba(255, 3, 254, 0.14) 0%,
            rgba(255, 3, 254, 0.08) 38%,
            rgba(255, 3, 254, 0) 74%);
    z-index: 0;
}

/* ============================================
   Art Archive – Mobile Density Optimisation
   Overrides WP preset spacing tokens baked
   into inline styles; desktop is untouched.
   ============================================ */
@media (max-width: 640px) {

    /* ── Section-level vertical padding ── */
    /* WP inline: padding-top/bottom: var(--wp--preset--spacing--80) (~80-96px) → 32px */
    .art-category-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* ── Featured hero image: smaller height + tighter bottom gap ── */
    /* WP inline: min-height: 55vh + margin-bottom: var(--wp--preset--spacing--50) */
    .art-category-featured-image {
        min-height: 38vh !important;
        margin-bottom: 1.25rem !important;
    }

    /* ── Gallery wrapper horizontal padding ── */
    /* WP inline: padding-left/right: var(--wp--preset--spacing--50) */
    .art-category-section>.wp-block-group[style*="padding-left"] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* ── CTA block top padding ── */
    /* WP inline: padding-top: var(--wp--preset--spacing--60) (~60-72px) → 1.25rem */
    .art-category-cta {
        padding-top: 1.25rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* ── CTA inner card: tighter horizontal padding ── */
    .art-category-cta .wp-block-group.has-border-color {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .art-category-cta .wp-block-buttons {
        margin-top: 0.75rem !important;
    }

    /* ── Filter bar: tighter vertical chrome ── */
    .art-filter-section {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* Label above filter grid */
    .art-filter-section .mb-6 {
        margin-bottom: 0.5rem !important;
    }

    /* Filter tab height: reduce min-h from 120px → 60px */
    .art-filter-section .grid a {
        min-height: 60px !important;
        padding: 0.75rem 0.5rem !important;
    }

    /* Scroll cue below filter — hide on mobile to save space */
    .art-filter-section .desktop-scroll-cue {
        display: none !important;
    }
}

@media (max-width: 781px) {

    /* Active filter chip heading: white on mobile for legibility against the pink-tinted chip */
    .art-filter-section .grid.grid-cols-2.md\:grid-cols-3.lg\:grid-cols-5>a.art-mobile-filter-active h3 {
        color: #ffffff !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════ */

/* Header trigger button */
.lara-search-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.52rem 0.28rem 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    line-height: 1;
}

.lara-search-trigger:hover,
.lara-search-trigger:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.lara-search-kbd {
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    padding: 0.05rem 0.28rem;
    line-height: 1.5;
}

/* Overlay backdrop */
.lara-search-overlay {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    z-index: 9999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(4rem, 10vh, 9rem);
    padding-inline: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.lara-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lara-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 8, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: default;
}

/* Panel */
.lara-search-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    background: linear-gradient(180deg, rgba(58, 36, 80, 1) 0%, rgba(42, 22, 62, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 6px;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 3, 254, 0.35) inset;
    transform: translateY(-8px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.lara-search-overlay.is-open .lara-search-panel {
    transform: translateY(0);
}

/* Input row */
.lara-search-input-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.lara-search-icon {
    flex-shrink: 0;
    color: #fff;
}

.lara-search-input {
    flex: 1;
    background: #fff;
    border: none;
    outline: none;
    color: #111;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    caret-color: #ff03fe;
    border-radius: 3px;
    padding: 0.15rem 0.25rem;
}

.lara-search-input::placeholder {
    color: rgba(0, 0, 0, 0.38);
}

/* Chrome autofill override */
.lara-search-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px rgba(24, 14, 32, 0.98) inset;
    -webkit-text-fill-color: #fff;
}

.lara-search-close {
    flex-shrink: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    color: #fff;
    padding: 0 0.32rem;
    line-height: 1.6;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.lara-search-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

/* Results list */
.lara-search-results {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    max-height: 56vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lara-search-results::-webkit-scrollbar {
    width: 4px;
}

.lara-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.lara-search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 3, 254, 0.25);
    border-radius: 2px;
}

.lara-search-result-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.84);
    transition: background 0.14s ease;
    border-left: 2px solid transparent;
}

.lara-search-result-item:hover,
.lara-search-result-item.is-active {
    background: rgba(255, 3, 254, 0.06);
    border-left-color: #ff03fe;
    color: #fff;
}

.lara-search-result-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.lara-search-result-thumb-placeholder {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    background: rgba(255, 3, 254, 0.08);
    border: 1px solid rgba(255, 3, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.lara-search-result-body {
    flex: 1;
    min-width: 0;
}

.lara-search-result-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.lara-search-result-category {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 0.3rem;
}

.lara-search-result-item.is-active .lara-search-result-category {
    color: rgba(255, 3, 254, 0.7);
}

.lara-search-result-arrow {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    transition: color 0.14s ease;
}

.lara-search-result-item.is-active .lara-search-result-arrow,
.lara-search-result-item:hover .lara-search-result-arrow {
    color: rgba(255, 3, 254, 0.55);
}

/* Empty / loading states */
.lara-search-empty {
    padding: 1.4rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Hint bar */
.lara-search-hint {
    padding: 0.52rem 1rem;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 0.04em;
}

.lara-search-hint kbd {
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 3px;
    padding: 0 0.25rem;
    font-size: 0.65rem;
    color: #fff;
}

/* Body scroll lock */
body.lara-search-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .lara-search-kbd {
        display: none;
        /* Save space on mobile; / key still works */
    }

    .lara-search-overlay {
        padding-top: 3.5rem;
        align-items: flex-start;
    }

    .lara-search-panel {
        max-width: 100%;
        border-radius: 4px;
    }
}

/* ==========================================================================
   VIEW IN ROOM — "Preview on Wall" Button & Modal
   ========================================================================== */

/* ── Trigger button on each art card ── */
.art-room-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1.125rem;
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.45);
    border-radius: 4px;
    color: rgba(197, 160, 89, 0.85);
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 0.22s ease,
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    justify-content: center;
}

.art-room-preview-btn .material-symbols-outlined {
    font-size: 1.1rem;
    font-variation-settings: 'wght' 300;
}

.art-room-preview-btn:hover,
.art-room-preview-btn:focus-visible {
    border-color: #C5A059;
    color: #C5A059;
    background: rgba(197, 160, 89, 0.07);
    transform: translateY(-2px);
    outline: none;
}

.art-room-preview-btn:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .art-room-preview-btn {
        transition: none;
    }
}

/* ── Room Preview Modal Overlay ── */
.lara-room-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lara-room-modal.is-active {
    opacity: 1;
    pointer-events: all;
}

/* ── Modal Inner Shell ── */
.lara-room-modal__inner {
    position: relative;
    width: min(92vw, 960px);
    background: #0a0a0a;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.94) translateY(16px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lara-room-modal.is-active .lara-room-modal__inner {
    transform: scale(1) translateY(0);
}

/* ── Room Scene (background) ── */
.lara-room-modal__scene {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0ebe3;
    /* warm fallback */
}

.lara-room-modal__room-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Artwork floating on wall ── */
.lara-room-modal__artwork-wrap {
    position: absolute;
    /*
     * Pin top + bottom so the wrap has an explicit height reference.
     * max-height on a child % only works when the parent has a specified height.
     * top: 5% → bottom: 8% leaves ~87% of the scene height for the painting,
     * keeping it well within the visible wall area for both orientations.
     */
    top: 5%;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    max-width: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lara-room-modal__artwork {
    display: block;
    /*
     * max-width + max-height with auto width/height lets the browser choose
     * the binding dimension automatically:
     *   - Landscape paintings → width hits max-width first, height scales down.
     *   - Portrait paintings  → height hits max-height first, width scales down.
     * This eliminates all cropping without needing any JS orientation detection.
     */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    /* Realistic frame shadow: offset down-right + ambient underneath */
    box-shadow:
        4px 6px 18px rgba(0, 0, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 0 0 3px rgba(255, 255, 255, 0.55);
    /* thin frame highlight */
    /* Fade in as src loads */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lara-room-modal__artwork.is-loaded {
    opacity: 1;
}

/* Loading spinner while image fetches */
.lara-room-modal__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(197, 160, 89, 0.25);
    border-top-color: #C5A059;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: lara-room-spin 0.75s linear infinite;
    transition: opacity 0.25s ease;
}

@keyframes lara-room-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.lara-room-modal__spinner.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Modal Caption Bar ── */
.lara-room-modal__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 1rem;
}

.lara-room-modal__title {
    font-family: var(--wp--preset--font-family--playfair, 'Playfair Display', serif);
    font-size: 1.0625rem;
    font-weight: 400;
    color: #FAFAFA;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lara-room-modal__hint {
    font-family: var(--wp--preset--font-family--manrope, 'Manrope', sans-serif);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
}

/* ── Close Button ── */
.lara-room-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lara-room-modal__close:hover,
.lara-room-modal__close:focus-visible {
    background: rgba(197, 160, 89, 0.25);
    border-color: rgba(197, 160, 89, 0.6);
    outline: none;
}

.lara-room-modal__close .material-symbols-outlined {
    font-size: 1.125rem;
}

/* ── Scroll lock when modal open ── */
body.room-preview-open {
    overflow: hidden;
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
    .lara-room-modal__artwork-wrap {
        top: 4%;
        bottom: 6%;
        width: 50%;
    }

    .lara-room-modal__title {
        font-size: 0.9375rem;
    }

    .lara-room-modal__hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lara-room-modal,
    .lara-room-modal__inner {
        transition: none;
    }

    .lara-room-modal__spinner {
        animation: none;
    }
}