html.photos-index-page,
html.photos-index-page body {
  background: var(--color-black);
  overflow-x: clip;
}

.photos-index-page #main-container {
  padding-top: 100px;
}

.photo-index-hero {
  min-height: calc(64vh - 100px);
  min-height: calc(64svh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(28rem, .5fr);
  align-items: end;
  gap: 6rem;
  padding: clamp(4rem, 6vw, 8rem) max(2rem, 5vw) clamp(5rem, 7vw, 8rem);
  border-bottom: 1px solid #ffffff18;
}

.photo-index-hero h1 {
  align-self: center;
  margin: 0;
  color: var(--color-white);
  font-size: clamp(7rem, 12vw, 18rem);
  font-weight: 500;
  line-height: .72;
  letter-spacing: -.075em;
}

.photo-index-hero h1 span {
  color: var(--color-copy);
  font-weight: 300;
}

.photo-index-hero__intro {
  min-width: 0;
  align-self: end;
  padding-bottom: 1rem;
}

.photo-index-hero__intro p {
  max-width: 38rem;
  margin: 0 0 4rem;
  color: var(--color-copy);
  font-size: 1.4rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.photo-index-hero__intro span {
  color: var(--color-muted);
  font-size: 1rem;
  letter-spacing: .2em;
}

.photo-index-archive {
  padding: 0 max(1.2rem, 2vw) max(6rem, 8vw);
}

.photo-index-archive__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.photo-index-archive__header h2 {
  margin: 0;
  color: var(--color-light);
  font-size: 1.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.photo-index-status {
  min-height: 42rem;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 6rem 2rem;
  border: 1px solid #ffffff18;
  text-align: center;
}

.photo-index-status p {
  margin: 0;
  color: var(--color-light);
  font-size: clamp(2.6rem, 4vw, 5rem);
  font-weight: 400;
  letter-spacing: -.04em;
}

.photo-index-status span {
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 1.3rem;
}

.photo-index-status button {
  margin-top: 3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-ink-soft);
  background: transparent;
  color: var(--color-copy);
  font-size: 1.3rem;
}

.photo-index-status button:hover,
.photo-index-status button:focus-visible {
  border-color: var(--color-white);
  color: var(--color-white);
}

.photo-index-grid {
  display: flex;
  flex-flow: row wrap;
  margin: 0;
  padding: 0;
}

.photo-index-grid .album-card {
  position: relative;
  margin: 0 2rem 2rem 0;
  overflow: hidden;
  list-style: none;
}

.photo-index-grid .card-landscape {
  flex: 2 1 20rem;
  min-width: 60rem;
  min-height: 60rem;
  max-height: 80rem;
}

.photo-index-grid .card-portrait {
  flex: 1 1 12rem;
  min-width: 30rem;
  max-width: 60rem;
  min-height: 60rem;
  max-height: 80rem;
}

.photo-index-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: .6rem;
}

.photo-index-card .album-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: .6rem;
  object-fit: cover;
  filter: none;
  transform: none;
  transition: transform .6s ease, opacity .6s ease;
}

.photo-index-card__shade {
  display: none;
}

.photo-index-card__copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 8%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  text-align: center;
  text-shadow: 0 0 3px var(--color-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.photo-index-card__copy strong {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.05em;
}

.photo-index-card:hover .album-img,
.photo-index-card:focus-visible .album-img {
  filter: none;
}

.photo-index-card:hover .photo-index-card__copy,
.photo-index-card:focus-visible .photo-index-card__copy {
  opacity: 1;
}

@media (max-width: 900px) {
  .photo-index-hero {
    min-height: calc(62svh - 100px);
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .photo-index-hero h1 { align-self: end; }
  .photo-index-hero__intro { display: flex; justify-content: space-between; gap: 3rem; }
  .photo-index-hero__intro p { margin-bottom: 0; }
  .photo-index-grid .album-card { margin: 0 1rem 1rem 0; }
  .photo-index-grid .card-portrait {
    flex: 1 1 10rem;
    min-width: 20rem;
    max-width: 60rem;
    min-height: 40rem;
    max-height: 60rem;
  }
  .photo-index-grid .card-landscape {
    flex: 2 1 20rem;
    min-width: 40rem;
    min-height: 40rem;
    max-height: 60rem;
  }
}

@media (max-width: 560px) {
  .photo-index-hero {
    min-height: calc(60svh - 100px);
    grid-template-columns: minmax(0, 1fr);
    padding: 3rem 2rem 4rem;
  }

  .photo-index-hero h1 {
    min-width: 0;
    font-size: clamp(4.6rem, 15vw, 7rem);
    letter-spacing: -.065em;
  }
  .photo-index-hero__intro { width: calc(100vw - 6rem); max-width: calc(100vw - 6rem); display: block; }
  .photo-index-hero__intro p { width: calc(100vw - 6rem); max-width: calc(100vw - 6rem); margin-bottom: 3rem; }
  .photo-index-archive { width: 100vw; max-width: 100vw; padding: 0 2rem 0 1rem; overflow: hidden; }
  .photo-index-grid { width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); min-width: 0; gap: 1rem; }
  .photo-index-grid .album-card { margin: 0; }
  .photo-index-grid .card-portrait {
    flex: 0 0 calc(50% - .5rem);
    min-width: 0;
    max-width: calc(50% - .5rem);
    min-height: 20rem;
    max-height: 30rem;
  }
  .photo-index-grid .card-landscape {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 20rem;
    max-height: 30rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-index-card .album-img,
  .photo-index-card__shade,
  .photo-index-card__copy { transition: none; }
}
