/* ==========================================================================
   ShowMyAura Professional - Premium Modern Styles
   Version: 4.3.0
   ========================================================================== */

/* 1. Variables & Theme */
:root {
    --sma-primary: #0f172a;
    --sma-secondary: #3b82f6;
    --sma-bg: #ffffff;
    --sma-bg-alt: #f1f5f9;
    --sma-text: #0f172a;
    --sma-text-muted: #64748b;
    --sma-border: #e2e8f0;
    --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);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.sma-gallery-wrap.theme-dark { --sma-bg: #0f172a; --sma-bg-alt: #1e293b; --sma-text: #f1f5f9; --sma-text-muted: #94a3b8; --sma-border: #334155; }

/* 2. Base Reset */
.sma-gallery-wrap { width: 100%; position: relative; margin: 40px 0; font-family: 'Inter', sans-serif; color: var(--sma-text); background: var(--sma-bg); padding: 40px; border-radius: var(--sma-radius-lg); box-shadow: var(--sma-shadow); }
.sma-gallery-wrap * { box-sizing: border-box; }

/* 3. Theme Toggle */
.sma-theme-toggle { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.sma-theme-btn { width: 36px; height: 36px; border: none; background: var(--sma-bg-alt); border-radius: 50%; cursor: pointer; transition: var(--sma-transition); color: var(--sma-text); }
.sma-theme-btn:hover, .sma-theme-btn.active { background: var(--gradient); color: #fff; }

/* 4. Category Filters */
.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); padding: 10px 24px; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: 14px; transition: var(--sma-transition); color: var(--sma-text); }
.sma-cat-btn:hover { border-color: var(--sma-secondary); color: var(--sma-secondary); }
.sma-cat-btn.active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }

/* 5. Media Box & Auto-Scroll */
.sma-media-box { position: relative; overflow: hidden; background: var(--sma-bg-alt); height: 100%; width: 100%; display: block; }
.sma-img-scroller { width: 100%; height: 100%; background-size: cover; background-position: top center; background-repeat: no-repeat; transition: background-position var(--scroll-speed, 3s) ease-in-out, transform 0.6s ease; }
.sma-card:hover .sma-img-scroller { background-position: bottom center; transform: scale(1.05); }
.sma-media-box video { width: 100%; height: 100%; object-fit: cover; }
.sma-audio-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--sma-text-muted); font-size: 40px; }

/* 6. Overlay */
.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: 2; }
.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-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); }
.sma-card:hover .sma-overlay-content h3, .sma-card:hover .sma-btn-glass { transform: translateY(0); opacity: 1; }

/* ==========================================================================
   HOVER EFFECTS (NEW)
   ========================================================================== */
/* Zoom In */
.sma-gallery-wrap.hover-zoom .sma-card:hover .sma-media-box { transform: scale(1.1); }

/* Zoom Out */
.sma-gallery-wrap.hover-zoom-out .sma-card:hover .sma-media-box { transform: scale(0.95); }

/* Slide Up */
.sma-gallery-wrap.hover-slide-up .sma-card:hover { transform: translateY(-10px); }

/* Slide Down */
.sma-gallery-wrap.hover-slide-down .sma-card:hover { transform: translateY(10px); }

/* Fade */
.sma-gallery-wrap.hover-fade .sma-card { transition: opacity 0.4s ease; }
.sma-gallery-wrap.hover-fade .sma-card:hover { opacity: 0.8; }

/* Blur */
.sma-gallery-wrap.hover-blur .sma-img-scroller { transition: filter 0.4s ease, transform 0.6s ease; }
.sma-gallery-wrap.hover-blur .sma-card:hover .sma-img-scroller { filter: blur(2px); }

/* Grayscale */
.sma-gallery-wrap.hover-grayscale .sma-img-scroller { transition: filter 0.4s ease, transform 0.6s ease; }
.sma-gallery-wrap.hover-grayscale .sma-card:hover .sma-img-scroller { filter: grayscale(100%); }

