/* article */

.article-grid {
  display: grid;
  grid-template-columns: 404px 1fr 316px;
  grid-template-rows: auto auto;
  --spaceLeft: clamp(2rem, 6vw, 110px);
  --spaceRight: 32px;
  margin-top: 40px;
}

.article-left-col {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.article-right-col {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.article-top {
  grid-row: 1 / 2;
}
.article-main {
  grid-row: 2 / 3;
}
.article-top,
.article-main {
  grid-column: 2 / 3;
  padding-inline: var(--spaceLeft) var(--spaceRight);
}

.article-more {
  margin-block: 60px 120px;
}

.article-top aside.mob {
  display: none;
}

.article--image {
  aspect-ratio: 1.61;
  margin-block: 40px;
}

.article-header aside,
.share-mob,
.article--image-mobile {
  display: none;
}

.article-body > :is(p, ul, ol, div, h2, h3 ,h4) {
  margin-bottom: 2rem;
  width: 90%;
  max-width: 600px;
  font-size: 18px;
  line-height: 28px;
}
.article-body > figure {
  max-width: 675px;
  margin-bottom: 3rem;
}
.article-body > figure img {
  aspect-ratio: 1.6;
}

.article-body aside {
  margin-block: 3rem 40px;
}

.article-header {
  margin-bottom: 2rem;
  container-name: article-header;
  container-type: inline-size;
}
.article-header--info {
  margin-bottom: 13px;
  align-items: center;
  gap: 22px;
}
.article-header .social li {
  width: 20px;
  height: 20px;
  margin-right: 18px;
  cursor: pointer;
}
.article-header .date {
  padding: 12px 13px 11px;
  border: 1px solid #000;
}
.article-header .title {
  font-size: 45px;
  line-height: 50px;
  margin-bottom: 18px;
  font-family: "Ubuntu Condensed", sans-serif;
  font-weight: 400;
}
.article-header .author {
  gap: 8px;
  align-items: center;
  font-size: 16px;
  font-family: "Ubuntu Condensed", sans-serif;
  font-weight: 400;
}
.article-header .author-icon {
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #000;
}

.article-footer {
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  font-size: 20px;
  line-height: 25px;
  gap: 24px;
  padding-block: 22px 20px;
  align-items: center;
}

.article--footer-icon {
  flex-shrink: 0;
}
.article-footer p.fg {
  max-width: 400px;
}
.article-footer span {
  font-weight: 600;
}

@media screen and (max-width: 1700px) {
  .article-top aside:has(.box.wide) {
    display: none;
  }
  .article--image {
    margin-top: 0;
  }
}
@media screen and (max-width: 1620px) {
  .article-grid {
    --spaceLeft: 32px;
  }
}
@media screen and (max-width: 1480px) {
  .article-grid {
    grid-template-columns: 404px 1fr;
  }

  .article-right-col {
    display: none;
  }
  .article-top {
    grid-column: 1 / 3;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: var(--spaceRight);
    padding-right: 0;
  }
  .article-main {
    grid-column: 2 / 3;
  }
}

@media screen and (max-width: 1080px) {
  .article-top {
    display: block;
  }
  .article-top aside.mob {
    display: block;
    margin-bottom: 40px;
  }
}
@media screen and (max-width: 980px) {
  .article-grid {
    display: flex;
    flex-direction: column;
  }
  .article-top {
    order: 1;
    padding-left: 0;
  }
  .article-main {
    order: 2;
    padding-inline: 0;
  }
  .article-left-col {
    order: 3;
    margin-block: 27px 53px;
  }
  .article-header--info .share,
  .article-top > aside:last-of-type,
  .article--image {
    display: none;
  }
  .article--image-mobile {
    display: block;
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
  }
  .article-header aside,
  .share-mob {
    display: block;
  }
  .article-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
  }
  .article-header .title {
    order: 1;
    font-size: 40px;
    line-height: 45px;
  }
  .article-header--info {
    order: 2;
  }
  .article-header aside {
    order: 3;
  }
  .article--image-mobile {
    order: 4;
  }
  .article-header .author {
    order: 5;
  }
  .article-header .share-mob {
    order: 6;
    margin-top: 1rem;
  }
  .article-more {
    margin-block: 0 45px;
  }
  .article-left-col .latest-container {
    max-width: 620px;
  }
}
@media screen and (max-width: 620px) {
  .article-main {
    padding-inline: 0;
  }
  .article-body > :is(p, ul, ol, div) {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .article-footer {
    padding-block: 18px;
  }
}
@media screen and (max-width: 440px) {
  .article--image-mobile {
    aspect-ratio: 1;
    width: calc(100% + 2 * var(--mobilePadding));
    margin-left: calc(-1 * var(--mobilePadding));
  }
}
@media screen and (max-width: 380px) {
  .article-footer {
    font-size: 18px;
    line-height: 22px;
  }
}

@container article-header (width < 640px) {
  /* Change the flex direction of the .child element. */
  .article-header .title {
    font-size: 40px;
    line-height: 45px;
  }
}
@container article-header (width < 520px) {
  /* Change the flex direction of the .child element. */
  .article-header .title {
    font-size: 35px;
    line-height: 40px;
  }
}
@container article-header (width < 440px) {
  /* Change the flex direction of the .child element. */
  .article-header .title {
    font-size: 30px;
    line-height: 30px;
  }
}
