/* ===== Video Gallery Pro v5.1 ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Grid ── */
.vfh-gallery {
    display: grid;
    gap: 16px;
    padding: 20px 0;
    font-family: 'DM Sans', sans-serif;
}
.vfh-gallery.vfh-orient-landscape { grid-template-columns: repeat(var(--vfh-cols, 5), 1fr); }
.vfh-gallery.vfh-orient-landscape .vfh-item { aspect-ratio: 16 / 9; }
.vfh-gallery.vfh-orient-portrait  { grid-template-columns: repeat(var(--vfh-cols, 5), 1fr); }
.vfh-gallery.vfh-orient-portrait  .vfh-item { aspect-ratio: 9 / 16; }

/* ── Kart ── */
.vfh-item {
    position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
    background: #000; box-shadow: 0 4px 18px rgba(0,0,0,.4);
    transition: transform .2s ease, box-shadow .2s ease;
}
.vfh-item:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 2; }
.vfh-preview { width: 100%; height: 100%; object-fit: cover; display: block; }

.vfh-num {
    position: absolute; top: 7px; left: 9px;
    font-family: 'Bebas Neue', cursive; font-size: 18px; color: #fff; line-height: 1; z-index: 3;
    background: rgba(0,0,0,.45); padding: 2px 7px 1px; border-radius: 5px; backdrop-filter: blur(4px);
}
.vfh-title {
    position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
    font-size: 11px; font-weight: 500; color: #fff; padding: 18px 8px 8px;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 100%); z-index: 3;
}
/* Hover-sound modu inline hint */
.vfh-sound-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 600;
    padding: 5px 12px; border-radius: 20px; white-space: nowrap;
    backdrop-filter: blur(6px); z-index: 5; opacity: 0;
    transition: opacity .25s; pointer-events: none;
}
.vfh-sound-hint.visible { opacity: 1; }

/* ══════════════════════════════════
   TAM EKRAN OVERLAY
══════════════════════════════════ */
.vfh-ov-full {
    position: fixed; inset: 0; z-index: 99999;
    background: #000; opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.vfh-ov-full.is-open { opacity: 1; pointer-events: auto; }
.vfh-ov-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.vfh-ov-hint  { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); font-size: 15px; opacity: 0; transition: opacity .3s; }

/* ══════════════════════════════════
   ORTA BOY LİGHTBOX
══════════════════════════════════ */
.vfh-lb {
    display: none; position: fixed; inset: 0; z-index: 99998;
    align-items: center; justify-content: center;
}
.vfh-lb.is-open { display: flex; }

.vfh-lb-back {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.78); backdrop-filter: blur(16px);
    animation: vfhFade .3s ease forwards;
}
.vfh-lb-box {
    position: relative; z-index: 2;
    width: min(72vw, 900px);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.9);
    animation: vfhUp .35s cubic-bezier(.22,1,.36,1) forwards;
    background: #000;
}
.vfh-lb-wrap  { position: relative; line-height: 0; }
.vfh-lb-video { width: 100%; max-height: 65vh; object-fit: contain; display: block; background: #000; }
.vfh-lb-hint  { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 5; }

.vfh-lb-close {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(0,0,0,.5); border: none; color: #fff; font-size: 15px;
    cursor: pointer; backdrop-filter: blur(6px); transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.vfh-lb-close:hover { background: rgba(255,255,255,.2); }

/* ══ Hint metinleri ══ */
.vfh-hint {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 600;
    padding: 9px 20px; border-radius: 28px; white-space: nowrap;
    pointer-events: none; transition: opacity .3s, background .3s;
    letter-spacing: .2px; backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
}
.vfh-hint-sound { font-size: 13px; background: rgba(0,0,0,.58); }
.vfh-hint-exit  { font-size: 12px; background: rgba(10,10,10,.75); }

@keyframes vfhFade { from { opacity:0; } to { opacity:1; } }
@keyframes vfhUp   { from { opacity:0; transform:translateY(28px) scale(.96); } to { opacity:1; transform:none; } }

/* ── Responsive ── */
/* Grid sütunları her galeri için inline <style> ile yazılır (PHP shortcode) */
@media (max-width: 800px) { .vfh-lb-box { width: 95vw; } }
