/* Image and article presentation: single owner of media geometry. */
body.workspace-mode #searchResultList{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
body.workspace-mode .workspace-result{display:flex;flex-direction:row;min-height:150px}
body.workspace-mode .workspace-card-media{position:relative;display:block;width:132px;height:99px;min-height:0;aspect-ratio:4/3;flex:0 0 132px;align-self:flex-start;margin:16px 0 16px 16px;overflow:hidden;background:#f0f3f5;border:0;border-radius:8px;isolation:isolate}
body.workspace-mode .workspace-card-media>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;max-width:none;max-height:none;margin:0;padding:0;box-sizing:border-box;object-fit:cover;object-position:center}
body.workspace-mode .workspace-card-media.is-poster>img{object-fit:cover;padding:0}
body.workspace-mode .workspace-card-media.is-poster>img.image-portrait{object-fit:cover;padding:0}
body.workspace-mode .workspace-card-media.is-empty{display:none}
body.workspace-mode .workspace-result-copy{padding:18px;min-width:0}
body.workspace-mode .workspace-result-copy h2{font-size:17px;line-height:1.4;font-weight:650}
body.workspace-mode .workspace-date{left:8px;bottom:8px;min-width:36px;min-height:42px;padding:4px}
body.workspace-mode .workspace-featured{top:6px;right:6px;font-size:10px}
@media(min-width:761px) and (max-width:1399px){body.workspace-mode #searchResultList{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.workspace-mode .event-detail-panel .event-detail-hero{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:auto;width:100%;height:360px;min-height:0;max-height:none;margin:0;overflow:hidden;background:#f0f3f5;border-bottom:1px solid #e4ebf0;border-radius:0}
body .event-detail-image-link{position:relative;inset:auto;display:flex;justify-content:center;align-items:center;width:100%;height:100%;padding:20px;box-sizing:border-box;cursor:zoom-in}
body.workspace-mode .event-detail-panel .event-detail-hero img{position:static;display:block;width:auto;height:auto;max-width:100%;max-height:100%;margin:0;object-fit:contain;object-position:center;border-radius:4px}
.image-expand-hint{position:absolute;right:14px;bottom:14px;padding:8px 11px;border:1px solid #d7e1e8;border-radius:7px;background:#fffffff2;color:#285770;font:600 12px/1.3 system-ui;pointer-events:none}
body.workspace-mode .event-detail-content{max-width:100%;padding:28px 25px}
body.workspace-mode .event-detail-content h1{font-size:clamp(26px,2.7vw,36px);font-weight:650;line-height:1.25;margin:12px 0 22px;max-width:100%}
body.workspace-mode .event-detail-info{padding:12px 0}
body.workspace-mode .event-detail-info b{font-size:14px;font-weight:650}
body.workspace-mode .event-detail-info p{font-size:15px;line-height:1.65}
body .home-card-media{position:relative;overflow:hidden;background:#f0f3f5}
body .home-card-media>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;padding:0}
body .home-card-media>img.image-portrait{object-fit:contain;padding:8px;box-sizing:border-box}
body .agenda-entry__media img,body .mission-entry-thumb{object-fit:contain;background:#f0f3f5}
/* Editorial pages use the same restrained title scale as event details. */
body .story-article-wrap{max-width:1240px;width:calc(100% - 48px);padding-top:28px}
body .story-article{border-radius:16px;box-shadow:0 4px 18px #19394b08}
body .story-article-head{box-sizing:border-box;max-width:100%;padding:28px 25px}
body .story-article-head h1{font-size:clamp(28px,3.2vw,44px);font-weight:650;line-height:1.16;letter-spacing:-.035em;margin:16px 0;max-width:100%}
body .story-lead{font-size:18px;line-height:1.6;max-width:100%}
body .story-date{margin-top:14px;font-size:12px}
body .story-hero{display:flex;align-items:center;justify-content:center;aspect-ratio:auto;height:auto;min-height:0;margin:0;background:#f0f3f5;overflow:hidden}
body .story-hero img,body .story-modal-hero{display:block;width:100%;height:auto;max-width:100%;max-height:460px;object-fit:cover;margin:0}
body .story-hero img.image-portrait{width:auto;object-fit:contain}
body .story-article-grid{max-width:100%;padding:28px 25px;gap:32px;grid-template-columns:minmax(0,1fr) 200px;box-sizing:border-box}
body .story-prose{font-size:16px;line-height:1.8}
body .gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
body .gallery-grid>a{position:relative;display:block;min-width:0;aspect-ratio:4/3;overflow:hidden;border:1px solid #dce6ec;border-radius:10px;background:#f0f3f5;cursor:zoom-in}
body .gallery-grid img,body .story-gallery .gallery-grid img{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;object-fit:cover;margin:0;border-radius:0}
body .gallery-grid img.image-portrait{object-fit:contain}
body .image-frame-error>img{visibility:hidden!important}
body .image-frame-error:after{content:'Bild nicht verfügbar';position:absolute;inset:0;display:grid;place-items:center;color:#627985;background:#f0f3f5;font:13px system-ui;pointer-events:none}
body .image-frame-error .image-expand-hint{display:none}
body .image-modal-overlay{z-index:12000;overscroll-behavior:contain;background:#0b172de8}
body .image-modal{width:calc(100vw - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;display:flex;align-items:center;justify-content:center;padding:48px 16px 20px;background:transparent;box-sizing:border-box}
body .image-modal>img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:4px}
body .image-modal-close{position:absolute;right:12px;top:8px;min-width:44px;min-height:44px;background:#fff;color:#19394b;border-radius:50%;z-index:2}
@media(max-width:760px){
 body.workspace-mode #searchResultList{grid-template-columns:1fr}
 body.workspace-mode .workspace-result{min-height:0}
 body.workspace-mode .workspace-card-media{width:100px;height:75px;min-height:0;align-self:flex-start;flex:0 0 100px;border:0;margin:14px 0 14px 14px}
 body.workspace-mode .workspace-card-media.is-poster>img.image-portrait{padding:0}
 body.workspace-mode .workspace-card-media.is-empty{display:none}
 body.workspace-mode .workspace-result.is-featured:has(.workspace-card-media.is-empty) .workspace-card-media{display:none}
 body.workspace-mode .workspace-result-copy{padding:14px}
 body.workspace-mode .workspace-result-copy h2{font-size:16px}
 body.workspace-mode .event-detail-content{padding:28px 25px}
 body.workspace-mode .event-detail-content h1{font-size:27px}
 body .event-detail-image-link{padding:12px}
 body.workspace-mode .event-detail-panel .event-detail-hero{height:240px}
 body.workspace-mode .event-detail-panel .event-detail-hero img{max-height:100%}
 body .story-article-wrap{width:calc(100% - 24px);padding-top:20px}
 body .story-article-head{padding:24px 20px}
 body .story-article-head h1{font-size:30px}
 body .story-lead{font-size:16px}
 body .story-hero img{max-height:300px}
 body .story-article-grid{grid-template-columns:1fr;padding:24px 20px;gap:24px}
 body .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
@media(max-width:359px){body.workspace-mode .workspace-card-media{width:84px;height:63px;flex-basis:84px}}

body .entry-card .home-card-media{height:auto;min-height:0;aspect-ratio:4/3}
.entry-upload-preview{max-width:400px;margin:12px 0;background:#f0f3f5;border:1px solid #d5e2e9;border-radius:10px;overflow:hidden;aspect-ratio:4/3}
.entry-upload-preview img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}

