/*
 * The overlay's pages and its close button (pages/_default.scss,
 * pages/_mapentry.scss and the close button in components/_menu.scss),
 * converted to plain CSS (ADR-0007). pages/_index.scss isn't: with
 * nuxt-i18n's route names (`index___de`) its `body.index-page` never
 * matched. The overlay itself, `.scroll-area`, is in base.css; its slide is
 * assets/js/navigation.js.
 */

.default-page {
  padding: var(--spacing-l) var(--spacing-m) 9rem var(--spacing-m);
}

/* A work's page (and, as on the old site, an audio walk's). */
.mapentry-page {
  padding: var(--spacing-l) var(--spacing-m);

  footer {
    padding: 3rem 0;
    text-align: center;
    /* paragraphStyle('subtitle') */
    font-size: var(--font-size-medium);
    font-weight: 200;
    line-height: 1.3;

    a {
      text-decoration: none;
      font-weight: 400;
    }

    /* An audio walk's "back to map", under its "next audio walk". */
    a + a {
      display: block;
      margin-top: var(--spacing-s);
    }
  }
}

.mapentry-page--header {
  margin-bottom: var(--spacing-l);

  h1 {
    margin-bottom: var(--spacing-s);
  }

  /* paragraphStyle('subtitle') */
  h2 {
    font-size: var(--font-size-medium);
    font-weight: 200;
    line-height: 1.3;
  }
}

.button-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  padding: var(--spacing-s) var(--spacing-m);
  font-size: var(--font-size-medium);
  z-index: 999;
}

/* A link now; it looks as the old element did. */
.close-btn {
  display: block;
  cursor: pointer;
  width: var(--hamburger-width);
  height: 0.7em;
  position: relative;
  margin-top: 0.2em;

  /* In the gallery lightbox (assets/js/gallery.js). */
  &.white {
    color: white;
  }

  @media (hover: hover) {
    transition: opacity var(--transition-fast);

    &:hover {
      opacity: var(--opacity);
    }
  }

  span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;

    &:nth-child(1) {
      transform: translate(-50%, -50%) rotate(45deg);
    }

    &:nth-child(2) {
      transform: translate(-50%, -50%);
      opacity: 0;
    }

    &:nth-child(3) {
      transform: translate(-50%, -50%) rotate(-45deg);
    }
  }
}
