/* Galerie vidéo uniquement ; variables de la charte publique. */
.video-gallery-page .vg-shell {
    width: min(1560px, calc(100% - 2rem));
    margin: 2rem auto 3rem;
}
.video-gallery-page .vg-intro { margin-bottom: 1.5rem; }
html.sdo-public .video-gallery-page .vg-intro p {
    margin: 0 0 .75rem;
    color: var(--sdo-text-muted);
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
}
.video-gallery-page .vg-intro strong { color: var(--sdo-text); }
.video-gallery-page .vg-consent { margin-bottom: 2rem; }
.video-gallery-page .vg-consent p { margin: 0 0 .5rem; line-height: 1.75; }
html.sdo-public .video-gallery-page .vg-consent > a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    color: var(--sdo-orange);
    text-decoration: none;
}
.video-gallery-page .vg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}
.video-gallery-page .vg-card {
    min-width: 0;
    border: 1px solid var(--sdo-border);
    border-top: 3px solid var(--sdo-orange);
    border-radius: 4px;
    background: var(--sdo-surface);
}
html.sdo-public .video-gallery-page .vg-watch {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--sdo-text);
    text-decoration: none;
}
.video-gallery-page .vg-preview {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sdo-surface-deep);
}
.video-gallery-page .vg-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}
.video-gallery-page .vg-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--sdo-orange);
    border-radius: 50%;
    background: var(--sdo-surface-deep);
    color: var(--sdo-orange);
    font-size: 1.25rem;
}
.video-gallery-page .vg-preview-note {
    position: absolute;
    inset: auto .5rem .5rem;
    color: var(--sdo-text-muted);
    font-size: .875rem;
    text-align: center;
}
.video-gallery-page .vg-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    padding: 1.25rem;
}
html.sdo-public .video-gallery-page .vg-card h2 {
    margin: 0;
    color: var(--sdo-text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    text-shadow: none;
}
.video-gallery-page .vg-action {
    display: block;
    margin-top: auto;
    color: var(--sdo-orange);
    font-size: .95rem;
    line-height: 1.5;
}
html.sdo-public .video-gallery-page .vg-watch:hover .vg-action,
html.sdo-public .video-gallery-page .vg-watch:focus-visible .vg-action,
html.sdo-public .video-gallery-page .vg-consent > a:hover,
html.sdo-public .video-gallery-page .vg-consent > a:focus-visible {
    color: var(--sdo-orange-hover);
    text-decoration: underline;
    text-underline-offset: .2em;
}
.video-gallery-page .vg-watch:hover .vg-preview img { transform: scale(1.025); }
html.sdo-public .video-gallery-page :is(.vg-watch, .vg-consent > a):focus-visible {
    outline: 3px solid var(--sdo-orange-hover);
    outline-offset: 3px;
}
@media (max-width: 1199px) {
    .video-gallery-page .vg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .video-gallery-page .vg-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .video-gallery-page .vg-shell { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .video-gallery-page .vg-preview img { transition: none; }
}
