/* ============================================================
   4. Layout
   ------------------------------------------------------------
   Mobile first. The phone column is the base. The
   horizontal shelf and the wide bar start at 1024px.
   Colors and type stay in tokens.css and typography.css.
   ============================================================ */

/* ----------------------------------------------------------
   Shared
   Intro timing, the bar, and the dropdowns. These do not
   change between the column and the row.
   ---------------------------------------------------------- */

.intro {
  height: auto;
}

.menu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: auto;
  padding-top: 0.625rem;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .menu__drop--nav,
  .menu__mark,
  .home,
  .home::after {
    transition: none;
  }

  body[data-page="archive"] .menu__mark {
    animation: none;
  }
}

.menu__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 69px;
  padding: 0.625rem 0.9375rem;
}

.menu__side {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.menu__side--right {
  justify-content: flex-end;
}

.menu__bar a,
.menu__bar p,
.menu__bar button {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: var(--type-p-weight);
  line-height: normal;
  letter-spacing: var(--type-p-letter-spacing);
  color: var(--color-text-primary);
}

.menu__mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: auto;
  padding: 0.1875rem;
  flex-shrink: 0;
}

.menu__nav {
  position: relative;
}

.menu__nav-toggle,
.menu__about-toggle {
  background: transparent;
}

.menu__about-toggle:hover,
.menu__about-toggle:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.menu__drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 5;
  width: min(460px, 70vw);
  padding: 16px 18px;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-family);
  font-size: var(--type-p-size);
  font-weight: var(--type-p-weight);
  line-height: 1.35;
  letter-spacing: var(--type-p-letter-spacing);
  text-align: left;
  white-space: normal;
}

.menu__drop a {
  color: var(--color-text-primary);
}

.menu__drop--nav {
  top: 100%;
  right: 0;
  left: auto;
  z-index: 6;
  width: max-content;
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

body.is-menu-open .menu__drop--nav {
  opacity: 1;
  visibility: visible;
}

.menu__nav-toggle:hover,
.menu__nav-toggle:focus-visible,
body.is-menu-open .menu__nav-toggle {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.menu__drop--nav a,
.menu__drop--nav button {
  background: transparent;
  padding: 0;
  font-size: 15px;
  line-height: 20px;
  text-align: right;
  text-decoration: none;
}

.menu__drop--nav a:hover,
.menu__drop--nav a:focus-visible,
.menu__drop--nav button:hover,
.menu__drop--nav button:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.home {
  transition: filter 0.3s ease, background-color 0.5s ease, color 0.5s ease;
}

.home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

body.is-menu-open .home,
body.is-site-info .home {
  filter: blur(0.9375rem);
}

body.is-menu-open .home::after,
body.is-site-info .home::after {
  opacity: 1;
}

/* ----------------------------------------------------------
   Mobile shelf
   The phone frame is a column: 9.375rem under the bar,
   then the books in a horizontal row that hugs its
   contents and can be scrolled sideways.
   ---------------------------------------------------------- */

body[data-page="home"] {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-surface);
}

.home {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
  margin-top: 9.375rem;
  padding: 0;
  overflow-x: clip;
  background: var(--color-surface);
}

.shelf {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  align-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  min-height: 38.6875rem;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
}

.spine {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  width: calc(2.5rem * 1.16 + 0.90625rem);
  min-height: 38.6875rem;
  color: var(--color-text-primary);
}

.spine--end {
  flex-basis: 0.90625rem;
  width: 0.90625rem;
}

.spine__rule {
  position: absolute;
  z-index: 1;
  top: auto;
  bottom: 0;
  left: 7px;
  width: 1px;
  height: auto;
  transform: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.spine__rule:not(.spine__rule--front)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28) 50%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 100%);
}

.spine__rule--front {
  left: 7px;
  width: 1px;
  z-index: 3;
  background: var(--color-text-primary);
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 5%, #000 100%);
}

.spine__book {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  min-height: 38.6875rem;
}

