* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #181818;
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
}
header img {
  width: 170px;
}
nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
}
.intro {
  padding: 64px 0 38px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  color: #735b3c;
  font-weight: 700;
}
h1 {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -4px;
  margin: 16px 0 0;
}
.intro p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 420px;
  color: #555;
  margin: 0;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #ddd;
  padding: 20px 0 32px;
}
.filters button {
  border: 1px solid #ccc;
  border-radius: 30px;
  background: white;
  padding: 10px 18px;
  font-size: 13px;
}
.filters button[aria-pressed="true"] {
  background: #181818;
  color: white;
  border-color: #181818;
}
.gallery {
  display: block;
}
.genre-grid {
  columns: 3;
  column-gap: 24px;
}
.genre {
  margin-bottom: 70px;
}
.genre-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border-top: 1px solid #bbb;
  padding: 30px 0;
  align-items: end;
}
.genre-head h2 {
  font-size: clamp(32px, 4vw, 53px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 12px 0 0;
}
.genre-head p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0;
}
.genre-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #735b3c;
}
.piece {
  break-inside: avoid;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  margin: 0 0 32px;
}
.piece img {
  display: block;
  width: 100%;
  height: auto;
  background: #f4f4f4;
}
.piece:hover img {
  filter: none;
}
.piece span {
  display: block;
  font-size: 12px;
  margin-top: 11px;
  line-height: 1.4;
}
.piece small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  margin-top: 5px;
}
.closing {
  margin: 60px 0;
  padding: 40px 0;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.closing h2 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.closing p {
  color: #666;
}
.cta {
  border-bottom: 1px solid;
  padding: 10px 0;
}
footer {
  padding: 25px 5%;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
}
dialog {
  border: 0;
  background: #111;
  color: white;
  max-width: none;
  width: 96vw;
  height: 94vh;
  padding: 50px 20px 20px;
}
dialog::backdrop {
  background: #000c;
}
dialog img {
  width: 100%;
  height: calc(100% - 45px);
  object-fit: contain;
}
dialog p {
  text-align: center;
  font-size: 13px;
}
dialog button {
  position: absolute;
  right: 20px;
  top: 12px;
  background: none;
  color: white;
  border: 1px solid #777;
  padding: 6px 14px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bc9563;
  outline-offset: 4px;
}
@media (max-width: 800px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 40px;
  }
  .genre-grid {
    columns: 2;
  }
  .genre-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  nav {
    gap: 14px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .closing {
    display: block;
  }
  .closing .cta {
    display: inline-block;
  }
}
@media (max-width: 480px) {
  .genre-grid {
    columns: 1;
  }
  header img {
    width: 125px;
  }
  nav {
    font-size: 12px;
  }
  nav a:nth-child(2) {
    display: none;
  }
}
.case-links {
  border-top: 1px solid #bbb;
  padding-top: 32px;
  margin-top: 50px;
}
.case-links h2 {
  font-size: 38px;
  letter-spacing: -1.5px;
}
.case-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.case-links-grid a {
  padding: 26px 0;
  border-top: 1px solid #ddd;
}
.case-links-grid span {
  font-size: 24px;
  font-weight: 700;
}
.case-links-grid p {
  color: #666;
  line-height: 1.6;
  max-width: 390px;
}
.case-links-grid small {
  font-size: 13px;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .case-links-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.genre-grid {
  columns: initial;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.piece {
  margin: 0;
  height: 360px;
}
.piece img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  background: white;
}
.piece.landscape-lead {
  grid-column: 1/-1;
  height: auto;
}
.piece.landscape-lead img {
  height: auto;
  width: 100%;
}
@media (max-width: 1000px) {
  .piece {
    height: 290px;
  }
}
@media (max-width: 800px) {
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .piece {
    height: 330px;
  }
}
@media (max-width: 480px) {
  .genre-grid {
    grid-template-columns: 1fr;
  }
  .piece {
    height: auto;
  }
  .piece img {
    height: auto;
    max-height: 520px;
  }
}

.genre-grid {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 12px;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.genre-grid:active {
  cursor: grabbing;
}
.genre-grid .piece {
  flex: 0 0 auto;
  width: auto;
  height: clamp(300px, 43vw, 560px);
  margin: 0;
}
.genre-grid .piece img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.genre-grid:has(.landscape-lead) {
  display: block;
  overflow: visible;
  padding: 0;
}
.genre-grid .piece.landscape-lead {
  height: auto;
  width: 100%;
}
.genre-grid .piece.landscape-lead img {
  height: auto;
  width: 100%;
}
.genre {
  margin-bottom: 54px;
}
.genre-head {
  padding: 24px 0 20px;
}
.genre-head p {
  max-width: 340px;
  font-size: 14px;
}
.intro {
  padding-top: 48px;
}
.piece:focus-visible {
  outline-offset: -4px;
}
@media (max-width: 480px) {
  .genre-grid .piece {
    height: 380px;
  }
  .genre-grid .piece img {
    max-height: none;
  }
  .genre-grid .piece.landscape-lead {
    height: auto;
  }
}
body {
  background: #101010;
  color: #eee;
}
header,
.filters,
.genre-head,
.closing,
footer,
.case-links,
.case-links-grid a {
  border-color: #ffffff25;
}
.intro p,
.genre-head p,
.closing p,
.case-links-grid p {
  color: #bfc3ca;
}
.eyebrow,
.genre-label {
  color: #b891f6;
}
.filters button {
  background: #242127;
  color: #ddd;
  border-color: #655772;
}
.filters button[aria-pressed="true"] {
  background: #af83ff;
  color: #101010;
  border-color: #af83ff;
}
.piece img {
  background: transparent;
}
header img {
  filter: invert(1);
}
button:focus-visible,
a:focus-visible {
  outline-color: #af83ff;
}
.genre-grid {
  gap: 5px;
  scrollbar-width: none;
}
.genre-grid::-webkit-scrollbar {
  display: none;
}
.scroll-control {
  display: block;
  width: 100%;
  height: 24px;
  margin: 18px 0 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  accent-color: #c6a4ff;
}
.scroll-control::-webkit-slider-runnable-track {
  height: 2px;
  background: #817889;
  border: 0;
}
.scroll-control::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  background: #d5b9ff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 8px #ae82ff55;
}
.scroll-control::-moz-range-track {
  height: 2px;
  background: #817889;
}
.scroll-control::-moz-range-thumb {
  height: 12px;
  width: 12px;
  background: #d5b9ff;
  border: 0;
  border-radius: 50%;
}
.scroll-control[hidden] {
  display: none;
}

@media (min-width: 801px) {
  .animals .genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }
  .animals .piece {
    width: 100%;
    min-width: 0;
    height: auto;
    flex: none;
  }
  .animals .piece img {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
  }
  .animals .scroll-control {
    display: none;
  }
}

@media (min-width: 801px) {
  .covers .genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
  }
  .covers .piece {
    width: 100%;
    min-width: 0;
    height: auto;
    flex: none;
  }
  .covers .piece img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background: transparent;
  }
  .covers .scroll-control {
    display: none;
  }
}

