@font-face {
    font-family: "Leather Text";
    src: url("LXGWZhenKai-Leather.woff2?v=2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.leather-gallery {
    padding: 38px 0 36px;
    color: #454e57;
    font-family: "Leather Text", "Kaiti SC", STKaiti, KaiTi, serif;
    letter-spacing: .2px;
}

.leather-gallery h1 {
    margin: 0;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.carousel {
    position: relative;
    margin-top: 30px;
    outline: none;
    touch-action: pan-y;
    user-select: none;
}

.carousel-viewport {
    margin: 0 28px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel.is-ready .carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform .42s cubic-bezier(.22, .75, .25, 1);
    will-change: transform;
}

.carousel-slide {
    box-sizing: border-box;
    flex: 0 0 33.333333%;
    min-width: 0;
    margin: 0;
    padding: 0 7px;
    scroll-snap-align: start;
    text-align: center;
}

.carousel-slide img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 4px solid #fff;
    background: #f4f4f2;
    object-fit: cover;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .25);
    -webkit-user-drag: none;
}

.carousel-slide figcaption {
    margin-top: 12px;
    line-height: 1.35;
}

.carousel-slide figcaption span,
.carousel-slide figcaption small {
    display: block;
}

.carousel-slide figcaption span {
    font-size: 16px;
}

.carousel-slide figcaption small {
    margin-top: 2px;
    color: #7f8991;
    font-size: 13px;
}

.carousel-control {
    position: absolute;
    top: 38%;
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0 0 3px;
    border: 1px solid #d8dadc;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    color: #454e57;
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.carousel.is-ready .carousel-control {
    display: flex;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .15);
    transform: translateY(-50%) scale(1.06);
}

.carousel-control:focus-visible {
    outline: 2px solid #53c498;
    outline-offset: 2px;
}

.carousel-prev {
    left: -2px;
}

.carousel-next {
    right: -2px;
}

.carousel-dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 10px;
    margin-top: 23px;
}

.carousel.is-ready .carousel-dots {
    display: flex;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c6cbce;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
    background: #7d878e;
    transform: scale(1.2);
}

.carousel-dot.is-active {
    background: #53c498;
}

.category-recents {
    padding: 34px 0 22px;
    border-top: 1px solid #d8dadc;
    color: #454e57;
    font-family: "Leather Text", "Kaiti SC", STKaiti, KaiTi, serif;
}

.category-recents h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.category-recents .post-list {
    padding-top: 24px;
}

.category-recents-empty {
    margin: 24px 0 0;
    color: #7f8991;
    text-align: center;
}

html.font-full-ready .category-recents {
    font-family: "LXGW ZhenKai Full", STKaiti, KaiTi, serif;
}

@media screen and (max-width: 600px) {
    .leather-gallery {
        padding-top: 30px;
    }

    .leather-gallery h1,
    .category-recents h2 {
        font-size: 19px;
    }

    .carousel {
        margin-top: 26px;
    }

    .carousel-viewport {
        margin: 0 34px;
    }

    .carousel-slide {
        flex-basis: 100%;
        padding: 0 5px;
    }

    .carousel-prev {
        left: 0;
    }

    .carousel-next {
        right: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .leather-gallery,
    .category-recents {
        color: #f0f2f4;
    }

    .category-recents {
        border-top-color: #4b5359;
    }

    .carousel-slide figcaption small,
    .category-recents-empty {
        color: #a9b3bc;
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track,
    .carousel-control,
    .carousel-dot {
        transition: none;
    }
}
