.news-reading {
    --news-ink: #29251d;
    --news-paper: #f1e7d2;
    --news-muted: #786c58;
    min-height: 70vh;
    padding: 28px clamp(20px, 5vw, 76px) 88px;
    color: var(--news-ink);
    background:
        radial-gradient(circle at 15% 12%, rgba(137, 148, 111, .14), transparent 25%),
        linear-gradient(180deg, #f8f4eb, #eee6d7);
}

.news-reading__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: min(100%, 1240px);
    margin: 0 auto 34px;
    color: var(--news-muted);
    font: 500 12px/1.5 'Kanit', sans-serif;
}

.news-reading__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.news-reading__breadcrumb a:hover {
    color: #a96346;
}

.news-reader {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.news-reader__image-wrap {
    display: grid;
    width: 100%;
    height: min(64svh, 720px);
    min-height: 320px;
    margin: 0;
    place-items: center;
    overflow: hidden;
    background: #e7e1d8;
}

.news-reader__image,
.news-reader__image-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.news-reader__image {
    object-fit: contain;
    object-position: center;
}

.news-reader__image-fallback {
    background: radial-gradient(circle at 70% 22%, #a96346, transparent 34%), linear-gradient(145deg, #566044, #29251d 74%);
}

.news-reader__page {
    min-width: 0;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(104, 85, 56, .12);
    background:
        repeating-linear-gradient(0deg, rgba(105, 86, 58, .025) 0 1px, transparent 1px 5px),
        #fbf8f0;
    box-shadow: 0 20px 60px rgba(45, 37, 24, .12), inset 7px 0 18px rgba(107, 82, 45, .06);
}

.news-reader__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--news-muted);
    font: 500 12px/1.5 'Kanit', sans-serif;
}

.news-reader__page h1 {
    margin: 25px 0 12px;
    color: var(--news-ink);
    font: 500 clamp(26px, 3.2vw, 42px)/1.35 'Kanit', sans-serif;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.news-reader__byline {
    margin: 0 0 30px;
    color: var(--news-muted);
    font: 400 13px/1.6 'Kanit', sans-serif;
}

.news-reader__byline span {
    padding: 0 5px;
}

.news-reader__body {
    color: #403a30;
    font: 400 16px/2 'Kanit', sans-serif;
    overflow-wrap: anywhere;
    white-space: normal;
}

.news-reader__section-label {
    display: block;
    margin: 0 0 12px;
    color: var(--news-muted);
    font: 500 11px/1.4 'Kanit', sans-serif;
    letter-spacing: .12em;
}

.news-reader__link {
    display: grid;
    gap: 4px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(104, 85, 56, .18);
}

.news-reader__link a {
    color: #805c37;
    font: 400 14px/1.7 'Kanit', sans-serif;
    overflow-wrap: anywhere;
}

.news-reader__gallery {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(104, 85, 56, .18);
}

.news-reader__images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.news-reader__images > button {
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(104, 85, 56, .18);
    background: #e6d8ba;
    cursor: zoom-in;
}

.news-reader__images > button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.news-reader__images > button:hover img {
    transform: scale(1.04);
}

.news-reader__lightbox {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(25, 22, 18, .94);
    cursor: zoom-out;
}

.news-reader__lightbox img {
    max-width: min(100%, 1200px);
    max-height: 90vh;
    object-fit: contain;
}

.news-reader__lightbox button {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    color: white;
    background: rgba(255, 255, 255, .12);
    font-size: 27px;
    cursor: pointer;
}

.news-reader__back {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(104, 85, 56, .18);
    color: #805c37;
    font: 500 13px/1.5 'Kanit', sans-serif;
    text-decoration: none;
}

.news-reader__back:hover {
    color: #a96346;
}

@media (max-width: 760px) {
    .news-reading {
        padding: 22px 20px 64px;
    }

    .news-reader {
        grid-template-columns: minmax(0, 1fr);
        gap: 38px;
    }

    .news-reader__image-wrap {
        height: min(52svh, 520px);
        min-height: 240px;
    }

    .news-reader__page {
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-reader__images > button img {
        transition-duration: .01ms;
    }
}

.news-book-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 58px) clamp(18px, 3.8vw, 54px);
    align-items: start;
}

.news-book-grid__item {
    width: min(100%, 350px);
    justify-self: center;
}

.news-book-card {
    --news-book-tilt: 0deg;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: .672 / 1;
    color: #fff8eb;
    text-decoration: none;
    transform: perspective(1200px) rotateZ(var(--news-book-tilt)) rotateY(var(--news-book-yaw, 0deg));
    transform-style: preserve-3d;
    transition: transform 620ms cubic-bezier(.2, .78, .2, 1), filter 300ms ease;
    will-change: transform;
}

