/* Gallery-only refinements; the selected Collage V1 keeps its original styles. */
[data-client-gallery]{--image-height-cap:680px}
[data-client-gallery] .ref-row .ref-work:not(.detail-work){max-width:min(var(--cap),calc(var(--image-height-cap) * var(--image-aspect)))}
[data-client-gallery] .ref-row .ref-work:not(.detail-work) .ref-image img{width:100%;height:auto;max-width:100%}
[data-client-gallery] .detail-work[data-detail-work="img_0001"]{margin-right:0}
/* Preserve an unobstructed keyboard outline and a comfortable mobile action target. */
[data-client-gallery] .ref-detail{min-height:44px}
@media(max-width:768px){[data-client-gallery]{--image-height-cap:560px}}
@media(max-width:600px){[data-client-gallery]{--image-height-cap:70svh}}
