.gallery {
  background: var(--sage);
  position: relative;
  overflow: hidden;
  /* tighter than the shared .section rhythm -- the switcher itself already
     reads as a substantial block, this section must fit ~920px at 1440x900 */
  padding-block: clamp(40px, 6vw, 72px);
}

.gallery__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 1;
}

.gallery .eyebrow { color: var(--ink); }

.switcher {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .switcher { grid-template-columns: 1fr; }
}

.switcher__frame-wrap {
  height: min(70vh, 640px);
  max-width: 900px;
}

.switcher__frame-wrap .compare-frame {
  height: 100%;
  max-width: none;
  width: auto;
  aspect-ratio: 3 / 4;
  margin-inline: 0;
}

.switcher__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.switcher__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--body);
  transition: border-color var(--dur-fast) var(--ease-ui), transform var(--dur-fast) var(--ease-ui);
}

.switcher__card:hover { transform: translateX(4px); }

.switcher__card.is-active {
  border-color: var(--charcoal);
}

.switcher__card-indicator {
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: transparent;
  border-radius: 2px;
}

.switcher__card.is-active .switcher__card-indicator {
  background: var(--sage);
}

.switcher__thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.switcher__thumb img { width: 100%; height: 100%; object-fit: cover; }

.switcher__card-text { display: flex; flex-direction: column; gap: 2px; }

.switcher__card-caption { font-weight: 700; font-size: 14px; color: var(--ink); }
.switcher__card-type { font-size: 12px; color: var(--ink-muted); }

/* mobile: horizontal scroll-snap thumbnail strip below the frame */
@media (max-width: 900px) {
  .switcher__list {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .switcher__card {
    flex-direction: column;
    scroll-snap-align: start;
    min-width: 130px;
    text-align: center;
  }
  .switcher__thumb { width: 100%; height: 90px; }
}
