/* Faraz Product Image Marquee 1.0.2 — full-bleed portrait 9:16 cards. */
.fzpm-gallery {
    --fzpm-accent: #8b4a2f;
    --fzpm-gap: 18px;
    --fzpm-width: 270px;
    --fzpm-start: 0px;
    --fzpm-duration: 50s;

    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    direction: rtl;
    padding: 66px 0 72px;
    background: transparent !important;
}
.fzpm-gallery *,
.fzpm-gallery *::before,
.fzpm-gallery *::after { box-sizing: border-box; }

/* No patterned or painted background: inherit the host section background. */
.fzpm-gallery::before,
.fzpm-gallery::after { content: none !important; display: none !important; }

.fzpm-heading-wrap {
    width: min(100%, 1810px);
    margin: 0 auto 26px;
    padding: 0 24px;
    direction: rtl;
}
.fzpm-heading {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    padding: 0 17px 0 0 !important;
    color: var(--fzpm-accent);
    font-size: clamp(24px, 2.4vw, 34px) !important;
    font-weight: 900;
    line-height: 1.6;
}
.fzpm-heading::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 3px;
    height: .9em;
    background: currentColor;
    transform: translateY(-50%);
}

/* LTR for the moving visual lane, independent of page direction. */
.fzpm-gallery .fzpm-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    direction: ltr;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.fzpm-viewport::-webkit-scrollbar { display: none; }
.fzpm-gallery.fzpm-ready .fzpm-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.fzpm-gallery .fzpm-track,
.fzpm-gallery .fzpm-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--fzpm-gap);
    width: max-content;
    direction: ltr;
}
.fzpm-gallery .fzpm-group { flex: none; }

/* Each card is exactly Instagram Story portrait ratio: 9:16. */
.fzpm-gallery .fzpm-card {
    position: relative;
    display: block;
    flex: 0 0 var(--fzpm-width);
    width: var(--fzpm-width);
    height: auto;
    aspect-ratio: 9 / 16;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px;
    background: transparent !important;
    box-shadow: 0 8px 24px rgba(18, 18, 18, .08);
    text-decoration: none !important;
    transform: translateZ(0);
    transition: box-shadow .45s ease;
}
.fzpm-gallery .fzpm-card::before,
.fzpm-gallery .fzpm-card::after { content: none !important; display: none !important; }
.fzpm-gallery .fzpm-card img.fzpm-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center;
    background: transparent;
    transform: translateZ(0) scale(1.001);
    transition: transform .95s cubic-bezier(.2,.65,.2,1);
}
.fzpm-gallery .fzpm-card:focus-visible {
    outline: 3px solid var(--fzpm-accent);
    outline-offset: -3px;
}
@media (hover: hover) and (pointer: fine) {
    .fzpm-gallery .fzpm-card:hover { box-shadow: 0 12px 32px rgba(18, 18, 18, .14); }
    .fzpm-gallery .fzpm-card:hover img.fzpm-image { transform: translateZ(0) scale(1.045); }
    .fzpm-gallery .fzpm-viewport:hover .fzpm-track { animation-play-state: paused; }
}
.fzpm-gallery .fzpm-viewport:focus-within .fzpm-track { animation-play-state: paused; }

/* Seamless GPU-accelerated left-to-right movement. JS computes the exact group width. */
.fzpm-gallery.fzpm-ready .fzpm-track {
    animation: fzpm-slide-to-right var(--fzpm-duration) linear infinite;
    will-change: transform;
}
@keyframes fzpm-slide-to-right {
    from { transform: translate3d(var(--fzpm-start), 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}
.fzpm-notice { padding: 16px 20px; color: var(--fzpm-accent); text-align: center; }

@media (max-width: 1024px) {
    .fzpm-gallery {
        --fzpm-width: 234px;
        --fzpm-gap: 15px;
        padding: 56px 0 62px;
    }
    .fzpm-heading-wrap { padding: 0 18px; }
}
@media (max-width: 640px) {
    .fzpm-gallery {
        --fzpm-width: 180px;
        --fzpm-gap: 12px;
        padding: 44px 0 50px;
    }
    .fzpm-heading-wrap { padding: 0 14px; margin-bottom: 20px; }
    .fzpm-gallery .fzpm-card { border-radius: 9px; }
    .fzpm-gallery.fzpm-ready .fzpm-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .fzpm-gallery.fzpm-ready .fzpm-track { animation: none !important; transform: none !important; }
    .fzpm-gallery.fzpm-ready .fzpm-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .fzpm-gallery .fzpm-card,
    .fzpm-gallery .fzpm-card img { transition: none !important; }
}
