/* ==========================================================================
   ShowMyAura Ultra - Frontend Styles (FULLY FIXED)
   Version: 6.0.0
   ========================================================================== */

/* ── 1. Variables & Reset ── */
:root {
    --sma-radius: 12px;
    --sma-radius-lg: 20px;
    --sma-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    --sma-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sma-gallery-wrap {
    width: 100%;
    position: relative;
    margin: 40px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--sma-text, #0f172a);
    background: var(--sma-bg, #ffffff);
    padding: 40px;
    border-radius: var(--sma-radius-lg);
    box-shadow: var(--sma-shadow);
    box-sizing: border-box;
}
.sma-gallery-wrap * { box-sizing: border-box; }

/* Dark Mode */
.sma-gallery-wrap.theme-dark {
    --sma-bg: #0f172a;
    --sma-bg-alt: #1e293b;
    --sma-text: #f1f5f9;
    --sma-text-secondary: #cbd5e1;
    --sma-text-muted: #94a3b8;
    --sma-border: #334155;
}

/* ── 2. Category Filters & Theme Toggle ── */
.sma-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}
.sma-cat-btn {
    background: transparent;
    border: 2px solid var(--sma-border, #e2e8f0);
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--sma-transition);
    color: var(--sma-text, #0f172a);
}
.sma-cat-btn:hover {
    border-color: var(--sma-secondary, #ff3ea5);
    color: var(--sma-secondary, #ff3ea5);
    transform: translateY(-2px);
}
.sma-cat-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.sma-theme-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}
.sma-theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--sma-bg-alt, #f1f5f9);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--sma-transition);
    color: var(--sma-text, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.sma-theme-btn:hover,
.sma-theme-btn.active {
    background: var(--gradient);
    color: #fff;
    transform: scale(1.1);
}

/* ── 3. Core Components ── */
.sma-media-box {
    position: relative;
    overflow: hidden;
    background: var(--sma-bg-alt, #f1f5f9);
    height: 100%;
    width: 100%;
    display: block;
}
.sma-media-box img,
.sma-media-box video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    display: block;
}
.sma-image-scroll-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.sma-scroll-image {
    width: 100%;
    height: auto;
    transition: transform var(--image-scroll-speed, 3s) ease;
    transform: translateY(0);
    will-change: transform;
}
.sma-scroll-image img {
    width: 100%;
    height: auto;
    display: block;
    object-position: top;
}


/* Hover scroll – applies to all cards except when scroll distance is 0 */
.sma-card:hover .sma-scroll-image,
.sma-slider-card-wrap:hover .sma-scroll-image,
.sma-tourist-card:hover .sma-scroll-image,
.sma-outlined-card:hover .sma-scroll-image,
.sma-framed-card:hover .sma-scroll-image,
.sma-split-item:hover .sma-scroll-image,
.sma-frame-item:hover .sma-scroll-image,
.sma-interactive3d-card:hover .sma-scroll-image,
.sma-museum-item:hover .sma-scroll-image {
    transform: translateY(var(--scroll-distance, 0px));
}

/* ── 4. Curtain Overlay ── */
.sma-curtain-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: var(--hover-opacity-default, 0.4);
    transition: all var(--hover-speed, 0.6s) cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right center;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.sma-curtain-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 40%,
        rgba(255,255,255,0.5) 60%,
        rgba(255,255,255,0.1) 80%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(25deg) translateY(100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}
.hover-curtain .sma-card:hover .sma-curtain-overlay::after,
.hover-curtain .sma-slider-card:hover .sma-curtain-overlay::after,
.hover-curtain .sma-download-card:hover .sma-curtain-overlay::after {
    transform: rotate(25deg) translateY(-100%);
}
.hover-curtain .sma-card:hover .sma-curtain-overlay,
.hover-curtain .sma-slider-card:hover .sma-curtain-overlay,
.hover-curtain .sma-download-card:hover .sma-curtain-overlay {
    opacity: var(--hover-opacity-hover, 0.1);
    transform: perspective(1000px) rotateY(-25deg) translateX(20px);
}

/* ── 5. Overlay & Content ── */
.sma-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    cursor: pointer;
    z-index: 5;
}
.hover-curtain .sma-card:hover .sma-overlay,
.hover-spotlight .sma-card:hover .sma-overlay,
.hover-holographic .sma-card:hover .sma-overlay,
.hover-gradient_lines .sma-card:hover .sma-overlay,
.hover-bioluminescence .sma-card:hover .sma-overlay {
    opacity: 1;
}
.sma-overlay-content h3 {
    color: #fff;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.sma-overlay-content p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 0;
}
.sma-btn-glass {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sma-card:hover .sma-overlay-content h3,
.sma-card:hover .sma-btn-glass,
.sma-download-card:hover .sma-overlay-content h3,
.sma-download-card:hover .sma-btn-glass,
.sma-slider-card:hover .sma-overlay-content h3,
.sma-slider-card:hover .sma-btn-glass {
    transform: translateY(0);
    opacity: 1;
}

/* ── 6. LAYOUTS ── */

/* 6.1 Modern Grid */
.layout-grid .sma-items-container {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 28px;
}
.layout-grid .sma-card {
    border-radius: var(--sma-radius-lg);
    height: 380px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}
.layout-grid .sma-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* 6.2 Swipe Slider */
.layout-slider .swiper { padding-bottom: 70px; }
.sma-slider-card {
    display: flex;
    flex-direction: column;
    background: var(--sma-bg);
    border-radius: var(--sma-radius-lg);
    overflow: hidden;
    box-shadow: var(--sma-shadow);
    height: 100%;
    border: 1px solid var(--sma-border);
    transition: transform 0.3s ease;
}
.sma-slider-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.sma-slider-card .sma-media-box { height: 280px; }
.sma-slider-info {
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--sma-bg);
}
.sma-slider-info h3 { font-size: 22px; margin: 0 0 12px; font-weight: 700; color: var(--sma-text); }
.sma-desc-clamp { font-size: 14px; color: var(--sma-text-muted); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.swiper-button-prev, .swiper-button-next {
    width: 44px !important; height: 44px !important;
    background: var(--sma-bg);
    border-radius: 50%;
    box-shadow: var(--sma-shadow);
    top: 45% !important;
    transition: all 0.3s ease;
}
.swiper-button-prev:hover, .swiper-button-next:hover {
    background: var(--gradient);
    color: #fff;
}
.swiper-button-prev::after, .swiper-button-next::after { display: none !important; }
.swiper-button-prev i, .swiper-button-next i { color: var(--sma-text); font-size: 16px; }
.swiper-pagination-bullet { background: var(--sma-border) !important; }
.swiper-pagination-bullet-active { background: var(--sma-secondary) !important; width: 24px !important; border-radius: 4px !important; }

/* 6.3 Elegant Framed */
.layout-framed .sma-items-container {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 40px;
}
.sma-framed-card {
    background: var(--sma-bg);
    border: 15px solid var(--sma-bg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-radius: 8px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 420px;
}
.sma-framed-card:hover {
    transform: translateY(-15px) rotate(1deg) scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
.sma-framed-card .sma-media-box {
    border-radius: 4px;
    height: calc(100% - 60px);
    overflow: hidden;
}
.sma-framed-card .sma-media-box img {
    object-fit: contain;
}
.sma-frame-caption {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--sma-text);
    font-weight: 600;
    background: var(--sma-bg);
}

/* ── 6.4 Museum Wall (Premium Redesign – No Shine) ── */

/* Container */
.layout-museum .sma-museum-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding: 2rem 0;
}

/* Each card – staggered asymmetrical layout */
.layout-museum .museum-item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Alternate (zigzag) direction */
.layout-museum .museum-item:nth-child(even) {
    direction: rtl;
}
.layout-museum .museum-item:nth-child(even) > * {
    direction: ltr;
}

/* Image container – clean, no shiny overlays */
.layout-museum .museum-item .sma-media-box {
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sma-bg-alt, #f1f5f9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s ease;
    border: 2px solid var(--sma-border, #e2e8f0);
    position: relative;
}

/* Hover lift – no shine, just elevation */
.layout-museum .museum-item:hover .sma-media-box {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--sma-secondary, #ff3ea5);
}

/* Image – always crisp, full-size visible */
.layout-museum .museum-item .sma-media-box img,
.layout-museum .museum-item .sma-media-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s ease;
}
.layout-museum .museum-item:hover .sma-media-box img {
    transform: scale(1.04);
}

/* No pseudo-elements for shine – we removed them */

/* Content area – solid typography */
.layout-museum .museum-item .sma-museum-content {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.layout-museum .museum-item .sma-museum-content h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--sma-text, #0f172a);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Decorative accent line – adds premium feel */
.layout-museum .museum-item .sma-museum-content h3::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
    margin-top: 0.7rem;
    transition: width 0.4s ease;
}
.layout-museum .museum-item:hover .sma-museum-content h3::after {
    width: 90px;
}

.layout-museum .museum-item .sma-museum-desc {
    color: var(--sma-text-muted, #64748b);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    max-width: 90%;
}

.layout-museum .museum-item .sma-view-btn {
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.layout-museum .museum-item .sma-view-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.layout-museum .museum-item .sma-view-btn i {
    transition: transform 0.3s ease;
}
.layout-museum .museum-item .sma-view-btn:hover i {
    transform: translateX(6px);
}

/* ── Responsive Breakpoints ── */

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
    .layout-museum .museum-item {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .layout-museum .museum-item .sma-media-box {
        height: 340px;
    }
    .layout-museum .museum-item .sma-museum-content h3 {
        font-size: 2rem;
    }
}

/* Mobile: single column, full width */
@media (max-width: 768px) {
    .layout-museum .sma-museum-grid {
        gap: 3rem;
        padding: 1rem 0;
    }
    .layout-museum .museum-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        direction: ltr !important;
    }
    .layout-museum .museum-item:nth-child(even) {
        direction: ltr !important;
    }
    .layout-museum .museum-item:nth-child(even) > * {
        direction: ltr !important;
    }
    .layout-museum .museum-item .sma-media-box {
        height: 280px;
    }
    .layout-museum .museum-item .sma-museum-content h3 {
        font-size: 1.8rem;
    }
    .layout-museum .museum-item .sma-museum-desc {
        max-width: 100%;
        font-size: 1rem;
    }
    .layout-museum .museum-item .sma-view-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .layout-museum .museum-item .sma-media-box {
        height: 220px;
    }
    .layout-museum .museum-item .sma-museum-content h3 {
        font-size: 1.5rem;
    }
}
/* ── Museum Wall – Hover Animation Compatibility ── */

/* 1. Spotlight Focus – keep grid layout, only dim siblings */
.hover-spotlight .sma-museum-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 5rem !important;
    padding: 2rem 0 !important;
}
.hover-spotlight .sma-museum-grid .museum-item {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
    transition: filter 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-spotlight .sma-museum-grid .museum-item:nth-child(even) {
    direction: rtl !important;
}
.hover-spotlight .sma-museum-grid .museum-item:nth-child(even) > * {
    direction: ltr !important;
}

/* Dim siblings on hover */
.hover-spotlight .sma-museum-grid:has(.museum-item:hover) .museum-item:not(:hover) {
    filter: brightness(0.3) blur(2px);
    transform: scale(0.92);
}
.hover-spotlight .sma-museum-grid .museum-item:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    z-index: 10;
}

/* 2. Outlined Mobile Cards – keep grid, only outline/glow */
.hover-outlined .sma-museum-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 5rem !important;
    padding: 2rem 0 !important;
}
.hover-outlined .sma-museum-grid .museum-item {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    gap: 3.5rem !important;
    align-items: center !important;
    border: 3px solid transparent !important;
    border-radius: var(--sma-radius-lg) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    padding: 0 !important;
    background: transparent !important;
}
.hover-outlined .sma-museum-grid .museum-item:nth-child(even) {
    direction: rtl !important;
}
.hover-outlined .sma-museum-grid .museum-item:nth-child(even) > * {
    direction: ltr !important;
}

/* Dim siblings on hover */
.hover-outlined .sma-museum-grid:has(.museum-item:hover) .museum-item:not(:hover) {
    opacity: 0.25 !important;
    filter: grayscale(100%) blur(2px) !important;
    transform: scale(0.9) !important;
}
.hover-outlined .sma-museum-grid .museum-item:hover {
    border-color: var(--sma-secondary) !important;
    box-shadow: 0 0 40px rgba(255, 62, 165, 0.3), 0 15px 45px rgba(0,0,0,0.15) !important;
    transform: translateY(-10px) scale(1.02) !important;
    z-index: 10 !important;
}

/* Ensure content stays visible */
.hover-outlined .sma-museum-grid .museum-item .sma-overlay {
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}
.hover-outlined .sma-museum-grid .museum-item:hover .sma-overlay {
    opacity: 1 !important;
}

/* ── Responsive overrides for mobile ── */
@media (max-width: 1024px) {
    .hover-spotlight .sma-museum-grid .museum-item,
    .hover-outlined .sma-museum-grid .museum-item {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem !important;
    }
}
@media (max-width: 768px) {
    .hover-spotlight .sma-museum-grid,
    .hover-outlined .sma-museum-grid {
        gap: 3rem !important;
    }
    .hover-spotlight .sma-museum-grid .museum-item,
    .hover-outlined .sma-museum-grid .museum-item {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        direction: ltr !important;
    }
    .hover-spotlight .sma-museum-grid .museum-item:nth-child(even),
    .hover-outlined .sma-museum-grid .museum-item:nth-child(even) {
        direction: ltr !important;
    }
    .hover-spotlight .sma-museum-grid .museum-item:nth-child(even) > *,
    .hover-outlined .sma-museum-grid .museum-item:nth-child(even) > * {
        direction: ltr !important;
    }
}
/* 6.5 Download Gallery */
.layout-download .sma-items-container {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 30px;
}
.sma-download-card {
    background: var(--sma-bg-alt);
    border-radius: var(--sma-radius-lg);
    overflow: hidden;
    border: 1px solid var(--sma-border);
    transition: var(--sma-transition);
    position: relative;
}
.sma-download-card:hover {
    transform: translateY(-10px);
    border-color: var(--sma-accent, #f59e0b);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.sma-download-media {
    height: 300px;
    overflow: hidden;
    position: relative;
}
.sma-download-media img,
.sma-download-media video {
    object-fit: contain;
}
.dl-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sma-download-card:hover .dl-card-actions { opacity: 1; transform: translateY(0); }
.dl-card-actions h3 { margin: 0 0 0.5rem; font-size: 1rem; color: #fff; }
.dl-btn-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.dl-btn {
    flex: none; width: 36px; height: 36px; padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 0.85rem; font-weight: 600;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2); color: #fff;
    cursor: pointer; transition: all 0.2s;
}
.dl-btn:hover { background: #fff; color: #000; border-color: #fff; transform: scale(1.1); }
.dl-btn.primary { background: var(--sma-accent, #f59e0b); color: #000; border-color: var(--sma-accent); }
.dl-btn.primary:hover { background: #fbbf24; }
.dl-btn.liked { background: #ef4444; border-color: #ef4444; color: #fff; }

/* 6.6 Split View */
.layout-split .sma-items-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    height: 70vh;
    min-height: 500px;
}
.sma-split-hero { border-radius: var(--sma-radius-lg); overflow: hidden; position: relative; background: var(--sma-bg-alt); }
.sma-split-hero .sma-media-box { height: 100%; }
.sma-split-hero .sma-media-box img { object-fit: contain; }
.sma-split-list { overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding-right: 0.5rem; }
.sma-split-item {
    display: flex; gap: 1rem; padding: 1rem;
    background: var(--sma-bg-alt); border-radius: var(--sma-radius);
    border: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.sma-split-item.active { border-color: var(--sma-accent, #f59e0b); background: var(--sma-bg); }
.sma-split-item:hover:not(.active) { border-color: var(--sma-border); }
.sma-split-thumb { width: 80px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sma-split-info { flex: 1; min-width: 0; }
.sma-split-info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sma-split-info p { margin: 0; font-size: 12px; color: var(--sma-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 6.7 Wall of Frames (MODERNIZED) */
.layout-frames .sma-frames-container {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 30px;
    padding: 20px;
}
.sma-frame-item {
    background: var(--sma-bg);
    padding: 15px 15px 40px 15px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: 1px solid var(--sma-border);
    position: relative;
    transform: rotate(0deg);
}
.sma-frame-item:hover {
    transform: translateY(-12px) rotate(1deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    z-index: 10;
    border-color: var(--sma-secondary);
}
.sma-frame-item .sma-media-box {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4/5;
}
.sma-frame-item .sma-media-box img {
    object-fit: contain;
    transition: transform 0.5s ease;
}
.sma-frame-item:hover .sma-media-box img { transform: scale(1.05); }
.sma-frame-item figcaption {
    text-align: center;
    font-size: 1rem;
    color: var(--sma-text);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 10px;
}
.sma-frame-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(4px);
}
.sma-frame-item:hover::before { opacity: 0.6; }

/* 6.8 Fanned Deck Carousel */
.layout-carousel .swiper {
    width: 320px;
    height: 450px;
    margin: 0 auto;
    overflow: visible;
}
.layout-carousel .swiper-slide {
    width: 100%; height: 100%; border-radius: 24px; overflow: hidden;
    background: var(--sma-bg); box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}
.layout-carousel .swiper-slide-active { transform: scale(1.05); z-index: 3; }
.layout-carousel .swiper-slide-prev, .layout-carousel .swiper-slide-next { transform: scale(0.95); opacity: 0.8; z-index: 2; }
.layout-carousel .swiper-slide-prev { transform: translateX(-15px) scale(0.95); }
.layout-carousel .swiper-slide-next { transform: translateX(15px) scale(0.95); }
.sma-carousel-category {
    position: absolute; top: 15px; left: 15px; z-index: 10;
    background: var(--gradient); color: #fff; padding: 6px 14px;
    border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.sma-carousel-categories { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.sma-carousel-cat-btn {
    background: var(--sma-bg-alt); border: none; padding: 8px 20px;
    border-radius: 50px; cursor: pointer; font-weight: 500; font-size: 13px;
    transition: var(--sma-transition); color: var(--sma-text);
}
.sma-carousel-cat-btn:hover, .sma-carousel-cat-btn.active {
    background: var(--gradient); color: #fff;
}

/* 6.9 Tourist Attraction */
.sma-tourist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    perspective: 1000px;
}
.sma-tourist-card {
    text-align: center;
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--sma-text);
    background: var(--sma-bg-alt);
    box-shadow: 0px 20px 50px rgba(0,0,0,0.2);
    transform: rotateX(60deg) rotateZ(-10deg) translateZ(0px);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    height: 400px;
    overflow: hidden;
}
.sma-tourist-card:hover {
    transform: rotateX(0deg) rotateZ(0deg) translateZ(20px);
    box-shadow: 0px 30px 60px rgba(0,0,0,0.4);
}
.sma-tourist-card .sma-media-box { height: 200px; border-radius: 8px; overflow: hidden; }
.sma-tourist-card .sma-media-box img { object-fit: contain; }
.sma-tourist-content { padding: 20px; }
.sma-tourist-content h3 { font-size: 24px; margin: 0 0 10px; }
.sma-tourist-content p { font-size: 14px; opacity: 0.8; }

/* 6.10 Interactive 3D Carousel */
.sma-interactive3d-scene {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1800px;
    position: relative;
}
.sma-interactive3d-wrapper {
    position: relative;
    width: 280px;
    height: 360px;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}
.sma-interactive3d-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--sma-bg);
    box-shadow: 0 15px 45px rgba(0,0,0,0.3);
    backface-visibility: hidden;
    transition: transform 0.6s ease, filter 0.4s ease;
    cursor: pointer;
}
.sma-interactive3d-card .sma-media-box { height: 100%; }
.sma-interactive3d-card .sma-media-box img { object-fit: contain; }
.sma-interactive3d-card .sma-interactive3d-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.sma-interactive3d-card:hover .sma-interactive3d-overlay { opacity: 1; }
.sma-interactive3d-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}
.sma-3d-prev, .sma-3d-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sma-3d-prev:hover, .sma-3d-next:hover {
    background: var(--gradient);
    transform: scale(1.1);
}

/* 6.11 Outlined Mobile Cards */
.sma-outlined-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.sma-outlined-card {
    width: 360px;
    height: 540px;
    background: #fff;
    border: 9px solid transparent;
    border-radius: 6px;
    box-shadow: 0 0 24px 0 rgba(0,0,0,0.1);
    outline: 9px solid #fff;
    outline-offset: 9px;
    filter: grayscale(100%) sepia(5%);
    mix-blend-mode: multiply;
    opacity: 0.75;
    scale: 0.85;
    rotate: var(--rotation, -4deg);
    transition: border 0.2s ease, box-shadow 0.2s ease, filter 0.4s ease, outline-offset 0.4s ease, opacity 0.3s ease, rotate 0.4s cubic-bezier(0.34,1.56,0.64,1), scale 0.4s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}
.sma-outlined-card .sma-media-box {
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}
.sma-outlined-card .sma-media-box img {
    object-fit: contain;
}
.sma-outlined-container:has(.sma-outlined-card:hover) .sma-outlined-card:not(:hover):not(:focus-within) {
    opacity: 0.25;
    filter: grayscale(100%) blur(2px);
    scale: 0.8;
}
.sma-outlined-card:hover,
.sma-outlined-card:focus-within {
    --shadow-color: var(--gold, #f59e0b);
    border-color: oklch(var(--shadow-color));
    box-shadow: 0 0 100px 0 oklch(var(--shadow-color));
    background-color: white;
    mix-blend-mode: initial;
    filter: none;
    opacity: 1;
    outline-offset: 4px;
    scale: 1.03;
    rotate: 0deg;
    z-index: 10;
}
.sma-outlined-card:focus-within {
    --shadow-color: var(--pink, #ff3ea5);
    outline: 9px solid oklch(var(--pink));
}
.sma-outlined-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sma-outlined-card:hover .sma-outlined-info { opacity: 1; }
.sma-outlined-info h3 { margin: 0 0 8px; font-size: 20px; }
.sma-outlined-info p { font-size: 14px; opacity: 0.8; margin: 0 0 12px; }
.sma-outlined-info .sma-view-btn { padding: 8px 20px; font-size: 13px; }

/* ── 7. VIEW BUTTON ── */
.sma-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sma-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ── 8. ANIMATED BORDERS (ALL 4 STYLES) ── */
.sma-border-wrap {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: visible !important;
    z-index: 1;
}
.sma-border-wrap::before,
.sma-border-wrap::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Flux Chaser */
.sma-border-flux .sma-border-wrap::before {
    border: 3px dashed transparent;
    background: linear-gradient(90deg, var(--sma-primary), var(--sma-secondary), var(--sma-primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sma-flux-move 4s linear infinite;
    background-size: 200% 100%;
}
@keyframes sma-flux-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Houdini Gradient */
.sma-border-houdini .sma-border-wrap::before {
    background: conic-gradient(from var(--gradient-angle), var(--sma-primary), var(--sma-secondary), var(--sma-primary));
    border-radius: inherit;
    animation: sma-houdini-rotate 4s linear infinite;
}
@keyframes sma-houdini-rotate {
    from { --gradient-angle: 0deg; }
    to { --gradient-angle: 360deg; }
}
@property --gradient-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* Glitch Distortion */
.sma-border-glitch .sma-border-wrap::before,
.sma-border-glitch .sma-border-wrap::after {
    inset: -2px;
    border: 2px solid var(--sma-primary);
    background: transparent;
    mix-blend-mode: screen;
    animation: sma-glitch-shift 2s infinite alternate;
}
.sma-border-glitch .sma-border-wrap::after {
    border-color: var(--sma-secondary);
    animation-delay: -0.5s;
    inset: -4px;
}
@keyframes sma-glitch-shift {
    0% { transform: translate(0); clip-path: inset(0 0 0 0); }
    20% { transform: translate(2px, -2px); clip-path: inset(10% 0 20% 0); }
    40% { transform: translate(-2px, 1px); clip-path: inset(30% 0 10% 0); }
    60% { transform: translate(1px, 2px); clip-path: inset(0 20% 0 10%); }
    80% { transform: translate(-1px, -1px); clip-path: inset(10% 10% 20% 20%); }
    100% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

/* Data Stream */
.sma-border-datastream .sma-border-wrap::before {
    border: 2px solid transparent;
    background: linear-gradient(90deg, transparent, var(--sma-primary), var(--sma-secondary), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background-size: 200% 100%;
    animation: sma-datastream-flow 3s linear infinite;
}
@keyframes sma-datastream-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ── 9. SPOTLIGHT FOCUS ── */
.hover-spotlight .sma-items-container {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 28px;
}
.hover-spotlight .sma-card {
    transition: filter 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-spotlight .sma-items-container:has(.sma-card:hover) .sma-card:not(:hover) {
    filter: brightness(0.3) blur(2px);
    transform: scale(0.92);
}
.hover-spotlight .sma-card:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255,255,255,0.15), 0 15px 45px rgba(0,0,0,0.3);
    z-index: 10;
}
.hover-spotlight .sma-card:hover::before {
    content: '';
    position: absolute;
    inset: -4px;
    z-index: 5;
    border-radius: inherit;
    background: var(--gradient);
    opacity: 0.3;
    filter: blur(12px);
    pointer-events: none;
    animation: sma-spotlight-pulse 2s ease-in-out infinite alternate;
}
@keyframes sma-spotlight-pulse {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.02); }
}

/* ── 10. HOLOGRAPHIC 3D TILT ── */
.hover-holographic .sma-card,
.hover-holographic .sma-tourist-card,
.hover-holographic .sma-framed-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}
.hover-holographic .sma-card:hover,
.hover-holographic .sma-tourist-card:hover,
.hover-holographic .sma-framed-card:hover {
    transform: rotateX(4deg) rotateY(8deg) translateZ(25px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.hover-holographic .sma-card .sma-media-box::after,
.hover-holographic .sma-tourist-card .sma-media-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 40%, rgba(255,255,255,0.05) 60%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 4;
}
.hover-holographic .sma-card:hover .sma-media-box::after,
.hover-holographic .sma-tourist-card:hover .sma-media-box::after {
    opacity: 1;
}

/* ── 11. GRADIENT LINES ── */
.hover-gradient_lines .sma-card .sma-media-box {
    position: relative;
    overflow: visible !important;
}
.hover-gradient_lines .sma-card .sma-media-box::before {
    content: '';
    position: absolute;
    inset: -4px;
    z-index: 1;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(from var(--gradient-angle), var(--sma-primary), var(--sma-secondary), var(--sma-primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: sma-gradient-spin 3s linear infinite;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.hover-gradient_lines .sma-card:hover .sma-media-box::before {
    opacity: 1;
}
@keyframes sma-gradient-spin {
    to { --gradient-angle: 360deg; }
}
@supports not (--gradient-angle: 0deg) {
    .hover-gradient_lines .sma-card .sma-media-box::before {
        background: linear-gradient(135deg, var(--sma-primary), var(--sma-secondary), var(--sma-primary));
        background-size: 300% 300%;
        animation: sma-gradient-fallback 3s linear infinite;
    }
    @keyframes sma-gradient-fallback {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
}

/* ── 12. BIOLUMINESCENCE ── */
.hover-bioluminescence .sma-bio-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
    overflow: hidden;
    border-radius: inherit;
}
.hover-bioluminescence .sma-card:hover .sma-bio-glow {
    opacity: 1;
}
.hover-bioluminescence .sma-bio-glow svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── 13. MODAL (FIXED – Solid, Beautiful, Responsive) ── */

.sma-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
}
.sma-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.sma-modal-bg {
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.sma-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--sma-bg, #ffffff);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: sma-modal-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
@keyframes sma-modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.sma-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.sma-modal-close-btn:hover {
    background: var(--sma-secondary, #ff3ea5);
    color: #fff;
    transform: rotate(90deg) scale(1.05);
}
.sma-modal-inner {
    display: flex;
    height: 80vh;
    max-height: 80vh;
    overflow: hidden;
}
.sma-modal-image {
    flex: 1.2;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sma-modal-image .sma-image-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.sma-modal-image .sma-scroll-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.sma-modal-image .sma-scroll-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.sma-modal-details {
    flex: 0.8;
    background: var(--sma-bg, #ffffff);
    padding: 40px 45px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--sma-border, #e2e8f0);
    color: var(--sma-text, #0f172a);
}
.sma-m-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 16px;
    background: var(--gradient, linear-gradient(135deg, #6420aa 0%, #ff3ea5 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback if gradient fails */
    color: var(--sma-secondary, #ff3ea5);
    line-height: 1.2;
}
.sma-m-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--sma-border, #e2e8f0);
    font-size: 0.95rem;
    color: var(--sma-text-muted, #64748b);
}
.sma-m-meta i {
    margin-right: 8px;
    color: var(--sma-secondary, #ff3ea5);
    width: 20px;
    text-align: center;
}
.sma-m-meta b {
    color: var(--sma-text, #0f172a);
    font-weight: 600;
}
.sma-m-tech {
    margin-bottom: 24px;
}
.sma-m-tech strong {
    display: block;
    margin-bottom: 10px;
    color: var(--sma-text, #0f172a);
    font-size: 1rem;
}
.sma-tech-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--sma-bg-alt, #f1f5f9);
    border-radius: 50px;
    font-size: 0.85rem;
    margin: 0 8px 8px 0;
    border: 1px solid var(--sma-border, #e2e8f0);
    color: var(--sma-text, #0f172a);
    transition: all 0.2s;
}
.sma-tech-tag:hover {
    border-color: var(--sma-secondary, #ff3ea5);
    background: var(--sma-bg, #ffffff);
}
.sma-m-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--sma-text-secondary, #475569);
    margin-bottom: 30px;
    flex: 1;
}
.sma-m-desc p {
    margin-bottom: 1em;
}
.sma-m-url-wrap {
    margin-bottom: 20px;
}
.sma-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}
.sma-visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.sma-m-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    border-top: 2px solid var(--sma-border, #e2e8f0);
    padding-top: 20px;
    flex-wrap: wrap;
}
.sma-action-btn {
    flex: 1 1 auto;
    min-width: 100px;
    background: var(--sma-bg-alt, #f1f5f9);
    border: 1px solid var(--sma-border, #e2e8f0);
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--sma-text, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}
.sma-action-btn i {
    font-size: 1.2rem;
    color: var(--sma-secondary, #ff3ea5);
}
.sma-action-btn:hover {
    border-color: var(--sma-secondary, #ff3ea5);
    background: var(--sma-bg, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.sma-action-btn.liked i {
    color: #ef4444;
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
    .sma-modal-inner {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    .sma-modal-image {
        flex: 0 0 50vh;
        min-height: 280px;
    }
    .sma-modal-details {
        padding: 30px 25px;
        border-left: none;
        border-top: 1px solid var(--sma-border, #e2e8f0);
    }
    .sma-m-title {
        font-size: 2rem;
    }
    .sma-m-actions {
        gap: 8px;
    }
    .sma-action-btn {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
@media (max-width: 768px) {
    .sma-modal-content {
        border-radius: 16px;
        max-height: 95vh;
    }
    .sma-modal-image {
        flex: 0 0 40vh;
        min-height: 200px;
    }
    .sma-modal-details {
        padding: 20px 18px;
    }
    .sma-m-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    .sma-m-meta {
        gap: 12px 20px;
        font-size: 0.85rem;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    .sma-m-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .sma-visit-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .sma-action-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 60px;
        padding: 10px 8px;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 4px;
    }
    .sma-action-btn i {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .sma-modal-image {
        flex: 0 0 35vh;
        min-height: 160px;
    }
    .sma-modal-details {
        padding: 16px 14px;
    }
    .sma-m-title {
        font-size: 1.4rem;
    }
    .sma-m-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }
    .sma-m-meta i {
        width: 18px;
    }
    .sma-tech-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    .sma-m-actions {
        flex-wrap: wrap;
    }
    .sma-action-btn {
        flex: 1 1 100%;
        flex-direction: row;
        padding: 10px 12px;
    }
    .sma-modal-close-btn {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}




/* ==========================================================================
   MUSEUM WALL – Override Glitch Border (remove white glare)
   ========================================================================== */

/* 1. Disable all pseudo‑elements for border wraps inside Museum Wall */
.layout-museum .sma-border-wrap::before,
.layout-museum .sma-border-wrap::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    background: none !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Ensure the border wrap itself does not add any extra styling */
.layout-museum .sma-border-wrap {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: hidden !important; /* prevent any pseudo‑element bleed */
}

/* 3. Keep the image container clean */
.layout-museum .sma-media-box {
    background: var(--sma-bg-alt, #f1f5f9);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--sma-border, #e2e8f0); /* optional border */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* 4. Images – crisp, full‑size */
.layout-museum .sma-media-box img,
.layout-museum .sma-media-box video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* 5. Remove any other pseudo‑elements that could cause glare */
.layout-museum .sma-image-scroll-container::before,
.layout-museum .sma-image-scroll-container::after,
.layout-museum .sma-scroll-image::before,
.layout-museum .sma-scroll-image::after,
.layout-museum .sma-card::before,
.layout-museum .sma-card::after {
    display: none !important;
    content: none !important;
}



/* ── Torch Light – static dimmer, rotating cone ── */

/* Torch structure – fixed at top center */
.sma-torch-structure {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99995;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sma-torch-on .sma-torch-structure {
    opacity: 1;
}

.sma-torch-wire {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #888);
}

.sma-torch-head {
    width: 120px;
    height: 40px;
    background: linear-gradient(180deg, #444, #222);
    border-radius: 100px 100px 0 0;
    border: 1px solid #666;
    border-bottom: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.sma-torch-bulb {
    width: 50px;
    height: 20px;
    background: #ffeedd;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 5px 15px #fff, 0 10px 30px rgba(255,200,0,0.6);
    animation: sma-flicker 4s infinite alternate;
}
@keyframes sma-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
    52% { opacity: 0.9; }
    54% { opacity: 1; }
}

/* Dimmer – static dark overlay with rotating transparent cone */
.sma-torch-dimmer {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 99990;
    mask-image: conic-gradient(from calc(155deg + var(--torch-angle, 0deg)) at 50% 6.5rem, 
        black 0deg 10deg,
        rgba(0,0,0,0.1) 30deg,
        transparent 45deg,
        transparent 55deg,
        rgba(0,0,0,0.1) 70deg,
        black 90deg 360deg);
    -webkit-mask-image: conic-gradient(from calc(135deg + var(--torch-angle, 0deg)) at 50% 6.5rem, 
        black 0deg 10deg,
        rgba(0,0,0,0.1) 30deg,
        transparent 45deg,
        transparent 55deg,
        rgba(0,0,0,0.1) 70deg,
        black 90deg 360deg);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}
.sma-torch-on .sma-torch-dimmer {
    opacity: 1;
}

/* Beams – rotating light cone, same angle as dimmer */
.sma-torch-beams {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99991;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sma-torch-on .sma-torch-beams {
    opacity: 1;
}

.sma-torch-beam-main,
.sma-torch-beam-ray1,
.sma-torch-beam-ray2 {
    position: absolute;
    inset: 0;
    mix-blend-mode: screen;
    filter: blur(15px);
    animation: sma-light-shimmer 6s infinite alternate ease-in-out;
}

.sma-torch-beam-main {
    background: conic-gradient(from calc(140deg + var(--torch-angle, 0deg)) at 50% 6.5rem, 
        transparent 0deg, 
        rgba(255,250,200,0.2) 25deg, 
        rgba(255,255,255,0.4) 45deg, 
        rgba(255,250,200,0.2) 65deg, 
        transparent 90deg);
}
.sma-torch-beam-ray1 {
    background: conic-gradient(from calc(135deg + var(--torch-angle, 0deg)) at 50% 6.5rem, 
        transparent 0deg, 
        rgba(255,250,200,0.15) 25deg, 
        transparent 45deg);
    animation-delay: -2s;
}
.sma-torch-beam-ray2 {
    background: conic-gradient(from calc(180deg + var(--torch-angle, 0deg)) at 50% 6.5rem, 
        transparent 0deg, 
        rgba(255,250,200,0.15) 30deg, 
        transparent 55deg);
    animation-delay: -4s;
}
@keyframes sma-light-shimmer {
    0% { opacity: 0.5; transform: scaleX(1); }
    100% { opacity: 0.8; transform: scaleX(1.1); }
}

/* Distance fade – optional, static */
.sma-torch-distance-fade {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, transparent 65%, rgba(1,4,9,0.8) 100%);
    z-index: 99989;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sma-torch-on .sma-torch-distance-fade {
    opacity: 1;
}

/* ── Modern Grid – Mobile Responsive ── */
@media (max-width: 768px) {
    .layout-grid .sma-items-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .layout-grid .sma-card {
        height: 320px !important;
    }
}
@media (max-width: 480px) {
    .layout-grid .sma-card {
        height: 260px !important;
    }
}

/* ── Elegant Framed – Mobile Responsive ── */
@media (max-width: 1024px) {
    .layout-framed .sma-items-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}
@media (max-width: 768px) {
    .layout-framed .sma-items-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .sma-framed-card {
        height: 360px !important;
    }
    .sma-framed-card .sma-media-box {
        height: calc(100% - 50px) !important;
    }
}
@media (max-width: 480px) {
    .sma-framed-card {
        height: 300px !important;
        border-width: 10px !important;
    }
}

/* ── Download Gallery – Mobile Responsive ── */
@media (max-width: 1024px) {
    .layout-download .sma-items-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}
@media (max-width: 768px) {
    .layout-download .sma-items-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .sma-download-media {
        height: 240px !important;
    }
}
@media (max-width: 480px) {
    .sma-download-media {
        height: 200px !important;
    }
    .dl-card-actions {
        padding: 0.6rem !important;
    }
    .dl-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.7rem !important;
    }
}

/* ── Wall of Frames – Mobile Responsive ── */
@media (max-width: 1024px) {
    .layout-frames .sma-frames-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}
@media (max-width: 768px) {
    .layout-frames .sma-frames-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 10px !important;
    }
    .sma-frame-item {
        padding: 10px 10px 30px 10px !important;
    }
}
@media (max-width: 480px) {
    .sma-frame-item .sma-media-box {
        aspect-ratio: 3/4 !important;
    }
}

/* ── Fanned Deck – Mobile Responsive ── */
@media (max-width: 768px) {
    .layout-carousel .swiper {
        width: 280px !important;
        height: 380px !important;
    }
}
@media (max-width: 480px) {
    .layout-carousel .swiper {
        width: 220px !important;
        height: 300px !important;
    }
}

/* ── Tourist Attraction – Mobile Responsive ── */
@media (max-width: 1024px) {
    .sma-tourist-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    .sma-tourist-card {
        transform: rotateX(40deg) rotateZ(-8deg) !important;
        height: 350px !important;
    }
}
@media (max-width: 768px) {
    .sma-tourist-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        perspective: 600px !important;
    }
    .sma-tourist-card {
        transform: rotateX(20deg) rotateZ(-3deg) !important;
        height: auto !important;
        min-height: 300px !important;
        padding: 1rem !important;
    }
    .sma-tourist-card .sma-media-box {
        height: 160px !important;
    }
    .sma-tourist-content h3 {
        font-size: 20px !important;
    }
}
@media (max-width: 480px) {
    .sma-tourist-card {
        transform: rotateX(0deg) rotateZ(0deg) !important;
        min-height: 260px !important;
    }
    .sma-tourist-card .sma-media-box {
        height: 130px !important;
    }
    .sma-tourist-content h3 {
        font-size: 18px !important;
    }
}

/* ── Interactive 3D Carousel – Mobile Responsive ── */
@media (max-width: 1024px) {
    .sma-interactive3d-wrapper {
        width: 240px !important;
        height: 320px !important;
    }
    .sma-interactive3d-scene {
        height: 60vh !important;
        min-height: 400px !important;
    }
}
@media (max-width: 768px) {
    .sma-interactive3d-wrapper {
        width: 180px !important;
        height: 240px !important;
    }
    .sma-interactive3d-scene {
        height: 50vh !important;
        min-height: 350px !important;
    }
    .sma-3d-prev, .sma-3d-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
}
@media (max-width: 480px) {
    .sma-interactive3d-wrapper {
        width: 140px !important;
        height: 190px !important;
    }
    .sma-interactive3d-scene {
        height: 45vh !important;
        min-height: 300px !important;
    }
    .sma-3d-prev, .sma-3d-next {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }
}