/* --- Block Header Media & Text
-------------------------------------------------------- */

.wp-block-custom-header-media h2 {
  font-size: var(--wp--custom--typography--font-size--huge-post-title);
  line-height: var(--wp--custom--typography--line-height--huge-post-title);
}

.content>.video-play {
  display: flex;
  align-items: center;
}

.content>.video-play,
.content.has-text-align-center>.video-play {
  justify-content: center;
  text-decoration: none;
}

.content.has-text-align-left>.video-play {
  justify-content: flex-start;
}

.content.has-text-align-right>.video-play {
  justify-content: flex-end;
}

.content>.video-play>span {
  display: inline-block;
  padding-left: 7px;
}

.modal.active .close {
  left: unset;
  top: 50px;
  right: 50px;
}

.wp-block-custom-header-media .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content,
.wp-block-featured-slider .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
  padding: 0;
}

.wp-block-custom-header-media-with-title-and-nav .content span,
.wp-block-custom-header-media-with-video .content span,
.wp-block-custom-header-media .content span {
  font-weight: 700;
  font-size: var(--wp--preset--font-size--medium);
  transition: all 0.3s ease-in-out;
}

.wp-block-custom-header-media-with-title-and-nav .video-play:hover span,
.wp-block-custom-header-media-with-video .video-play:hover span,
.wp-block-custom-header-media .video-play:hover span {
  letter-spacing: 1px;
}

/* When Media Left and Right */

.wp-block-media-text:not(.is-stacked-on-mobile).has-media-on-the-right .wp-block-media-text__content {
  padding-left: 0;
}

.wp-block-media-text:not(.is-stacked-on-mobile):not(.has-media-on-the-right) .wp-block-media-text__content {
  padding-right: 0;
}


/* --- Block Header Media & Text With Title and Navigation
-------------------------------------------------------- */

.wp-block-custom-header-media-with-video .content svg,
.wp-block-custom-header-media-with-video .content span,
.wp-block-custom-header-media-with-title-and-nav .content svg,
.wp-block-custom-header-media-with-title-and-nav .content span,
.wp-block-custom-header-media-with-title-and-nav .wp-block-fse-pro-header-search .search-controller svg,
.wp-block-custom-header-media-with-title-and-nav .wp-block-fse-pro-header-social .social-controller svg {
  color: var(--wp--preset--color--color-light);
  fill: var(--wp--preset--color--color-light);
}

.wp-block-custom-header-media-with-title-and-nav .wp-block-site-title a,
.wp-block-custom-header-media-with-title-and-nav .wp-block-navigation__responsive-container-open {
  color: var(--wp--preset--color--color-light);
}

.wp-block-custom-header-media-with-title-and-nav .wp-block-site-title a:hover,
.wp-block-custom-header-media-with-title-and-nav .wp-block-site-title a:focus,
.wp-block-custom-header-media-with-title-and-nav .wp-block-navigation__responsive-container-open:hover,
.wp-block-custom-header-media-with-title-and-nav .wp-block-navigation__responsive-container-open:focus,
.wp-block-custom-header-media-with-title-and-nav .wp-block-fse-pro-header-search .search-controller:hover svg,
.wp-block-custom-header-media-with-title-and-nav .wp-block-fse-pro-header-social .social-controller:hover svg {
  color: var(--wp--preset--color--text-link);
  fill: var(--wp--preset--color--text-link);
}

.wp-block-cover.wp-block-custom-header-media-with-title-and-nav .block-editor-block-list__layout {
  width: auto; // For Editor
}

.wp-block-custom-header-media-with-title-and-nav .wp-block-main-header {
  padding-bottom: 10px;
}

.wp-block-custom-header-media-with-title-and-nav.wp-block-section {
  padding-top: 0;
}

.wp-block-custom-header-media-with-title-and-nav .wp-block-main-header .wp-block-button__link,
.wp-block-main-header .wp-block-button__link {
  margin-top: 0; // For Editor
}

.wp-block-custom-header-media-with-title-and-nav .content>.video-play>span {
  padding-left: 14px; // For Editor
}


/* For Wp Custom Block - Popup Video Overlay Issues */

.wp-block-custom-header-media-with-title-and-nav .wp-block-social-search-container {
  z-index: 3;
}

.wp-block-custom-header-media-with-title-and-nav {
  z-index: 2;
}

.wp-block-custom-header-media-with-video.wp-block-cover .wp-block-cover__inner-container,
.wp-block-custom-header-media-with-title-and-nav.wp-block-cover .wp-block-cover__inner-container {
  z-index: inherit;
}

.wp-block-custom-header-media-with-video .wp-block-media-text__media,
.wp-block-custom-header-media-with-title-and-nav .wp-block-media-text__media {
  z-index: 2;
}

.wp-block-custom-header-media-with-video .wp-block-media-text__content>*:not(.wp-block-buttons),
.wp-block-custom-header-media-with-video .wp-block-media-text__content .wp-block-buttons .wp-block-button,
.wp-block-custom-header-media-with-title-and-nav .wp-block-media-text__content>*:not(.wp-block-buttons),
.wp-block-custom-header-media-with-title-and-nav .wp-block-media-text__content .wp-block-buttons .wp-block-button {
  position: relative;
  z-index: 2;
}

.wp-block-custom-header-media-with-video .wp-block-fse-pro-popup-video .content,
.wp-block-custom-header-media-with-title-and-nav .wp-block-fse-pro-popup-video .content {
  position: relative;
}

/* --- Block Header Transparent
-------------------------------------------------------- */

header .header-transparent {
  position: absolute !important;
  width: 100% !important;
  z-index: 10;
  transition: all 0.4s;
}

.header-media-inner-post,
.wp-block-featured-slider.wp-block-section,
.wp-block-custom-header-media.wp-block-section {
  margin: 0 auto !important;
  padding: 0;
}

.wp-block-custom-header-media .wp-block-cover__inner-container {
  position: relative;
  padding: var(--wp--custom--spacing--outer);
  box-sizing: border-box;
}

.wp-block-custom-header-media {
  position: relative;

  &::before {
    content: '';
    width: 100%;
    height: 100%;
    z-index: 99;
    background: #fff;
    left: 0;
    bottom: 0;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.55, 0, 0.1, 1) 0.2s;
  }

  &.show::before {
    height: 0;
  }
}

.block-editor-block-list__block.wp-block-custom-header-media::before {
  display: none !important;
}

.wp-block-custom-header-media .wp-block-cover__image-background {
  transform: scale(1.1);
  transition: all 0.8s cubic-bezier(0.55, 0, 0.1, 1) 0.4s;
}

.wp-block-custom-header-media.show .wp-block-cover__image-background {
  transform: scale(1);
}

.wp-block-custom-header-media .wp-block-media-text__content {
  margin-top: 70px;
  transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1) 0.4s;
  transition-delay: 1.2s;
  opacity: 0;
}

.block-editor-block-list__block.wp-block-custom-header-media .wp-block-media-text__content {
  margin-top: 0;
  opacity: 1;
}

.wp-block-custom-header-media.show .wp-block-media-text__content {
  margin-top: 0;
  opacity: 1;
}

.block-editor-block-list__block.wp-block-main-header {
  padding: 0 30px
}