#main-content.ihgy-news {
  padding: clamp(36px, 7vw, 100px) clamp(18px, 5vw, 64px);
  background: #f5f1ea;
  color: #4f3420;
  font: 400 1rem/1.65 "Raleway", sans-serif;
}

.ihgy-news-shell {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.ihgy-news-reading {
  max-width: 780px;
}

.ihgy-news h1,
.ihgy-news h2 {
  color: #4f3420;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.ihgy-news h1 {
  margin-bottom: clamp(20px, 4vw, 46px);
  font-size: clamp(2.75rem, 6vw, 4.75rem);
}

.ihgy-news h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.ihgy-news-list {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
}

.ihgy-news-item {
  padding: 0;
  border: 1px solid #dfd2c5;
  border-radius: 14px;
  background: #fffdf9;
}

.ihgy-news-item-featured {
  border-color: #a3876e;
}

.ihgy-news-item-link {
  display: flex;
  align-items: center;
  border-radius: inherit;
  color: inherit;
}

.ihgy-news-item-link:hover h2 {
  color: #1d71c3;
  text-decoration: underline;
  text-underline-offset: .12em;
}

.ihgy-news-image {
  display: block;
  align-self: stretch;
  width: 36%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 13px 0 0 13px;
  object-fit: cover;
}

.ihgy-news-item-copy {
  flex: 1;
  min-width: 0;
  padding: clamp(18px, 4vw, 40px);
  overflow-wrap: anywhere;
}

.ihgy-news-item-copy p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.ihgy-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4em 1em;
  color: #4f3420;
  font-size: .875rem;
  font-weight: 700;
}

.ihgy-news-meta span {
  color: #1d71c3;
}

.ihgy-news .pagination,
.ihgy-news-article-header,
.ihgy-news-page-links {
  margin-top: clamp(20px, 4vw, 36px);
}

.ihgy-news :is(.ihgy-news-back, .ihgy-news-body a, .pagination a) {
  color: #1d71c3;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.ihgy-news .page-numbers {
  display: inline-block;
  padding: .35em .65em;
}

.ihgy-news-article-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: clamp(20px, 4vw, 36px);
  border-radius: 14px;
}

.ihgy-news-body {
  overflow-wrap: anywhere;
}

.ihgy-news a:focus-visible,
.ihgy-news-home-card:focus-visible {
  outline: 2px solid #1d71c3;
  outline-offset: 4px;
}

.ihgy-news-home-card {
  display: block;
}

.ihgy-news-home-card .ihgy-card-icon {
  --ihgy-card-icon-image: url("../images/card-icons/aktualis.png");
}

.ihgy-news-home-card .ihgy-news-home-title {
  display: -webkit-box;
  max-height: 2.9em;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 767px) {
  .ihgy-news-item-link {
    display: block;
  }

  .ihgy-news-image {
    width: 100%;
    border-radius: 13px 13px 0 0;
  }

  body.page-id-16 .ihgy-card.ihgy-news-home-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  body.page-id-16 .ihgy-card.ihgy-news-home-card > .ihgy-news-home-title {
    display: -webkit-box !important;
    min-height: 0;
    max-height: 2.6em;
    margin: .3em 0 0;
    font-size: .875rem;
    line-height: 1.3;
    text-align: left;
  }
}

/* News list layout; visual styling can be refined independently. */
.ihgy-news-shell:not(.ihgy-news-reading) { width: min(100%, 1280px); }
.ihgy-news-list { gap: clamp(24px, 3vw, 40px); }
.ihgy-news-item, .ihgy-news-item-featured { border: 0; border-radius: 0; background: transparent; }
.ihgy-news-item-link { align-items: flex-start; gap: clamp(20px, 3vw, 40px); }
.ihgy-news-image { align-self: flex-start; flex: 0 0 calc(50% - clamp(10px, 1.5vw, 20px)); width: calc(50% - clamp(10px, 1.5vw, 20px)); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.ihgy-news-item-copy { padding: 0; }
.ihgy-news-item-copy h2 { margin: 0 0 .4em; }
.ihgy-news-read-more { display: inline-block; margin-top: .5em; color: #1d71c3; text-decoration: underline; }
@media (max-width: 767px) {
  .ihgy-news-image { width: 100%; margin-bottom: 16px; }
}

/* Keep individual news articles within the mobile viewport. */
@media (max-width: 767px) {
  body.single-post #main-content.ihgy-news,
  body.single-post .ihgy-news-shell,
  body.single-post .ihgy-news-reading,
  body.single-post .ihgy-news-body {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  body.single-post .ihgy-news-body :is(img, video, iframe, embed, object, figure, .wp-caption) {
    max-width: 100%;
    box-sizing: border-box;
  }
  body.single-post .ihgy-news-body :is(img, video) {
    height: auto;
  }
  body.single-post .ihgy-news-body :is(pre, .wp-block-table) {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* Mobile news archive and article: override theme-wide padding reset. */
@media (max-width: 767px) {
  #main-content.ihgy-news {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 24px 18px 32px !important;
  }
  #main-content.ihgy-news .ihgy-news-shell {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  #main-content.ihgy-news h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.12;
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  #main-content.ihgy-news h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.15;
    hyphens: auto;
  }
}


/* Relative publication time, independent of the card animation. */
.ihgy-card.ihgy-news-home-card {
  position: relative;
}
.ihgy-card.ihgy-news-home-card > .ihgy-news-home-age {
  position: absolute;
  top: 12px;
  right: 12px;
  display: block;
  color: #1d71c3;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}
@media (max-width: 767px) {
  body.page-id-16 .ihgy-card.ihgy-news-home-card > .ihgy-news-home-age {
    position: static;
    display: block !important;
    margin: 0 0 4px;
    text-align: left;
  }
}
