article.how-to-videos {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    text-align: left;
}

.how-to-videos-carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-right: -20px;
    padding-right: 20px;
}

.how-to-videos .how-to-video h4 {
    margin: 8px 0 0;
    font-size: 1.1rem;
}

.how-to-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.how-to-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.how-to-videos-expand {
    display: none;
    margin-top: 16px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .how-to-videos:not(.is-expanded) .how-to-video:not(:first-child) {
        display: none;
    }

    .how-to-videos:not(.is-expanded) .how-to-videos-expand {
        display: block;
    }

    .how-to-videos.is-expanded .how-to-videos-expand {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .how-to-videos-carousel {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .how-to-videos-carousel .how-to-video {
        flex: 0 0 calc((100% - 48px) / 3.5);
        scroll-snap-align: start;
        min-width: 0;
    }

    .how-to-videos .how-to-video h4 {
        font-size: 0.95rem;
        line-height: 1.3;
        min-height: 2.6em;
    }
}
