/* ── Video Showcase block ─────────────────────────────────────────────────── */

.nyehs-vs {
    background: #000a73;
    color:      #fff;          /* default; overridden by WP text-color support */
    padding:    60px 40px;
    overflow:   visible;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.nyehs-vs__header {
    text-align:    center;
    margin-bottom: 48px;
    max-width:     1200px;
    margin-inline: auto;
    width:         100%;
}

.nyehs-vs__heading {
    font-size:   2rem;
    font-weight: 800;
    color:       inherit;
    margin:      0 0 12px;
    line-height: 1.2;
}

.nyehs-vs__subheading {
    font-size:   1rem;
    color:       inherit;
    opacity:     0.65;
    line-height: 1.65;
    margin:      0 auto;
    max-width:   600px;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */

.nyehs-vs__grid {
    display:               grid;
    gap:                   28px;
    grid-template-columns: repeat(3, 1fr);
    max-width:             1200px;
    margin-inline:         auto;
    width:                 100%;
}

.nyehs-vs__grid[data-columns="1"] {
    grid-template-columns: 1fr;
    max-width:             820px;
}

.nyehs-vs__grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.nyehs-vs__card {
    all:            unset;
    display:        flex;
    flex-direction: column;
    cursor:         pointer;
    border-radius:  14px;
    overflow:       hidden;
    background:     transparent;
    box-shadow:     0 2px 0 0 rgba(255, 255, 255, 0.08), 0 6px 24px rgba(0, 0, 0, 0.18);
    transition:     transform 0.25s ease, box-shadow 0.25s ease;
    text-align:     left;
}

.nyehs-vs__card:hover {
    transform:  translateY(-4px);
    box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0.14), 0 20px 44px rgba(0, 0, 0, 0.32);
}

.nyehs-vs__card:focus-visible {
    outline:        2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

/* ── Thumbnail ────────────────────────────────────────────────────────────── */

.nyehs-vs__thumb {
    position:      relative;
    width:         100%;
    aspect-ratio:  16 / 9;
    overflow:      hidden;
    background:    rgba(0, 0, 0, 0.35);
    flex-shrink:   0;
}

.nyehs-vs__thumb-img {
    width:       100%;
    height:      100%;
    object-fit:  cover;
    display:     block;
    transition:  transform 0.35s ease, filter 0.35s ease;
}

.nyehs-vs__card:hover .nyehs-vs__thumb-img {
    transform: scale(1.04);
    filter:    brightness(0.8);
}

/* Fallback when no thumbnail available (e.g. failed Vimeo fetch) */
.nyehs-vs__thumb-fallback {
    width:      100%;
    height:     100%;
    background: linear-gradient(135deg, #000a73, #0017c7 60%, #0d41ff);
}

/* ── Play button overlay ─────────────────────────────────────────────────── */

.nyehs-vs__play {
    position:        absolute;
    inset:           0;
    display:         flex;
    align-items:     center;
    justify-content: center;
    pointer-events:  none;
}

.nyehs-vs__play::before {
    content:         '';
    width:           60px;
    height:          60px;
    border-radius:   50%;
    background:      rgba(0, 0, 0, 0.55);
    border:          2px solid rgba(255, 255, 255, 0.7);
    position:        absolute;
    transition:      background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(4px);
}

.nyehs-vs__play svg {
    position:  relative;
    z-index:   1;
    color:     #fff;
    transform: translateX(2px); /* optical centering of the triangle */
    transition: transform 0.25s ease;
}

.nyehs-vs__card:hover .nyehs-vs__play::before {
    background:   rgba(0, 23, 199, 0.85);
    border-color: #fff;
    transform:    scale(1.1);
}

.nyehs-vs__card:hover .nyehs-vs__play svg {
    transform: translateX(2px) scale(1.1);
}

/* ── Platform badge ──────────────────────────────────────────────────────── */

.nyehs-vs__badge {
    position:       absolute;
    top:            10px;
    right:          10px;
    font-size:      0.6875rem;
    font-weight:    700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding:        3px 8px;
    border-radius:  999px;
    color:          #fff;
    line-height:    1.4;
}

.nyehs-vs__badge--youtube  { background: rgba(255, 0, 0, 0.85); }
.nyehs-vs__badge--vimeo    { background: rgba(26, 183, 234, 0.85); }

/* ── Card body ────────────────────────────────────────────────────────────── */

.nyehs-vs__card-body {
    padding: 18px 20px 20px;
    flex:    1;
}

.nyehs-vs__card-title {
    font-size:   1rem;
    font-weight: 700;
    color:       inherit;
    margin:      0 0 6px;
    line-height: 1.35;
}

.nyehs-vs__card-desc {
    font-size:   0.875rem;
    color:       inherit;
    opacity:     0.6;
    line-height: 1.6;
    margin:      0;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */

.nyehs-vs__modal {
    position:   fixed;
    inset:      0;
    z-index:    9999;
    display:    flex;
    align-items: center;
    justify-content: center;
    padding:    20px;
}

.nyehs-vs__modal[hidden] { display: none; }

.nyehs-vs__modal-backdrop {
    position:   absolute;
    inset:      0;
    background: rgba(0, 0, 0, 0.88);
    animation:  nyehs-vs-fade-in 0.2s ease;
}

@keyframes nyehs-vs-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.nyehs-vs__modal-box {
    position:   relative;
    z-index:    1;
    width:      100%;
    max-width:  960px;
    animation:  nyehs-vs-slide-up 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nyehs-vs-slide-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nyehs-vs__modal-close {
    position:        absolute;
    top:             -44px;
    right:           0;
    width:           36px;
    height:          36px;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.12);
    border:          1px solid rgba(255, 255, 255, 0.2);
    color:           #fff;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      background 0.15s ease;
    font-family:     inherit;
}

.nyehs-vs__modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.nyehs-vs__modal-close:focus-visible {
    outline:        2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.nyehs-vs__modal-player {
    position:      relative;
    width:         100%;
    aspect-ratio:  16 / 9;
    background:    #000;
    border-radius: 10px;
    overflow:      hidden;
}

.nyehs-vs__iframe {
    position: absolute;
    inset:    0;
    width:    100%;
    height:   100%;
    border:   0;
}

.nyehs-vs__modal-title {
    margin:      14px 0 0;
    color:       rgba(255, 255, 255, 0.82);
    font-size:   0.9375rem;
    font-weight: 600;
    text-align:  center;
    line-height: 1.4;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .nyehs-vs__grid,
    .nyehs-vs__grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nyehs-vs {
        padding: 48px 20px;
    }

    .nyehs-vs__grid,
    .nyehs-vs__grid[data-columns="2"],
    .nyehs-vs__grid[data-columns="3"] {
        grid-template-columns: 1fr;
    }

    .nyehs-vs__modal-close {
        top:   -40px;
        right: 0;
    }
}
