/* VIS Gallery Advanced - Style v3.1.0 (Enterprise Edition + UX Polish)
   Features: Global Likes Counters, Content Protection, Modal UI Polish (15px Radius), Audio Player High Contrast.
   Includes: Skeleton Loading, Ambient Glow, Filmstrip, Liquid Glider.
*/

:root {
    --ga-glass-bg: rgba(255, 255, 255, 0.4);
    --ga-glass-border: rgba(255, 255, 255, 0.2);
    --ga-accent: #1d2935;
    --ga-text: #333;
    --ga-success: #46b450;
    --ga-error: #dc3232;
    --ga-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Default Variables (Overwritten by Widget) */
    --vis-glow-blur: 40px;
    --vis-glow-opacity: 0.5;
    --vis-row-height: 240px;
}

/* --- GLÓWNY KONTENER --- */
.vis-ga-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 20px 0;
}

.vis-ga-wrapper * {
    box-sizing: border-box;
}

/* PROTECTION HELPERS [V3.1.0] */
[data-protection="yes"] img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* --- PASEK NAWIGACJI (TOOLBAR) --- */
.vis-ga-toolbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.vis-ga-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* --- FILTRY I LIQUID GLIDER --- */
.vis-ga-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    position: relative; 
    justify-content: var(--vis-nav-justify, flex-start);
    padding: var(--vis-nav-padding, 10px);
    transition: var(--ga-transition);
}

.vis-filter-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-right: 5px;
}

/* Liquid Glider */
.vis-ga-glider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%; 
    background: var(--ga-accent);
    border-radius: 30px;
    z-index: 0; 
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6), width 0.3s ease, height 0.3s ease;
    opacity: 0; 
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    will-change: transform, width, height;
    transform: translateZ(0); 
}

/* Przyciski filtrów */
.vis-ga-filter-btn {
    padding: 8px 20px; 
    border: 1px solid transparent;
    background: transparent; 
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    color: var(--ga-text);
    position: relative;
    z-index: 1; 
    transition: color 0.2s ease, background 0.3s ease;
}

.vis-ga-filter-btn:hover {
    color: var(--ga-accent);
    background: rgba(255, 255, 255, 0.5); 
}

.vis-ga-filter-btn.active {
    color: #fff;
    background: transparent; 
    border-color: transparent;
    box-shadow: none;
    transition: color 0.3s ease 0.15s; 
}
.vis-ga-filter-btn.active:hover {
    background: transparent;
}

