/* オーバーレイの背景 */
.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000b3;
    z-index: 1000;
    justify-content: center;
    overflow: scroll;
    align-items: center;
}

/* 動画コンテナ */
.video-container {
    position: relative;
    float: left;
    width: 80%;
    border: solid 1px #fff;
    border-radius: 5px;
    max-width: 75%;
}

.video-title {
    position: absolute;
    top: -35px;
    left: 0;
    color: white;
    font-size: 160%;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* 動画要素 */
.video-player {
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: -35px;
    right: 0;
    color: white;
    font-size: 160%;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ページ読み込み時に表示するトリガーボタン */
.play-trigger {
    margin: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

@media screen and (max-width: 980px) {

    /* オーバーレイの背景 */
    .video-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000000b3;
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }

    /* 動画コンテナ */
    .video-container {
        position: relative;
        width: 95%;
        border: solid 1px #fff;
        max-width: 95%;
    }

    /* 動画要素 */
    .video-player {
        width: 100%;
        height: auto;
        cursor: pointer;
    }

    /* 閉じるボタン */
    .close-btn {
        position: absolute;
        top: -58px;
        right: 0;
        color: white;
        font-size: 200%;
        /* font-size: 24px; */
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }

    /* ページ読み込み時に表示するトリガーボタン */
    .play-trigger {
        margin: 20px;
        padding: 10px 20px;
        font-size: 16px;
        cursor: pointer;
    }
}