/* IORI Stories Widget Styles */

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

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

/* Story Item */
.iori-story-item {
    /* flex: 0 0 405px; */
    max-width: 405px;
    display: block;
    text-decoration: none;
}

.iori-story-image {
    position: relative;
    width: 100%;
    height: 80vh;
    background: #000000;
    border-radius: 30px;
    box-shadow: 13px 14px 16.2px 9px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 80px;
}

.iori-story-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.iori-story-item:hover .iori-story-image img {
    transform: scale(1.05);
}

/* Play Button Overlay */
.iori-story-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.51);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iori-play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-left: 5px;
}

/* Main Video */
.iori-stories-main {
    display: block;
    width: 100%;
    max-width: 1319px;
    margin-bottom: 60px;
    text-decoration: none;
}

.iori-stories-main-image {
    position: relative;
    width: 100%;
    height: auto;
    background: #000000;
    border-radius: 30px;
    box-shadow: 13px 14px 16.2px 9px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 80px;
}

.iori-stories-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.iori-stories-main:hover .iori-stories-main-image img {
    transform: scale(1.05);
}

/* Large Play Button */
.iori-stories-main-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.51);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iori-play-icon-large {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 0 22px 38px;
    border-color: transparent transparent transparent #FFFFFF;
    margin-left: 8px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .iori-stories-section {
        padding: 60px 20px;
    }

    .iori-stories-row {
        gap: 15px;
    }

    .iori-story-item {
        flex: 0 0 250px;
        max-width: 250px;
    }

    .iori-story-image {
        height: 450px;
    }

    .iori-stories-main-image {
        height: 450px;
    }

    .iori-stories-main {
        max-width: 100%;
    }

    .iori-stories-main-play {
        width: 80px;
        height: 80px;
    }

    .iori-play-icon-large {
        border-width: 15px 0 15px 26px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .iori-stories-section {
        padding: 40px 15px;
    }

    /* Stories row - horizontal scroll on mobile */
    .iori-stories-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 10px;
        scrollbar-width: none;
        justify-content: flex-start;
    }

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

    .iori-story-item {
        flex: 0 0 102px;
        max-width: 102px;
        scroll-snap-align: start;
    }

    .iori-story-image {
        height: 134px;
        border-radius: 10px;
    }

    .iori-story-play {
        width: 38px;
        height: 38px;
    }

    .iori-play-icon {
        border-width: 8px 0 8px 14px;
        margin-left: 3px;
    }

    .iori-stories-main {
        margin-bottom: 20px;
    }

    .iori-stories-main-image {
        height: 179px;
        border-radius: 10px;
    }

    .iori-stories-main-play {
        width: 50px;
        height: 50px;
    }

    .iori-play-icon-large {
        border-width: 10px 0 10px 18px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .iori-stories-section {
        padding: 30px 10px;
    }

    .iori-story-item {
        flex: 0 0 90px;
        max-width: 90px;
    }

    .iori-story-image {
        height: 120px;
    }

    .iori-story-play {
        width: 32px;
        height: 32px;
    }

    .iori-play-icon {
        border-width: 6px 0 6px 10px;
    }

    .iori-stories-main-image {
        height: 150px;
    }

    .iori-stories-button {
        height: 44px;
        font-size: medium;
        line-height: 44px;
    }
}
