/* ===================================================================
   Video Grid 2×2 – フロントエンドスタイル
   =================================================================== */

/* ── ラッパー ────────────────────────────────────────────────────── */
.vg-grid-wrapper {
    margin: 1.5em auto;
    max-width: 100%;
}

/* ── 2×2 グリッド ────────────────────────────────────────────────── */
.vg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* ── 各スロット（padding-top でアスペクト比を維持） ─────────────── */
.vg-slot {
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.vg-slot__inner {
    position: relative;
    width: 100%;
    height: 0;
    /* padding-bottom はショートコードで inline style として付与 */
}

.vg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── 空・エラースロット ──────────────────────────────────────────── */
.vg-slot--empty .vg-slot__inner,
.vg-slot--error .vg-slot__inner {
    background: #1a1a1a;
}

.vg-slot__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: .85em;
    letter-spacing: .04em;
}

/* ── レスポンシブ（小さい画面では 1列に） ───────────────────────── */
@media (max-width: 480px) {
    .vg-grid {
        grid-template-columns: 1fr;
    }
}
