/* =========================================================
   STORIES / VÍDEOS HOME — OMG TÊXTIL
========================================================= */

.home-stories {
    padding: 70px 0;
}

.home-stories-header {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: left;
}

.home-stories-header h2 {
    margin: 10px 0 10px;
}

.home-stories-header p {
    margin: 0;
}


/* =========================================================
   TRACK
========================================================= */

.home-stories-track {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    width: 100%;
    max-width: 1220px;

    gap: 16px;

    margin: 0 auto;
}


/* =========================================================
   CARD
========================================================= */

.home-story {
    position: relative;

    width: 100%;

    overflow: hidden;

    aspect-ratio: 9 / 16;

    border-radius: 18px;

    background: #061e45;

    box-shadow:
        0 10px 28px
        rgba(6, 30, 69, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.home-story:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 34px
        rgba(6, 30, 69, 0.16);
}


/* =========================================================
   VÍDEO
========================================================= */

.home-story-video {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   OVERLAY
========================================================= */

.home-story-overlay {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 55px 17px 18px;

    background:
        linear-gradient(
            to top,
            rgba(6, 30, 69, 0.95) 0%,
            rgba(6, 30, 69, 0.55) 45%,
            transparent 100%
        );

    color: #ffffff;

    pointer-events: none;
}

.home-story-overlay span {
    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.home-story-overlay strong {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
}


/* =========================================================
   BOTÃO DE ÁUDIO
========================================================= */

.home-story-audio {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    display: flex;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    border-radius: 50%;

    background:
        rgba(6, 30, 69, 0.72);

    color: #ffffff;

    cursor: pointer;

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.home-story-audio:hover {
    transform: scale(1.06);

    border-color: #ffffff;

    background:
        rgba(6, 30, 69, 0.95);
}

.home-story-audio.is-active {
    background: #1558be;
    border-color: #ffffff;
}

.home-story-audio span {
    display: inline-flex;

    align-items: center;
    justify-content: center;
}

.home-story-audio svg {
    display: block;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .home-stories-track {
        display: flex;

        gap: 14px;

        padding-right: 8%;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .home-stories-track::-webkit-scrollbar {
        display: none;
    }

    .home-story {
        flex: 0 0 235px;

        scroll-snap-align: start;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .home-stories {
        padding: 50px 0;
    }

    .home-stories-header {
        margin-bottom: 24px;
    }

    .home-stories-track {
        gap: 12px;

        padding-right: 14%;
    }

    .home-story {
        flex-basis: 205px;

        border-radius: 15px;
    }

    .home-story-overlay {
        padding:
            48px
            14px
            15px;
    }

    .home-story-overlay strong {
        font-size: 15px;
    }

    .home-story-audio {
        top: 10px;
        right: 10px;

        width: 35px;
        height: 35px;
    }

}