/* Size the frame to the poster, so artwork and lettering stay intact. */
.event-card:not(.event-card--text) .event-card-img-wrap {
  aspect-ratio: auto;
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f6f5f2;
}
.event-card-img-wrap > img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain !important;
  object-position: center;
  flex: 0 0 auto;
}
.hero-card-img:has(> img) {
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
  background: #f6f5f2;
}
.hero-card-img > img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain !important;
  object-position: center;
}
#heroMedia { display: flex; justify-content: center; align-items: center; }
.article-book-cover { display:block; width:min(100%,420px); max-width:100%; height:auto; margin:0 auto 36px; }
.blog-card-img:has(>img){display:block;position:relative;aspect-ratio:3/2;height:auto!important;overflow:hidden;background:#ece8df;}
.blog-card-img>img,.editorial-feature-photo>img,.sidebar-item-img>img{display:block;width:100%;height:100%;object-fit:cover;}
.blog-card-img>img{position:absolute;inset:0;}
.editorial-feature-photo{min-height:320px;height:100%;overflow:hidden;}
.editorial-feature-photo>img{min-height:320px;}
.blog-card-img.editorial-book-image{aspect-ratio:400/620;}
.editorial-book-image>img{object-fit:contain;}
.article-editorial-image{margin:0 0 36px;}
.article-photo{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:12px;}
.article-editorial-image figcaption{font-size:11px;color:#827a6c;margin-top:10px;}
.detail-hero-img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  max-height: none;
  object-fit: contain !important;
  object-position: center;
}
/* Landscape project photos have their own frame and focal point. */
.rams-project-feature {
  min-height: 430px;
  aspect-ratio: auto;
  height: auto;
  align-self: stretch;
  overflow: hidden;
}
.rams-project-feature > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.rams-project-feature figcaption {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(12,29,27,.9));
  padding: 42px 20px 18px;
}
.rams-photo-main img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: 50% 52%;
}
.rams-project-tile > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}
.culture-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 3vw, 28px);
}
.culture-shelf > img {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  height: clamp(280px, 30vw, 420px);
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
}
@media (min-width: 641px) {
  .events-grid.grid-1 .event-card:not(.event-card--text) .event-card-img-wrap {
    align-self: start;
  }
}
@media (max-width: 600px) {
  .detail-hero-img { max-height: none; }
  .rams-project-feature { min-height: 300px; aspect-ratio: 4 / 3; }
  .rams-project-feature figcaption { padding: 12px 16px; font-size: 14px; }
  .rams-photo-main img { height: auto; }
  .culture-shelf { padding: 22px 18px; }
  .culture-shelf > img { height: clamp(190px, 57vw, 260px); max-width: 100%; }
}

/* Official wide artwork: keep the characters within portrait cards. */
img[src$="bremen-banner.png"]{object-position:100% center!important;}
