.mac-carousel {
    --mac-dark: #085430;
    --mac-lime: #a0ce4e;
    width: 100%;
    font-family: inherit;
}

/* Auction Title */

.mac-auction-title {
    text-align: center;
    color: var(--mac-dark);
    font-family: inherit;
    margin: 0 0 25px;
    line-height: 1.4;
}

/* Carousel Navigation */

.mac-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.mac-controls button {
    background: var(--mac-dark);
    color: white;
    border: 0;
    border-radius: 3px;
    padding: 9px 16px;
    cursor: pointer;
    font: inherit;
}

.mac-controls button:hover {
    background: var(--mac-lime);
    color: var(--mac-dark);
}

/* Carousel Layout */

.mac-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--mac-lime) transparent;
}

.mac-card {
    flex: 0 0 calc((100% - 45px)/4);
    min-width: 0;
    scroll-snap-align: start;
    text-align: center;
}

.mac-card a {
    display: block;
    color: var(--mac-dark);
    text-decoration: none;
}

.mac-card a:hover {
    color: var(--mac-lime);
}

.mac-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: white;
    margin-bottom: 8px;
}

.mac-card strong,
.mac-card span {
    display: block;
}

/* Catalog Button */

.mac-full {
    text-align: center;
    margin: 30px 0 0 !important;
}

.mac-full a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 112px;
    height: 43px;
    padding: 0;
    background: var(--mac-dark);
    color: #ffffff;
    border: 0;
    border-radius: 2px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mac-full a:hover {
    background: var(--mac-lime);
    color: var(--mac-dark);
}

/* Accessibility */

.mac-carousel :focus-visible {
    outline: 3px solid var(--mac-lime);
    outline-offset: 2px;
}

/* Tablet */

@media (max-width: 1024px) {
    .mac-card {
        flex-basis: calc((100% - 30px)/3);
    }
}

/* Mobile */

@media (max-width: 640px) {
    .mac-card {
        flex-basis: calc((100% - 15px)/2);
    }
}
