@custom-selector :--opened-menu [data-menu]:checked;


.product-card figure {
    position: relative;
    overflow: clip;
    font-weight: normal;
    display: inline-block;
    border-radius: 1rem;
    margin-block: 0 !important;
}

    .product-card figure img {
        aspect-ratio: unset;
    }


.product-card .tag-grid {
    width: 100%;
    height: 45%;
    align-items: end;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: var(--s1);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99;
    margin-block: unset !important;
    /*background-image: linear-gradient(to bottom, var(--color-motion-grey), transparent 30%);*/
}

.product-card .tag-grid > * {
padding:1rem;
align-self: start;
}

    .product-card figcaption {
        margin-top: -0.5rem;
        padding: var(--s2);
        background: light-dark(var(--color-motion-grey), var(--color-light));
        color: light-dark(var(--color-light), var(--color-motion-grey));
        font-style: normal;
    }

    .product-card figcaption h3 {
        color: light-dark(var(--color-light), var(--color-motion-grey));
        font-style: normal;
    }

    .product-card figcaption p {
        color: light-dark(var(--color-light), var(--color-motion-grey));
        font-size: var(--s1);
        font-style: normal;
    }


    .product-card figcaption p:has(a) {
        margin-top: 3rem;
    }

/* Product page */
    figure .product img {
    object-fit: cover;
}



figure.product figcaption h2 {
    font-style: normal;
    text-align: center;
}

figure.product figcaption ul {
    font-size: var(--s0);
}


/* Solutions */
.solutions .center {
    background: var(--color-motion-grey);
    color: var(--color-light);
    display: flex;
    max-height: calc(100% - (2 * var(--radius-padding)));
    max-width: calc(100% - (2 * var(--radius-padding)));
    align-self: stretch;
    align-items: center;
    justify-items: center;
    padding: var(--radius-padding);
    border-radius: var(--radius-outer);
}

    .solutions .center > * {
        margin: auto;
        text-align: center;
    }

.solutions > figure a {
    border: none;
    outline: 2px solid light-dark(var(--color-light), var(--color-dark));
    outline-offset: 1px;
    padding: var(--radius-padding);
    display: block;
    border-radius: var(--radius-outer);
}

.solutions > figure img {
    aspect-ratio: 5/4;
    border: 1px solid var(--color-motion-grey);
    border-bottom: none;
    border-top-left-radius: var(--radius-inner);
    border-top-right-radius: var(--radius-inner);
}

.solutions > figure figcaption {
    aspect-ratio: 5/1;
    background: light-dark(var(--color-motion-grey), var(--color-light));
    font-style: normal;
    display: flex;
    align-items: center;
    justify-items: center;
    border: 1px solid var(--color-motion-grey);
    border-top: none;
    border-bottom-left-radius: var(--radius-inner);
    border-bottom-right-radius: var(--radius-inner);
    min-width: 100%;
}

    .solutions > figure figcaption h3 {
        color: light-dark(var(--color-light), var(--color-dark));
        margin: 0 auto;
        font-size: var(--s1);
    }

.solutions > figure a:hover {
    outline-color: var(--color-motion-orange);
}

    .solutions > figure a:hover figcaption h3 {
        color: light-dark(var(--color-light), var(--color-motion-orange));
    }

@media (prefers-color-scheme: light) {
    .solutions > figure a:hover figcaption {
        background: var(--color-motion-orange);
        border-color: var(--color-motion-orange);
    }
}

.filters {
    display: block;
}

.filterButton {
    cursor: pointer;
    display: none;
}

