/* One landscape ratio for listing photography, independent of viewport width. */
.legacy-home .legacy-cards img,
.legacy-slider .legacy-slides img,
.listing-cover img,
.photo-stage img,
.photo-thumbnails img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    object-fit: cover;
}
.legacy-slides a:has(img[hidden]) { aspect-ratio: 4 / 3; }
.legacy-home > .legacy-slider { width: 100%; }
.legacy-slider .legacy-slides { border-width: 0; }
.legacy-slider .legacy-slides a { min-height: 0; }
.site-header + .legacy-slider { margin-block: .8rem 1rem; }
.site-header + .legacy-slider .legacy-slides { border-radius: .8rem; }
.site-header + .legacy-slider .legacy-slides span { font-size: clamp(1rem, 2.4vw, 1.8rem); }
.photo-stage {
    max-width: 48rem;
    margin-inline: auto;
}
.listing-crop { min-inline-size: 0; }
.listing-crop input[type=file] { width: 100%; }
.listing-crop canvas {
    display: block;
    width: min(100%, 30rem);
    height: auto;
    margin-block: .7rem;
    border-radius: .55rem;
}
.listing-crop-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
    gap: .65rem;
    max-width: 30rem;
    margin-block-end: .65rem;
}
.listing-crop-controls label { display: grid; gap: .2rem; }
.listing-crop-controls input { inline-size: 100%; margin: 0; }
.listing-crop [data-crop-selected] .quiet-button { margin-block-start: .3rem; }

/* Keep the touch layout on tablets, including wide landscape screens. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    [data-legacy-slider] #site-gallery img,
    [data-legacy-slider] #site-gallery a:has(img[hidden]) {
        aspect-ratio: 16 / 9;
    }
    [data-legacy-slider] #site-gallery img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}
