/*
  Desktop NEWS page post layout.
  Shared chrome, page title, loading, and base link animation live in global CSS.
*/

@font-face {
  font-family: "Gotham-XLight";
  src:
    url("../fonts/Gotham-XLight.woff2") format("woff2"),
    url("../fonts/Gotham-XLight.woff") format("woff"),
    url("../fonts/Gotham-XLight.ttf") format("truetype"),
    url("../fonts/Gotham-XLight.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 200;
}

@font-face {
  font-family: "Gotham-Light";
  src:
    url("../fonts/Gotham-Light.woff2") format("woff2"),
    url("../fonts/Gotham-Light.woff") format("woff"),
    url("../fonts/Gotham-Light.ttf") format("truetype"),
    url("../fonts/Gotham-Light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Gotham-Medium";
  src:
    url("../fonts/Gotham-Medium.woff2") format("woff2"),
    url("../fonts/Gotham-Medium.woff") format("woff"),
    url("../fonts/Gotham-Medium.ttf") format("truetype"),
    url("../fonts/Gotham-Medium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  --content-max: 1250px;
  --content-side-gap: 61px;
  --news-post-image-width: 400px;
  --news-post-text-max-width: 400px;
  --news-post-column-gap: 40px;
  --news-post-gap: 100px;
  --news-post-list-top-gap: 91px;
}

html,
body {
  min-width: var(--page-min);
}

body {
  overflow-x: auto;
}

.news-content {
  width: min(var(--content-max), calc(max(100vw, var(--page-min)) - (var(--content-side-gap) * 2)));
  margin: 0 auto;
  padding-bottom: 160px;
}

.news-hero {
  padding-top: 145px;
}

.news-posts {
  display: flex;
  flex-direction: column;
  gap: var(--news-post-gap);
  width: min(100%, calc(var(--news-post-image-width) + var(--news-post-column-gap) + var(--news-post-text-max-width)));
  margin: var(--news-post-list-top-gap) auto 0;
}

.news-post {
  display: grid;
  grid-template-columns: var(--news-post-image-width) minmax(0, var(--news-post-text-max-width));
  column-gap: var(--news-post-column-gap);
  align-items: start;
}

.news-post:nth-child(even) {
  grid-template-columns: minmax(0, var(--news-post-text-max-width)) var(--news-post-image-width);
}

.news-post:nth-child(even) .news-post__image-area {
  grid-column: 2;
}

.news-post:nth-child(even) .news-post__text-area {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.news-post__image-area {
  position: relative;
  box-sizing: border-box;
  width: var(--news-post-image-width);
  padding: 10px;
  margin: 0;
  background: #fff;
}

.news-post__image-area img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-post__text-area {
  max-width: var(--news-post-text-max-width);
  color: #fff;
}

.news-post__text-area::before {
  display: block;
  width: 100%;
  height: 1px;
  margin: 1px 0 17px;
  background: #c9a875;
  content: "";
}

.news-post__header {
  margin: 0 0 22px;
  color: #fff;
  font-family: "Gotham-XLight", var(--site-font-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 200;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-post__text {
  color: #fff;
  font-family: "Gotham-Light", var(--site-font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
}

.news-post__text p {
  margin: 0 0 22px;
}

.news-post__text p:last-child {
  margin-bottom: 0;
}

.news-post__text a {
  color: var(--site-clickable-text);
  font-family: "Gotham-Medium", var(--site-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease-out;
}

.news-post__text a:hover,
.news-post__text a:focus-visible {
  color: var(--site-gold);
}

.news-post--no-image {
  display: block;
  max-width: var(--news-post-text-max-width);
}

.news-post--no-image:nth-child(even) {
  margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
  .news-post__text a {
    transition: none;
  }
}