/* Smart Favorites Animation */
@keyframes visFadeIn {
    from { opacity: 0; transform: translateY(-5px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.vis-fade-in {
    animation: visFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Przycisk "Zapytaj o ulubione" */
.vis-ga-ask-btn {
    margin-left: auto;
    background: #fff;
    border: 1px solid var(--ga-accent);
    color: var(--ga-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--ga-transition);
    white-space: nowrap;
}
.vis-ga-ask-btn:hover {
    background: var(--ga-accent);
    color: #fff;
}

.vis-ga-count {
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 3px;
    vertical-align: super;
}

.vis-ga-favorites-filter svg {
    vertical-align: middle;
    margin-bottom: 2px;
}

/* STICKY NAVIGATION */
.vis-sticky-nav {
    position: sticky;
    top: 20px; 
    z-index: 9000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 15px;
    contain: layout; 
    will-change: transform;
}

/* --- WYSZUKIWARKA --- */
.vis-ga-search-container {
    position: relative;
    min-width: 220px;
    transition: width 0.3s ease, flex-grow 0.3s ease;
}

.vis-ga-search-input {
    width: 100%;
    padding: 12px 45px 12px 40px; 
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 50px !important; 
    font-size: 14px;
    transition: var(--ga-transition);
    outline: none;
}

.vis-ga-search-input:focus {
    background: #fff;
    border-color: var(--ga-accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.vis-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    opacity: 0.7;
    pointer-events: none;
    color: var(--ga-text);
    z-index: 10;
}

.vis-ga-search-clear {
    position: absolute; right: 35px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%; color: #fff;
    font-size: 12px; line-height: 18px; text-align: center;
    cursor: pointer; opacity: 0; pointer-events: none;
    transition: all 0.2s ease; z-index: 10;
}
.vis-ga-search-clear:hover { background: var(--ga-accent); }

.vis-ga-search-spinner {
    position: absolute; right: 12px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid var(--ga-accent);
    border-radius: 50%; opacity: 0;
    transition: opacity 0.2s ease;
    animation: vis-spin 0.8s linear infinite; z-index: 10;
}
@keyframes vis-spin { to { transform: rotate(360deg); } }

.vis-ga-search-results {
    position: absolute; bottom: -20px; left: 10px;
    font-size: 10px; color: #888;
    opacity: 0; transition: opacity 0.3s ease;
}

/* --- CUSTOM SORT DROPDOWN --- */
.vis-ga-sort-container {
    position: relative; display: inline-block; z-index: 90;
}
.vis-ga-custom-select { position: relative; min-width: 190px; }
.vis-select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 20px;
    background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 50px;
    cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ga-text);
    transition: all 0.3s ease; outline: none; white-space: nowrap;
}
.vis-select-trigger:hover, .vis-ga-custom-select.is-open .vis-select-trigger {
    background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-color: var(--ga-accent);
}
.vis-select-arrow {
    width: 14px; height: 14px; margin-left: 10px;
    transition: transform 0.3s ease; opacity: 0.6;
}
.vis-ga-custom-select.is-open .vis-select-arrow { transform: rotate(180deg); }
.vis-select-dropdown {
    position: absolute; top: 100%; left: 0; width: 100%; margin-top: 8px; padding: 5px 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 100;
}
.vis-ga-custom-select.is-open .vis-select-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.vis-select-option {
    padding: 8px 20px; font-size: 13px; color: #333; cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center;
}
.vis-select-option:hover { background: rgba(0,0,0,0.05); }
.vis-select-option svg { margin-right: 8px; opacity: 0.6; }
.vis-select-option.selected { font-weight: 700; color: var(--ga-accent); background: rgba(0,0,0,0.03); }

/* --- GRID SYSTEM --- */

.vis-ga-masonry {
    position: relative; width: 100%; min-height: 200px;
}
.vis-ga-item {
    position: absolute; top: 0; left: 0; display: none; margin-bottom: var(--vis-gap, 25px);
}

/* SKELETON ANIMATIONS */
@keyframes vis-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.vis-skeleton-item {
    pointer-events: none;
}

/* STAGGERED ANIMATION */
@keyframes visFadeUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.vis-ga-item.vis-stagger-active {
    opacity: 0; /* Start hidden */
    animation-name: visFadeUp;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 1, 0.25, 1);
}

/* Real Grid Mode Override */
.vis-layout-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--vis-cols, 3), 1fr);
    gap: var(--vis-gap, 25px);
}
.vis-layout-grid .vis-ga-item {
    position: relative !important; 
    width: auto !important;
    left: auto !important;
    top: auto !important;
    margin-bottom: 0 !important;
    display: block !important;
}
.vis-layout-grid .vis-ga-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: 100%;
}

.vis-filtering-hidden { opacity: 0; transform: scale(0.9); transition: transform 0.4s, opacity 0.4s; pointer-events: none; }
.vis-filtering-show { opacity: 1; transform: scale(1); transition: transform 0.4s, opacity 0.4s; }
.vis-load-hidden { display: none !important; }

/* --- KARTA (GLASS MORPH & GLOW) --- */
.vis-ga-card {
    position: relative !important;
    border-radius: 15px;
    overflow: hidden;
    background: var(--ga-glass-bg);
    border: 1px solid var(--ga-glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100% !important;
    height: 100% !important; 
    will-change: transform, opacity;
    transform: translateZ(0); 
    backface-visibility: hidden;
}

/* AMBIENT GLOW LOGIC */
[data-ambient="yes"] .vis-ga-card {
    box-shadow: 0 15px var(--vis-glow-blur) rgba(0,0,0, var(--vis-glow-opacity));
}

.vis-ga-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
    z-index: 5; transform: translateY(-5px);
}

.vis-ga-card img {
    width: 100% !important; height: 100% !important; 
    display: block !important; transition: transform 0.5s ease;
    will-change: transform;
    object-fit: cover; 
}
.vis-ga-card:hover img { transform: scale(1.05); }
img.vis-blur-loading { filter: blur(10px); transform: scale(1.02); }
.vis-image-trigger { cursor: pointer; display: block; height: 100%; }

/* MEDIA HOVER ELEMENTS */
.vis-hover-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 5; 
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