/* Sepia */
.sma-gallery-wrap.hover-sepia .sma-img-scroller { transition: filter 0.4s ease, transform 0.6s ease; }
.sma-gallery-wrap.hover-sepia .sma-card:hover .sma-img-scroller { filter: sepia(100%); }

/* Rotate */
.sma-gallery-wrap.hover-rotate .sma-card:hover .sma-media-box { transform: rotate(3deg) scale(1.05); transition: transform 0.6s ease; }

/* Camera Aperture (Premium) */
.sma-gallery-wrap.camera-blur .sma-media-box { filter: blur(4px); transition: filter 0.5s ease; }
.sma-gallery-wrap.camera-blur .sma-card:hover .sma-media-box { filter: blur(0); }

.sma-gallery-wrap.camera-focus .sma-media-box { filter: blur(2px) brightness(0.7); transition: all 0.5s ease; }
.sma-gallery-wrap.camera-focus .sma-card:hover .sma-media-box { filter: blur(0) brightness(1); transform: scale(1.05); }

.sma-gallery-wrap.camera-exposure .sma-media-box { filter: brightness(0.5); transition: filter 0.5s ease; }
.sma-gallery-wrap.camera-exposure .sma-card:hover .sma-media-box { filter: brightness(1.2); }

.sma-gallery-wrap.camera-bokeh .sma-media-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, transparent 30%, rgba(0,0,0,0.4) 100%); opacity: 0; transition: opacity 0.5s ease; }
.sma-gallery-wrap.camera-bokeh .sma-card:hover .sma-media-box::before { opacity: 1; }

/* ==========================================================================
   BORDER/FRAME STYLES (NEW)
   ========================================================================== */
