/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  * {
    margin: 0;
  }
  
  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  
  body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }


  * {
    font-family: 'Montserrat', sans-serif;
  }

  body {
    padding: 2rem 3.5rem;
  }

  h1 {
    font-size: 8rem;
    line-height: 1.1;
    font-weight: 900;
    text-orientation: mixed;
    transform: rotate(-90deg);
    width: 65vh;
    position: absolute;
    left: 3.5rem;
    top: calc(65vh + 2rem);
    transform-origin: top left;
  }

  h1 span {
    font-size: 14rem;
    display: block;
    margin-bottom: 3.5rem;
  }

  p {
    font-size: 2.5rem;
    max-width: 70vw;
    font-weight: 600;
    line-height: 1.4;
    position: absolute;
    top: calc(65vh + 6rem);
    left: 6.5rem;
}

:root {
    --vh: 100%;
}


.overlay {
    position: absolute;
    left: 2rem;
    top: 2rem;
    width: calc(100vw - 4rem);
    height: calc((var(--vh, 1vh) * 100) - 4rem);
    background: rgb(0, 0, 0, 0.8);
    border-radius: 1rem;
    padding: 9.5rem 1.8rem;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transition: all 500ms ease-in-out;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay img {
    width: 100%;
}

.close {
    width: 20rem;
    height: 10rem;
    border-radius: 50%;
    position: absolute;
    right: -1rem;
    top: -1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.close span {
    font-weight: bold;
    color: white;
    font-size: 2rem;
}

.close::before, .close::after {
    content: "";
    position: absolute;
    width: 5rem;
    height: 0.6rem;
    background: white;
    transform: rotate(45deg);
    border-radius: 1rem;
    top: 4.5rem;
    right: 2.5rem;
}

.close::after {
    transform: rotate(-45deg);
}

