/* Shared by the gallery entrance and the individual collection pages. */
.bts-page {
  --bts-paper: #111813;
  --bts-panel: #1b241c;
  --bts-well: #202920;
  --bts-text: #f4f4eb;
  --bts-soft: #d3d7cb;
  --bts-rule: #f4f4eb35;
  --bts-focus: #e2edcf;
  color: var(--bts-text);
  background: var(--bts-paper);
  padding-bottom: clamp(42px, 7vw, 102px);
}

.bts-page .bts-hero {
  min-height: clamp(345px, 58svh, 560px);
}

.bts-page .bts-hero .backdrop-content {
  padding-block: clamp(135px, 20vw, 170px) clamp(27px, 6vw, 66px);
}

.bts-page .bts-hero h1 {
  max-width: none;
  margin: 10px 0 9px;
  font-size: clamp(2.9rem, 7.6vw, 7.1rem);
}

.bts-page .bts-hero .page-lead {
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.45;
}

.bts-page .bts-hero .backdrop-shade {
  background: linear-gradient(0deg, #111813f2 0%, #11181378 44%, transparent 68%),
    linear-gradient(180deg, #1118138c, transparent 46%),
    linear-gradient(90deg, #1118138c, transparent 75%);
}

.bts-page .bts-hero .scroll-image {
  inset: -30px 0;
}

.bts-landing .bts-content {
  padding-top: clamp(28px, 4.7vw, 68px);
}

.bts-page .bts-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px 20px;
  margin-bottom: clamp(15px, 2.2vw, 28px);
}

.bts-page .bts-section-head h2,
.bts-page .bts-project-copy h2 {
  margin: 3px 0 0;
  font-size: clamp(1.75rem, 4.7vw, 3.65rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.bts-page .bts-text-link {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  color: var(--bts-text);
  font-size: .94rem;
  text-decoration: underline;
  text-decoration-color: var(--bts-rule);
  text-underline-offset: .33em;
  text-decoration-thickness: 1px;
}

.bts-page a.bts-text-link:hover,
.bts-page a:hover .bts-text-link {
  text-decoration-color: currentColor;
}

.bts-page a:focus-visible {
  outline: 2px solid var(--bts-focus);
  outline-offset: 4px;
}

.bts-page .bts-featured-grid,
.bts-page .bts-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(11px, 2vw, 24px);
}

.bts-page .bts-featured-grid .photo-tile {
  min-width: 0;
  margin: 0;
}

.bts-page .bts-featured-grid .photo-tile > a {
  background: var(--bts-well);
  aspect-ratio: 16/10;
}

.bts-page .bts-featured-grid .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bts-page .photo-tile figcaption {
  color: var(--bts-soft);
}

.bts-page .bts-collections,
.bts-landing .bts-project-feature {
  border-top: 1px solid var(--bts-rule);
  margin-top: clamp(29px, 5.5vw, 78px);
  padding-top: clamp(26px, 4.5vw, 56px);
}

.bts-page .bts-collection {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bts-rule);
  background: var(--bts-panel);
  color: inherit;
  scroll-margin-top: 20px;
}

.bts-page .bts-legacy-anchor {
  scroll-margin-top: 20px;
}

.bts-page .bts-cover {
  background: var(--bts-well);
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.bts-page .bts-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .24s ease;
}

.bts-page .bts-cover picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bts-page .bts-collection:hover .bts-cover img {
  transform: scale(1.025);
}

.bts-page .bts-collection[href*="storyboards-drawings"] .bts-cover img,
.bts-page .bts-project-card .bts-cover img {
  object-fit: contain;
}

.bts-page .bts-collection[href*="storyboards-drawings"] .bts-cover img {
  padding: 7px;
  transform: none;
}

.bts-page .bts-card-label {
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 12px;
  padding: 11px 13px;
}

.bts-page .bts-card-label strong {
  font-size: clamp(.89rem, 1.65vw, 1.15rem);
  font-weight: 500;
  line-height: 1.27;
}

.bts-page .bts-card-label small,
.bts-page .bts-range {
  color: var(--bts-soft);
  font-size: .78rem;
  line-height: 1.4;
}

.bts-page .bts-project-feature {
  margin-bottom: clamp(22px, 4vw, 48px);
}

.bts-landing .bts-project-feature:last-child {
  margin-bottom: 0;
}

.bts-page .bts-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 880px;
  border: 1px solid var(--bts-rule);
  background: var(--bts-panel);
  color: inherit;
}

.bts-page .bts-project-card .bts-cover {
  max-height: 290px;
  height: 100%;
  min-height: 172px;
  padding: 12px;
  aspect-ratio: auto;
}

.bts-page .bts-project-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(16px, 3vw, 34px);
}