@media (max-width: 925px) {
    .filters {
        background: light-dark(#fff, var(--color-motion-grey));
        color: light-dark(var(--color-dark), var(--color-light));
        padding: 2.5vh;
        height: 70vh;
        width: 60vw;
        margin: -100px 50px;
        z-index: 99;
        opacity: 0;
        overflow-y: auto;
        border-radius: 25px;
        box-shadow: 4.0px 8.0px 8.0px hsl(0deg 0% 0% / 0.38);
    }

        .filters::-webkit-scrollbar {
            display: none;
        }

        .filters ul {
            color: light-dark(var(--color-dark), var(--color-light));
        }

    .filterButton {
        display: block;
        position: absolute;
        z-index: 100;
        top: 15vh;
        left: 5vw;
    }


    .filtersCheckbox:checked ~ .filters {
        animation: showFilters 0.5s forwards;
    }

    .filtersCheckbox:not(:checked) ~ .filters {
        animation: hideFilters 0.5s forwards;
    }

    @keyframes showFilters {
        to {
            opacity: 1;
        }
    }

    @keyframes hideFilters {
        to {
            opacity: 0;
        }
    }
}



/* Product showcase */
.MA_ProductShowcase {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 5rem;
    width: 90vw;
    max-width: var(--grid-max);
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
    anchor-name: --timeline;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    margin: 0 auto;
}

    .MA_ProductShowcase > div {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

/*
        .MA_ProductShowcase > div > figure {
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            margin-block: 3rem;
        }

        .MA_ProductShowcase > div > figure > figcaption {
            padding: 2rem;
            font-size: unset;
        }*/

        .MA_ProductShowcase > div > figure > img, .MA_ProductShowcase > div > .video {
            border-radius: 25px;
            width: 100%;
            max-width: calc(var(--grid-max) / 2);
            margin: 0 auto;
        }

    .MA_ProductShowcase::scroll-button(*) {
        position: fixed;
        position-anchor: --timeline;
        border: solid 2px CanvasText;
        color: CanvasText;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        background: transparent !important;
    }

    .MA_ProductShowcase::scroll-button(right) {
        content: '>';
        position-area: center right;
    }

    .MA_ProductShowcase::scroll-button(left) {
        content: '<';
        position-area: center left;
    }

/*    .MA_ProductShowcase::scroll-marker-group {
        position: absolute;
        position-anchor: --timeline;
        position-area: end center;
        grid-area: markers;
        display: grid;
        grid-auto-flow: column;
        gap: 2rem;
        padding: 1rem;
        justify-content: center;


      .MA_ProductShowcase > div::scroll-marker {
        content: attr(data-year);
        color: var(--color-motion-orange);
        text-decoration: none;
    }

    .MA_ProductShowcase > div::scroll-marker:hover {
        color: var(--color-light);
    }

    .MA_ProductShowcase > div::scroll-marker:target-current {
        color: var(--color-light);
    }*/

/* NOTE: time-buttons has been hidden below but clsses and code left in place, in case future use case. */
.showcase-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90vw;
    max-width: var(--grid-max);
    position: relative;
    position-anchor: --timeline;
    /*    display: none;
    visibility: hidden;*/
}

    .showcase-buttons > button {
        border: solid 2px light-dark(var(--color-motion-grey), var(--color-light));
        color: light-dark(var(--color-motion-grey), var(--color-light));
        border-radius: 100%;
        width: 50px;
        height: 50px;
        background: transparent !important;
        padding: 0 !important;
    }

        .showcase-buttons > button:nth-child(1) {
            position-area: center left;
            justify-self: start;
        }

        .showcase-buttons > button:nth-child(2) {
            position-area: center right;
            justify-self: end;
        }

@supports selector(::scroll-button(*)) {
    .showcase-buttons > button {
        display: none;
        visibility: hidden;
    }

    #indicator {
        display: none;
        visibility: hidden;
    }
}

@media screen and (max-width: 767px) {
    .showcase-buttons {
        display: none;
        visibility: hidden;
    }

    .MA_ProductShowcase {
        scrollbar-width: auto;
        -ms-overflow-style: auto;
        scroll-behavior: smooth;
    }

        .MA_ProductShowcase > div > figure {
            margin-block: 0;
        }
}