.media {
    background-color: #EAEBEB;
    padding-top: 40px;
}

.media__list {
    list-style-type: none;
    margin: 0;
    padding-bottom: 40px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 310px;
    column-gap: 30px;
    overflow-x: auto;
}

.media__card {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.16);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.media__card_type_docview {
    background-color: #B0B2E6;
}

.media__card_type_video {
    background-color: #C6BDB8;
}

.media__card_type_news {
    background-color: #B9C6B8;
}

.media__card-heading {
    margin-bottom: 30px;
    color: #000;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.media__card-heading_type_docview {
    font-family: 'Caveat Brush';
    font-size: 15px;
    font-weight: 400;
    line-height: 1.07;
}

.media__card-heading::before {
    content: '';
    display: block;
    margin-right: 16px;
}

.media__card-heading_type_docview::before {
    background: url(/images/media-docview.svg) no-repeat center center;
    width: 24px;
    height: 24px;
}

.media__card-heading_type_video::before {
    background: url(/images/media-video.svg) no-repeat center center;
    width: 24px;
    height: 24px;
}

.media__card-heading_type_news::before {
    background: url(/images/media-news.svg) no-repeat center center;
    width: 22px;
    height: 22px;
}

.media__card-date {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.7);
}

.media__card-text {
    font-family: 'Halvar Breitschrift';
    font-size: 17px;
    color: #000;
    line-height: 1.47;
    margin-bottom: 50px;
}

.media__card-body {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.media__card-preview {
    width: 260px;
    height: 146px;
    background-position: center center;
    background-color: rgba(169, 42, 229, 0.32);
    /*background-blend-mode: difference, normal;*/
    border-radius: 20px;
    position: relative;
    transition: background-color ease .5s;
    background-size: cover;
}

.media__card-preview::before {
    content: '';
    background: url('/images/media-docview-play.svg') no-repeat center center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media__card-docview-link:hover .media__card-preview {
    background-color: transparent;
}

.media__card-img {
    display: block;
    width: 100%;
    height: auto;
}

.media__card-episode {
    margin-top: 20px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.07;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0;
}

.media__card-episode-time {
    color: rgba(255, 255, 255, 0.7);
}

.media__card-button {
    font-weight: 700;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #000;
    padding: 16px 46px;
    border: 2px solid #000000;
    border-radius: 24px;
    transition: opacity ease .5s;
}

.media__card-button:hover {
    color: #000;
    opacity: .8;
}

.media__card-button_type_docview {
    display: none;
}

.media__card-arrow {
    display: none;
}

@media screen and (min-width: 1280px) {
    .media__list {
        grid-template-columns: 42fr 58fr;
        gap: 60px;
        grid-auto-flow: row;
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }

    .media__card {
        padding: 40px 60px 20px 40px;
        min-height: 380px;
        box-sizing: border-box;
    }

    .media__card-preview {
        width: 482px;
        height: 251px;
    }

    .media__card-episode {
        color: #000;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.3;
        text-transform: uppercase;
    }

    .media__card-arrow {
        display: block;
        width: 48px;
        height: 48px;
        display: block;
        background: #0000004D url(/images/docview-arrow-left.svg) no-repeat center center;
        position: absolute;
        z-index: 999;
        border: 0;
        border-radius: 100%;
        cursor: pointer;
    }

    .media__card-arrow_type_prev {
        top: 121px;
        left: 28px;
    }

    .media__card-arrow_type_next {
        top: 121px;
        left: 526px;
        transform: rotate(180deg);
    }

    .media__card_type_docview {
        grid-column: 1/3;
        display: grid;
        grid-template-columns: calc((100% - 60px) * 0.38) calc((100% - 60px) * 0.62);
        column-gap: 60px;
        padding-top: 50px;
        padding-bottom: 50px;
        min-height: 400px;
        align-items: center;
        background: linear-gradient(270deg, #E8D3A1 0%, rgba(232, 211, 161, 0.00) 56.73%), #B0B2E6;            
    }

    .media__card-heading {
        margin-bottom: 40px;
    }

    .media__card_type_docview .media__card-heading{
        font-size: 0;
    }

    .media__card-text {
        font-size: 24px;
        line-height: 1.33;
        margin-bottom: 34px;
        
    }

    .media__card_type_docview .media__card-text {
        max-width: 462px;
    }
    

    .media__card-button {
        display: inline-block;
        align-self: start;
        justify-self: start;
        font-size: 16px;
    }

    .media__card-body {
        justify-content: flex-start;
    }

    .media__card-body_type_docview {
        grid-column: 2/3;
        grid-row: 1/4;
        background: none;
        background-size: cover;
        margin: 0 -60px 0 0;
        border-radius: 24px;
        justify-content: center;
        padding-top: 0;
        padding-left: 60px;
        padding-bottom: 0;
        overflow: hidden;
        position: relative;
    }
}

.media__docview-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.media__docview-list>li {
    display: none;
}

.media__docview-list>li:last-child {
    display: block;
}

@media screen and (min-width: 1280px) {

    .media__docview-list {
        display: grid;
        grid-auto-flow: column;
        column-gap: 40px;
        overflow-x: auto;
        width: 100%;
        justify-content: start;
        padding-bottom: 24px;
    }

    .media__docview-list>li {
        display: block;
    }

    .media__docview-list>li:last-child {
        margin-right: 40px;
    }

    .media__docview-list::-webkit-scrollbar {
        display: none;
    }

    /* Track */
    .media__docview-list::-webkit-scrollbar-track {
        display: none;
    }

    /* Handle */
    .media__docview-list::-webkit-scrollbar-thumb {
        display: none;
    }
}