
.component-featured-video {
  align-items: flex-start;
  flex-direction: column;
  padding:30px 30px 100px 30px;
}

.component-featured-video {
  padding:50px 30px;
  background-color: var(--color-surface-dark);
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  margin: 50px auto;  
}

.component-two-columns-title {
  justify-content: space-between;
  align-items: flex-end;
  padding:0;
  padding-top:20px;
  gap:30px;
}

.component-two-columns-title {
  padding-top:0;
}

.component-two-columns-title > .column {
  height: 100%;
  background-color: rgba(255,255,255,0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index:10;
  max-width: 55%;
}

.component-two-columns-title .title-container a {
  font-size: 38px;
  font-weight: 400;
  color:rgba(255,255,255,0.9);
  text-decoration: none;
  margin-bottom: 30px;
  display: block;
}

.component-two-columns-title .description-container {
  padding-bottom: 30px;
}

.component-two-columns-title .description-container p{
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
  color:#f3f4f4;
  margin: 0;
  text-align: right;
}

.component-featured-video .video-container {
  width: 100%;
  position: relative;
}

.component-featured-video .video-container video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
}

.component-featured-video-before-after .video-container {
  overflow: hidden;
  border-radius: 10px;
  background-color: #111;
}

.portfolio-before-after-picture {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111;
  pointer-events: none;
}

.portfolio-before-after-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-before-after-label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 12;
  color: var(--portfolio-before-after-color, #f4f4f4);
  -webkit-text-fill-color: var(--portfolio-before-after-color, #f4f4f4);
  font-family: "Stara", "Helvetica", "Open Sans", sans-serif;
  font-size: 125px;
  line-height: 134px;
  font-weight: 900;
  font-style: normal;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.58;
  transform: translate(-50%, -50%);
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.portfolio-before-after-label span {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.component-featured-video .button-container {
  display: flex;
  bottom: 30px;
  right: 30px;
  position: absolute;
  z-index: 10;
}

.component-featured-video .button {
  margin:0;
}

.component-featured-video .button:nth-child(2) {
  margin-right: 0;
}

@media (min-width: 981px) {
  /* row-title is the first div child, so even nth-of-type maps to odd portfolio items */
  .component-featured-video:nth-of-type(odd) .component-two-columns-title {
    flex-direction: row-reverse;
  }

  .component-featured-video:nth-of-type(odd) .component-two-columns-title .description-container p {
    text-align: left;
  }

  .component-featured-video:nth-of-type(odd) .component-two-columns-title .title-container {
    text-align: right;
  }
}


@media (max-width: 980px) {

  .component-featured-video {
    padding: 30px 20px;
    width: calc(100% - 40px);
  }

  .row.component-featured-video {
    padding: 30px 20px;
  }

  .component-featured-video.component-featured-video-cmdv .component-two-columns-title .title-container a{
    max-width: 220px;
  }

  .component-featured-video .column {
    align-items: flex-start;
    padding: 0;
    max-width: 100%;
  }

    .row.component-featured-video .component-two-columns-title {
    flex-direction: column;
    align-items:flex-start;
    gap:0;
  }

  .row.component-featured-video .component-two-columns-title {
    padding-left: 0;
    padding-right: 0;
  }

  .row.component-featured-video .component-two-columns-title .title-container a {
    margin-bottom: 10px;
  }

  .row.component-featured-video .component-two-columns-title .description-container p {
    text-align: left;
  }

  .component-featured-video h1 {
      margin: 20px 0;
  }


  .component-featured-video p {
      text-align: left;
      padding-left: 0;
  }



  .component-featured-video .button-container {
    position: relative;
    bottom:auto;
    left:auto;
    right: auto;
    margin-top: 30px;
  }

  .component-featured-video .video-container {
    display: flex;
    flex-direction: column-reverse;

  }

  .portfolio-before-after-label {
    font-size: 73px;
    line-height: 78px;
  }

  .component-featured-video-before-after .video-container {
    display: grid;
    grid-template-areas:
      "media"
      "button";
    overflow: visible;
    background-color: transparent;
  }

  .component-featured-video-before-after .video-container video {
    grid-area: media;
  }

  .component-featured-video-before-after .portfolio-before-after-picture {
    grid-area: media;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .component-featured-video-before-after .portfolio-before-after-picture img {
    width: 100%;
    height: auto;
  }

  .component-featured-video-before-after .portfolio-before-after-label {
    grid-area: media;
    position: relative;
    top: auto;
    left: auto;
    align-self: center;
    justify-self: center;
    transform: none;
  }

  .component-featured-video-before-after .button-container {
    grid-area: button;
  }

  .component-featured-video .button {
      margin: 0;
  }

  .component-featured-video .button:nth-child(1) {
      margin-right: 10px;
  }

  .component-featured-video p {
      margin: 20px 0 30px 0;
  }


}
