@use '../../_global/styles/mixins' as *;
@use '../../_global/styles/vars' as *;

.magazine-header {
  --magazine-header-height: 90px;
  position: sticky;
  display: block;
  height: var(--magazine-header-height);
  top: var(--header-height);
  z-index: 99;
  font-size: 0;
  line-height: 0;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 -10px 0 0 var(--swatches-neutrals-white);
  margin-top: 0;
  container-type: inline-size;

  @media(max-width: 767px) {
    --magazine-header-height: 70px;
    margin-bottom: 0;
  }

  a {
    transition: none;
  }

  .gradient {
    @include full-size;
    @include gradient;
    // background: linear-gradient(90deg, var(--theme-color-gradient-01) 10%, var(--theme-color-gradient-02) 55%, var(--theme-color-gradient-03) 90%);
    transform-origin: center top;
  }

  .title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center 7%;
    transform: translate(-50%, -50%);
    display: inline-block;
    font-family: var(--font-korb), sans-serif;
    font-size: var(--font-size-h1);
    color: var(--color-text);
    line-height: 1;
    padding: 15px;
    font-weight: 400;
    text-decoration: none;
    pointer-events: all;

    @media(max-width: 567px) {
      display: block;
      width: 100%;
    }
  }

  img {
    display: block;
    width: auto;
    height: auto;
    max-height: 75px;
    margin: 0 auto;

    @media(max-width: 767px) {
      max-height: 56px;
      margin: 0 auto;
    }
  }

  .image-and-text {
    display: flex !important;
    align-items: center;
    @media(max-width: 567px) {
      width: auto;
    }
    img {
      @media(max-width: 370px) {
        display: none;
      }
    }
  }
  .text {
    display: flex;
    flex-direction: column;
    font-size: 32px;
    line-height: 29px;
    padding-left: 10px;
    margin: 0;
    white-space: nowrap;
    @media(max-width: 567px) {
      font-size: 22px;
      line-height: 19px;
    }
    .title-text {
      text-align: right;
    }
    .small-text {
      text-align: right;
      font-size: 19px;
      @media(max-width: 567px) {
        font-size: 13px;
      }
    }
  }

  &.narrow {
    --magazine-header-height: 50px;
    margin-bottom: 10px;

    @media(max-width: 767px) {
      margin-bottom: 0;
    }

    img {
      height: auto;
      max-height: 40px;
    }

    .title {
      font-size: var(--font-size-h3);
    }
  }
}
