/* One editorial row: generous cards, unhurried movement, reader controls. */
.story-carousel{--story-columns:3;--story-gap:30px}
.story-carousel-viewport{overflow:hidden;padding:5px 3px 10px;margin-inline:-3px;touch-action:pan-y}
.story-carousel-track{display:flex;gap:var(--story-gap);align-items:stretch}
.story-carousel .story-card{flex:0 0 calc((100% - (var(--story-columns) - 1)*var(--story-gap))/var(--story-columns));min-width:0;display:flex;flex-direction:column}
.story-carousel .story-art{flex:none}
.story-carousel .story-art img{width:100%;aspect-ratio:1.45;object-fit:cover}
.story-carousel .story-details{display:flex;flex-direction:column;flex:1;align-items:flex-start}
.story-carousel .story-details h3{font-size:clamp(25px,2.1vw,32px);line-height:1.17;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:3.51em}
.story-carousel .story-details p{font-size:14px;line-height:1.8;min-height:7.2em;margin-bottom:22px}
.story-carousel .story-details>.text-link{margin-top:auto}
.story-card .story-details>p.story-excerpt{display:block;-webkit-line-clamp:unset;-webkit-box-orient:initial;height:7.2em;min-height:7.2em;max-height:7.2em;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;-ms-overflow-style:none;line-height:1.8;padding-right:0;margin-bottom:12px;touch-action:pan-y}
.story-excerpt:focus-visible{outline:2px solid #785589;outline-offset:5px;border-radius:3px}
.excerpt-scroll-hint{display:block;visibility:hidden;min-height:18px;font:400 10px/1.8 var(--sans);color:#765c84;margin-bottom:18px}
.story-excerpt[data-overflow=true]+.excerpt-scroll-hint{visibility:visible}
.story-carousel-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px;padding-top:21px;border-top:1px solid #d7c9de}
.story-carousel-count{color:#695674;font-size:12px;letter-spacing:.25px;margin:0}
.story-carousel-controls{display:flex;gap:10px;align-items:center}
.story-carousel-controls button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:46px;min-height:46px;border:1px solid color-mix(in srgb,var(--bold-bg) 35%,var(--paper));border-radius:50%;background:var(--bold-wash);color:var(--bold-bg);font-size:20px;cursor:pointer}
.story-carousel-controls button:is(:hover,:focus-visible){background:color-mix(in srgb,var(--bold-bg) 12%,var(--paper));border-color:var(--bold-bg)}
.story-carousel-controls button:focus-visible{outline:2px solid var(--bold-bg);outline-offset:4px}
.story-carousel-controls button[data-carousel-toggle]{border-radius:30px;font:500 12px var(--sans);padding:10px 18px;min-width:104px}
.carousel-screenreader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.story-carousel:not([data-ready]) .story-carousel-footer{display:none}
.gallery-carousel .gallery-carousel-item{display:block;border-radius:16px;overflow:hidden}
.gallery-carousel .gallery-carousel-item img{display:block;width:100%;height:300px;object-fit:cover}
.gallery-carousel-item a{position:relative;display:block}
.gallery-carousel-item a::after{content:'View full image ↗';position:absolute;bottom:13px;right:13px;padding:9px 13px;border-radius:30px;background:#351342e8;color:#fffaf5;font:400 11px/1.4 var(--sans);opacity:0;transition:opacity .18s}
.gallery-carousel-item a:hover::after,.gallery-carousel-item a:focus-visible::after{opacity:1}
.gallery-hover-preview,.gallery-zoom-dialog{background:linear-gradient(135deg,#f1e7f5,#fff8ec);border:1px solid #a58ab5;border-radius:18px;padding:16px 22px 20px;color:#351342;box-shadow:0 18px 65px #2b123f55}
.gallery-hover-preview{position:fixed;z-index:1000;left:50%;top:50%;transform:translate(-50%,-50%);width:min(740px,calc(100vw - 64px));max-height:calc(100dvh - 36px);overflow:auto}
.gallery-hover-preview[hidden]{display:none}
.gallery-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:8px}
.gallery-preview-heading .eyebrow{font-size:11px}
.gallery-preview-heading .icon-button{flex:none;font-size:29px;width:44px;height:44px}
.gallery-preview-heading h2{font:400 27px/1.2 var(--serif);margin:0}
.gallery-preview-pin{display:block;width:100%;border:0;padding:0;background:transparent;border-radius:10px;cursor:zoom-in}
.gallery-hover-preview img,.gallery-zoom-dialog>img{display:block;width:100%;height:auto;max-height:64dvh;object-fit:contain;border-radius:9px}
.gallery-preview-caption{font:400 12px/1.7 var(--sans);margin:14px 0 8px;color:#695174}
.gallery-preview-hint{display:block;font:400 11px/1.6 var(--sans);color:#80628b}
.gallery-zoom-dialog{width:min(940px,calc(100vw - 30px));max-height:94dvh;margin:auto;overflow:auto}
.gallery-zoom-dialog::backdrop{background:#21102bd1;backdrop-filter:blur(5px)}
.gallery-zoom-dialog>img{max-height:68dvh}
.gallery-zoom-dialog>.text-link{font-size:12px;margin-top:10px}
@media(hover:none){.gallery-carousel-item a::after{opacity:1}}
@media(max-width:680px){.gallery-zoom-dialog{padding:12px 16px 20px}.gallery-zoom-dialog>img{max-height:65dvh}.gallery-preview-heading h2{font-size:24px}}
@media(max-width:1000px){.gallery-carousel .gallery-carousel-item img{height:280px}}
@media(max-width:680px){.gallery-carousel .gallery-carousel-item img{height:320px}}
@media(max-width:1000px){.story-carousel{--story-columns:2;--story-gap:24px}.story-carousel .story-details h3{font-size:29px}}
@media(max-width:680px){.story-carousel{--story-columns:1;--story-gap:22px}.story-carousel .story-art img{aspect-ratio:1.35}.story-carousel .story-details h3{font-size:31px;min-height:4.68em;-webkit-line-clamp:4}.story-carousel-footer{margin-top:20px;gap:12px;flex-wrap:wrap}.story-carousel-controls{gap:8px}.story-carousel-controls button[data-carousel-toggle]{min-width:96px;padding-inline:13px}.story-carousel-count{font-size:11px}}

/* Programmatic reading uses its own steady pace; manual scrolling stays native. */
.story-card .story-details>p.story-excerpt{scroll-behavior:auto}

/* Hide only the scrollbar chrome; retain hover, wheel, touch and keyboard scrolling. */
.story-card .story-details>p.story-excerpt::-webkit-scrollbar{display:none;width:0;height:0}

.gallery-preview-heading>.eyebrow,.gallery-preview-heading>h2{min-width:0}
.gallery-preview-heading .gallery-viewer-actions{gap:4px;margin-left:auto}
.gallery-preview-heading .gallery-viewer-actions .icon-button{font-size:24px}
.gallery-preview-action-status{font:14px/1.6 var(--sans);color:var(--muted);margin-top:10px}
.gallery-preview-action-status:empty{display:none}

/* Homepage story actions share the category row, leaving the artwork clear. */
.home-stories .story-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0}
.home-stories .story-card-meta>.eyebrow{min-width:0;margin:0;border:1px solid var(--bold-bg);border-radius:30px;max-width:100%}
.home-stories .story-card-actions{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
.home-stories .story-card-actions button{position:static;display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-width:40px;padding:0;border:1px solid var(--line,#b69bc4);border-radius:50%;background:transparent;color:var(--plum,#351342);cursor:pointer;box-shadow:none}
.home-stories .story-card-actions button:hover{background:#ede3f1}
.home-stories .story-card-actions button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.home-stories .story-card-actions .icon{width:19px;height:19px}
.home-stories .story-card-actions .save-label{display:none}
