/* ── NYW Hero Video ────────────────────────────────────── */

.nyw-hv-wrap {
    max-width: 900px;
    margin: auto;
    padding: 40px;
    position: relative;
    box-sizing: border-box;
}

/* Main wrapper — position:relative so absolute children anchor here */
.nyw-hv-img-wrap {
    position: relative;
    width: 100%;
    line-height: 0; /* remove inline-block gap under img */
}

/* Shadow layers */
.nyw-hv-img-wrap.has-layers::before,
.nyw-hv-img-wrap.has-layers::after {
    content: '';
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    border-radius: 20px;
}
.nyw-hv-img-wrap.has-layers::before { width: 95%; top: -10px; background: rgba(0,0,0,0.41); }
.nyw-hv-img-wrap.has-layers::after  { width: 90%; top: -18px; background: rgba(0,0,0,0.36); }

/* Thumbnail — fills the wrapper, defines its height */
.nyw-hv-thumb {
    width: 100%;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

/* Video wrap — hidden by default, shown after play click */
.nyw-hv-video-wrap {
    display: none;
    width: 100%;
    line-height: 0;
}

.nyw-hv-video {
    width: 100% !important;
    min-width: 100% !important;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    border: none;
}

iframe.nyw-hv-video {
    aspect-ratio: 16 / 9;
    height: auto !important;
    width: 100% !important;
    min-width: 100% !important;
}

/* Play button wrapper — covers the thumbnail exactly */
.nyw-hv-play-btn-wrapper {
    position: absolute;
    inset: 0;                  /* top/right/bottom/left: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    top:0px;
    left:0px;
}

/* The actual button — sized by Elementor control, no position needed */
.nyw-hv-play-btn-1 {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.2s;
}

.nyw-hv-play-btn-1:hover {
    /* background: rgba(255,255,255,0.35); */
    transform: scale(1.08);
}

.nyw-hv-play-btn-1 > * {
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 500px) {
    .nyw-hv-wrap { padding: 20px; }
    .nyw-hv-thumb,
    .nyw-hv-video { aspect-ratio: 1 / 1; }
    .nyw-hv-img-wrap.has-layers::after  { top: -14px; width: 80%; }
    .nyw-hv-img-wrap.has-layers::before { top: -8px;  width: 90%; }
}
