.related-content__title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 60px;
    line-height: 64px;
    color: #222;
    margin-bottom: 44px;
}

.related-content__cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}

.related-content__card {
    position: relative;
    display: block;
    overflow: hidden;
}

.related-content__card:nth-child(4n+1) {
    transition-delay: 0s, 0s;
}

.related-content__card:nth-child(4n+2) {
    transition-delay: 0.05s, 0.05s;
}

.related-content__card:nth-child(4n+3) {
    transition-delay: 0.10s, 0.10s;
}

.related-content__card:nth-child(4n+4) {
    transition-delay: 0.15s, 0.15s;
}

.related-content__card-image {
    padding-bottom: 130%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.01); /* Fix Chrome bug that makes image jump at the end of the transition */
    transition: transform 0.3s;
}

.related-content__card:hover .related-content__card-image {
    transform: scale(1.2);
}

.related-content__card-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.related-content__card-tag {
    position: absolute;
    left: 24px;
    top: 24px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFF;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 100px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 6px;
    padding-bottom: 4px;
}

.related-content__card-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    font-family: "Roboto Slab", sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #FFF;
}

@media (max-width: 900px) {
    .related-content__cards {
        grid-template-columns: 1fr 1fr;
    }

    .related-content__card:nth-child(2n+1) {
        transition-delay: 0s, 0s;
    }

    .related-content__card:nth-child(2n+2) {
        transition-delay: 0.05s, 0.05s;
    }
}

@media (max-width: 600px) {
    .related-content__title {
        font-size: 36px;
        line-height: 36px;
        margin-bottom: 20px;
    }

    .related-content__card-title {
        font-size: 14px;
        line-height: 18px;
    }
}

@media (max-width: 400px) {
    .related-content__cards {
        gap: 20px;
    }

    .related-content__card-tag {
        left: 20px;
        top: 20px;
    }

    .related-content__card-title {
        left: 20px;
        bottom: 16px;
    }
}

@media (max-width: 320px) {
    .related-content__cards {
        gap: 16px;
    }

    .related-content__card-tag {
        left: 16px;
        top: 16px;
    }

    .related-content__card-title {
        left: 16px;
        bottom: 14px;
    }
}
