/* Aligned internal story rows; homepage, client galleries and image contents stay unchanged. */
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter{display:block;padding-bottom:32px}
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-copy{position:static;max-width:780px;padding:0;margin:0 0 20px}
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-copy:empty{display:none;margin:0}
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-copy h2{margin-block:8px 12px}
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-images.story-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:none;width:100%;margin:0;align-items:start}
body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo{min-width:0;margin:0;grid-column:auto}
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-images.story-gallery>.story-photo:only-child{grid-column:1/-1;width:min(100%,680px);justify-self:center}
body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo .zoom.frame-polaroid{width:100%;padding:6px!important;border:0!important;box-shadow:0 2px 8px #0002!important;transform:none!important}
body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo .zoom img{display:block;width:100%;height:auto;aspect-ratio:auto 3/2;object-fit:contain;transform:none}
body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo figcaption{margin-top:5px;gap:8px;line-height:1.5;padding-bottom:2px}
body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-images.photo-rows151{position:relative;display:block;height:var(--photo-rows151-height)}
body.theme125:is([data-page="curated"],[data-page="published"]) .photo-rows151>.photo-rows151-item{position:absolute;left:var(--photo-rows151-left);top:var(--photo-rows151-top);width:var(--photo-rows151-width);max-width:none}
@media(max-width:1099px){body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-images.story-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
 body.theme125:is([data-page="curated"],[data-page="published"]) .chapter-images.story-gallery{display:grid;grid-template-columns:minmax(0,1fr);height:auto;gap:12px}
 body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo{position:static;width:100%}
 body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo .zoom.frame-polaroid{padding:5px!important}
 body.theme125:is([data-page="curated"],[data-page="published"]) .story-photo.portrait figcaption{flex-direction:row;gap:8px}
}

/* Shared photographic mount on the homepage; titles remain below ordinary stories. */
body.theme125[data-page="home"] #story-grid.story-grid{width:100%;margin:0;max-width:none;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
body.theme125[data-page="home"] #story-grid .story-card,body.theme125[data-page="home"] #story-grid .story-card:nth-child(even),body.theme125[data-page="home"] #story-grid .story-card:only-child{margin:0;padding:0;min-width:0;max-width:none;grid-column:auto}
body.theme125[data-page="home"] #story-grid .card-image,body.theme125[data-page="home"] #story-grid .story-card:nth-child(even) .card-image{padding:8px!important;border:0!important;background:var(--paper,#f0ece4)!important;box-shadow:0 3px 8px #0002!important;transform:none!important;width:100%;height:auto;aspect-ratio:auto;overflow:visible}
body.theme125[data-page="home"] #story-grid .card-image img{display:block;width:100%;height:auto;object-fit:contain;transform:none!important;max-height:none;aspect-ratio:auto}
body.theme125[data-page="home"] #story-grid .card-image::before,body.theme125[data-page="home"] #story-grid .card-image::after{content:none!important;display:none!important}
body.theme125[data-page="home"] #story-grid .card-title{position:static;display:flex;align-items:start;justify-content:space-between;gap:10px;padding:0;margin:6px 0 4px}
body.theme125[data-page="home"] #story-grid .card-title h3{color:var(--ink);font:400 clamp(1.15rem,1.6vw,1.4rem)/1.3 var(--serif);margin:0;text-align:left;overflow-wrap:anywhere}
body.theme125[data-page="home"] #story-grid .card-count130{display:none!important}
body.theme125[data-page="home"] #story-grid .card-details130{align-self:center}
body.theme125[data-page="home"] #story-grid .story-card p{font-size:13px;line-height:1.6;margin:0 0 4px}
body.theme125[data-page="home"] #story-grid.photo-rows151{position:relative;display:block;height:var(--photo-rows151-height)}
body.theme125[data-page="home"] #story-grid.photo-rows151>.photo-rows151-item{position:absolute;left:var(--photo-rows151-left);top:var(--photo-rows151-top);width:var(--photo-rows151-width)}
/* Remove only presentation counters; photographer-authored text is untouched. */
body.theme125:is([data-page="curated"],[data-page="published"]) .story-heading-bottom>.micro,
body.theme125:is([data-page="curated"],[data-page="published"]) :is(.story-photo,.story-cover)>figcaption>span:first-child{display:none}
body.theme125:is([data-page="curated"],[data-page="published"]) :is(.story-photo,.story-cover)>figcaption:has(>span:last-child:empty){display:none}
@media(min-width:768px) and (max-width:1099px){body.theme125[data-page="home"] #story-grid.story-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){body.theme125[data-page="home"] #story-grid.story-grid{display:grid;grid-template-columns:minmax(0,1fr);height:auto;gap:14px}body.theme125[data-page="home"] #story-grid .story-card{position:static;width:100%}}

/* One stable image viewport per row prevents density-rounding feedback and steps. */
@media(min-width:768px){
 body.theme125 .photo-rows151>.photo-rows151-item .zoom img,
 body.theme125[data-page="home"] #story-grid.photo-rows151>.photo-rows151-item .card-image img{height:var(--photo-rows153-photoheight);object-fit:contain}
}
