/* snippet-row-slides START */
#snippet-row-slides {
    #servicesTrack {
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    #servicesTrack::-webkit-scrollbar { display: none; }

    article {
        flex-basis: 85%;
        aspect-ratio: 4 / 5;
        scroll-snap-align: start;
    }
    @media (min-width: 576px) { article { flex-basis: calc((100% - 1rem) / 2); } }
    @media (min-width: 992px) { article { flex-basis: calc((100% - 3rem) / 4); } }

    article img { transition: transform .5s ease; }
    article:hover img { transform: scale(1.06); }

    /* overlay + colțuri încadrate */
    article a {
        opacity: 0;
        background: rgba(var(--bs-secondary-rgb), .82);
        transition: opacity .35s ease;
    }
    article a > span {
        background:
            linear-gradient(#fff,#fff) left top / 26px 2px no-repeat,
            linear-gradient(#fff,#fff) left top / 2px 26px no-repeat,
            linear-gradient(#fff,#fff) right top / 26px 2px no-repeat,
            linear-gradient(#fff,#fff) right top / 2px 26px no-repeat,
            linear-gradient(#fff,#fff) left bottom / 26px 2px no-repeat,
            linear-gradient(#fff,#fff) left bottom / 2px 26px no-repeat,
            linear-gradient(#fff,#fff) right bottom / 26px 2px no-repeat,
            linear-gradient(#fff,#fff) right bottom / 2px 26px no-repeat;
    }
    article:hover a,
    article a:focus-visible { opacity: 1; }

    /* ecrane tactile: fără hover, overlay-ul rămâne vizibil jos */
    @media (hover: none) {
        article a {
            opacity: 1;
            align-items: flex-end !important;
            background: linear-gradient(to top, rgba(var(--bs-secondary-rgb), .9), transparent 65%);
        }
        article a > span { background: none; padding: 0 !important; }
        article a .small { display: none; }
    }
}
@media (prefers-reduced-motion: reduce) {
    #snippet-row-slides article img,
    #snippet-row-slides article a { transition: none; }
}
/* snippet-row-slides END */