.cplc-page .video-embed-field-provider-youtube iframe {
  width: 100%;
}
/* .cplc-page.listing-page.with-overflow-stripes {
  --content-width: 1140px;
} */
:root {
  --content-width: 1200px;
  --bg-c4: #f0f0f0;
  --listing-item-gap: 20px;
}
.cplc-page .container:has(#block-b5pmi-content) {
  background-color: var(--bg-c4);
  max-width: 100%;
}
.cplc-page #block-b5pmi-content {
  padding-top: var(--sec-space);
  padding-bottom: var(--sec-space);
}
/* .view-cplc-related-video-section .related-title {
  margin-bottom: 0;
} */
.cplc-page.listing-page .pmi-breadcrumb,
.listing-page .listing-page-view {
  max-width: 100% !important;
}
/* .with-overflow-stripes .list-item {
  --listing-row-top-bottpm-padding: 50px;
  position: relative;
  padding: 0;
  padding-bottom: var(--sec-space);
} */
.cplc-page p {
  font-size: var(--fs-px16);
  line-height: 1.625rem;
  color: var(--black);
}
/* .cplc-page.detail-page .fullwidth-section {
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
} */
.cplc-page .thumb-card-img {
  background: transparent;
  justify-content: flex-start;
}
.cplc-page .thumb-card {
  --thumb-card-col-4-max-width: 240px;
  --thumb-card-col-3-max-width: 347px;
}
.cplc-page .related-section-outer-view .thumb-card {
  max-width: fit-content;
}
.cplc-page .block-views-blockcplc-related-section-block-1 {
  max-width: 100% !important;
  padding-top: var(--sec-space) !important;
  /* background-color: var(--bg-c4); */
}
/* .cplc-page .block-views-blockcplc-related-section-block-1 .view-header {
  padding-top: var(--sec-space);
} */
.has-bg-section {
  background-color: var(--bg-c4);
}
.has-no-bg-section {
  background-color: transparent;
}
.cplc-page .views-infinite-scroll-content-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 239.3px);
  gap: 62px;
  row-gap: 0 !important;
  justify-content: space-between;
}

.cplc-page .related-section-view.views-row {
  padding-bottom: var(--sec-space);
}
.cplc-page .js-pager__items.pager {
  padding-bottom: var(--sec-space);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cplc-page .pager__item {
  padding: 0;
}
.cplc-page .thumb-card {
  width: 100%;
  max-width: none;
}
/* .with-overflow-stripes .listing-page-view>.view-content>div {
  grid-template-columns: auto;
} */
.video-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--listing-item-gap);
  padding-top: var(--sec-space);
  padding-bottom: var(--sec-space);
}
.view-cplc-related-video-section .views-row:last-of-type .video-wrapper {
  padding-bottom: 0;
}

/* .views-row.has-bg {
  background-color: var(--bg-c4);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  z-index: 0;
} */
.views-row.has-no-bg {
  background-color: transparent;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  z-index: 0;
}
.related-section-view.views-row.is-last-row {
  padding-bottom: var(--sec-space);
}
.cplc-page .thumb-card-img > * {
  max-width: 100%;
}
.thumb-card-img {
  min-height: auto;
}
/* .view-id-cplc_related_video_section .views-row:last-of-type {
  padding-bottom: var(--sec-space);
} */
.view-id-cplc_related_video_section .view-content > .views-row:first-of-type .video-wrapper {
  padding-top: 30px;
}
.cplc-page.listing-page .listing-page-view {
  padding-bottom: 0;
}
.view-id-cplc_related_video_section .video-embed-field-provider-youtube,
.view-id-cplc_related_section .related-section-view {
  position: relative;
  z-index: 0 !important;
}
.view-id-cplc_related_video_section .views-row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(3n) {
  margin-right: 0;
}
/* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 4),
.view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 5),
.view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 6) {
  position: relative;
}

.view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 4)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -9999px;
  right: -9999px;
  bottom: 0;
  background-color: var(--bg-c4);
  z-index: -1;
} */
.dynamic-full-bg {
  position: absolute;
  left: 0;
  width: 100vw;
  background-color: var(--bg-c4);
  z-index: 0;
  pointer-events: none;
}
.view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
.view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100%;
  background-color: var(--bg-c4);
  z-index: -1;
}
.view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube,
.view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start {
  padding-top: var(--listing-item-gap);
  padding-bottom: var(--listing-item-gap);
}

