:root {
    --font-sans:
        -apple-system, BlinkMacSystemFont,   
        'Segoe UI', Roboto,                  
        'PingFang SC', 'Microsoft YaHei',     
        'Noto Sans SC',                       
        sans-serif;                           

    --font-serif:
        'Courgette',                          
        'Songti SC', 'STSong',               
        SimSun, 'NSimSun',                   
        'Noto Serif SC',                      
        serif;                                
}

* {
    margin: 0;
    padding: 0;
    font-size: 1vmin;
}

div {
    display: flex;
}

p {
    user-select: none;
}

body {
    width: 100%;
    background-color: #1a1520;
    font-family: var(--font-sans);
}

.empty {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80rem;
    margin: 10rem 0;
    background-color: #faf6f0;
    font-family: var(--font-serif);
    font-size: 10rem;
    color: #2d2535;
}

.wapper {
    position: relative;
    width: 100%;
}

.container {
    position: sticky;
    top: 0;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #d4a574;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(#b9afc4 1px, transparent 1px),
        linear-gradient(90deg, #b9afc4 1px, transparent 1px);
    background-size: 3rem 3rem;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
}

.cardsbox_card {
    justify-content: center;
    align-items: center;
    width: 80rem;
    height: 80rem;
    background-color: #f5efe7;
    margin-right: 50rem;
    font-family: var(--font-serif);
    font-size: 5rem;
    color: #2d2535;
    flex-shrink: 0;
    z-index: 1;
}

.cardsbox_card:first-child {
    margin-left: calc((100vw - 80rem) / 2);
}

.cardsbox_card:last-child {
    margin-right: calc((100vw - 80rem) / 2);
}

.cardsbox_card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
