.folder__lede {
  max-width: 60ch;
  padding: 1rem 0;
}

/* Fila de peças que se desliza na horizontal: a pasta inteira cabe num ecrã. A altura
   das peças é fixa; a largura vem da proporção de cada uma (4:5, 16:9, 9:16). */
.sheet {
  --frame-h: min(44vh, 26rem);
  display: flex;
  gap: 1.25rem;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) 1rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.sheet__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.sheet__item a,
.sheet__item > div {
  display: block;
  color: inherit;
  text-decoration: none;
}

.sheet__frame {
  height: var(--frame-h);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(26, 30, 41, 0.12);
  border-radius: 3px;
}

.sheet__frame img,
.sheet__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.sheet__item a:hover .sheet__frame img {
  transform: scale(1.03);
}

/* A legenda acompanha a largura da imagem em vez de a alargar. */
.sheet__caption {
  width: 0;
  min-width: 100%;
  padding-top: 0.5rem;
  border-top: 1px dotted currentColor;
  margin-top: 0.5rem;
}

.sheet__client {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.sheet__detail {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
}

.sheet--reels .sheet__frame {
  aspect-ratio: 9 / 16;
}

.sheet-nav {
  display: flex;
  gap: 0.5rem;
}

.sheet-nav button {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sheet-nav button:hover {
  background: rgba(26, 30, 41, 0.08);
}

.sheet-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.sheet-nav svg {
  width: 1rem;
  height: 1rem;
}

.folder__lede-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.sheet__group-title {
  margin: 2rem 0 1rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
}

.handles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.handles li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dotted currentColor;
}

.handles a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-decoration: none;
}

.handles a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.handles span {
  align-self: center;
  font-size: var(--step--1);
}

@media (max-width: 600px) {
  .handles li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .handles a {
    font-size: var(--step-1);
    overflow-wrap: anywhere;
  }
}

/* Telemóvel: peças mais baixas e sem botões (desliza-se com o dedo), para a pasta caber
   num ecrã. */
@media (max-width: 760px) {
  .sheet {
    --frame-h: min(36vh, 22rem);
    --frame-h: min(36svh, 22rem);
  }

  .sheet-nav {
    display: none;
  }

  .sheet {
    scrollbar-width: none;
  }

  .sheet::-webkit-scrollbar {
    display: none;
  }

  .folder__lede {
    padding: 0.6rem 0;
    font-size: 0.8rem;
  }
}
