/* Wasla YouTube channel slider shortcode */
.wasla-yt-slider {
    max-width: 960px;
    margin-inline: auto;
}

.wasla-yt-slider__heading {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.wasla-yt-slider__main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f0f0f;
    border-radius: 8px;
    overflow: hidden;
}

.wasla-yt-slider__main iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Thumbnail grid: 4 per row (2 on very narrow screens) */
.wasla-yt-slider__strip-wrap--grid {
    margin-top: 0.65rem;
}

.wasla-yt-slider__strip-wrap--grid .wasla-yt-slider__strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.4rem;
    overflow: visible;
    padding: 0.15rem 0;
    min-width: 0;
}

@media (min-width: 420px) {
    .wasla-yt-slider__strip-wrap--grid .wasla-yt-slider__strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem 0.45rem;
    }
}

.wasla-yt-slider__strip--ltr {
    direction: ltr;
}

.wasla-yt-slider__thumb {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.wasla-yt-slider__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.wasla-yt-slider__thumb:hover,
.wasla-yt-slider__thumb:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
    transform: scale(1.02);
}

.wasla-yt-slider__thumb.is-active {
    border-color: #c00;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/*
 * Older copies of the shortcode still print .wasla-yt-slider__arrow in HTML (stale deploy or full-page cache).
 * Current PHP omits these nodes; this hides them if they are still present.
 */
.wasla-yt-slider__arrow {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
}
