/* ============================================================
   HERO PROMO VIDEO
   Hand-authored on purpose (not Tailwind utilities): changes
   here apply immediately without the theme/static_src build.
   ============================================================ */

/* The promo video is the hero background on all viewport sizes, painted over the
   fallback photo (which doubles as poster while loading / if autoplay is blocked). */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Top-aligned crop: with a 9:16 source on wide screens the top of the frame
       (faces/heads) stays visible instead of cutting people off at the neck. */
    object-position: center top;
}

/* Extra top darkening: keeps eyebrow badge + headings readable against bright video
   frames. Symmetric across the full width. */
.hero-video-topscrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.25) 35%,
        rgba(0, 0, 0, 0) 60%
    );
}

/* ============================================================
   GALLERY VIDEO TILE + LIGHTBOX VIDEO
   Hand-authored on purpose (same reasoning as above): the gallery
   video tile reuses the hero's <video> element (moved via JS, never
   duplicated) so the clip is only ever downloaded once.
   ============================================================ */

.gallery-video-tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease-in-out;
}

.gallery-video-tile:hover .gallery-video-tile-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-video-tile-play {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.gallery-video-tile-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.125rem 0.5rem;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Lightbox video slot: same footprint as #lightbox-image (max 80% of viewport) */
.lightbox-video-slot video {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

/* Overrides the hero's absolute-fill/cover styling while the video is on loan to the
   lightbox, so it displays at its natural aspect ratio instead of zoomed/cropped. */
.lightbox-video-active {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

