/* Shared homepage and catalogue photo tile layout. */
body#top.page-home .home-intro--atelier .home-hero-categories--photos > a,
body#top.page-product-listing .catalogue-category-nav--photos > a[data-catalogue-category] {
    display: grid;
    grid-template-columns: 54% minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    min-height: 132px;
    padding: 0;
    overflow: hidden;
    text-align: start;
}
body#top.page-home .home-hero-categories--photos .home-hero-category-copy,
body#top.page-product-listing .catalogue-category-nav--photos .catalogue-category-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 8px clamp(3px, .55vw, 9px);
}
body#top.page-home .home-hero-categories--photos > a > .home-hero-category-photo,
body#top.page-product-listing .catalogue-category-nav--photos > a > .catalogue-category-photo {
    position: relative;
    justify-self: stretch;
    width: 100%;
    margin: 0;
    min-width: 0;
    background: #efebe3;
}
body#top.page-home .home-hero-category-photo img,
body#top.page-product-listing .catalogue-category-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 900px) {
    body#top.page-home .home-hero-categories--photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    body#top.page-home .home-intro--atelier .home-hero-categories--photos > a,
    body#top.page-product-listing .catalogue-category-nav--photos > a[data-catalogue-category] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        min-height: 0;
        text-align: center;
    }
    body#top.page-home .home-hero-categories--photos > a > .home-hero-category-photo,
    body#top.page-product-listing .catalogue-category-nav--photos > a > .catalogue-category-photo {
        grid-row: 1;
        aspect-ratio: 1.15;
    }
    body#top.page-home .home-hero-categories--photos .home-hero-category-copy,
    body#top.page-product-listing .catalogue-category-nav--photos .catalogue-category-copy {
        gap: 2px;
        padding: 6px 3px 8px;
    }
}

body#top.page-product-listing .catalogue-category-nav--photos {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

body#top.page-product-listing .catalogue-category-nav--photos > a[data-catalogue-category] {
    width: auto;
    min-width: 0;
    border: 1px solid #929b8d;
    border-radius: 7px;
    background: #faf8f4;
    color: #104a35;
    box-shadow: none;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    text-decoration: none;
}

body#top.page-product-listing .catalogue-category-nav--photos > a::after {
    content: none;
}

body#top.page-product-listing .catalogue-category-nav--photos .catalogue-category-name {
    font-size: clamp(12px, 1.17vw, 17px);
}

html:not(:lang(en)) .catalogue-category-nav--photos .catalogue-category-name > span {
    white-space: nowrap;
}

body#top.page-product-listing .catalogue-category-nav--photos > a[aria-current="page"] {
    background: #e7f0e9;
    border-color: #287453;
    box-shadow: 0 0 0 1px #287453;
}

body#top.page-product-listing .catalogue-category-nav--photos > a:focus-visible {
    outline: 2px solid #287453;
    outline-offset: 2px;
}

@media (hover: hover) {
    body#top.page-product-listing .catalogue-category-nav--photos > a:hover {
        background: #edf2e9;
        border-color: #287453;
    }
}

@media (max-width: 900px) {
    body#top.page-product-listing .catalogue-category-nav--photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    body#top.page-product-listing .catalogue-category-nav--photos .catalogue-category-name {
        font-size: clamp(13px, 3.65vw, 17px);
    }
}