.spine__text {
  position: absolute;
  z-index: 3;
  left: calc(0.90625rem + (2.5rem * 1.16 / 2));
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.spine__name {
  font-size: 2.5rem;
  line-height: 1.16;
}

.spine__year {
  flex: none;
  font-size: 1.25rem;
  line-height: 1.16;
  white-space: nowrap;
}

/* ----------------------------------------------------------
   Desktop
   The bar spreads across the window. The books stand in
   one horizontal row, names turned upward.
   ---------------------------------------------------------- */

@media (min-width: 1024px) {
  .intro {
    height: 0;
    padding-top: 0;
  }

  .menu {
    position: fixed;
    top: 0;
    padding-top: 0.625rem;
  }

  .menu__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 40px;
    min-height: 69px;
    padding: 0.625rem 62px;
    white-space: nowrap;
  }

  .menu__bar a,
  .menu__bar p,
  .menu__bar button {
    font-size: var(--type-p-size);
    line-height: var(--type-p-line-height);
  }

  .menu__drop--nav a,
  .menu__drop--nav button {
    font-size: 15px;
    line-height: 20px;
  }

  .menu__side {
    flex: none;
    justify-content: flex-start;
  }

  .menu__side--right {
    justify-content: flex-end;
  }

  .menu__mark {
    width: 52px;
    height: 49px;
    padding: 3px;
  }

  .home {
    justify-content: flex-end;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0;
    padding: 0;
    overflow-x: visible;
  }

  .shelf {
    flex-direction: row;
    width: max-content;
    max-width: none;
    overflow: visible;
  }

  .spine {
    position: relative;
    display: block;
    flex: 0 0 calc(var(--type-project-size) * var(--type-project-line-height) + 14.5px);
    width: calc(var(--type-project-size) * var(--type-project-line-height) + 14.5px);
    padding: 0;
  }

  .spine--end {
    display: block;
    flex-basis: 14.5px;
    width: 14.5px;
  }

  .spine__rule,
  .spine__rule--front {
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    height: auto;
    transform: none;
    box-shadow: none;
    pointer-events: none;
  }

  .spine__rule--front {
    left: 7px;
    width: 1px;
    z-index: 3;
    background: var(--color-text-primary);
  }

  .spine__book {
    position: absolute;
    inset: 0;
    display: block;
    min-height: 0;
  }

  .spine__text {
    position: absolute;
    z-index: 3;
    left: calc(14.5px + (var(--type-project-size) * var(--type-project-line-height) / 2));
    bottom: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    width: auto;
    white-space: nowrap;
    transform: rotate(-90deg);
    transform-origin: left center;
  }

  .spine__name {
    font-size: var(--type-project-size);
  }
}

/* ----------------------------------------------------------
   Reactive text
   White type with difference inverts on the photo.
   The shadow keeps it readable on a mid grey.
   ---------------------------------------------------------- */

.menu__about-toggle,
.menu__nav-toggle,
.menu__drop--nav a,
.menu__drop--nav button,
.menu__mark,
.project-bar button,
.project-bar a,
.project-bar span {
  color: #fff;
  mix-blend-mode: difference;
  text-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.15);
}

body[data-page="home"] .menu__drop--nav a,
body[data-page="home"] .menu__drop--nav button {
  color: #000;
  mix-blend-mode: normal;
}

.menu__mark {
  transition: transform 0.3s ease, color 0.5s ease;
}

.menu__mark:hover,
.menu__mark:focus-visible {
  transform: scale(1.1);
}

.menu__star {
  display: block;
  color: currentColor;
  filter: drop-shadow(0 0 0.25rem rgba(0, 0, 0, 0.15));
}

.menu__star rect {
  fill: currentColor;
}

/* The homepage star picks five colors for this visit.
   Every page uses that color, and the text inverts. */
body[data-page] {
  transition: background-color 0.5s ease, color 0.5s ease;
}

