/* ══════════════════════════════════════════════
   Vilnius Cinema Gallery v2 — Full Immersion
   ══════════════════════════════════════════════ */

/* ── 1. HIDE ASTRA THEME CHROME ── */
.vcg-cinema-page #masthead,
.vcg-cinema-page .site-header,
.vcg-cinema-page .ast-desktop-header,
.vcg-cinema-page .main-header-bar,
.vcg-cinema-page .ast-header-break-point,
.vcg-cinema-page header.site-header,
.vcg-cinema-page #ast-fixed-header,
.vcg-cinema-page .ast-above-header-wrap,
.vcg-cinema-page .ast-below-header-wrap,
.vcg-cinema-page .site-footer,
.vcg-cinema-page footer.site-footer,
.vcg-cinema-page #colophon,
.vcg-cinema-page .footer-widget-area,
.vcg-cinema-page .ast-breadcrumbs-wrapper {
    display: none !important;
}

/* ── 2. FULL-BLEED PAGE RESET ── */
.vcg-cinema-page,
.vcg-cinema-page body {
    background: #050508 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.vcg-cinema-page .site,
.vcg-cinema-page #page,
.vcg-cinema-page .site-content,
.vcg-cinema-page #content,
.vcg-cinema-page .content-area,
.vcg-cinema-page #primary,
.vcg-cinema-page .entry-content,
.vcg-cinema-page .ast-container,
.vcg-cinema-page .page-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.vcg-cinema-page .entry-header,
.vcg-cinema-page .page-header { display: none !important; }

/* ── 3. SCOPE RESET ── */
#vcg-cinema-wrap *,
#vcg-modal * { box-sizing: border-box; }

/* ── 4. MAIN WRAP ── */
#vcg-cinema-wrap {
    background: #050508;
    min-height: 100vh;
    width: 100%;
    font-family: 'Georgia', serif;
    color: #e8e0cc;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* ── 5. TOP TICKER ── */
.vcg-topbar {
    width: 100%;
    background: #c8a24a;
    overflow: hidden;
    white-space: nowrap;
    padding: 7px 0;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 20px rgba(200,162,74,0.5);
}
.vcg-marquee-wrap { overflow: hidden; }
.vcg-marquee {
    display: inline-block;
    animation: vcg-scroll 35s linear infinite;
    color: #0a0a0f;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
@keyframes vcg-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

/* ── 6. HERO HEADER ── */
.vcg-header {
    position: relative;
    text-align: center;
    padding: 70px 20px 60px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,162,74,0.12) 0%, transparent 70%),
                linear-gradient(180deg, #0c0b14 0%, #050508 100%);
    overflow: hidden;
}
.vcg-header-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(200,162,74,0.2) 0%, transparent 70%);
    pointer-events: none;
}
/* Curtains */
.vcg-curtain-left,
.vcg-curtain-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
}
.vcg-curtain-left {
    left: 0;
    background: linear-gradient(90deg, rgba(120,20,20,0.55) 0%, transparent 100%);
}
.vcg-curtain-right {
    right: 0;
    background: linear-gradient(270deg, rgba(120,20,20,0.55) 0%, transparent 100%);
}
.vcg-header-content { position: relative; z-index: 1; }

/* Decorative dots */
.vcg-logo-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}
.vcg-logo-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #c8a24a;
    opacity: 0.5;
    animation: vcg-pulse 2.5s ease-in-out infinite;
}
.vcg-logo-dots span:nth-child(1) { animation-delay: 0s; }
.vcg-logo-dots span:nth-child(2) { animation-delay: 0.3s; }
.vcg-logo-dots span:nth-child(3) { animation-delay: 0.6s; opacity: 1; width: 10px; height: 10px; }
.vcg-logo-dots span:nth-child(4) { animation-delay: 0.3s; }
.vcg-logo-dots span:nth-child(5) { animation-delay: 0s; }
@keyframes vcg-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