/* Solid */
.sma-gallery-wrap.border-solid .sma-card { border: var(--border-width, 2px) solid var(--border-color, #e2e8f0); border-radius: var(--border-radius, 12px); }

/* Dashed */
.sma-gallery-wrap.border-dashed .sma-card { border: var(--border-width, 2px) dashed var(--border-color, #e2e8f0); border-radius: var(--border-radius, 12px); }

/* Dotted */
.sma-gallery-wrap.border-dotted .sma-card { border: var(--border-width, 2px) dotted var(--border-color, #e2e8f0); border-radius: var(--border-radius, 12px); }

/* Double */
.sma-gallery-wrap.border-double .sma-card { border: var(--border-width, 2px) double var(--border-color, #e2e8f0); border-radius: var(--border-radius, 12px); }

/* Shadow */
.sma-gallery-wrap.border-shadow .sma-card { box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: var(--border-radius, 12px); }

/* Polaroid */
.sma-gallery-wrap.border-polaroid .sma-card { background: #fff; padding: 15px 15px 50px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.sma-gallery-wrap.border-polaroid .sma-media-box { border-radius: 2px; }

/* Rounded */
.sma-gallery-wrap.border-rounded .sma-card { border-radius: 24px; overflow: hidden; }

/* ==========================================================================
   LAYOUT STYLES (Original 8 + New 6)
   ========================================================================== */

/* 1. Modern Grid - Floating Cards */
.layout-grid .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 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; }
.layout-grid .sma-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

/* 2. Smart Masonry - Dynamic Columns */
.layout-masonry .sma-items-container { columns: var(--cols); column-gap: 24px; }
.layout-masonry .sma-card { break-inside: avoid; margin-bottom: 24px; border-radius: var(--sma-radius-lg); overflow: hidden; display: block; box-shadow: var(--sma-shadow); transition: transform 0.3s ease; }
.layout-masonry .sma-media-box { height: 300px; }
.layout-masonry .sma-card:nth-child(3n+1) .sma-media-box { height: 420px; }
.layout-masonry .sma-card:nth-child(4n+2) .sma-media-box { height: 260px; }
.layout-masonry .sma-card:hover { transform: scale(1.02); }

/* 3. Swipe Slider - Card Style */
.layout-slider .swiper { padding-bottom: 70px; }
.layout-slider .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%; }
.layout-slider .sma-media-box { height: 280px; }
.layout-slider .sma-slider-info { padding: 30px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.layout-slider h3 { font-size: 22px; margin: 0 0 12px; font-weight: 700; }
.layout-slider .sma-desc-clamp { font-size: 14px; color: var(--sma-text-muted); line-height: 1.6; margin-bottom: 20px; }
.layout-slider .sma-view-btn { background: var(--gradient); color: #fff; border: none; padding: 12px 28px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; align-self: center; margin-top: auto; }
.layout-slider .sma-view-btn:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }

/* Slider Nav */
.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; }
.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; }

/* 4. Portfolio Case Study - Distinct Blocks */
.layout-zigzag { background: var(--sma-bg-alt); border-radius: 0; padding: 80px 0; margin: 0; }
.layout-zigzag .sma-items-container { display: flex; flex-direction: column; gap: 100px; max-width: 1200px; margin: 0 auto; }
.layout-zigzag .sma-card { display: flex; align-items: center; gap: 60px; background: transparent !important; box-shadow: none !important; }
.layout-zigzag .sma-card:nth-child(even) { flex-direction: row-reverse; }
.layout-zigzag .sma-media-box { flex: 1.2; height: 500px; border-radius: var(--sma-radius-lg); box-shadow: var(--sma-shadow); }
.layout-zigzag .sma-zigzag-info { flex: 1; background: var(--sma-bg); padding: 40px; border-radius: var(--sma-radius-lg); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.layout-zigzag .sma-badge { display: inline-block; padding: 6px 16px; background: var(--gradient); color: #fff; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.layout-zigzag h3 { font-size: 36px; margin: 0 0 15px; font-weight: 800; line-height: 1.2; }
.layout-zigzag .sma-desc-clip { font-size: 16px; color: var(--sma-text-muted); line-height: 1.8; margin-bottom: 30px; }
.layout-zigzag .sma-view-btn { background: transparent; border: 2px solid var(--sma-text); color: var(--sma-text); padding: 14px 32px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.layout-zigzag .sma-view-btn:hover { background: var(--gradient); border-color: transparent; color: #fff; }

/* 5. Elegant Framed - Polaroid Style */
.layout-framed { background: #e2e8f0; padding: 50px 20px; border-radius: 0; }
.layout-framed .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 40px; }
.layout-framed .sma-card { background: #fff; padding: 15px 15px 60px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); height: auto; transition: all 0.3s ease; border: none; }
.layout-framed .sma-media-box { height: 350px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); }
.layout-framed .sma-overlay { border-radius: 2px; }
.layout-framed .sma-card:hover { transform: rotate(1deg) scale(1.02); z-index: 2; }

/* 6. Bento Box - Dynamic Grid */
.layout-bento .sma-items-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; grid-auto-rows: 250px; }
.layout-bento .sma-card { border-radius: var(--sma-radius-lg); overflow: hidden; position: relative; }
.layout-bento .sma-card:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
.layout-bento .sma-card:nth-child(4n+2), .layout-bento .sma-card:nth-child(4n+3) { grid-column: span 1; grid-row: span 1; }
.layout-bento .sma-card:nth-child(4n+4) { grid-column: span 2; grid-row: span 1; }
.layout-bento .sma-card:hover { transform: scale(1.03); z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

/* 7. Fanned Deck Carousel - Fixed Visibility */
.layout-carousel { display: flex; justify-content: center; align-items: center; min-height: 600px; overflow: visible !important; background: transparent; }
.layout-carousel .swiper { width: 320px; height: 450px; }
.layout-carousel .sma-card { width: 100%; height: 100%; border-radius: var(--sma-radius-lg); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

/* 8. Download Gallery - Clean Resource Grid */
.layout-download .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 30px; }
.sma-download-card { background: var(--sma-bg-alt); border-radius: var(--sma-radius-lg); overflow: hidden; box-shadow: var(--sma-shadow); border: 1px solid var(--sma-border); transition: all 0.3s ease; }
.sma-download-card:hover { transform: translateY(-5px); border-color: var(--sma-secondary); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.sma-download-media { height: 250px; overflow: hidden; }
.sma-download-media .sma-img-scroller { transition: transform 0.5s ease; }
.sma-download-card:hover .sma-img-scroller { transform: scale(1.08); }
.sma-download-info { padding: 25px; }
.sma-download-info h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.sma-download-desc { font-size: 14px; color: var(--sma-text-muted); margin-bottom: 20px; }
.sma-download-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sma-dl-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--sma-bg); color: var(--sma-text); text-decoration: none; border: 1px solid var(--sma-border); cursor: pointer; transition: 0.2s; }
.sma-dl-action-btn:hover { background: var(--gradient); color: #fff; border-color: transparent; }
.sma-upsell-btn { opacity: 0.6; cursor: not-allowed; }
.sma-upsell-btn:hover { opacity: 1; background: var(--sma-bg); color: var(--sma-text); border-color: var(--sma-border); }

/* ==========================================================================
   NEW LAYOUTS (6 additional layouts)
   ========================================================================== */

/* 9. Spotlight Focus */
.layout-spotlight .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 30px; }
.layout-spotlight .sma-card { position: relative; border-radius: var(--sma-radius-lg); overflow: hidden; height: 400px; }
.layout-spotlight .sma-spotlight-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: #fff; transform: translateY(100%); transition: transform 0.4s ease; }
.layout-spotlight .sma-card:hover .sma-spotlight-info { transform: translateY(0); }
.layout-spotlight .sma-tag { display: inline-block; padding: 4px 12px; background: var(--gradient); border-radius: 20px; font-size: 12px; margin-bottom: 10px; }
.layout-spotlight h3 { margin: 0 0 15px; font-size: 24px; }
.layout-spotlight .sma-view-btn { background: #fff; color: var(--sma-text); border: none; padding: 10px 20px; border-radius: 50px; cursor: pointer; transition: 0.3s; }
.layout-spotlight .sma-view-btn:hover { background: var(--gradient); color: #fff; }

/* 10. Split View */
.layout-split .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 30px; }
.layout-split .sma-split-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%; transition: transform 0.3s ease; }
.layout-split .sma-split-card:hover { transform: translateY(-5px); }
.layout-split .sma-split-media { height: 250px; overflow: hidden; }
.layout-split .sma-split-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.layout-split .sma-tag { display: inline-block; padding: 4px 12px; background: var(--sma-bg-alt); border-radius: 20px; font-size: 12px; color: var(--sma-text-muted); margin-bottom: 15px; align-self: flex-start; }
.layout-split h3 { margin: 0 0 15px; font-size: 20px; }
.layout-split .sma-client, .layout-split .sma-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sma-text-muted); margin-bottom: 8px; }
.layout-split .sma-view-btn { margin-top: auto; background: var(--gradient); color: #fff; border: none; padding: 12px 24px; border-radius: 50px; cursor: pointer; transition: 0.3s; align-self: flex-start; }
.layout-split .sma-view-btn:hover { box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3); }

/* 11. Cinematic Reveal */
.layout-cinematic .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 30px; }
.layout-cinematic .sma-cinematic-card { position: relative; border-radius: var(--sma-radius-lg); overflow: hidden; height: 450px; }
.layout-cinematic .sma-cinematic-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: #fff; opacity: 0; transition: opacity 0.5s ease; }
.layout-cinematic .sma-card:hover .sma-cinematic-overlay { opacity: 1; }
.layout-cinematic .sma-cinematic-content { transform: translateY(30px); transition: transform 0.5s ease; }
.layout-cinematic .sma-card:hover .sma-cinematic-content { transform: translateY(0); }
.layout-cinematic h3 { margin: 0 0 10px; font-size: 28px; }
.layout-cinematic .sma-cinematic-desc { font-size: 14px; line-height: 1.6; opacity: 0.9; margin-bottom: 20px; }
.layout-cinematic .sma-view-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--gradient); color: #fff; border: none; padding: 12px 24px; border-radius: 50px; font-size: 14px; cursor: pointer; transition: 0.3s; }
.layout-cinematic .sma-view-btn:hover { transform: scale(1.05); }

/* 12. Showcase Carousel */
.layout-showcase .swiper { padding: 60px 0; }
.layout-showcase .sma-card { border-radius: var(--sma-radius-lg); overflow: hidden; height: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

/* 13. Stacked Depth */
.layout-stacked .sma-items-container { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 40px; }
.layout-stacked .sma-stacked-card { position: relative; padding: 10px; }
.layout-stacked .sma-stacked-layer { position: relative; border-radius: var(--sma-radius-lg); overflow: hidden; height: 350px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.layout-stacked .sma-stacked-card:hover .sma-stacked-layer { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.layout-stacked .sma-stacked-info { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 20px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); transform: translateY(100px); opacity: 0; transition: all 0.4s ease; }
.layout-stacked .sma-stacked-card:hover .sma-stacked-info { transform: translateY(0); opacity: 1; }
.layout-stacked h3 { margin: 0 0 10px; font-size: 18px; }
.layout-stacked .sma-tag { display: inline-block; padding: 4px 10px; background: var(--gradient); border-radius: 20px; font-size: 11px; color: #fff; }
.layout-stacked .sma-view-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--sma-text); color: #fff; border: none; padding: 8px 16px; border-radius: 50px; font-size: 12px; cursor: pointer; transition: 0.3s; margin-top: 15px; }
.layout-stacked .sma-view-btn:hover { background: var(--secondary); }

/* 14. Timeline Flow */
.layout-timeline .sma-items-container { max-width: 900px; margin: 0 auto; position: relative; }
.layout-timeline::before { content: ''; position: absolute; left: 50px; top: 0; bottom: 0; width: 3px; background: var(--sma-border); }
.layout-timeline .sma-timeline-item { display: flex; gap: 30px; margin-bottom: 60px; position: relative; }
.layout-timeline .sma-timeline-dot { width: 20px; height: 20px; background: var(--gradient); border-radius: 50%; position: absolute; left: 41px; top: 20px; box-shadow: 0 0 0 5px var(--sma-bg), 0 0 0 8px var(--gradient); }
.layout-timeline .sma-timeline-content { flex: 1; padding-left: 50px; }
.layout-timeline .sma-timeline-date { display: inline-block; padding: 4px 12px; background: var(--sma-bg-alt); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--sma-text-muted); margin-bottom: 15px; }
.layout-timeline h3 { margin: 0 0 20px; font-size: 24px; }
.layout-timeline .sma-timeline-media { border-radius: var(--sma-radius-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--sma-shadow); }
.layout-timeline .sma-timeline-media .sma-media-box { height: 300px; }
.layout-timeline .sma-timeline-desc { font-size: 15px; color: var(--sma-text-muted); line-height: 1.8; margin-bottom: 20px; }
.layout-timeline .sma-view-btn { background: var(--gradient); color: #fff; border: none; padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.layout-timeline .sma-view-btn:hover { box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3); }

/* ==========================================================================
   MODAL POPUP (Modern Cinematic)
   ========================================================================== */
.sma-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sma-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(15px); cursor: pointer; }

.sma-modal-content {
    position: relative; background: var(--sma-bg); border-radius: var(--sma-radius-lg); 
    max-width: 1300px; width: 100%; max-height: 90vh; overflow: hidden; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.5); display: flex; flex-direction: column;
    animation: sma-modal-in 0.3s ease;
}
@keyframes sma-modal-in { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1); } }

/* Close Button - Modern Pill */
.sma-modal-close-btn {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    background: rgba(0,0,0,0.4); color: #fff; border: none;
    width: auto; padding: 10px 20px; border-radius: 50px; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.sma-modal-close-btn:hover { background: #ef4444; transform: scale(1.05); }

.sma-modal-split { display: flex; width: 100%; height: 90vh; }
/* Image Area - 70% width, large */
.sma-modal-media-wrap { flex: 0 0 70%; background: #000; display: flex; align-items: center; justify-content: center; overflow-y: auto; }
.sma-modal-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.sma-modal-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Info Area - 30% width */
.sma-modal-info { flex: 0 0 30%; padding: 50px; overflow-y: auto; background: var(--sma-bg); display: flex; flex-direction: column; }

.sma-m-title { font-size: 28px; font-weight: 800; margin: 0 0 20px; line-height: 1.3; }
.sma-m-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--sma-border); font-size: 13px; color: var(--sma-text-muted); }
.sma-m-meta i { margin-right: 6px; color: var(--sma-secondary); }
.sma-m-desc { font-size: 15px; line-height: 1.8; color: var(--sma-text-muted); margin-bottom: 20px; flex: 1; }
.sma-visit-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gradient); color: #fff; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.2s; }
.sma-visit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.sma-m-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.sma-action-btn { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--sma-bg-alt); border: 1px solid var(--sma-border); border-radius: 10px; font-weight: 600; color: var(--sma-text); text-decoration: none; transition: 0.2s; cursor: pointer; text-align: left; }
.sma-action-btn:hover { border-color: var(--sma-secondary); background: var(--sma-bg); }
.sma-like-btn.liked { color: #ef4444; border-color: #fecaca; background: #fff5f5; }
.sma-free-upsell { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); padding: 20px; border-radius: 10px; text-align: center; width: 100%; color: #92400e; }
.theme-dark .sma-free-upsell { background: #422006; color: #fef3c7; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .layout-bento .sma-items-container { grid-template-columns: repeat(2, 1fr); }
    .layout-zigzag .sma-card, .layout-zigzag .sma-card:nth-child(even) { flex-direction: column !important; gap: 30px; }
    .layout-zigzag .sma-media-box { height: 350px; width: 100%; }
    .sma-modal-split { flex-direction: column; }
    .sma-modal-media-wrap { flex: none; height: 50vh; width: 100%; }
    .sma-modal-info { flex: none; width: 100%; height: 50vh; padding: 25px; }
}
@media (max-width: 768px) {
    .sma-gallery-wrap { padding: 15px; }
    .layout-grid .sma-items-container, .layout-framed .sma-items-container, .layout-download .sma-items-container, .layout-spotlight .sma-items-container, .layout-split .sma-items-container, .layout-cinematic .sma-items-container, .layout-stacked .sma-items-container { grid-template-columns: 1fr !important; }
    .layout-framed .sma-card { height: 300px; }
    .layout-bento .sma-items-container { grid-template-columns: 1fr; }
    .layout-bento .sma-card { grid-column: span 1 !important; grid-row: span 1 !important; height: 220px; }
    .layout-slider .sma-media-box { height: 220px; }
    .layout-carousel .swiper { width: 260px; height: 360px; }
    .layout-zigzag { padding: 40px 15px; }
    .layout-zigzag h3 { font-size: 24px; }
    .layout-timeline::before { left: 20px; }
    .layout-timeline .sma-timeline-dot { left: 11px; }
    .layout-timeline .sma-timeline-content { padding-left: 40px; }
    .sma-modal-close-btn { top: 10px; right: 10px; padding: 8px 15px; font-size: 12px; }
    .sma-m-title { font-size: 22px; }
}