#home-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 20px;
    margin-bottom: 20px;
    background: #373739;
    box-sizing: border-box;
}

#home-videos[hidden] {
    display: none;
}

#home-videos .home-video {
    display: block;
    min-width: 0;
    color: #ddd;
    text-decoration: none;
}

#home-videos .home-video:focus-visible {
    outline: 2px solid var(--theme-hover, #ddd);
    outline-offset: 5px;
}

#home-videos .home-video-cover {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 3px;
    background: #28282a;
}

#home-videos .home-video-cover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    pointer-events: none;
}

#home-videos .home-video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#home-videos .home-video-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 28px solid rgba(255, 255, 255, .9);
    transform: translate(-40%, -50%);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
    pointer-events: none;
}

#home-videos .home-video-duration {
    position: absolute;
    z-index: 1;
    right: 8px;
    bottom: 5px;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
}

#home-videos .home-video-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 8px 0 0;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

#home-videos .home-video:hover .home-video-title {
    color: var(--theme-hover, #ddd);
}

@media (max-width: 767px) {
    #home-videos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 15px 12px;
    }
    #home-videos .home-video-title {
        font-size: 12px;
    }
}
