#more {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  appearance: none;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  @media (min-width: 600px) {
    bottom: auto;
    left: auto;
    transform: none;
    position: absolute;
    top: 64px;
    right: 16px;
    appearance: none;
    text-decoration: underline;
    padding: 0;
    border: none;
    background: none;
    color: var(--white);
    cursor: pointer;
    margin-top: 16px;
  }
}

#less {
  appearance: none;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
  display: inline-block;
}

#less span {
  display: none;
  @media (min-width: 600px) {
    display: block;
  }
}

#less svg {
  margin: 0 4px;
  @media (min-width: 600px) {
    display: none;
  }
}

#more:hover, #less:hover {
  text-decoration: none;
}

#panel {
  background-color: var(--accent-bg);
  position: fixed;
  right: 0;
  color: var(--text);
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  height: calc(100dvh);
  top: 0;
  z-index: 2;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  @media (min-width: 600px) {
    top: 64px;
    height: calc(100dvh - 64px);
    width: 40%;
  }
}

#panel.visible {
  transform: translateX(0);
}

#panel p {
  margin-bottom: 16px;
}

#panel > div {
  display: flex;
  margin-bottom: 32px;
  height: 32px;
  @media (min-width: 600px) {
    margin-bottom: 16px;
    height: auto;
  }
}

#panel > div > a {
  @media (min-width: 600px) {
    display: none;
  }
}

#panel article {
  display: flex;
  margin-bottom: 16px;
  position: relative;
}

#panel article > div {
  width: 50%;
  aspect-ratio: 3 / 4;
  height: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#panel quote {
  width: 100%;
  margin-left: 16px;
}

#panel nav {
  display: flex;
}

#panel article button {
  width: 32px;
  height: 32px;
  position: relative;
  top: -32px;
  appearance: none;
  padding: 0;
  border: none;
  background: none;
  color: var(--white);
  cursor: pointer;
  margin-bottom: -32px;
}

.nav {
  position: fixed;
  bottom: 0;
  height: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  @media (min-width: 600px) {
    z-index: 2;
    width: auto;
  }
}

.nav button {
  width: 32px;
  /* height: 32px; */
  appearance: none;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: black;
}

.nav a {
  text-decoration: none;
  display: block;
}

body > img {
  object-fit: contain;
  @media (min-width: 600px) {
    object-fit: cover;
  }
}