/* --- MEDIA ICONS --- */
.vis-video-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; border-radius: 50%; 
    border: 2px solid rgba(255,255,255,0.8);
    display: flex; align-items: center; justify-content: center; 
    pointer-events: none; transition: all 0.3s ease; backdrop-filter: blur(2px); z-index: 6;
    background: var(--vis-video-bg-normal, rgba(0,0,0,0.3));
    color: var(--vis-video-icon-normal, #ffffff);
}
.vis-video-overlay svg { fill: currentColor; width: 24px; height: 24px; transition: transform 0.3s; }
.vis-audio-overlay { 
    border-color: var(--vis-audio-border-normal, rgba(100, 255, 218, 0.8));
    color: var(--vis-audio-icon-normal, #64ffda);
}
.vis-ga-card:hover .vis-video-overlay { 
    transform: translate(-50%, -50%) scale(1.1); 
    box-shadow: 0 0 20px rgba(0,0,0,0.3); border-color: transparent;
    background: var(--vis-video-btn-bg, rgba(255, 255, 255, 0.9));
    color: var(--vis-video-btn-color, #1d2935);
}
.vis-ga-card:hover .vis-audio-overlay { 
    background: var(--vis-audio-btn-bg, rgba(100, 255, 218, 0.9)); 
    color: var(--vis-audio-btn-color, #111111);
}

/* --- INTERFEJS NA KARCIE --- */
.vis-ga-actions {
    position: absolute !important; top: 15px !important; left: 15px !important; z-index: 25 !important; display: flex; gap: 10px;
}

/* [V3.1.0] FAVORITE BUTTON & COUNTER */
.vis-favorite-btn {
    position: relative !important; 
    width: auto !important; /* Allow width to grow */
    min-width: 36px !important; 
    height: 36px !important;
    padding: 0 8px !important; 
    gap: 4px;
    border-radius: 30px !important; /* Pill shape */
    border: none;
    background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #fff; transition: all 0.3s;
}
.vis-favorite-btn:hover { background: #fff; color: #ff4757; transform: scale(1.05); }
.vis-favorite-btn.active {
    background: #ff4757 !important; color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}
.vis-favorite-btn svg { width: 18px !important; height: 18px !important; fill: none; stroke: currentColor; }
.vis-favorite-btn.active svg { fill: #ffffff !important; stroke: #ffffff !important; }

.vis-like-count {
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}
.vis-favorite-btn.vis-loading { opacity: 0.7; cursor: wait; pointer-events: none; }

/* MINI-BADGE (ICON ONLY) + TOOLTIP FIX */
.vis-inquiry-badge {
    position: absolute !important; top: calc(15px + var(--vis-inquiry-y, 0px)) !important;
    right: calc(15px + var(--vis-inquiry-x, 0px)) !important;
    bottom: auto !important; left: auto !important; z-index: 20 !important;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--ga-accent); 
    text-decoration: none !important;
    width: 36px; height: 36px; padding: 0;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.vis-inquiry-badge:hover {
    background: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.vis-inquiry-icon { width: 16px; height: 16px; fill: currentColor; }

/* Tooltip Positioned Under Icon */
.vis-inquiry-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    right: 0;
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: #333; font-size: 11px; font-weight: 600; text-transform: uppercase;
    padding: 6px 12px; border-radius: 20px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
}
.vis-inquiry-badge:hover::after {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.vis-ga-badge {
    position: absolute; bottom: 15px; left: 15px; top: auto; right: auto;
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff;
    z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.badge-sold { background: #e74c3c; }
.badge-reserved { background: #f39c12; }
.badge-new { background: #2ecc71; }

.vis-ga-info {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    position: absolute; bottom: 0; left: 0; width: 100%;
    transform: translateY(100%); transition: transform 0.4s ease; z-index: 10;
}
.vis-ga-card:hover .vis-ga-info { transform: translateY(0); }
.vis-ga-title { margin: 0 0 5px 0; font-size: 16px; font-weight: 600; color: #1d2935; }
.vis-ga-author { margin: 0; font-size: 13px; color: #666; }

/* --- LOAD MORE --- */
.vis-ga-load-more-container { text-align: center; margin-top: 40px; clear: both; }
.vis-ga-load-btn { padding: 12px 30px; background: var(--ga-accent); color: #fff; border: none; border-radius: 30px; cursor: pointer; font-weight: 600; transition: var(--ga-transition); }
.vis-ga-load-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); background: #000; }
.vis-ga-infinite-loader { display: flex; justify-content: center; gap: 8px; }
.vis-ga-infinite-loader span { width: 10px; height: 10px; background: var(--ga-accent); border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.vis-ga-infinite-loader span:nth-child(1) { animation-delay: -0.32s; }
.vis-ga-infinite-loader span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* --- ENHANCED MODAL (Fixed Nav & Z-Index) --- */
.vis-ga-modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 100000; 
    display: flex; align-items: center; justify-content: center; 
    opacity: 0; visibility: hidden; transition: opacity 0.3s; 
}
.vis-ga-modal.is-open { opacity: 1; visibility: visible; }
.vis-ga-modal-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); 
}

.vis-ga-modal-container { 
    position: relative; width: 95%; max-width: 1100px; 
    background: #fff; 
    border-radius: 15px !important; /* [V3.1.0] Updated to 15px */
    overflow: hidden; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); z-index: 2; 
    transform: scale(0.95); transition: transform 0.3s; 
}
.vis-ga-modal.is-open .vis-ga-modal-container { transform: scale(1); }

.vis-ga-modal-body { display: flex; flex-direction: row; height: 80vh; max-height: 700px; transition: all 0.5s ease; }
.vis-ga-modal-media { 
    flex: 2; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; 
    transition: all 0.5s ease;
}
.vis-ga-video-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vis-ga-video-wrapper iframe, .vis-ga-video-wrapper video { width: 100%; height: 100%; object-fit: contain; }

.vis-ga-modal-details { 
    flex: 1; padding: 40px; background: #fff; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; border-left: 1px solid #eee; position: relative; 
    transition: transform 0.5s ease, opacity 0.5s ease, width 0.5s ease;
}

/* ZEN MODE TRANSITIONS */
.is-zen-active .vis-ga-modal-container {
    max-width: 100%; width: 100%; height: 100%; border-radius: 0 !important;
}
.is-zen-active .vis-ga-modal-body {
    height: 100vh; max-height: 100vh;
}
.is-zen-active .vis-ga-modal-details {
    transform: translateX(100%); width: 0; padding: 0; opacity: 0; overflow: hidden; flex: 0;
}
.is-zen-active .vis-ga-modal-media {
    flex: 1; width: 100%;
}
.is-zen-active .vis-modal-filmstrip {
    transform: translateY(100%);
}

/* MODAL NAVIGATION (FIXED) */
.vis-modal-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); color: #fff; border: none;
    width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; z-index: 100001;
}
.vis-modal-nav:hover { background: rgba(0, 0, 0, 0.8); transform: translateY(-50%) scale(1.1); }
.vis-modal-prev { left: 30px; }
.vis-modal-next { right: 30px; }

/* MODAL CONTROLS TOP */
.vis-modal-controls-top {
    position: absolute; top: 20px; right: 20px; z-index: 100; display: flex; gap: 10px;
}
.vis-ga-modal-close, .vis-ga-modal-zen { 
    background: rgba(0,0,0,0.1); border-radius: 50%; width: 40px; height: 40px;
    border: none; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 24px; transition: all 0.2s;
}
.vis-ga-modal-close:hover, .vis-ga-modal-zen:hover { background: var(--ga-accent); color: #fff; }

.vis-ga-modal-title { font-size: 32px; margin: 0 0 10px 0; color: #111; line-height: 1.2; }
.vis-modal-author { font-size: 16px; color: #666; margin-bottom: 20px; font-weight: 500; }
.vis-modal-price { font-size: 24px; color: var(--ga-accent); font-weight: 700; margin-bottom: 30px; }

.vis-modal-cta {
    display: inline-block; text-align: center; width: 100%; max-width: 300px;
    padding: 15px 30px; background: var(--ga-accent); color: #fff;
    text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
    text-decoration: none; border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vis-modal-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); background: #000; color: #fff; }

/* --- FILMSTRIP NAVIGATION --- */
.vis-modal-filmstrip {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    z-index: 100002; display: flex; align-items: center; justify-content: center;
    padding: 10px 0; transition: transform 0.5s ease;
}
.vis-filmstrip-inner {
    display: flex; gap: 10px; overflow-x: auto; padding: 10px 20px;
    max-width: 90%; scroll-behavior: smooth;
    scrollbar-width: none; -ms-overflow-style: none;
}
.vis-filmstrip-inner::-webkit-scrollbar { display: none; }
.vis-filmstrip-item {
    flex: 0 0 70px; height: 70px; cursor: pointer;
    border-radius: 8px; overflow: hidden; opacity: 0.5;
    filter: grayscale(100%); transition: all 0.3s ease;
    border: 2px solid transparent;
}
.vis-filmstrip-item.active, .vis-filmstrip-item:hover {
    opacity: 1; filter: grayscale(0%); transform: scale(1.1);
    border-color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.vis-filmstrip-item img { width: 100%; height: 100%; object-fit: cover; }

/* SOCIAL SHARE */
.vis-share-container { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.vis-share-label { display: block; font-size: 11px; text-transform: uppercase; color: #999; margin-bottom: 10px; font-weight: 600; }
.vis-share-icons { display: flex; gap: 10px; }
.vis-share-icons a, .vis-share-icons button {
    width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5; color: #555;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
    border: none; cursor: pointer;
}
.vis-share-icons a:hover, .vis-share-icons button:hover { background: var(--ga-accent); color: #fff; }
.vis-copy-msg { display: block; font-size: 11px; color: var(--ga-success); margin-top: 5px; opacity: 0; transition: opacity 0.3s; }
.vis-copy-msg.show { opacity: 1; }

/* Favorites Form Modal */
.vis-ga-small-modal { max-width: 500px; }
.vis-ga-small-modal .vis-ga-modal-body { height: auto; max-height: none; display: block; }
#vis-ga-favorites-form input, #vis-ga-favorites-form textarea { 
    border: 1px solid #ddd; background: #f9f9f9; border-radius: 5px; font-family: inherit; 
    padding: 10px; width: 100%; box-sizing: border-box;
}
#vis-ga-favorites-form input:focus, #vis-ga-favorites-form textarea:focus { border-color: var(--ga-accent); background: #fff; outline: none; }

/* [V3.1.0] Small Modal Close Button Position */
.vis-ga-small-modal .vis-ga-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.05);
}
.vis-ga-small-modal .vis-ga-modal-close:hover {
    background: var(--ga-accent);
    color: #fff;
}

/* Audio Player */
.vis-audio-player-container { width: 100%; height: 100%; display: flex; flex-direction: column; background: #111; }
.vis-ap-cover { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vis-ap-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.vis-custom-audio-player { padding: 20px; background: #222; color: #fff; display: flex; align-items: center; gap: 15px; }

/* Audio Controls */
.vis-ap-play-btn {
    background: none; border: none; color: #fff; cursor: pointer; padding: 0; display: flex;
}
.vis-ap-timeline {
    flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; position: relative; cursor: pointer;
}
.vis-ap-progress {
    height: 100%; background: var(--vis-audio-icon-normal, #64ffda); width: 0%; border-radius: 2px;
}
.vis-ap-time {
    font-size: 11px; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; color: #ccc;
}
/* High Contrast Volume Control (Capsule) */
.vis-ap-volume { 
    display: flex; align-items: center; gap: 8px; margin-left: 10px; 
    background-color: rgba(0, 0, 0, 0.3); 
    padding: 5px 10px; 
    border-radius: 20px;
}
.vis-ap-vol-slider { 
    -webkit-appearance: none; width: 60px; height: 3px; 
    background: rgba(0,0,0,0.5); /* Dark track */
    border-radius: 2px; outline: none; cursor: pointer;
}
.vis-ap-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 10px; height: 10px; 
    border-radius: 50%; background: #fff; /* White thumb */
    cursor: pointer;
}
.vis-ap-vol-slider::-moz-range-thumb {
    width: 10px; height: 10px; border-radius: 50%; background: #fff; cursor: pointer; border: none;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .vis-ga-toolbar { flex-direction: column; }
    .vis-ga-tools { width: 100%; justify-content: space-between; }
    .vis-ga-ask-btn { margin-left: 0; width: 100%; justify-content: center; margin-top: 10px; }
    .vis-ga-filter-menu { display: block; }
    .vis-ga-filter-btn { margin-bottom: 5px; margin-right: 5px; }
    .vis-ga-search-container, .vis-ga-sort-container { display: block; width: 100%; max-width: 100%; margin: 10px 0; }
    .vis-ga-custom-select { width: 100%; } 
    .vis-ga-info { transform: translateY(0); position: relative; background: #fff; }
    .vis-inquiry-badge { bottom: auto !important; top: 15px !important; padding: 0; }
    .vis-ga-modal-body { flex-direction: column; height: auto; max-height: 90vh; }
    .vis-ga-modal-media { height: 300px; flex: none; }
    .vis-ga-modal-details { flex: 1; padding: 20px; }
    .vis-ga-modal-title { font-size: 24px; }
    .vis-modal-price { font-size: 20px; margin-bottom: 15px; }
    .vis-modal-nav { width: 40px; height: 40px; background: rgba(0,0,0,0.5); }
    .vis-modal-prev { left: 10px; }
    .vis-modal-next { right: 10px; }
    
    .vis-modal-filmstrip { display: none !important; }
    .vis-hide-arrows .vis-modal-nav { display: flex !important; } 
    .vis-layout-grid { grid-template-columns: repeat(1, 1fr) !important; }
}