.emay-manset {
    width: min(100%, calc(var(--emay-manset-w) * 1px));
    margin-inline: auto;
    font-family: inherit;
}

.emay-manset__stage {
    position: relative;
    aspect-ratio: var(--emay-manset-w) / var(--emay-manset-h);
    overflow: hidden;
    background: #111;
}

.emay-manset__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
}

.emay-manset__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.emay-manset__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.emay-manset__slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
    pointer-events: none;
}

.emay-manset__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 0 20px 18px;
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
    font-size: clamp(18px, 3vw, 34px);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.emay-manset__nav {
    display: flex;
    background: #1c1c1c;
    overflow-x: auto;
}

.emay-manset__nav-btn {
    flex: 1 0 auto;
    min-width: 44px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #eee;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.emay-manset__nav-btn.is-active {
    background: #d21f2d;
    color: #fff;
}

.emay-manset__all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    background: #2a2a2a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.emay-manset__pause {
    flex: 0 0 auto;
    min-width: 44px;
    height: 36px;
    border: 0;
    background: #2a2a2a;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.emay-manset__nav-btn:focus-visible,
.emay-manset__all:focus-visible,
.emay-manset__pause:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
    .emay-manset__slide {
        transition: none;
    }
}
