.featured.section {
  height: var(--height-featured-section);
  overflow: hidden;
}

.featured.section > div, .featured.section .section-content {
  height: 100%;
}

.featured.section .slider {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.featured.section .slider .slides {
  margin: 0;
  height: 100% !important;
}

.featured.section .slider .slides > * {
  height: var(--height-featured-section);

  & .entry-image {
    margin: 0;

    & img {
      -o-object-fit: cover;
      object-fit: cover;
      -o-object-position: center center;
      object-position: center center;
      z-index: -1;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      right: 0;
    }
  }
}

.featured.section .slider .slides article > div:last-of-type {
  width: var(--content-max-width);
  max-width: var(--content-width);
  z-index: 3;
  height: 100%;
  margin: auto;
  position: relative;

  @media screen and (width <= 47.99em) {
    & {
      width: 100%;
    }
  }

  & > div {
    width: 50%;
    min-width: 22em;
    max-width: 27em;
    height: auto;
    color: var(--global-font-color);
    background-color: #ffffffbf;
    border-radius: 6px;
    padding: .35em 1.45em 1em;
    position: absolute;
    bottom: 3em;
    left: 0;

    @media (width <= 56.24em) {
      & {
        width: auto;
        max-width: 100%;
        font-size: .75em;
        position: absolute;
        bottom: 3em;
        left: 0;
        right: 0;
      }
    }

    @media (width <= 47.99em) {
      & {
        border-radius: 0;
        padding: .5em 1.5em;
        bottom: 0;
      }
    }

    & p {
      margin: .5em 0;
    }

    & a:not(.wp-block-button__link) {
      color: inherit;
    }
  }
}

.featured.section .slider .slides .slide-title {
  font-family: var(--global-font-family);
  color: var(--color-theme-secondary);
  text-transform: uppercase;
  font-size: 1.68em;
  font-weight: 300;
  line-height: 1;

  @media screen and (width >= 56.25em) {
    & {
      font-size: 1.85em;
    }
  }

  & strong {
    color: var(--color-theme-primary);
    display: block;
  }

  & sup {
    font-size: 1.15em;
    line-height: .9;
    top: 0;
  }

  & sub {
    font-size: 85%;
    line-height: .8;
    bottom: 0;
  }
}

.featured.section .slider ol.slider-control-nav {
  z-index: 2;
  text-align: right;
  width: 50%;
  max-width: calc(50% - 3.75em);
  z-index: unset;
  min-width: 22em;
  max-width: 30em;
  margin: 0;
  padding-right: 1em;
  position: absolute;
  bottom: 2.75em;
  right: 2.5%;

  & li {
    vertical-align: middle;
    z-index: 2;
    margin-right: .75em;
    font-size: .65em;
    display: inline-block;
    position: relative;

    & a {
      opacity: .5;
      color: var(--color-theme-secondary);
      background-color: var(--color-theme-secondary);
      text-indent: 1.5em;
      border-radius: 50%;
      width: 1.5em;
      height: 1.5em;
      display: block;
      overflow: hidden;

      &.slider-active {
        opacity: 1;
      }
    }
  }
}

.featured.section .slider ul.slider-direction-nav {
  display: none;
}

.featured.section .slider .edit-link {
  position: absolute;
  bottom: 0;
  right: 0;
}

@media (width <= 56.24em) {
  .featured.section {
    height: var(--height-featured-section-small);
    overflow: hidden;
  }

  .featured.section .slider .slides article {
    height: var(--height-featured-section-small);
  }

  .featured.section .slider .slides > * > div:last-of-type > div .has-medium-font-size {
    font-size: 1.25em;
  }

  .featured.section .slider ol.slider-control-nav {
    width: 100%;
    max-width: var(--content-max-width);
    margin: auto;
    bottom: 2.5em;
  }
}

@media screen and (height <= 30em) {
  .featured.section, .featured.section .slider .slides article {
    height: var(--height-featured-lanscape-small) !important;
  }
}

@media screen and (width >= 56.25em) {
  .featured.section .slider .slides article > div:last-of-type > div {
    bottom: 50%;
    transform: translateY(50%);
  }
}

@media screen and (width >= 56.25em) and (width <= 63.99em) {
  .featured.section .slider ol.slider-control-nav {
    max-width: 50%;
    bottom: 5.75em;
  }
}

@media screen and (width >= 64em) {
  .featured.section .slider .slides .slide-content > div > div {
    font-size: 1.25em;
  }
}

@media screen and (width >= 64em) and (width <= 79.99em) {
  .featured.section .slider ol.slider-control-nav {
    width: 50%;
    min-width: 22em;
    max-width: 29em;
    bottom: 4.75em;
  }
}

@media screen and (width >= 80em) {
  .featured.section .slider ol.slider-control-nav {
    right: calc(50% - 32em);
  }
}

@media screen and (width >= 80em) and (width <= 99.99em) {
  .featured.section .slider ol.slider-control-nav {
    max-width: calc(50% - 10.75em);
    bottom: 4.85em;
  }

  .has-medium-font-size {
    font-size: 1.25em;
  }
}

@media screen and (width >= 100em) {
  .featured.section .slider ol.slider-control-nav {
    bottom: 5.75em;
  }
}

.featured.section .slide-navigation {
  width: 100%;
  position: absolute;
  bottom: 0;
}

@media screen and (width <= 56.24em) {
  .featured.section .slider .slides > * {
    height: var(--height-featured-section);
  }
}

@media screen and (width >= 60em) {
  .site {
    grid-template-columns: 1fr;
    margin: 0;
    display: grid;
  }

  .site-main {
    grid-auto-flow: dense;
    grid-gap: 0rem;
    margin: 0;
    display: grid;
  }

  .post {
    border-radius: .5em;
    margin-bottom: 0;
    padding: 0;
    box-shadow: 0 2px 8px #808080cc;
  }

  .post:first-of-type {
    grid-column: span 2;
    margin: 0;
    padding: 0;
  }

  .wp-block-image.alignleft, .wp-caption.alignleft {
    margin-left: 0;
  }

  .wp-block-image.alignright, .wp-caption.alignright {
    margin-right: 0;
  }

  .entry-footer {
    border-bottom: none;
  }

  .site-main .posts-navigation {
    border-top: 1px solid var(--global-font-color);
    border-bottom: none;
    width: 100%;
    margin-bottom: 0;
    padding: 2rem 0 0;
  }
}
