/* EDITORIAL_INTEGRATION_V1: responsive shelves and intrinsic article photography. */
.ed-panel.eis-panel{min-width:0;padding:clamp(14px,2vw,28px)}
.eis-panel .eis-head h1,.eis-panel .eis-head h2{margin:6px 0;font-size:clamp(24px,3vw,38px);line-height:1.16;letter-spacing:-.025em}
.eis-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.eis-panel .eis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.eis-panel .eis-count-1{grid-template-columns:minmax(0,1fr)}
.eis-panel .eis-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.eis-panel .eis-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.eis-panel .eis-card{padding:0;gap:0;overflow:hidden;min-width:0;display:flex;flex-direction:column;border-radius:10px}
.eis-panel .eis-media{display:block;aspect-ratio:16/9;overflow:hidden;background:rgba(128,128,128,.09);min-width:0}
.eis-panel .eis-media>img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center;aspect-ratio:auto}
.eis-panel .eis-text-cover{display:grid;height:100%;place-items:center;color:inherit;font-weight:600;font-size:14px}
.eis-panel .eis-copy{padding:14px;display:flex;flex-direction:column;gap:9px;flex:1;min-width:0}
.eis-panel .eis-copy small,.eis-panel .eis-copy time{font-size:11px;font-weight:700;line-height:1.45;letter-spacing:.03em;text-transform:uppercase;color:var(--ed-accent,currentColor)}
.eis-panel .eis-copy time{display:inline;font-family:inherit}
.eis-panel .eis-card h3{font-size:clamp(16px,1.4vw,21px);line-height:1.25;margin:0}
.eis-panel .eis-card p{font-size:14px;line-height:1.5;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.eis-panel .eis-copy .ed-read{margin-top:auto;padding-top:3px}
@media(max-width:900px){.eis-panel .eis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.eis-panel .eis-count-1{grid-template-columns:minmax(0,1fr)}}
@media(max-width:520px){.eis-panel .eis-grid{grid-template-columns:1fr}.eis-panel .eis-copy{padding:13px}.eis-links{gap:6px}}
/* Full article photos: intrinsic dimensions, no fixed square or vertical stretching. */
article.aehea-news-document figure.aehea-news-article-media,
article.ed-document figure.ed-figure,
article.hw-article figure.editorial-extra-photo,
article.gear-article figure.editorial-extra-photo{display:block;max-width:100%;width:auto;height:auto;min-height:0;max-height:none;aspect-ratio:auto;overflow:visible}
article.ed-document figure.ed-figure .ed-picture,
article.ed-document>.ed-picture{display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;overflow:hidden}
article.aehea-news-document figure.aehea-news-article-media>img,
article.aehea-news-document img.aehea-news-article-image,
article.ed-document figure.ed-figure img,
article.ed-document>.ed-picture>img,
article.ed-document img.ed-extra-photo,
article.hw-article img.hw-picture,
article.gear-article img.gear-picture,
article .editorial-extra-photo>img{display:block;width:100%;max-width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;border-radius:8px}
/* Keep thumbnail crop behavior separate from article figures. */
.aehea-news-card .aehea-news-card-media>img,.aehea-home-news-card .aehea-home-news-media>img{width:100%;height:100%;object-fit:cover;object-position:center}
/* Native photo dimensions override square rules from earlier site styles. */
article.ed-document .ed-figure .ed-picture img,
article.ed-document .ed-figure>img,
article.aehea-news-document .aehea-news-article-media img,
article.hw-article .hw-prose img.hw-picture,
article.gear-article .gear-prose img.gear-picture{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;max-width:100%;max-height:none;min-height:0}
article.ed-document .ed-figure .ed-picture{height:auto;aspect-ratio:auto;max-height:none;background-image:none}