body :is(.spine__name, .spine__year) {
  transition: font-size 0.18s ease, color 0.5s ease;
}

body .spine__rule {
  transition: background-color 0.5s ease;
}

:is(
  .archive__label,
  .archive__title,
  .archive__value,
  .archive__meta,
  .archive__abb,
  .archive__filter,
  .archive__col,
  .project__info,
  .project-bar,
  .project-bar span
) {
  transition: color 0.5s ease;
}

body.is-tinted[data-page],
body.is-tinted .home {
  background-color: var(--home-bg);
  color: var(--home-ink);
}

body.is-tinted .menu__bar :is(.menu__about-toggle, .menu__nav-toggle, .menu__mark, .menu__star),
body.is-tinted[data-page] .menu__drop--nav :is(a, button),
body.is-tinted :is(
  .spine__name,
  .spine__year,
  .archive,
  .archive__label,
  .archive__title,
  .archive__value,
  .archive__meta,
  .archive__abb,
  .archive__filter,
  .archive__col,
  .archive__floater,
  .project__info,
  .project-bar,
  .project-bar button,
  .project-bar a,
  .project-bar span
) {
  color: var(--home-ink);
  mix-blend-mode: normal;
}

body.is-tinted .spine__rule--front {
  background: var(--home-ink);
}

/* ----------------------------------------------------------
   Project page
   Photos stack edge to edge. The bar sits on the bottom.
   Info blurs the stack with the same blur as Menu.
   ---------------------------------------------------------- */

body[data-page="project"] {
  background: #fff;
}

body.is-tinted[data-page="project"] {
  background-color: var(--home-bg);
  color: var(--home-ink);
}

body[data-page="project"] .menu {
  position: fixed;
  top: 0.625rem;
  padding-top: 0;
}

/* The bar itself blends, so the white type inverts on the photo.
   On the white page it reads as black, same as the other pages. */
body[data-page="project"] .menu,
body.is-tinted[data-page="project"] .menu,
body[data-page="project"] .project-bar,
body.is-tinted[data-page="project"] .project-bar,
body[data-page="project"] .project__info,
body.is-tinted[data-page="project"] .project__info {
  mix-blend-mode: difference;
}

body[data-page="project"] .menu__bar :is(a, button),
body.is-tinted[data-page="project"] .menu__bar :is(a, button),
body[data-page="project"] .menu__drop--nav :is(a, button),
body.is-tinted[data-page="project"] .menu__drop--nav :is(a, button),
body[data-page="project"] .project-bar :is(button, a, span),
body.is-tinted[data-page="project"] .project-bar :is(button, a, span) {
  color: #fff;
  mix-blend-mode: normal;
}

body[data-page="project"] .project__info,
body.is-tinted[data-page="project"] .project__info {
  color: #fff;
}

.project__stack {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: 0.9375rem;
  width: 100%;
  min-height: calc(100dvh - 0.625rem - 69px - 10px - 37px - 10px);
  margin-top: calc(0.625rem + 69px + 10px);
  filter: blur(0);
  transition: filter 0.3s ease;
}

.project__stack img {
  display: block;
  width: 100%;
  height: auto;
}

.project__stack mux-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--player-ratio, 1.7778);
  background: transparent;
  --media-object-fit: contain;
  --media-background-color: transparent;
}

