.vanti-videobox-section + .vanti-videobox-section { margin-top: 3rem; }
.vanti-videobox-section h2 { margin: 0 0 1.25rem; }
.vanti-videobox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.vanti-videobox .vanti-videobox-card { margin: 0; min-width: 0; }
.vanti-videobox-cover { aspect-ratio: 16 / 9; position: relative; background: #222; overflow: hidden; isolation: isolate; }
.vanti-videobox-cover.vanti-videobox-cover-portrait { aspect-ratio: 9 / 16; }
.vanti-videobox-cover a { position: absolute; inset: 0; display: block; }
.vanti-videobox-cover a:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.vanti-videobox-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
    .vanti-videobox-cover img { transition: transform .4s ease; }
    .vanti-videobox-cover:focus-within img { transform: scale(1.12); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .vanti-videobox-cover:hover img { transform: scale(1.12); }
}
/* Replace the thumbnail overlay while retaining the existing lightbox link. */
.vanti-videobox .vanti-videobox-cover a::before,
.vanti-videobox .vanti-videobox-cover a::after { content: none !important; }
.vanti-videobox-cover .wpvl_auto_thumb_play { display: none !important; }
.vanti-videobox-cover::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .66);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M5 2.5v11L14 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    pointer-events: none;
    z-index: 2;
}
.vanti-videobox-cover:hover::after,
.vanti-videobox-cover:focus-within::after { background-color: rgba(0, 0, 0, .88); }
.vanti-videobox-instagram-embed { display: block; width: 100%; border: 0; }
.vanti-videobox-instagram-embed[src^="https://www.instagram.com/"] { height: auto; aspect-ratio: 9 / 16; }
.vanti-videobox-card figcaption { margin-top: .55rem; overflow-wrap: anywhere; }
.vanti-videobox-dialog {
    --videobox-ratio: 16 / 9;
    --videobox-max-width: 1080px;
    --videobox-height-to-width: 1.77778;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(92vw, var(--videobox-max-width), calc((100vh - 88px) * var(--videobox-height-to-width)));
    width: min(92vw, var(--videobox-max-width), calc((100dvh - 88px) * var(--videobox-height-to-width)));
    height: auto;
    max-height: none;
    aspect-ratio: var(--videobox-ratio);
    padding: 0;
    border: 0;
    overflow: visible;
    background: #000;
}
.vanti-videobox-dialog.vanti-videobox-dialog-portrait {
    --videobox-ratio: 9 / 16;
    --videobox-max-width: 540px;
    --videobox-height-to-width: .5625;
}
.vanti-videobox-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.vanti-videobox-dialog iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.vanti-videobox-dialog button.vanti-vimeo-popup__close {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    appearance: none;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff !important;
    font: 30px/1 system-ui, sans-serif;
    cursor: pointer;
}
.vanti-videobox-dialog .vanti-vimeo-popup__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 850px) { .vanti-videobox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .vanti-videobox-grid { grid-template-columns: minmax(0, 1fr); } }

.vanti-videobox-dialog button.vanti-vimeo-popup__close,
.vanti-videobox-dialog button.vanti-vimeo-popup__close:hover,
.vanti-videobox-dialog button.vanti-vimeo-popup__close:focus,
.vanti-videobox-dialog button.vanti-vimeo-popup__close:active { background: transparent !important; }
