:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #151515;
  background: #f7f7f3;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.gallery-header, .gallery-main {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.gallery-header {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  border-bottom: 1px solid #deded6;
}

.gallery-header a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.gallery-header img { display: block; }

.gallery-main { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.gallery-intro { margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.gallery-intro h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -.05em;
}

.gallery-intro p {
  margin: 1rem 0 0;
  color: #51524c;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid #deded6;
  border-radius: 1rem;
  color: inherit;
  background: #fff;
  text-decoration: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9e8e0;
}

.gallery-balance img { object-position: 50% 44%; }
.gallery-performance img { object-position: 50% 49%; }
.gallery-power img { object-position: 54% 50%; }
.gallery-studio img { object-position: 56% 50%; }

.gallery-card-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.gallery-card h2 { margin: 0; font-size: clamp(1.35rem, 3.5vw, 1.8rem); letter-spacing: -.035em; }
.gallery-card p { margin: .2rem 0 0; color: #51524c; }
.gallery-card:is(:hover, :focus-visible) h2 { text-decoration: underline; text-underline-offset: .17em; }

.gallery-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #deded6;
  border-radius: 50%;
  font-size: 1.2rem;
}

.gallery-card:is(:hover, :focus-visible) .gallery-arrow { background: #151515; border-color: #151515; color: #fff; }
:focus-visible { outline: 2px solid #151515; outline-offset: 4px; }

@media (max-width: 40rem) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}
