/* Editorial photographs only: brand marks, icons and map tiles keep their own shapes. */
:root{--ramble-photo-radius:12px;--ramble-photo-shadow:0 7px 20px #173d321a,0 1px 4px #173d3212}
.elementor-widget-theme-post-featured-image img,.ramble-card img,.elementor-post__thumbnail img,.rwg-thumb img,.rj-story img,.wp-block-image img{border-radius:var(--ramble-photo-radius);box-shadow:var(--ramble-photo-shadow)}
.elementor-widget-theme-post-featured-image img{box-sizing:border-box;border:8px solid #fff;max-width:100%}
.ramble-photo-frame{border-radius:10px}
.ramble-photo-frame img{border-radius:5px}
.ipcom-directory-cover{border-radius:10px 10px 0 0}
.ipcom-directory-profile-gallery figure,.ipcom-directory-gallery figure,.ipcom-story-gallery figure{box-shadow:var(--ramble-photo-shadow);border-radius:12px}
.ipcom-story-gallery figure{padding:8px;background:#fff;border:1px solid #d9ded7}
.ipcom-story-gallery img{border:0;border-radius:7px;box-shadow:none}
.single-post .wp-block-gallery.has-nested-images,.single-post .gallery{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:18px!important;align-items:start}
.single-post .wp-block-gallery figure.wp-block-image,.single-post .gallery .gallery-item{box-sizing:border-box;width:auto!important;max-width:none!important;margin:0!important;min-width:0;padding:8px;background:#fff;border:1px solid #d9ded7;border-radius:12px;box-shadow:var(--ramble-photo-shadow);display:block}
.single-post .wp-block-gallery figure.wp-block-image img,.single-post .gallery .gallery-item img{box-sizing:border-box;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;border:0;border-radius:7px;box-shadow:none}
.single-post .wp-block-gallery figure.wp-block-image figcaption,.single-post .gallery .gallery-caption{position:static!important;box-sizing:border-box;max-height:none!important;background:none!important;color:#173d32!important;font:12px/1.5 Arial,sans-serif!important;padding:10px 2px 2px!important;overflow:visible!important;overflow-wrap:anywhere}
.ramble-article-photo-link{display:block;max-width:100%;cursor:zoom-in;border-radius:12px}
.ramble-article-photo-link:focus-visible{outline:3px solid #a08045;outline-offset:4px}
.ramble-article-lightbox{box-sizing:border-box;width:min(1040px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:18px;margin:auto;border:1px solid #c5cbbf;border-radius:14px;background:#f6f2e9;color:#173d32;box-shadow:0 24px 90px #0006;overflow:auto}
.ramble-article-lightbox::backdrop{background:#102820df}
.ramble-article-viewer-toolbar,.ramble-article-viewer-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.ramble-article-lightbox button{min-height:44px;padding:10px 16px;border:1px solid #173d32;border-radius:6px;background:#173d32;color:#fff;font:inherit;cursor:pointer}
.ramble-article-lightbox button:hover,.ramble-article-lightbox button:focus{background:#285d4d;color:#fff;border-color:#173d32}
.ramble-article-lightbox a{color:#173d32;text-decoration:underline}
.ramble-article-lightbox button:focus-visible,.ramble-article-lightbox a:focus-visible{outline:3px solid #a08045;outline-offset:3px}
.ramble-article-lightbox img{display:block;width:100%;height:60vh;height:60dvh;object-fit:contain;margin:16px 0;border:0;border-radius:6px;box-shadow:none}
.ramble-article-viewer-caption{font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.ramble-article-viewer-controls[hidden],.ramble-article-lightbox [hidden]{display:none!important}
.ramble-article-photo-open{overflow:hidden}
@media(max-width:480px){.single-post .wp-block-gallery.has-nested-images,.single-post .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}.elementor-widget-theme-post-featured-image img{border-width:6px}.ramble-article-lightbox{padding:12px}.ramble-article-lightbox img{height:50dvh}.ramble-article-viewer-controls{gap:10px}.ramble-article-viewer-controls a{width:100%;order:3;text-align:center}}

.ramble-county-card-image{border-radius:12px;overflow:hidden;box-shadow:var(--ramble-photo-shadow)}
.ramble-county-story-card .ramble-county-card-image img{border-radius:12px}

/* Compact article previews; the modal keeps the uncropped photograph. */
.single-post .elementor-widget-theme-post-featured-image>.ramble-article-photo-link{max-width:640px;margin-inline:auto}
.single-post .elementor-widget-theme-post-featured-image img{width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover;object-position:50% 50%;max-width:640px}
.single-post .wp-block-image:not(.is-style-original-ratio) img,.single-post .gallery .gallery-item img,.single-post .wp-block-gallery figure.wp-block-image img{aspect-ratio:16/9!important;object-fit:cover}
.single-post .wp-block-gallery img.ramble-photo-focus-lower{object-position:50% 70%}
.ramble-photo-preview-note{font-size:12px!important;line-height:1.5!important;color:#5b6b62;margin:9px 0 14px!important}
