.feature-content-grid {
  display: grid;
  gap: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium);
  margin: var(--wp--preset--spacing--large) 0;
}


.featured-content .subheading {
  font-size: var(--wp--preset--font-size--small);
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 0px 0px 6px #FFF;
}

.featured-content .heading {
  margin-top: 12px;
  margin-bottom: 24px;
}

.featured-content__body {
  padding: var(--wp--preset--spacing--medium);
  background-color: var(--wp--preset--color--base-3);
}

.featured-content figure {
  background-color: var(--wp--preset--color--contrast-2);
  margin-bottom: 0;
  position: relative;
}
.featured-content img {
  display: block;
  object-fit: cover;
}
.featured-content h3 > a {
  text-decoration: none;
}
.featured-content h3 > a:hover {
  text-decoration: underline;
}

.featured-content__quote {
  padding: var(--wp--preset--spacing--medium);
  padding-top: 0;
  background-color: var(--wp--preset--color--base-3);
}
.featured-content blockquote {
  margin: 0;
  border-left: 2px solid var(--wp--preset--color--accent);
  padding-left: var(--wp--preset--spacing--small);
  font-style: italic;
}


/* 
BUTTON
*/
.play-button {
  position: absolute;
  border: 1px solid white;
  box-shadow: 0 0 0 2px var(--wp--preset--color--contrast);
  border-radius: 50%;
  background-color: var(--wp--preset--color--contrast);
  height: 2.5rem;
  width: 2.5rem;
  color: var(--wp--preset--color--base);
  font-size: 1.125rem;
  left: 50%;
  top: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0.2em;
  line-height: 1;
  transition: 0.3s all;
}
.play-button:hover,
.play-button:active,
.play-button:focus
{
  background-color: var(--wp--preset--color--accent);
  box-shadow: 0 0 0 2px var(--wp--preset--color--accent);
  width: 2.75rem;
  height: 2.75rem;
}

.button > .wp-element-button {
  display: inline-block;
}
.animated-button {
  position: relative;
}
.animated-button::after {
    content: "";
    display: inline-block;
    height: 25px;
    width: 0;
    background-color: var(--wp--preset--color--accent);
    z-index: -1;
    transition: width 0.2s linear;
    position: absolute;
    left: 0;
}
.animated-button:has( > a:hover, > a:focus, > a:active)::after {
  width: 100%;
}


@media (min-width: 801px){
  .featured-content.wide {
    grid-template-rows: 1fr min-content;
  }
  .featured-content figure {
    min-height: 300px;
  }
  .featured-content img {
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
  }
  .grid-items-2, .grid-items-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--medium);
  }

  .featured-content {
    display: flex;
    flex-direction: column;
  }
  .grid-items-2 .featured-content:first-child::after,
  .grid-items-3 .featured-content:nth-child(2)::after {
    content: "";
    display: block;
    border-left: 2px solid var(--wp--preset--color--accent);
    width: 2px;
    height: 100%;
    margin-top: var(--wp--preset--spacing--medium);
    min-height: var(--wp--preset--spacing--large);
  }
  .grid-items-3 .featured-content:first-child {
    grid-column: 1 / span 2;
  }


  /* DESKTOP WIDE */
  .featured-content.wide {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-areas: 
      "body thumbnail"
      "body button";
  }

  .featured-content.wide figure  { grid-area: thumbnail; }
  .featured-content.wide button  { grid-area: button; }
  .featured-content.wide .featured-content__body   { grid-area: body; }
  .featured-content.wide .featured-content__quote  { grid-area: quote; }
  
  /* DESKTOP WIDE & QUOTE */

  .featured-content.wide.has-quote {
    grid-template-areas: 
      "body thumbnail"
      "body quote"
      "button quote";
  }
  .featured-content.wide.has-quote .button {
    display: flex;
    justify-content: end;
  }
  .featured-content.wide.has-quote .animated-button::after {
    right: 0;
    left: unset;
  }
  .featured-content.wide.has-quote .featured-content__quote {
    margin-left: calc(-1 * var(--wp--preset--spacing--medium));
  }

  .featured-content.wide.has-quote .button {
    width: calc(100% - var(--wp--preset--spacing--medium));
  }
  .featured-content.wide .featured-content__quote {
    background-color: var(--wp--preset--color--base-2);
    padding: var(--wp--preset--spacing--medium);
  }
}

@media (max-width: 800px){
  .featured-content img {
    aspect-ratio: 2 / 1;
    height: auto;
  }

  .featured-content figure {
    max-width: none;
    width: calc(100% + 5vw);
    margin-left: -5vw;
  }
}

/* overide lity style */
.lity-close {
  margin: 12px;
  background-color: var(--wp--preset--color--accent) !important;
  border: 1px solid var(--wp--preset--color--accent) !important;
  border-radius: 50%;
  color: var(--wp--preset--color--base) !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.2) !important;
  line-height: 0.8 !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  transition: all 0.3s !important;
}
.lity-close:hover,
.lity-close:focus,
.lity-close:active {
  transform: rotateZ(90deg) !important;
  border-color: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--base) !important;
  background-color: var(--wp--preset--color--contrast) !important;
}