.gallery-home {
  position: relative;
  padding-block: clamp(56px, 6.2vw, 94px);
  background: var(--mist);
}

.gallery-home > #member-reviews {
  position: absolute;
  top: 0;
}

.gallery-index {
  padding-block: clamp(50px, 5.5vw, 85px) clamp(62px, 7vw, 100px);
  background: var(--paper);
}

.shultz-gallery .gallery-heading {
  max-width: 690px;
  margin: 0 auto clamp(26px, 3.1vw, 45px);
  text-align: center;
}

.gallery-heading h1,
.gallery-heading h2 {
  margin: 8px 0 13px;
  font-size: clamp(29px, 3.5vw, 50px);
  font-weight: 660;
}

.gallery-heading > p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(13px, 1.35vw, 16px);
}

.gallery-heading .gallery-count {
  display: inline-block;
  margin-top: 15px;
  padding: 2px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
}

.gallery-review-list {
  display: grid;
  gap: clamp(12px, 1.5vw, 23px);
}

.gallery-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(30px, 3.5vw, 54px) clamp(26px, 3.1vw, 48px);
}

.gallery-review-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.gallery-feature,
.gallery-review {
  min-width: 0;
  background: var(--white);
}

.gallery-feature-link {
  display: block;
}

.gallery-feature-link:hover h3 {
  color: var(--wine);
}

.gallery-feature-link:hover .gallery-feature-cta {
  text-decoration: underline;
}

.shultz-gallery .gallery-image {
  overflow: hidden;
  aspect-ratio: 1.33;
  background: var(--line);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-image > a:focus-visible {
  outline-offset: -4px;
}

.gallery-image.gallery-crop-lower img {
  object-position: center 59%;
}

.shultz-gallery .gallery-feature-image {
  aspect-ratio: 1.42;
}

.shultz-gallery .gallery-feature-image.gallery-crop-lower {
  aspect-ratio: 1.14;
}

.gallery-feature-copy {
  display: grid;
  gap: 11px;
  padding: clamp(20px, 2.1vw, 32px);
}

.gallery-label {
  color: var(--wine);
  font-size: 11px;
  font-weight: 680;
}

.gallery-feature h3 {
  color: var(--ink);
  font: 550 clamp(21px, 1.85vw, 28px)/1.45 var(--serif);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.gallery-feature-excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.gallery-feature-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px clamp(20px, 2.1vw, 32px);
  border-top: 1px solid var(--line);
  color: var(--wine);
  font-size: 13px;
  font-weight: 660;
}

.gallery-member {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.gallery-feature .gallery-member {
  padding-top: 3px;
}

.gallery-member strong {
  color: var(--ink);
  font-weight: 660;
}

.gallery-more {
  margin-bottom: clamp(22px, 3vw, 37px);
  text-align: center;
}

.gallery-features > :is(.gallery-status, .gallery-more) {
  grid-column: 1 / -1;
}

.gallery-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  max-width: 830px;
  margin: 0 auto clamp(22px, 3vw, 37px);
  color: var(--ink);
}

.gallery-filters[hidden] {
  display: none;
}

.gallery-filters label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 630;
}

.gallery-filters select,
.gallery-filters button,
.gallery-status button {
  min-height: 44px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 14px;
}

.gallery-filters button,
.gallery-status button {
  color: var(--wine);
  font-weight: 650;
}

.gallery-filters button:hover,
.gallery-status button:hover {
  border-color: var(--wine);
}

.gallery-status {
  max-width: 650px;
  margin: 0 auto;
  padding: 26px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.gallery-status h2 {
  font-size: clamp(20px, 3vw, 29px);
}

.gallery-status button {
  margin-top: 13px;
}

.gallery-case {
  padding-block: clamp(58px, 7vw, 108px);
  background: var(--deep);
  color: var(--white);
}

.gallery-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 7vw, 112px);
  max-width: 1170px;
}

.gallery-case-photo {
  max-width: 510px;
  width: 100%;
  justify-self: center;
}

.gallery-case-photo img {
  width: 100%;
  height: auto;
  border: 1px solid #f4e9d447;
  border-radius: 3px;
}

.gallery-case-photo figcaption {
  margin-top: 9px;
  color: #d3dfd2;
  font-size: 12px;
  text-align: center;
}

.gallery-case .kicker {
  color: #d3dfd2;
}

.gallery-case h2 {
  margin-block: 10px clamp(20px, 2.2vw, 30px);
  font-size: clamp(32px, 4.05vw, 64px);
  font-weight: 690;
}

.gallery-case-metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 16px;
  width: fit-content;
  margin-bottom: 21px;
  padding-block: 7px 12px;
  border-block: 1px solid #d3dfd24d;
  color: #e9e8d8;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 580;
}

.gallery-case-metric strong {
  color: #ead7ac;
  font-size: clamp(36px, 4.8vw, 67px);
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.gallery-case-lead {
  max-width: 40ch;
  color: #e4ebe1;
  font-size: clamp(14px, 1.4vw, 17px);
}

.gallery-case .button {
  margin-top: 26px;
}

.gallery-case .button:focus-visible {
  outline-color: var(--white);
}

.gallery-case-strength {
  margin-top: clamp(42px, 6vw, 84px);
  padding-top: clamp(42px, 6vw, 84px);
  border-top: 1px solid #d3dfd24d;
}

.gallery-case-strength .gallery-case-photo {
  max-width: 365px;
}

.gallery-case-strength h2 {
  font-size: clamp(30px, 3.7vw, 56px);
}

@media (max-width: 760px) {
  .gallery-case-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    max-width: 510px;
  }

  .gallery-case h2 {
    font-size: clamp(29px, 7.8vw, 49px);
  }

  .gallery-case .button {
    min-height: 48px;
    margin-top: 19px;
  }
}

.gallery-review {
  border: 1px solid var(--line);
}

.gallery-review:target {
  border-color: var(--wine);
  box-shadow: 0 0 0 2px var(--wine);
}

.gallery-review-copy {
  padding: clamp(15px, 1.6vw, 23px);
}

.gallery-review-attribution {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

.gallery-review time {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.gallery-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.gallery-goals span {
  padding: 0 7px;
  background: var(--mist);
  color: var(--deep);
  font-size: 11px;
}

.gallery-excerpt {
  margin: 11px 0 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.gallery-review-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  list-style: none;
  color: var(--wine);
  font-size: 13px;
  font-weight: 650;
}

.gallery-review-details > summary::-webkit-details-marker {
  display: none;
}

.gallery-review-details > summary > span::before {
  content: '+';
}

.gallery-review-details[open] > summary > span::before {
  content: '−';
}

.gallery-review-body {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.gallery-review-body > p + p {
  margin-top: 12px;
}

.gallery-more-photos {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.gallery-more-photos img {
  width: 100%;
  height: auto;
  background: var(--paper);
}

@media (max-width: 960px) {
  .gallery-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery-home .shell {
    width: calc(100% - 24px);
  }

  .gallery-features {
    gap: 24px 18px;
  }

  .gallery-feature-copy {
    gap: 7px;
    padding: 13px 12px 11px;
  }

  .gallery-feature h3 {
    font-size: clamp(16px, 4.35vw, 20px);
    line-height: 1.4;
  }

  .gallery-feature-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    font-size: 12px;
    line-height: 1.65;
  }

  .gallery-feature .gallery-member {
    gap: 2px 5px;
    font-size: 11px;
  }

  .gallery-feature-cta {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .gallery-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-review-list {
    grid-template-columns: 1fr;
  }
}
