/* Video Gallery plugin */
.vg-grid { display: grid; grid-template-columns: repeat(var(--vg-cols, 3), minmax(0, 1fr)); gap: 28px 24px; margin: 8px 0 24px; }
.vg-item { background: var(--surface, #fff); border: 0; padding: 0; text-align: left; cursor: pointer; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(16,24,40,.1);
  font: inherit; color: var(--text, #1f2430); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.vg-item:hover, .vg-item:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(16,24,40,.18); outline: none; }
.vg-item:focus-visible { box-shadow: 0 0 0 3px var(--accent, #0f766e), 0 12px 28px rgba(16,24,40,.18); }
.vg-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent, #0f766e), var(--accent-d, #0b5a54)) center / cover no-repeat; }
.vg-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; padding-left: 5px; transition: transform .18s, background .18s; }
.vg-item:hover .vg-play { transform: scale(1.1); background: var(--accent, #0f766e); }
.vg-badge { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.vg-body { display: block; padding: 14px 16px 18px; }
.vg-title { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.vg-desc { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted, #6b7280); line-height: 1.5; }
.vg-single { margin: 1.2em 0; }
.vg-single figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted, #6b7280); }
.vg-empty { color: var(--muted, #6b7280); font-style: italic; }
@media (max-width: 960px) { .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vg-grid { grid-template-columns: 1fr; } }

/* Pop-up player */
body.vg-lock { overflow: hidden; }
.vg-overlay { position: fixed; inset: 0; background: rgba(5,8,15,.82); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; animation: vgfade .18s ease; }
@keyframes vgfade { from { opacity: 0; } to { opacity: 1; } }
.vg-modal { position: relative; width: min(1000px, 100%); }
.vg-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.vg-stage iframe, .vg-stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vg-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.vg-cap { color: #fff; margin: 12px 2px 0; font-weight: 600; }
