/* Location: /css/consent_embeds.css
   Compliance Part 2 (17-Oct-2026): placeholder for click-to-load YouTube / Google Maps embeds.
   Self-contained: does not depend on blog or viewer styles. */

.ce-wrap { margin: 0 0 1.5rem; }

.ce-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;            /* dark slate behind the poster image */
    border-radius: 12px;
    overflow: hidden;
}

.ce-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font: inherit;
}

/* Darken the poster slightly so the play button always has contrast */
.ce-play::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

.ce-play-icon {
    position: relative;             /* sits above the ::before overlay */
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
}
.ce-play-icon svg { width: 34px; height: 34px; margin-left: 4px; fill: #ffffff; }

.ce-play:hover .ce-play-icon,
.ce-play:focus-visible .ce-play-icon { transform: scale(1.08); }

.ce-play:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }

.ce-play-label {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ce-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ce-note {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #475569;                 /* 7.5:1 on white - passes WCAG AA */
}
.ce-note a { color: inherit; text-decoration: underline; }

.ce-box.ce-error::after {
    content: "This video could not be loaded.";
    position: absolute; left: 0; right: 0; top: 45%;
    text-align: center; color: #ffffff; font-weight: 700;
}

/* ---------------------------------------------------------------
   Flipbook viewer (Compliance Part 2.3, step 2B, 17-Oct-2026)
   Used by js/sc.sc.js for in-page video hotspots and 360 tours.
   --------------------------------------------------------------- */

/* Dark backdrop so the play button and notice are readable before anything loads */
.in-page-video-wrapper.ce-viewer-pending { background: #0f172a; cursor: pointer; }
.in-page-video-wrapper.ce-viewer-pending:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }

/* One-line provider notice, e.g. "Plays from YouTube; YouTube's privacy policy applies." */
.ce-viewer-note {
    position: absolute;
    left: 4px; right: 4px; bottom: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;                 /* 15:1 on the dark background */
    font: 600 11px/1.3 system-ui, sans-serif;
    text-align: center;
    pointer-events: none;           /* the whole tile stays clickable */
}

/* Click-to-load button for 360 tours hosted on another site */
.ce-360-btn {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; padding: 0; margin: 0;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ce-360-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: -3px; }
.ce-360-label { font: 800 14px/1.2 system-ui, sans-serif; margin-bottom: 18px; }
