.featured-post {
  border-radius: var(--layout--spacing--30);
  overflow: hidden;
}
.featured-post[data-fully-clickable="true"] {
  cursor: pointer;
}

.featured-post-content {
  background-color: var(--color--accent--medium);
  color: var(--color--neutral--highest);
  padding: var(--layout--spacing--60);
  position: relative;
}
.featured-post-content::after {
  content: "";
  display: block;
  position: absolute;
  top: calc(-1 * var(--layout--spacing--50));
  right: 0;
  width: 100%;
  height: var(--layout--spacing--50);
  background-color: var(--color--accent--medium);
  z-index: 1;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.3s;
}
.featured-post-title {
  font-size: var(--font-size--xx-large);
  font-family: var(--font-family--accent);
  font-weight: 500;
  line-height: var(--font-lh--narrow);
  text-transform: none;
  margin: 0 0 var(--layout--spacing--60);
}
.featured-post-title a {
  text-decoration: none;
  color: inherit;
}
.featured-post p {
  font-size: var(--font-size--medium-large);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--layout--spacing--50);
}
.featured-post figure {
  overflow: hidden;
}
.featured-post img {
  transition: transform 0.3s;
}
.featured-post a:hover img,
.featured-post[data-fully-clickable="true"]:focus-within img,
.featured-post[data-fully-clickable="true"]:hover img {
  transform: scale(1.05);
}
.featured-post[data-fully-clickable="true"]:focus-within
  .featured-post-content::after,
.featured-post[data-fully-clickable="true"]:hover
  .featured-post-content::after {
  transform: none;
}
.featured-post[data-fully-clickable="true"]:hover .cta,
.featured-post[data-fully-clickable="true"]:focus-within .cta {
  background-color: var(--bt--bgc--hover);
  border-color: var(--bt--bdc--hover);
  color: var(--bt--txc--hover);
  outline: none;
}
.featured-post[data-fully-clickable="true"]:focus-within {
  outline: 4px solid var(--color--neutral--lowest);
}
.featured-post[data-fully-clickable="true"] .featured-post-title a:focus {
  outline: none;
}

@container (min-width: 48rem) {
  .featured-post {
    display: flex;
    flex-direction: row-reverse;
  }
  .featured-post-content {
    flex: 0 0 25rem;
  }
  .featured-post-content::after {
    top: 0;
    height: 100%;
    right: calc(-1 * var(--layout--spacing--50));
    width: var(--layout--spacing--50);
    transform-origin: left;
    transform: scaleX(0);
  }
  .featured-post figure,
  .featured-post img {
    height: 100%;
  }
  .featured-post img {
    object-fit: cover;
  }
}
