.gratitude-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gratitude-block.vertical {
    flex-direction: row;
}

.video-block {
    position: relative;
}

.gallery-play-button {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 2;
    background-image: url("/local/templates/csio-dpo/svg/play-button.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.gratitude-video {
    background: white;
    padding: 20px;
    min-width: 30%;
    height: max-content;
}
.gratitude-block.vertical .gratitude-video {
    width: 30%;
}

.gratitude-header {
    display: flex;
    gap: 25px;
    align-items: center;
}

.gratitude-header .file-block {
    width: 208px;
    margin: 0;
    padding: 0;
    gap: 14px;
    border-bottom: none;
}

.gratitude-header .file-img-pdf {
    height: 24px;
    width: 21px;
    min-width: 21px;
    margin-right: 0;
    background-color: white;
}

.gratitude-header .file-open,
.gratitude-header .file-download {
    height: 19px;
    width: 21px;
    min-width: 21px;
}

.gratitude-header .file-button > div {
    gap: 1px;
}

.gratitude-header .file-name {
    display: none;
}

.gratitude-header .file-button {
    margin-top: 0;
    gap: 10px;
    font-size: 15px;
    font-weight: 300;
    text-decoration: underline;
}

.gratitude-video video,
.gratitude-video iframe {
    width: 100%;
    max-height: 500px;
}

.gratitude-header {
    display: grid;
    grid-template-areas: "name file rating";
    background-color: white;
    padding: 20px;
    grid-template-columns: max-content 1fr 1fr;
}

.gratitude-block.vertical .gratitude-header {
    grid-template-areas:
            "name rating"
            "file file";
    grid-template-columns: max-content 1fr;
}

.gratitude-header .header-name {
    grid-area: name;
}

.gratitude-header .header-file {
    grid-area: file;
}

.gratitude-header .header-rating {
    grid-area: rating;
}

.gratitude-block h2 {
    font-size: 36px;
}

.gratitude-detail {
    color: var(--gray4-text-color);
    background: white;
    padding: 0 20px 20px 20px;
    line-height: 130%;
}

.gratitude-header .rating {
    margin-left: auto;
    cursor: unset;
}

.gratitude-header .rating-stars {
    cursor: unset;
}

.gratitude-block .course-btn {
    width: 266px;
    margin-top: 20px;
    margin-left: auto;
}

@media (max-width: 780px) {
    .gratitude-block {
        gap: 0;
    }

    .gratitude-block.vertical {
        flex-direction: column;
    }

    .gratitude-block .gratitude-video,
    .gratitude-block.vertical .gratitude-video {
        padding-bottom: 0;
        width: unset;
    }

    .gratitude-video video, .gratitude-video iframe {
        max-height: unset;
    }

    .gratitude-block h2 {
        font-size: 30px;
    }

    .gratitude-detail {
        font-size: 14px;
        line-height: 16px;
    }

    .gratitude-header {
        flex-direction: column;
        align-items: start;
    }

    .gratitude-header .file-button {
        flex-direction: row;
    }

    .gratitude-header .rating {
        order: -1;
        margin-left: 0;
    }

    .gratitude-block .course-btn {
        width: unset;
    }
}