.view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
  width: 100%;
  height: 195px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: none;
}
.fullwidth-section {
  background: none !important;
}
.detail-page .fullwidth-section {
  padding-top: 0 !important;;
  padding-bottom: 0 !important;;
}
.block-views-blockcplc-related-section-block-1.has-bg-content {
  background-color: var(--bg-c4); /* grey */
}
.block-views-blockcplc-related-section-block-1.has-no-bg-content {
  background-color: transparent; /* white */
}
/* .bg-grey-row {
  background-color: var(--bg-c4);
}
.bg-white-row {
  background-color: #ffffff;
} */
/* .cplc-page .related-section-outer-view {
  padding-top: 0;
} */
/* .view-id-cplc_related_section .view-content {
  padding-top: 50px;
} */
/* .video-embed-field-provider-youtube {
  position: relative;
  width: 100%;
  padding-bottom: 56.25% !important;
  height: 0;
  overflow: hidden;
}

.video-embed-field-provider-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 78% !important;
  border: 0;
} */
.view-content .views-row > .video-embed-field-provider-youtube:nth-child(-n+3) {
  padding-top: 0;
}
@media (min-width: 1920px) {
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    left: calc((1920px - var(--content-width)) / 2 * -1);
    width: 1920px;
  }
}
@media (min-width: 992px) {
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100vw - var(--content-width)) / 2 * -1);
    width: 100vw;
    height: 100%;
    background-color: var(--bg-c4);
  }
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc((100vw - var(--content-width)) / 2 * -1);
    width: 100vw;
    height: 100%;
    background-color: #ffffff;
  }
}
@media (max-width: 991px) {
  .video-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
  .cplc-page .video-embed-field-provider-youtube iframe {
    width: 100%;
    height: auto;
  }
  .cplc-page .thumb-card-img {
    min-height: auto;
  }
}

