@import '../../../../assets/css/utilities/variables';

.head {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;

    @media (min-width: $breakpoint-large) {
        margin-bottom: 2rem;
    }

    select {
        margin-right: 1rem;
    }
}

.count {
    font-size: 1.2rem;
    color: $text-color-grey;
    letter-spacing: $letter-spacing;

    @media (min-width: $breakpoint-large) {
        font-size: 1.4rem;
    }
}

.items {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1rem;
    margin-left: -1rem;
}

.item {
    display: flex;
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;

    @media (min-width: $breakpoint-xsmall) {
        width: 50%;
    }

    @media (min-width: $breakpoint-medium) {
        width: 33.3333333%;
    }

    @media (min-width: 1450px) {
        width: 25%;
    }

    @media (min-width: 2000px) {
        width: 20%;
    }

    @media (min-width: 3000px) {
        width: 16.6666667%;
    }
}

.link {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.image {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background-color: $secondary-color;

    img,
    span {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    span {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    &.lazyloaded .lazyload {
        opacity: 0.8;
    }
}

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.duration {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0.4rem 1.2rem 0.2rem;
    font-size: 1.3rem;
    background-color: rgba(0, 0, 0, 0.7);
}

.name {
    flex: 1 0 auto;
    margin-top: 1rem;
    font-size: 1.3rem;
    letter-spacing: $letter-spacing;

    @media (min-width: $breakpoint-large) {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
}

.type {
    font-size: 1.2rem;
    color: $text-color-grey;
    letter-spacing: $letter-spacing;

    @media (min-width: $breakpoint-large) {
        font-size: 1.4rem;
    }
}