
/* AL BADI TRAVEL STORIES V9.2
   Four unique clickable posters.
   Scoped styles only.
*/

.ab-story92-section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 24px 65px;
    box-sizing: border-box;
}

.ab-story92-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    border-radius: 14px;
    overflow: hidden;
}

.ab-story92-card {
    position: relative;
    display: block;
    min-width: 0;
    height: 520px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    background: #173c39;
    cursor: pointer;
}

.ab-story92-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .85s cubic-bezier(.2,.7,.2,1);
}

.ab-story92-card:hover > img,
.ab-story92-card:focus-visible > img {
    transform: scale(1.085);
}

.ab-story92-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.27) 0%,
        rgba(0,0,0,.03) 30%,
        rgba(0,0,0,.10) 50%,
        rgba(0,0,0,.65) 100%
    );
    pointer-events: none;
}

.ab-story92-brand {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.ab-story92-brand strong {
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .14em;
}

.ab-story92-brand small {
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
}

.ab-story92-content {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 67px;
    z-index: 2;
    text-align: center;
}

.ab-story92-subtitle {
    display: block;
    color: #ffdfb1;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 22px;
    margin-bottom: 13px;
}

.ab-story92-content h3 {
    color: #fff;
    font-size: clamp(25px, 2.3vw, 39px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -.045em;
    margin: 0 0 13px;
    overflow-wrap: anywhere;
}

.ab-story92-content p {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    margin: 0 0 21px;
}

.ab-story92-arrow {
    display: inline-grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.13);
    font-size: 23px;
    transition:
        background .25s ease,
        transform .25s ease;
}

.ab-story92-card:hover .ab-story92-arrow,
.ab-story92-card:focus-visible .ab-story92-arrow {
    background: #f47734;
    border-color: #f47734;
    transform: translate(3px,-3px);
}

.ab-story92-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 43px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2,34,31,.9);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
}

@media (max-width: 1050px) {
    .ab-story92-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 12px;
    }

    .ab-story92-card {
        height: 480px;
        border-radius: 12px;
    }
}

@media (max-width: 700px) {
    .ab-story92-section {
        padding: 22px 0 44px;
        overflow: hidden;
    }

    .ab-story92-grid {
        display: flex;
        gap: 0;
        width: 100%;
        padding: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        border-radius: 0;
    }

    .ab-story92-grid::-webkit-scrollbar {
        display: none;
    }

    .ab-story92-card {
        flex: 0 0 calc(100% - 32px);
        height: 510px;
        margin: 0 16px;
        border-radius: 14px;
        scroll-snap-align: center;
    }

    .ab-story92-content h3 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .ab-story92-card > img {
        object-position: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ab-story92-card > img,
    .ab-story92-arrow {
        transition: none;
    }

    .ab-story92-grid {
        scroll-behavior: auto;
    }
}