@media (min-width: 1024px) {
  .project__stack {
    position: fixed;
    z-index: 1;
    top: calc(0.625rem + 69px + 10px);
    right: 0;
    left: 0;
    height: calc(100vh - 0.625rem - 69px - 10px - 37px - 10px);
    height: calc(100dvh - 0.625rem - 69px - 10px - 37px - 10px);
    flex-direction: row;
    align-items: safe center;
    justify-content: safe center;
    gap: 15px;
    margin: 0;
    padding: 0 var(--padding-sides);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    container-type: size;
  }

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

  .project__stack img {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .project__stack mux-player {
    flex: 0 0 auto;
    width: min(100cqw, calc(100cqh * var(--player-ratio, 1.7778)));
    height: min(100cqh, calc(100cqw / var(--player-ratio, 1.7778)));
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    aspect-ratio: auto;
    --media-object-fit: contain;
  }
}

body.is-menu-open .project__stack,
body.is-site-info .project__stack,
.project.is-info-open .project__stack {
  filter: blur(0.9375rem);
}

.project__info {
  position: fixed;
  z-index: 6;
  left: 0.9375rem;
  right: 0.9375rem;
  bottom: 2.3125rem;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: var(--type-p-weight);
  line-height: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.project.is-info-open .project__info {
  opacity: 1;
  visibility: visible;
}

.project__info p + p {
  margin-top: 1em;
}

.project__meta {
  margin-top: 1em;
}

.site-info {
  position: fixed;
  z-index: 6;
  top: calc(0.625rem + 69px + 10px);
  left: 0.9375rem;
  right: 0.9375rem;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: var(--type-p-weight);
  line-height: normal;
  mix-blend-mode: difference;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.is-site-info .site-info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-info p + p {
  margin-top: 1em;
}

.site-info a {
  color: inherit;
}

.project-bar {
  position: fixed;
  z-index: 7;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.9375rem;
}

.project-bar [data-project-name] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-bar button,
.project-bar a,
.project-bar span {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: var(--type-p-weight);
  line-height: normal;
  background: transparent;
}

.project-bar--peek {
  color: inherit;
  mix-blend-mode: normal;
  text-decoration: none;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.project-bar--peek.is-open {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 1023px) {
  body.is-peek-open .spine__text {
    bottom: 2.75rem;
  }

  body.is-peek-open .archive__list {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  body[data-page="project"] {
    min-height: 0;
    overflow: hidden;
  }

  .project-bar {
    padding-left: 62px;
    padding-right: 62px;
  }

  .project__info {
    left: 62px;
    right: 62px;
  }

  .site-info {
    left: 62px;
    right: 62px;
  }

  .project-bar--peek {
    display: none;
  }
}

/* ----------------------------------------------------------
   Archive
   List, then a two-column photo stack. The floating
   picture sits above the stack and under the bar.
   ---------------------------------------------------------- */

body[data-page="archive"] {
  background-color: #fff;
}

body.is-tinted[data-page="archive"] {
  background-color: var(--home-bg);
  color: var(--home-ink);
}

body[data-page="archive"] .menu__about-toggle,
body[data-page="archive"] .menu__mark,
body[data-page="archive"] .menu__nav-toggle,
body[data-page="archive"] .menu__star,
body[data-page="archive"] .menu__drop--nav a,
body[data-page="archive"] .menu__drop--nav button {
  color: #000;
  mix-blend-mode: normal;
  text-shadow: none;
  filter: none;
}

@keyframes archive-logo-breathe {
  0% { transform: scale(1); }
  42% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

body[data-page="archive"] .menu__mark {
  transform-origin: center;
  animation: archive-logo-breathe 1.4s ease 10s 1;
}

.archive {
  position: relative;
  padding-top: 70px;
  color: #000;
  transition: filter 0.3s ease;
}

body.is-site-info .archive {
  filter: blur(0.9375rem);
}

.archive__list {
  padding: 0 16px 2rem;
  transition: opacity 0.5s ease;
}

.archive__head,
.archive__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.archive__head {
  margin-bottom: 20px;
}

.archive__label,
.archive__title,
.archive__value,
.archive__meta {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
}

.archive__label {
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}

.archive__value,
.archive__filter {
  flex: 0 0 auto;
  min-width: 70px;
  background: transparent;
  text-align: right;
  white-space: nowrap;
}

.archive__filter {
  cursor: pointer;
}

.archive__col {
  display: none;
}

.archive__row {
  color: inherit;
  text-decoration: none;
}

.archive__reveal {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  margin: 0;
  opacity: 0;
  transition: grid-template-rows 0.5s ease, opacity 0.5s ease;
}

.archive__entry:hover .archive__reveal,
.archive__entry:focus-within .archive__reveal,
.archive__entry.is-open .archive__reveal {
  grid-template-rows: 1fr;
  opacity: 1;
}

.archive__entry.is-shut .archive__reveal {
  grid-template-rows: 0fr;
  opacity: 0;
}

.archive__picture {
  display: flex;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.archive__reveal-clip {
  min-height: 0;
  overflow: hidden;
}

.archive__track {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

.archive__frame {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.archive__frame img {
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 210px;
}

.archive__abb {
  margin: 0;
  text-align: left;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
}

.archive__grid {
  display: none;
  opacity: 0;
  column-count: 2;
  column-gap: 15px;
  padding: 1.5rem 0.8125rem 2rem;
  transition: opacity 0.5s ease;
}

.archive__grid.is-shown {
  display: block;
}

.archive[data-state="grid"] .archive__list,
.archive[data-state="chaos"] .archive__list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.archive[data-state="grid"] .archive__grid,
.archive[data-state="chaos"] .archive__grid {
  display: block;
  opacity: 1;
}

.archive[data-state="chaos"] .archive__grid {
  visibility: hidden;
}

.archive__item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  background: transparent;
}

.archive__shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  line-height: 0;
  background: #fff;
  -webkit-touch-callout: none;
  user-select: none;
}

.archive__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.archive__shot .is-halftone {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  filter: contrast(16);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.archive__shot .is-halftone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.archive__shot .is-halftone::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #fff 0 0.85px, #000 1.1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

.archive__shot.is-clear .is-halftone {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .archive__shot:hover .is-halftone {
    opacity: 0;
  }
}

.archive__meta {
  padding-top: 5px;
  line-height: normal;
}

.archive__floater {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  display: block;
  margin: 0;
  background: transparent;
  color: #000;
  text-decoration: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  filter: none;
  opacity: 1;
  transition: opacity 0.2s linear, color 0.5s ease;
}

.archive__floater.is-dragging {
  cursor: grabbing;
}

.archive__floater.is-leaving {
  opacity: 0;
}

.archive__floater img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.archive__floater .archive__meta {
  position: static;
  background: transparent;
}

/* Desktop archive. Phone rules above stay as they are.
   Columns from the Index frame: Titel, Genre 70, Farbraum 70, Jahr 48. */
@media (min-width: 1024px) {
  .archive {
    padding-top: calc(0.625rem + 69px + 70px);
  }

  .archive__list {
    display: grid;
    grid-template-columns: max-content 1fr 70px 1fr 70px 1fr 48px;
    align-items: baseline;
    padding: 0 62px 2rem;
  }

  .archive__entry {
    display: contents;
  }

  .archive__head,
  .archive__row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: baseline;
    justify-items: stretch;
  }

  .archive__head {
    margin-bottom: 20px;
  }

  .archive__filter,
  .archive__row > .archive__value {
    display: none;
  }

  .archive__col {
    display: block;
    text-align: right;
    white-space: nowrap;
  }

  .archive__row > .archive__col:nth-child(4),
  .archive__row > .archive__col:nth-child(6) {
    width: 70px;
    justify-self: end;
  }

  .archive__row > .archive__col:nth-child(8) {
    width: 48px;
    justify-self: end;
  }

  .archive__title,
  .archive__head > .archive__label:first-child {
    text-align: left;
  }

  .archive__reveal {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .archive__track {
    gap: 5px;
    padding: 0;
  }

  .archive__grid.is-shown,
  .archive[data-state="grid"] .archive__grid,
  .archive[data-state="chaos"] .archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-count: auto;
    column-gap: 15px;
    row-gap: 20px;
    align-items: start;
    padding: 0 62px 2rem;
  }

  .archive__item {
    margin-bottom: 0;
  }

  .archive__meta {
    padding-top: 0;
    font-size: 15px;
    line-height: 20px;
    text-align: left;
  }
}
