/* ── Country Page Header block ─────────────────────────────────────────── */

.olixir-country-page-header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #0c0b0a;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;

    &::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: linear-gradient(180deg, rgba(12, 11, 10, 0.125) 0%, rgba(12, 11, 10, 0.375) 50%, rgba(12, 11, 10, 0.65) 90%);
    }

}

.olixir-country-page-header__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100%;
    min-width: 177.78vh; /* 16:9 */
    transform: translate(-50%, -50%);
    border: 0;
  }
}

.olixir-country-page-header__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.olixir-country-page-header__title {
  margin: 0;
  color: var(--paper);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  display: flex;

  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.olixir-country-page-header__subtitle {
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 200;
  text-align: center;

  span {
    display: block;
    text-align: center;
  }
}

.olixir-country-page-header__scroll-down {
  bottom: 2rem;
  color: #ffffff;
  width: 100%;

  &:hover {
    color: rgba(255, 255, 255, 0.9);
  }

  svg {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }
}

.editor-styles-wrapper .olixir-country-page-header.is-editor-preview {
  width: min(100%, 920px);
  margin-inline: auto;
  min-height: 52vh;
}

/* Vimeo notice label shown only inside the block editor preview */
.editor-styles-wrapper .olixir-country-page-header__vimeo-notice {
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-style: italic;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 768px) {
  .olixir-country-page-header__subtitle {
    width: 90%;
    margin: 0 auto;
    
    span {
      display: inline;
      text-align: left;
    }
  }
}