.vcg-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    color: #c8a24a;
    margin: 0 0 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow:
        0 0 40px rgba(200,162,74,0.5),
        0 0 80px rgba(200,162,74,0.2);
    line-height: 1.1;
}
.vcg-subtitle {
    color: #a09070;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    margin: 0 0 24px;
}
.vcg-subtitle span { color: #c8a24a; font-style: italic; }

/* ── 7. SECTION LABEL ── */
.vcg-section-label {
    text-align: center;
    padding: 0 0 32px;
}
.vcg-section-label span {
    display: inline-block;
    color: #c8a24a;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border: 1px solid rgba(200,162,74,0.3);
    padding: 6px 22px;
    border-radius: 20px;
}

/* ── 8. GRID ── */
.vcg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── 9. CARD ── */
.vcg-card {
    background: #0f0e18;
    border: 1px solid #1e1d2a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    outline: none;
}
.vcg-card:hover,
.vcg-card:focus {
    transform: translateY(-6px) scale(1.015);
    border-color: #c8a24a;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.6),
        0 0 20px rgba(200,162,74,0.15);
}
.vcg-card:focus { outline: 2px solid #c8a24a; }

/* Thumbnail */
.vcg-thumb-wrap {
    position: relative;
    padding-top: 56.25%;
    background: #050508;
    overflow: hidden;
}
.vcg-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.3s ease;
    opacity: 0.82;
}
.vcg-card:hover .vcg-thumb-wrap img,
.vcg-card:focus .vcg-thumb-wrap img {
    transform: scale(1.07);
    opacity: 1;
}

/* Gradient overlay */
.vcg-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

/* Play button */
.vcg-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    width: 64px;
    height: 64px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.vcg-card:hover .vcg-play-btn,
.vcg-card:focus .vcg-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Number badge */
.vcg-num {
    position: absolute;
    top: 9px;
    left: 9px;
    background: rgba(0,0,0,0.8);
    color: #c8a24a;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 3px;
    letter-spacing: 0.08em;
    font-family: monospace;
    z-index: 2;
    border: 1px solid rgba(200,162,74,0.3);
}

/* Card info */
.vcg-card-info {
    padding: 14px 16px;
    background: linear-gradient(180deg, #0f0e18 0%, #0a0912 100%);
}
.vcg-card-title {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #cfc5aa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 10. FLOOR ── */
.vcg-floor {
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(200,162,74,0.04) 100%);
    margin-top: 60px;
}

/* ── 11. MODAL ── */
#vcg-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#vcg-modal.vcg-open { display: flex; }

.vcg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.vcg-modal-box {
    position: relative;
    z-index: 1;
    background: #08070f;
    border: 1px solid #2a2838;
    border-radius: 10px;
    width: min(95vw, 1100px);
    box-shadow:
        0 0 0 1px rgba(200,162,74,0.1),
        0 30px 100px rgba(0,0,0,0.8),
        0 0 60px rgba(200,162,74,0.08);
    overflow: hidden;
    animation: vcg-modal-in 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes vcg-modal-in {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal header */
.vcg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #050508;
    border-bottom: 1px solid #1e1d2a;
    gap: 12px;
}
.vcg-modal-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.vcg-modal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.vcg-modal-dots span:nth-child(1) { background: #ff5f57; }
.vcg-modal-dots span:nth-child(2) { background: #febc2e; }
.vcg-modal-dots span:nth-child(3) { background: #28c840; }

#vcg-modal-title {
    color: #c8a24a;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: center;
}
.vcg-close-btn {
    background: none;
    border: 1px solid #2a2838;
    color: #666;
    font-size: 1rem;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcg-close-btn:hover { color: #fff; border-color: #c8a24a; background: rgba(200,162,74,0.15); }

/* iFrame 16:9 */
.vcg-iframe-wrap {
    position: relative;
    padding-top: 56.25%;
    background: #000;
}
.vcg-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modal footer */
.vcg-modal-footer {
    padding: 8px 16px;
    background: #050508;
    border-top: 1px solid #1e1d2a;
    text-align: center;
}
.vcg-esc-hint {
    color: #444;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── 12. RESPONSIVE ── */
@media (max-width: 768px) {
    .vcg-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
        padding: 0 16px;
    }
    .vcg-modal-box { width: 98vw; border-radius: 6px; }
    .vcg-title { font-size: 2rem; letter-spacing: 0.1em; }
    .vcg-header { padding: 50px 16px 40px; }
    .vcg-curtain-left, .vcg-curtain-right { width: 40px; }
}
@media (max-width: 480px) {
    .vcg-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
}
