/* Texture: three large portraits, one line to read them by. */
.texture-opening-grid { row-gap: 1.5rem; align-items: end; }
.texture-title, .texture-intro { grid-column: 1 / -1; }
.texture-title .opening-title { max-width: none; font-size: clamp(2.75rem, 1.15rem + 7.8vw, 8.25rem); }
.texture-title .opening-title span { display: block; }
.texture-intro { max-width: 26rem; }

.texture-series {
  --strip-inset: max(var(--gut), calc((100% - var(--max)) / 2));
  padding-bottom: var(--space);
}
.texture-strip-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 2rem;
  padding-bottom: 1rem;
}
.texture-credit { font-size: var(--fs-s); color: var(--ink-soft); }

.texture-strip {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  border-inline-start: var(--part-w) solid var(--part);
  padding-inline-start: .875rem;
}
.texture-strip:focus-visible, .texture-card:focus-visible { outline-offset: calc(-1 * var(--part-w)); }
.texture-card { min-width: 0; }
.texture-card .frame { aspect-ratio: 4 / 5; }
.texture-card-copy {
  display: grid;
  justify-items: start;
  gap: .75rem;
  padding-block-start: clamp(1rem, 2vw, 1.75rem);
}
.texture-card-copy > p:last-child { max-width: 34rem; }
.texture-track { display: none; }

.texture-extension-grid, .texture-close-grid { row-gap: 2rem; align-items: center; }
.texture-extension-copy, .texture-extension-photo,
.texture-close-copy, .texture-service-nav { grid-column: 1 / -1; }
.texture-extension-copy, .texture-close-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}
.texture-extension-copy .h-xl { max-width: 11ch; text-wrap: wrap; }
.texture-extension-copy > p:not(.label) { max-width: 31rem; }
.texture-close-grid { align-items: start; }
.texture-close-copy .h-l { max-width: 16ch; text-wrap: wrap; }
.texture-service-list { list-style: none; padding: 0; border-top: .0625rem solid var(--hair); }
.texture-service-list li { border-bottom: .0625rem solid var(--hair); }
.texture-service-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: .7rem;
  font-family: var(--display);
  font-size: var(--fs-m);
  line-height: 1.2;
}

@media (min-width: 48rem) {
  .texture-title { grid-column: 1 / 9; }
  .texture-intro { grid-column: 9 / -1; padding-bottom: .25em; }

  /* The scrollport goes to the page edge. Only its first frame starts on the grid. */
  .texture-strip {
    grid-auto-flow: column;
    grid-auto-columns: clamp(24rem, 69%, 52rem);
    align-items: start;
    gap: var(--col-gap);
    width: 100%;
    border: 0;
    padding: 0 var(--strip-inset) 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--strip-inset);
    scrollbar-color: var(--ink-soft) var(--oat);
    scrollbar-width: thin;
  }
  .texture-card { scroll-snap-align: start; }
  .texture-card:last-child { scroll-snap-align: end; }

  .texture-track {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    align-items: center;
    margin-top: .75rem;
  }
  .texture-track > .part {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    z-index: -1;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .texture-glyph {
    display: grid;
    width: 2.75rem;
    min-height: 2.75rem;
    place-items: center;
  }
  .texture-glyph svg {
    width: 2rem;
    height: auto;
    padding-inline: .1875rem;
    background: var(--ground);
    color: var(--part);
  }
  .texture-glyph:hover svg, .texture-glyph:focus-visible svg { color: var(--ink); }

  .texture-extension-photo { grid-column: 1 / 7; grid-row: 1; }
  .texture-extension-copy { grid-column: 8 / -1; grid-row: 1; }
  .texture-close-copy { grid-column: 1 / 7; }
  .texture-service-nav { grid-column: 8 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .texture-track > .part { --p: 1; }
}
