/* UTGI 1.1.0 — Square everywhere by default, customizable from the WordPress dashboard.
   Cropped thumbnail derivatives are not used in template-parts/card.php or single.php.
   The actual poster/photo remains fully visible with object-fit:contain. */
.article-card img,
.utgi-feature-lead img,
.utgi-feature-list .article-card img,
.utgi-twin-cards .article-card img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:var(--utgi-card-ratio, 1/1);
  object-fit:var(--utgi-img-fit,contain);
  object-position:center;
  background:var(--utgi-img-bg,#f2f2f2);
}
.article-next .article-card img {
  aspect-ratio:var(--utgi-related-ratio,1/1);
}
.story-lead {
  width:100%;
  max-width:var(--utgi-single-width,760px);
  margin-left:auto;
  margin-right:auto;
}
.story-lead img,
.story-lead img.wp-post-image {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:var(--utgi-single-ratio,1/1);
  object-fit:var(--utgi-img-fit,contain);
  object-position:center;
  background:var(--utgi-img-bg,#f2f2f2);
}
.story-lead figcaption {
  overflow-wrap:anywhere;
  padding-top:13px;
}
.article-next .article-grid {
  gap:var(--utgi-related-gap,22px);
}
@media (max-width:700px) {
  .story-lead {width:100%;max-width:100%;}
  .article-card img,
  .utgi-feature-lead img,
  .utgi-feature-list .article-card img,
  .article-next .article-card img,
  .story-lead img {height:auto;}
}

/* WordPress-native editable primary navigation (Appearance → Menus). */
.desktop-nav .utgi-menu-list,
.mobile-tabs .utgi-menu-list {
  display:flex;
  align-items:center;
  gap:23px;
  margin:0;
  padding:0;
  list-style:none;
}
.utgi-menu-list li{list-style:none;margin:0;padding:0;}
.mobile-tabs .utgi-menu-list{gap:30px;height:100%;}
.mobile-menu .utgi-menu-list{display:contents;}
.desktop-nav .current-menu-item > a{border-bottom:2px solid var(--accent);padding-bottom:7px;margin-bottom:-9px;}
@media(max-width:1150px){.desktop-nav .utgi-menu-list{gap:15px;}}


/* 1.2.0 — Related posts align to the same editorial grid on every viewport.
   .article-next used margin:120px 0 110px, which reset .wrap's auto
   inline margins and pushed the section against the viewport edge. */
.article-next.wrap {
  width:min(calc(100% - var(--utgi-readnext-gutter) * 2),var(--max-width));
  max-width:100%;
  margin:var(--utgi-readnext-top,120px) auto var(--utgi-readnext-bottom,110px);
  padding-inline:0;
}
.article-next .section-heading,
.article-next .utgi-empty {max-width:100%;}
.article-next .article-grid {min-width:0;}
.article-next .article-card {min-width:0;}
.article-next .article-card h3,
.article-next .article-card p,
.article-next .utgi-empty {overflow-wrap:anywhere;}
