/* IORI Video Widget Styles */

.iori-video-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.element-f4cdc63.e-con > .e-con-inner {
    max-width: 1400px;
}

/* Stories Row (3 items) */
.iori-video-stories-row {
    display: flex;
    gap: 24px;
    margin-bottom: 78px;
    width: 100%;
    justify-content: center;
}

/* Story Item */
.iori-video-story-item {
    width: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.iori-video-story-item .e-hosted-video {
    /* border-radius: 30px; */
    box-shadow: 13px 14px 16.2px 9px rgba(0, 0, 0, 0.25);
    height: 30vw;
}

.iori-video-story-item .elementor-custom-embed-play {
    width: 80px;
    height: 80px;
}

.iori-video-story-item .elementor-custom-embed-play svg {
    width: 35px;
    height: 35px;
}

/* Main Video Wrapper */
.iori-video-main-wrapper {
    width: 100%;
    margin-bottom: 60px;
}

/* Elementor-style Video */
.e-hosted-video {
    position: relative;
    width: 100%;
    background: #000000;
    border-radius: 30px;
    box-shadow: 13px 14px 16.2px 9px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.e-hosted-video video {
    width: 100%;
    display: block;
}

.elementor-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-open-inline .e-hosted-video {
    border-radius: 30px;
}

/* Video Poster Overlay */
.elementor-custom-embed-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play {
    background: rgba(243, 166, 35, 0.9);
}

.elementor-custom-embed-play {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.51);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.elementor-custom-embed-play svg {
    width: 50px;
    height: 50px;
    fill: #FFFFFF;
    margin-left: 8px;
}

/* Iframe Video */
.iori-video-iframe {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.iori-video-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Stories row - horizontal scroll on mobile */
    .iori-video-stories-row {
        display: flex;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        scrollbar-width: none;
        justify-content: space-between;
    }

    .iori-video-stories-row::-webkit-scrollbar {
        display: none;
    }

    .iori-video-story-item {
        scroll-snap-align: start;
    }

    .iori-video-story-item .e-hosted-video {
        height: 50vw;
    }

    .iori-video-story-item .elementor-custom-embed-play {
        width: 38px;
        height: 38px;
    }

    .iori-video-story-item .elementor-custom-embed-play svg {
        width: 16px;
        height: 16px;
    }

    .iori-video-main-wrapper {
        margin-bottom: 0px;
    }

    .e-hosted-video {
        border-radius: 10px;
    }

    .elementor-custom-embed-play {
        width: 50px;
        height: 50px;
    }

    .elementor-custom-embed-play svg {
        width: 20px;
        height: 20px;
        margin-left: 4px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .iori-video-story-item .e-hosted-video {
        height: 45vw;
    }

    .iori-video-story-item .elementor-custom-embed-play {
        width: 32px;
        height: 32px;
    }

    .iori-video-story-item .elementor-custom-embed-play svg {
        width: 14px;
        height: 14px;
    }
}
