/* =========================================================
   RELATED CONTENT GRID
========================================================= */

.moviebox-related-section {
    width: 100%;
    margin-top: 28px;
    padding: 18px;
    background: #111;
    border: 1px solid #242424;
    border-radius: 10px;
    box-sizing: border-box;
}

.moviebox-related-section > h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
}


/* Grid */

.moviebox-related-grid {
    width: 100%;
}

.moviebox-related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}


/* Card */

.moviebox-related-card {
    display: block;
    width: 100%;
    min-width: 0;

    text-decoration: none !important;
    color: #fff !important;
}


/* Poster */

.moviebox-related-poster {
    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;
    border-radius: 7px;

    background: #1a1a1a;
}

.moviebox-related-poster img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform .25s ease;
}


/* Hover */

.moviebox-related-card:hover
.moviebox-related-poster img {
    transform: scale(1.04);
}


/* Title */

.moviebox-related-title {
    margin-top: 8px;

    color: #eee;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;

    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* =========================================================
   TABLET — 4 COLUMNS
========================================================= */

@media (max-width: 900px) {

    .moviebox-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

}


/* =========================================================
   MOBILE — 3 COLUMNS
========================================================= */

@media (max-width: 600px) {

    .moviebox-related-section {
        margin-top: 20px;
        padding: 13px;
        border-radius: 8px;
    }

    .moviebox-related-section > h2 {
        margin-bottom: 14px;
        font-size: 17px;
    }

    .moviebox-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 9px;
    }

    .moviebox-related-title {
        margin-top: 6px;
        font-size: 12px;
    }

}