/* Natural-size frames in one continuous horizontal gallery. */
.single-yds_project main > article.wrap:has(.yds-natural-gallery){max-width:1800px;padding-inline:4vw}
.single-yds_project .gallery-track.yds-natural-gallery{
 display:flex;flex-flow:row nowrap;align-items:flex-start;gap:12px;
 grid-template-rows:none;grid-auto-columns:auto;
 overflow-x:scroll;overflow-y:hidden;padding:0 0 16px;
 scroll-snap-type:x proximity;overscroll-behavior-x:contain;
 scrollbar-width:auto;scrollbar-color:#a5a99f #343831;
}
.single-yds_project .gallery-track.yds-natural-gallery>a{
 display:block;flex:0 0 auto;width:auto;max-width:none;min-width:0;
 height:auto;margin:0;padding:0;background:transparent;scroll-snap-align:start;
}
.single-yds_project .gallery-track.yds-natural-gallery img{
 display:block;width:auto;max-width:none;height:clamp(300px,42vw,540px);
 aspect-ratio:auto;object-fit:contain;
}
.single-yds_project .gallery-track.yds-natural-gallery::-webkit-scrollbar{height:12px}
.single-yds_project .gallery-track.yds-natural-gallery::-webkit-scrollbar-track{background:#343831;border-radius:8px}
.single-yds_project .gallery-track.yds-natural-gallery::-webkit-scrollbar-thumb{background:#a5a99f;border:2px solid #343831;border-radius:8px}
@media(max-width:700px){
 .single-yds_project main > article.wrap:has(.yds-natural-gallery){padding-inline:20px}
 .single-yds_project .gallery-track.yds-natural-gallery img{height:clamp(240px,68vw,360px)}
}

/* Reserve each full photo's frame before lazy placeholders or images decode. */
.single-yds_project .gallery-track.yds-natural-gallery {--yds-height:clamp(300px,42vw,540px)}
.single-yds_project .gallery-track.yds-natural-gallery>a {
 width:calc(var(--yds-height) * var(--yds-ratio,1.5));height:var(--yds-height);
}
.single-yds_project .gallery-track.yds-natural-gallery img {
 width:100%;height:100%;opacity:1!important;visibility:visible!important;
}
@media(max-width:700px){
 .single-yds_project .gallery-track.yds-natural-gallery {--yds-height:clamp(240px,68vw,360px)}
}

/* Disable snapping only during continuous movement; manual scrolling is retained. */
.single-yds_project .gallery-track.yds-auto-moving{scroll-snap-type:none;scroll-behavior:auto}
.single-yds_project .gallery-controls .yds-gallery-play{width:auto;min-width:64px;padding-inline:14px;font-size:14px}
