/**
 * Copyright © Degriz d.o.o. All rights reserved.
 * See LICENSE.txt for the licence.
 *
 * Hyvä: the review cards in one row that snaps card by card, three on a desktop, two on a tablet,
 * one and a bit on a phone, with round arrows like the Luma carousel. Plain CSS: a module's classes
 * are not in the theme's Tailwind build. A file of its own: a CDN keeps static files by name.
 */
.gr-hv { position: relative; }
.gr-hv__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.gr-hv__track::-webkit-scrollbar { display: none; }
.gr-hv__track > .gr-card { scroll-snap-align: start; }
.gr-hv__track:focus-visible { outline: 2px solid #1a73e8; outline-offset: 4px; }
.gr-hv__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    cursor: pointer;
    padding: 0 0 3px;
}
.gr-hv__nav--prev { left: -20px; }
.gr-hv__nav--next { right: -20px; }
.gr-hv__nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 1023px) {
    .gr-hv__track { grid-auto-columns: calc((100% - 16px) / 2); }
    .gr-hv__nav--prev { left: -8px; }
    .gr-hv__nav--next { right: -8px; }
}
@media (max-width: 639px) {
    .gr-hv__track { grid-auto-columns: 85%; }
    .gr-hv__nav { display: none; }
}
