/**
 * ASP Styles
 */

.youtube-embed-fire-modal {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.youtube-embed-fire-modal svg.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.youtube-embed-fire-modal:hover svg.youtube-play-button {
    opacity: 1;
}

body:not(.block-editor-page) .wp-block-embed .wp-block-embed__wrapper:before {
    padding-top: 0;
}

body:not(.block-editor-page) .youtube-embed-fire-modal {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

body:not(.block-editor-page) .youtube-embed-fire-modal:hover .ytp-large-play-button-bg {
    fill: #fff;
}

body:not(.block-editor-page) .youtube-embed-fire-modal:hover .ytp-large-play-button-fg {
    fill: #1f4783;
}

body:not(.block-editor-page) .youtube-embed-fire-modal .youtube-play-button {
    position: absolute;
    width: 25%;
    z-index: 1;
}

body:not(.block-editor-page) #embed-video-modal {
    padding: 17px;
}

body:not(.block-editor-page) #embed-video-modal .modal-dialog {
    max-width: 1200px;
    margin: 30px auto;
}

body:not(.block-editor-page) #embed-video-modal .modal-content {
    border: none;
}

body:not(.block-editor-page) #embed-video-modal .modal-body {
    position: relative;
    padding: 0;
}

body:not(.block-editor-page) #embed-video-modal .video-modal-close {
    position: absolute;
    top: -90px;
    right: 0;
    z-index: 999;
    font-size: 4rem;
    font-weight: normal;
    color: #fff;
    opacity: 1;
    background: transparent;
    border: none;
}

body:not(.block-editor-page) #embed-video-modal .video-modal-close:hover {
    opacity: 0.7;
}

body:not(.block-editor-page) #embed-video-modal .video-modal-close:focus {
    outline: none;
}

@media (max-width: 992px) {
    body:not(.block-editor-page) .wp-block-embed #embed-video-modal {
        max-width: 600px;
    }

    body:not(.block-editor-page) .wp-block-embed #embed-video-modal .video-modal-close {
        display: none;
    }
}
