#article-page .parallax-item:nth-child(1) {
  min-height: 700px;
}

#article-page .parallax-item:nth-child(2) {
  min-height: 500px;
  margin-bottom: 5vh;
}

#article-page #article-list-page {
  align-items: stretch;
  justify-content: flex-start;
}

#article-page #header-page > .row,
#article-page #article-list-page > .row {
  position: relative;
  width: 100%;
  max-width: var(--xds-page-max-width);
  margin-inline: auto;
}

/*============================
  Filters Toolbar (Article)
============================*/
#article-page .filters-toolbar .search-wrapper {
  flex-grow: 1;
  min-width: 200px;
  max-width: 100%;
}

#article-page .filters-toolbar .btn,
#article-page .commands-btn-group .btn {
  white-space: nowrap;
  border-radius: 12px;
  margin: 2.5px;
}

@media (max-width: 576px) {
  #article-page .filters-toolbar .d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  #article-page .filters-toolbar .search-wrapper {
    width: 100%;
  }

  #article-page .filters-toolbar button {
    width: 100%;
  }
}

#article-page .filter-btn {
  border: 1px solid transparent;
  transition: all 0.35s ease-in-out;
  background-color: color-mix(in srgb, var(--btn-color) 20%, transparent) !important;
}

#article-page .filter-btn:hover,
#article-page .filter-btn.active {
  background-color: var(--btn-color) !important;
  border-color: var(--btn-color) !important;
  outline: none;
}

#article-page .commands-btn-group {
  gap: 0.5rem;
  display: flex;
  flex-wrap: wrap;
}

#article-show-page .article-cover-placeholder {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.48), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 102, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(126, 184, 230, 0.95), rgba(255, 128, 140, 0.82) 55%, rgba(255, 211, 128, 0.92));
}

#article-page #articlesGrid .article-item {
  display: flex;
  min-width: 0;
}

#article-page #articlesGrid .article-item > a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

#article-page #articlesGrid .article-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#article-page #articlesGrid .article-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#article-page #articlesGrid .article-card__image,
#article-page #articlesGrid .article-card__placeholder {
  width: 100%;
  height: 100%;
}

#article-page #articlesGrid .article-card__image {
  object-fit: cover;
}

#article-page #articlesGrid .article-card__meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

#article-page #articlesGrid .article-card__tag {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  /* toolbar responsive handled above */
}

/* Article Page Styles */

#article-show-page .article-reading-shell {
  padding-top: clamp(6rem, 9vw, 7.5rem);
  width: 100%;
  max-width: var(--xds-page-max-width);
  margin-inline: auto;
}

#article-show-page .article-cover-block {
  margin-bottom: 1.75rem;
}

#article-show-page .article-cover-media {
  position: relative;
  overflow: hidden;
}

#article-show-page .article-cover-image,
#article-show-page .article-cover-placeholder {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 6;
}

#article-show-page .article-cover-image {
  object-fit: cover;
}

#article-show-page .article-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#article-show-page .article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

#article-show-page .article-meta-sep {
  opacity: 0.55;
}

@media (max-width: 767px) {
  #article-show-page .article-cover-media {
    border-radius: 14px;
  }

  #article-show-page .article-header {
    display: flex;
    flex-direction: column;
  }

  #article-show-page .article-title {
    order: 3;
  }

  #article-show-page .article-meta {
    order: 1;
  }

  #article-show-page .article-meta-row--top,
  #article-show-page .article-meta-row--bottom {
    width: 100%;
  }

  #article-show-page .article-meta-row--bottom {
    gap: 0.55rem;
  }

  #article-show-page .article-meta-row--bottom {
    order: 1;
  }

  #article-show-page .article-meta-row--top {
    order: 2;
  }

}

.icon-article svg {
  width: 16px;
  height: 16px;
}

.article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 15px;
	margin: 20px 0;
	filter: drop-shadow(0 5px 15px #00000038);
}

.article-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
}
