/* ==========================================================================
   Edy London: Marylebone video section (reusable component)
   Markup: template-parts/contact/marylebone-video.php
   Script: assets/js/marylebone-video.js
   Loaded on every page whose template uses the section (functions.php,
   edy_enqueue_marylebone_video()). The small label reuses .el-hv-label
   from home-visit.css (loaded as a dependency, all its rules are scoped).
   Breakpoint: 900px (stack).
   ========================================================================== */

/* ---------- Marylebone: vertical video + text */
.el-contact-area__grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
}

.el-contact-area__media {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--el-blush);
}

.el-contact-area__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pause / Play button, bottom right on the video. */
.el-contact-area__toggle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #D8C7BE;
    border-radius: 50%;
    background: rgba(255, 249, 244, .9);
    color: var(--el-ink);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.el-contact-area__toggle[hidden] {
    display: none;
}

.el-contact-area__toggle:hover {
    background: #FFF9F4;
    color: var(--el-sage);
}

.el-contact-area__toggle:focus-visible {
    outline: 2px solid var(--el-ink);
    outline-offset: 3px;
}

.el-contact-area__icon {
    width: 18px;
    height: 18px;
}

/* Pause icon while playing, Play icon while paused. */
.el-contact-area__icon--play,
.el-contact-area__media.is-paused .el-contact-area__icon--pause {
    display: none;
}

.el-contact-area__media.is-paused .el-contact-area__icon--play {
    display: block;
}

.el-contact-area__text {
    max-width: 560px;
}

.el-contact-area .el-h2 {
    margin-bottom: 20px;
}

/* ---------- Stack below 900px: text first, then the video, centred and
   kept at a modest size. */
@media (max-width: 900px) {
    .el-contact-area__grid {
        grid-template-columns: 1fr;
    }

    .el-contact-area__media {
        order: 2;
        width: 100%;
        max-width: 340px;
        margin-inline: auto;
    }
}
