.fx-video-wrap {
    width: 100%;
    display: block;
    margin: 0 0 24px;
    clear: both;
}

.fx-video {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    line-height: 0;
}

.fx-video-thumb {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 24px;
}

.fx-video-embed {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.fx-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.fx-video-play {
    all: unset;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    box-sizing: border-box;
}

.fx-video-play:hover {
    background: rgba(0, 0, 0, 0.45);
}

.fx-video-play svg {
    width: 36px;
    height: 36px;
    display: block;
    fill: #fff;
    margin-left: 4px;
    flex: 0 0 auto;
}

.fx-video.is-loaded .fx-video-thumb {
    visibility: hidden;
}

.fx-video.is-loaded .fx-video-play {
    display: none;
}

/* Elementor sikkerhed */
.elementor-widget-shortcode .fx-video-wrap,
.elementor-widget-text-editor .fx-video-wrap,
.elementor-widget-html .fx-video-wrap {
    width: 100%;
    max-width: 100%;
}

.elementor-widget-shortcode .fx-video,
.elementor-widget-text-editor .fx-video,
.elementor-widget-html .fx-video {
    width: 100%;
}

.elementor-widget-shortcode,
.elementor-widget-text-editor,
.elementor-widget-html {
    overflow: visible !important;
}

@media (max-width: 767px) {
    .fx-video-wrap {
        margin-bottom: 24px;
    }

    .fx-video-play {
        width: 52px;
        height: 52px;
    }

    .fx-video-play svg {
        width: 30px;
        height: 30px;
        margin-left: 3px;
    }
}