.nzt-tiles {
    --nzt-height: 660px;
    --nzt-speed: 34s;
    --nzt-gap: 16px;
    --nzt-tile-size: 210px;
    box-sizing: border-box;
    display: grid;
    gap: var(--nzt-gap);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: var(--nzt-height);
    margin-left: auto;
    margin-right: auto;
    max-width: 1440px;
    overflow: hidden;
    width: 100%;
}

.nzt-tiles *,
.nzt-tiles *::before,
.nzt-tiles *::after {
    box-sizing: border-box;
}

.nzt-column {
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.nzt-column::before,
.nzt-column::after {
    content: "";
    height: 72px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 2;
}

.nzt-column::before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
    top: 0;
}

.nzt-column::after {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0));
    bottom: 0;
}

.nzt-track {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--nzt-gap);
    min-height: 100%;
    will-change: transform;
}

.nzt-column-up .nzt-track {
    animation: nzt-scroll-up var(--nzt-speed) linear infinite;
}

.nzt-column-down .nzt-track {
    animation: nzt-scroll-down var(--nzt-speed) linear infinite;
    transform: translateY(-50%);
}

.nzt-tile {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    max-width: 100%;
    overflow: hidden;
    width: min(100%, var(--nzt-tile-size));
}

.nzt-image {
    display: block;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    width: 100%;
}

@keyframes nzt-scroll-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes nzt-scroll-down {
    from {
        transform: translateY(-50%);
    }

    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nzt-column-up .nzt-track,
    .nzt-column-down .nzt-track {
        animation-play-state: paused;
    }
}

@media (max-width: 1024px) {
    .nzt-tiles {
        --nzt-tile-size: 190px;
        height: min(var(--nzt-height), 62vw);
    }
}

@media (max-width: 760px) {
    .nzt-tiles {
        --nzt-gap: 12px;
        --nzt-tile-size: 160px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: 720px;
    }
}

@media (max-width: 460px) {
    .nzt-tiles {
        --nzt-tile-size: 138px;
        height: 640px;
    }
}
