
/* * -----------------------------
 * Home Provjereni brendovi marquee
 * ----------------------------- */
:root {
    /* --- Control Variables --- */
    --vmrq-item-gap-vertical: 0.5rem;

    /* Used for BOTH item spacing AND group spacing */
    --vmrq-column-gap-horizontal: 0.5rem;

    /* Horizontal space BETWEEN columns */
    --vmrq-item-aspect-ratio: 16 / 10;

    /* Aspect ratio for each item */
    --vmrq-item-padding: 10%;

    /* Padding INSIDE item */
    --vmrq-duration: 25s;

    /* Animation speed */
    --vmrq-scroll-start: 0;
    --vmrq-scroll-end: calc(-100% - var(--vmrq-item-gap-vertical));
}

.pr-brendovi_header-wrap {
    grid-area: 1 / 1 / 2 / 7;
}

.pr-brendovi-txt__wrap {
    /* grid-area: 1 / 5 / 2 / 11 */
    max-width: 27ch;
}

.logo-flex-wrap {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* padding-bottom: 10rem */
}

.vmrq-container {
    grid-area: 1 / 7 / 2 / 13;
    display: flex;
    gap: var(--vmrq-column-gap-horizontal);
    margin: auto;
    height: 96vh;
    width: 100%;
    padding: 0;
}

.vmrq-container--vertical {
    flex-direction: row;
}

.vmrq {
    display: flex;
    overflow: visible;
    user-select: none;
    gap: var(--vmrq-item-gap-vertical);
    mask-image: linear-gradient(
      to bottom,
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 10%,
      hsl(0 0% 0% / 1) 90%,
      hsl(0 0% 0% / 0)
    );
    flex-basis: 100%;
}

.vmrq--vertical {
    flex-direction: column;
}

.vmrq__group {
    flex-shrink: 0;
    display: flex;

    /* Gap between items uses the item gap variable */
    gap: var(--vmrq-item-gap-vertical);

    /* Changed */
    align-items: center;

    /* Prevent item stretching */
    width: 100%;

    /* Take full width of vmrq */
    animation: vmrq-scroll-y var(--vmrq-duration) linear infinite;
}

/* Ensure group is column when parent is vertical */
.vmrq--vertical .vmrq__group {
    flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
    .vmrq__group {
        animation-play-state: paused;
    }
}

.vmrq--reverse .vmrq__group {
    animation-direction: reverse;
    animation-delay: calc(var(--vmrq-duration) / -2);
}

.vmrq--delayed .vmrq__group {
    animation-delay: calc(var(--vmrq-duration) / -4);
}

@keyframes vmrq-scroll-y {
    from {
        transform: translateY(var(--vmrq-scroll-start));
    }

    to {
        transform: translateY(var(--vmrq-scroll-end));
    }
}

/* --- Item Styling (Fixed Size) --- */
.vmrq__item {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: var(--vmrq-item-aspect-ratio);
    padding: var(--vmrq-item-padding);
    background-color: hsla(0, 0%, 100%, 0.4);
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    cursor: pointer;

    /* Smooth transition */
}

.vmrq__item:hover {
    background-color: hsla(0, 0%, 100%, 1);

    /* Fully opaque on hover */
}

/* --- SVG Styling within Item --- */
.vmrq__item svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    fill: var(--vmrq-color-svg-fill);
}


.pr-brendovi-inner {
    align-content: start;
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 1.25rem;
    position: sticky;
    top: 7rem;
    left: 0;
    align-self: flex-start;
    max-width: 36ch;
}