.bts-page .bts-project-copy p:not(.eyebrow) {
  margin-top: 9px;
  color: var(--bts-soft);
  line-height: 1.45;
}

.bts-page .bts-project-copy .bts-text-link {
  margin-top: 2px;
}

.bts-album .bts-content {
  padding-top: clamp(105px, 13vw, 162px);
}

.bts-page .bts-album-header {
  margin-bottom: clamp(20px, 3vw, 38px);
  padding-bottom: 17px;
  border-bottom: 1px solid var(--bts-rule);
}

.bts-page .bts-album-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 24px;
}

.bts-page .bts-album-header .eyebrow {
  margin-top: 12px;
}

.bts-page .bts-album-header h1 {
  max-width: 20ch;
  margin: 6px 0 12px;
  font-size: clamp(2.25rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.bts-page .bts-album-lead {
  max-width: 47ch;
  color: var(--bts-soft);
  line-height: 1.55;
}

.bts-page .bts-range {
  margin: 15px 0 13px;
  font-variant-numeric: tabular-nums;
}

.bts-page .bts-board-label {
  display: block;
  padding-block: 6px;
  color: var(--bts-soft);
  font-size: .78rem;
}

.bts-page .bts-discover {
  margin-top: clamp(26px, 4vw, 56px);
}

.bts-page .bts-album-grid .photo-tile > a {
  background: var(--bts-well);
}

/* Storyboards read left to right. Use rows so the visual order follows the sheets. */
.bts-album .bts-album-grid.bts-board-grid,
.bts-album.bts-storyboards .bts-album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
}

.bts-album .bts-board-grid .photo-tile,
.bts-album.bts-storyboards .bts-album-grid .photo-tile {
  margin: 0;
}

.bts-page .bts-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-top: clamp(26px, 4vw, 56px);
  padding-top: 16px;
  border-top: 1px solid var(--bts-rule);
}

.bts-page .bts-page-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.bts-page .bts-page-index a,
.bts-page .bts-page-index [aria-current="page"],
.bts-page .bts-page-step {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  color: var(--bts-text);
  line-height: 1.2;
}

.bts-page .bts-page-index a,
.bts-page .bts-page-index [aria-current="page"] {
  min-width: 44px;
}

.bts-page .bts-page-index [aria-current="page"] {
  background: var(--bts-text);
  color: var(--bts-paper);
}

.bts-page .bts-page-index a:hover,
.bts-page a.bts-page-step:hover {
  background: var(--bts-panel);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.bts-page .bts-page-step[aria-disabled="true"] {
  opacity: .53;
}

@media (min-width: 641px) {
  .bts-album .bts-album-grid.bts-board-grid,
  .bts-album.bts-storyboards .bts-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 901px) {
  .bts-album .bts-album-grid.bts-board-grid,
  .bts-album.bts-storyboards .bts-album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bts-page .bts-featured-grid,
  .bts-page .bts-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bts-page .bts-hero {
    min-height: 322px;
  }

  .bts-page .bts-card-label {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 9px;
  }

  .bts-page .bts-project-card {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }

  .bts-page .bts-project-card .bts-cover {
    padding: 7px;
  }

  .bts-page .bts-page-index {
    order: -1;
    flex: 0 0 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bts-page .bts-cover img,
  .bts-page .photo-tile img {
    transition: none;
  }

  .bts-page .bts-collection:hover .bts-cover img,
  .bts-page .photo-tile a:hover img {
    transform: none;
  }
}