@media (min-width: 801px) {
  .covers .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
    margin: 0 auto;
    gap: 16px;
  }
  .covers .piece img {
    height: 470px;
  }
}

@media (min-width: 801px) {
  .covers .genre-grid {
    max-width: none;
    width: 100%;
    grid-template-columns: 0.75625fr 0.71375fr;
    gap: 5px;
  }
  .covers .piece,
  .covers .piece img {
    height: auto;
    max-height: none;
    width: 100%;
  }
  .covers .piece img {
    object-fit: contain;
  }
}

.animals .animal-feature {
  grid-column: 1/-1;
  width: 100%;
  height: auto !important;
}
.animals .animal-feature img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
}
.animals .genre-grid {
  row-gap: 5px;
}

@media (min-width: 801px) {
  .animals .piece:not(.animal-feature) {
    aspect-ratio: 4/5;
    overflow: hidden;
    height: auto;
  }
  .animals .piece:not(.animal-feature) img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
  }
}
.animal-feature {
  overflow: hidden;
}
.animal-feature img {
  transform: scale(var(--photo-scale, 1));
  transform-origin: center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .animal-feature img {
    transform: none;
    will-change: auto;
  }
}

.animal-feature,
.landscape-lead {
  overflow: hidden;
}
.animal-feature img,
.landscape-lead img {
  transform: translateY(var(--drift, 0px)) scale(1.12);
  transform-origin: center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .animal-feature img,
  .landscape-lead img {
    transform: none;
    will-change: auto;
  }
}
