/* ==========================================================================
   Video gallery
   These pages sit inside the main site layout, so the top bar, logo, menu,
   banner, theme toggle and footer come from site.css and harrow.css. The cards
   deliberately mirror the photo gallery album cards.
   ========================================================================== */

.video-gallery-page { --vg-cover: 205px; }

/* ---------- category filter ---------- */
.vg-count {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- video cards ---------- */
.vg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--ink);
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.vg-card:hover,
.vg-card:focus-visible {
    color: var(--ink);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vg-thumb {
    position: relative;
    height: var(--vg-cover);
    background: var(--tint);
    overflow: hidden;
}
.vg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.vg-card:hover .vg-thumb img { transform: scale(1.04); }
.vg-thumb::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, rgba(5, 17, 32, .45));
    pointer-events: none;
}
.vg-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    font-size: 16px;
    padding-left: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.vg-badge {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    color: #fff;
    background: rgba(11, 31, 58, .82);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.vg-info { padding: 17px 20px 20px; }
.vg-info h2 {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    margin: 0 0 6px;
    /* Keep every card the same height, whatever the title length. */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5.2em;
}
.vg-info p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    margin: 0;
}

/* Same caption style as the photo gallery. */
.video-gallery-page .gallery-note {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

/* ---------- watch page ---------- */
.vg-watch-page { max-width: 1000px; margin: 0 auto; }
.vg-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: 18px;
}
.vg-back:hover { text-decoration: underline; }
.vg-chip {
    display: inline-block;
    background: var(--tint);
    color: var(--ink);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.vg-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #07111e;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.vg-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.vg-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 2px 0;
    color: var(--muted);
    font-size: .85rem;
}
.vg-foot a {
    color: var(--link);
    text-decoration: none;
    font-weight: 700;
}
.vg-foot a:hover { text-decoration: underline; }

@media (max-width: 575px) {
    .video-gallery-page { --vg-cover: 180px; }
    .vg-info { padding: 14px 16px 17px; }
    .vg-info h2 { font-size: 1rem; }
    .vg-play { width: 46px; height: 46px; font-size: 14px; }
}