.news-book-grid__item:nth-child(3n + 1) .news-book-card {
    --news-book-tilt: -2.6deg;
    --news-book-yaw: -3deg;
}

.news-book-grid__item:nth-child(3n) .news-book-card {
    --news-book-tilt: 2.6deg;
    --news-book-yaw: 3deg;
}

.news-book-card:hover,
.news-book-card:focus-visible {
    z-index: 4;
    filter: drop-shadow(0 20px 16px rgba(41, 37, 29, .2));
    transform: perspective(1200px) translateY(-10px) rotateZ(0deg) rotateY(0deg) scale(1.025);
}

.news-book-card:focus-visible {
    outline: 2px solid #a96346;
    outline-offset: 8px;
}

.news-book-card__edge {
    position: absolute;
    z-index: -1;
    inset: 1.7% 1.5% 1.7% 4%;
    border: 1px solid rgba(84, 68, 45, .28);
    border-radius: 2px 6px 6px 2px;
    background:
        repeating-linear-gradient(0deg, rgba(105, 86, 58, .12) 0 1px, transparent 1px 3px),
        linear-gradient(90deg, #cfc1a4, #f2e8d2 14%, #e7dac0 87%, #cbb894);
    box-shadow: 7px 5px 16px rgba(31, 23, 13, .26);
    transform: translate3d(8px, 2px, -12px);
}

.news-book-card__image {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(238, 224, 194, .24);
    border-radius: 3px 7px 7px 3px;
    background: #5f684f;
    box-shadow: 0 25px 38px rgba(24, 18, 10, .38), inset -12px 0 18px rgba(0, 0, 0, .16), inset 4px 0 9px rgba(255, 255, 255, .12);
    transform: translateZ(12px);
}

.news-book-card__image::before {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 6%;
    background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(255, 255, 255, .08) 42%, transparent);
    content: '';
    pointer-events: none;
}

.news-book-card__image > img,
.news-book-card__fallback,
.news-book-card__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.news-book-card__image > img {
    object-fit: cover;
    transition: transform 800ms cubic-bezier(.2, .78, .2, 1);
}

.news-book-card:hover .news-book-card__image > img {
    transform: scale(1.035);
}

.news-book-card__fallback {
    background: radial-gradient(circle at 72% 24%, #a96346, transparent 32%), linear-gradient(145deg, #89946f, #29251d 74%);
}

.news-book-card__shade {
    background: linear-gradient(180deg, rgba(18, 17, 14, .1), rgba(18, 17, 14, .14) 30%, rgba(18, 17, 14, .82));
}

.news-book-card__copy {
    position: absolute;
    z-index: 1;
    inset: 7% 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

.news-book-card__kicker,
.news-book-card__footer {
    max-width: 100%;
    font: 500 clamp(8px, .75vw, 11px)/1.5 'Kanit', sans-serif;
    letter-spacing: .12em;
    overflow-wrap: anywhere;
}

.news-book-card__kicker {
    padding: 5px 9px;
    border: 1px solid rgba(255, 248, 235, .62);
    background: rgba(41, 37, 29, .26);
    backdrop-filter: blur(8px);
}

.news-book-card__title {
    display: -webkit-box;
    overflow: hidden;
    max-height: 5.2em;
    margin: auto 0;
    font: 500 clamp(20px, 2.4vw, 36px)/1.16 'Kanit', sans-serif;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.news-book-card__footer {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 248, 235, .62);
    font-size: clamp(8px, .68vw, 10px);
    font-weight: 400;
}

.news-book-card__flag {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 12px;
    padding: 5px 9px;
    color: #fff8eb;
    background: #a96346;
    font: 500 10px/1.3 'Kanit', sans-serif;
}

@media (max-width: 850px) {
    .news-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px;
    }

    .news-book-grid__item:nth-child(n) .news-book-card {
        --news-book-tilt: 0deg;
        --news-book-yaw: 0deg;
    }
}

@media (max-width: 520px) {
    .news-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 14px;
    }

    .news-book-card__title {
        font-size: clamp(16px, 5vw, 22px);
        line-height: 1.22;
    }

    .news-book-card__kicker {
        padding: 3px 6px;
        font-size: 8px;
    }

    .news-book-card__footer {
        padding-top: 7px;
        font-size: 7px;
        letter-spacing: .04em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-book-card,
    .news-book-card__image > img {
        transition-duration: .01ms;
    }
}