@media (max-width: 575px) {
  .video-wrapper {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .cplc-page .related-section-view.views-row {
    flex: 0 0 100%;
  }
}
@media (min-width: 1366px) and (orientation:landscape) {
  body.cplc-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(4, 239.3px);
    gap: 62px;
  }
}
@media (min-width: 768px) {
  .view-id-cplc_related_video_section .views-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--listing-item-gap);
  }

  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube {
    flex: 0 0 calc(33.333% - var(--listing-item-gap));
  }

  /* Reset any mobile-specific overrides */
  .view-id-cplc_related_video_section .views-row {
    flex-direction: row;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (min-width: 768px) and (max-width: 1180px) and (orientation:landscape) {
  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
    height: 157px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation:landscape) {
  /* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 4)::before {
        left: 4px;
        right: -5px;
        transform: translateX(-5%);
        width: 100vw;
        height: 100%;
        background-color: var(--bg-c4);
        z-index: -1;
    } */
  /* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
    height: revert-layer !important;
  } */
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    left: 4px !important;
  }
}
@media (width: 1180px) and (height: 820px) and (orientation:landscape) {
  .cplc-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(4, 239.3px);
    gap: 20px;
  }
  .cplc-page .related-section-outer-view .thumb-card {
    max-width: 157px;
  }

}
@media (width:1366px) and (height:1024px) and (orientation:landscape) {
  .cplc-page .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before {
    left: calc((100vw - 1145px) / 2 * -1);
  }
}
@media (width:1280px) and (height: 800px) and (orientation:landscape) {
  .cplc-page .thumb-card-img {
    margin-bottom: 40px;
  }
  .cplc-page .view-id-cplc_related_section .view-content {
    padding-top: 23px;
  }
}
/*
@media (min-width: 820px) and (max-width: 11180px) and (orientation:landscape) {
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before {
    transform: translateX(-7%);
  }
} */
@media only screen
and (min-device-width: 820px)
and (max-device-width: 820px)
and (min-device-height: 1180px)
and (max-device-height: 1180px)
and (orientation: portrait) {
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    transform: translateX(-7%) !important;
  }
}
@media only screen and (width: 1024px) and (height: 1366px) and (orientation: portrait) {
  .cplc-page .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
    height: 157px !important;
  }
}
@media only screen and (min-device-width: 768px) and (max-device-width: 1180px) and (orientation: portrait) {
  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
    height: 113px !important;
  }
}
@media (width: 1368px) and (height: 912px) and (orientation: landscape) {
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    left: calc((100vw - 1162px) / 2 * -1) !important;
  }
}
@media (width: 912px) and (height: 1368px) and (orientation: portrait) {
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    left: -66px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  /* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 4),
  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 5),
  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 6) {
    position: relative;
  }

  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(6n + 4)::before {
    left: -1px;
    right: -2px;
    transform: translateX(-5%);
    width: 100vw;
    height: 100%;
    background-color: var(--bg-c4);
    z-index: -1;
  } */
  /* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
    height: auto;
   } */
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    left: -1px;
    right: -2px;
    transform: translateX(-5%);
    width: 100vw;
    height: 100%;
    background-color: var(--bg-c4);
    z-index: -1;
  }
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube,
  .view-id-cplc_related_section .related-section-view {
    position: relative;
}
  .cplc-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .cplc-page #block-b5pmi-content {
    max-width: var(--container-width);
    padding-left: var(--container-lr-padding);
    padding-right: var(--container-lr-padding);
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 767px) {

/* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube {
    position: relative;
  }

  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(even)::before {
    content: '';
    background-color: var(--bg-c4);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
  } */
  /* .cplc-page .view-id-cplc_related_section .view-content {
    padding-top: 30px;
   }
  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube {
    padding: 30px 0 !important;
  } */
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    content: '';
    background-color: var(--bg-c4);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
}
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube,
  .view-id-cplc_related_section .related-section-view {
    position: relative;
}

  /* Optional: make sure iframe doesn’t overflow */
  .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube iframe {
    width: 100%;
    display: block;
  }
  .fullwidth-section {
    background: none !important;
  }

  .view-id-cplc_related_video_section .video-embed-field-provider-youtube iframe {
    width: 100%;
    height: 300px;
    display: block;
  }
  .cplc-page .thumb-card-img {
    min-height: auto;
  }

  .view-id-cplc_related_video_section .container {
    padding: 0;
  }

  .view-id-cplc_related_video_section .video-wrapper {
    padding: 20px;
  }

  /* .view-id-cplc_related_video_section .has-bg {
     background-color: var(--bg-c4);
  } */

  .view-id-cplc_related_video_section .has-no-bg {
    background: none;
  }

  /* .views-row.has-bg {
    background-color: var(--bg-c4);
  }
  .views-row.has-no-bg {
    background-color: transparent;
  } */

  .cplc-page .video-embed-field-provider-youtube iframe {
    width: 100%;
    height: 300px;
  }
  .views-row .video-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--listing-item-gap);
    padding-top: var(--sec-space);
    padding-bottom: var(--sec-space);
  }
  .cplc-page .views-infinite-scroll-content-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .view-cplc-related-section.view-id-cplc_related_section {
    padding: 0 !important;
  }
  .cplc-page .related-section-outer-view .thumb-card {
    max-width: var(--thumb-card-col-4-max-width);
  }
  .cplc-page .thumb-card-img {
    background: transparent;
    justify-content: flex-start !important;
  }
  .thumb-card-img a {
    width: 100%;
  }

}
@media (min-width: 1200px) {
  .cplc-page .banner-content-container.container {
    max-width: var(--container-width);
    padding-left: var(--container-lr-padding);
    padding-right: var(--container-lr-padding);
  }
  .cplc-page .container {
    max-width: 1162px;
    margin: 0 auto;
    padding: 0;
  }
}
@media (min-width: 1600px) {
  .cplc-page .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
  }
}
@media (min-width: 540px) and (max-width:720px) and (orientation:landscape) {
  .cplc-page .views-infinite-scroll-content-wrapper {
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
  }
  /* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(even)::before{
    content: none;
  }
 .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(4n + 3),
 .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(4n + 4) {
  position: relative;
 }
/* .view-id-cplc_related_video_section .views-row > .video-embed-field-provider-youtube:nth-child(4n + 3)::before {
    content: '';
    background-color: var(--bg-c4);
    position: absolute;
    top: 0;
    left: -74px;
    right: auto;
    transform: translateX(-5%);
    width: 100vw;
    height: 100%;
    background-color: var(--bg-c4);
    z-index: -1;
} */
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube.bg-grey-row.bg-row-start::before,
  .view-id-cplc_related_section .related-section-view.bg-grey-row.bg-row-start::before {
    content: '';
    background-color: var(--bg-c4);
    position: absolute;
    top: 0;
    left: 98.3%;
    transform: translateX(-48%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    right: 0;
}
  .view-id-cplc_related_video_section .video-embed-field-provider-youtube,
  .view-id-cplc_related_section .related-section-view {
    position: relative;
}

  .cplc-page .views-infinite-scroll-content-wrapper {
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

}
@media (min-width: 540px) and (max-width:720px) {
  .cplc-page #block-b5pmi-content {
    max-width: var(--container-width);
    padding-left: var(--container-lr-padding);
    padding-right: var(--container-lr-padding);
    margin: 0 auto;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .thumb-card-img,
  .thumb-card-video {
    --image-min-height: auto !important;
  }
}
