#brand-in-action {
  scroll-margin-top: 88px;
}

.brand-case-grid article {
  min-width: 0;
}

.brand-case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.brand-case-card:focus-visible,
.brand-case-back:focus-visible {
  outline: 2px solid #2d6b90;
  outline-offset: 4px;
}

.brand-case-cover {
  display: grid;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #e9eeeb;
}

.brand-case-cover--triptych {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 2px;
}

.brand-case-cover--mosaic {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.brand-case-cover--mosaic img:first-child {
  grid-row: span 2;
}

.brand-case-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 43%;
}

.brand-case-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(19px, 2vw, 32px);
}

.brand-case-card-copy h3 {
  margin-bottom: 10px;
}

.brand-case-card-copy > p:not(.eyebrow) {
  margin: 0 0 18px;
}

.brand-case-card-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-weight: 600;
  font-size: 13px;
}

.brand-case-card:hover .brand-case-card-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-case-card-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.brand-case-page {
  padding-top: clamp(34px, 5vw, 72px);
}

.brand-case-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-case-back::before {
  content: "←";
}

.brand-case-heading {
  max-width: 850px;
  margin: 32px 0 clamp(30px, 4vw, 58px);
}

.brand-case-heading h1,
.lang-zh .brand-case-heading h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.02;
}

.brand-case-intro {
  max-width: 70ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.brand-case-group + .brand-case-group {
  margin-top: clamp(34px, 5vw, 72px);
}

.brand-case-group h2,
.lang-zh .brand-case-group h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.5vw, 42px);
}

.brand-case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.brand-case-gallery--screenshots {
  grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr));
}

.brand-case-gallery--pharmacy {
  grid-template-columns: minmax(0, 9fr) minmax(0, 9fr) minmax(0, 16fr);
}

.brand-case-gallery--pair {
  max-width: 780px;
}

.brand-case-gallery--locations.brand-case-gallery--pair {
  max-width: 1080px;
}

.brand-case-group--livestream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.brand-case-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px);
  background: #f0f2ef;
}

.brand-case-feature-copy .brand-case-group-description {
  max-width: 38ch;
  margin-bottom: 0;
}

.brand-case-gallery--livestream.brand-case-gallery--pair {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-case-gallery--social-posts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-case-group-description {
  max-width: 72ch;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.75;
}

.brand-case-photo {
  min-width: 0;
  margin: 0;
}

.brand-case-photo-media {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  background: #f0f2ef;
  overflow: hidden;
}

.brand-case-gallery--locations .brand-case-photo-media {
  aspect-ratio: 4 / 3;
}

.brand-case-gallery--screenshots .brand-case-photo-media,
.brand-case-gallery--livestream .brand-case-photo-media,
.brand-case-gallery--social-posts .brand-case-photo-media {
  aspect-ratio: 4 / 5;
}

.brand-case-gallery--pharmacy .brand-case-photo-media {
  aspect-ratio: 3 / 4;
}

.brand-case-gallery--pharmacy .brand-case-photo:last-child .brand-case-photo-media {
  aspect-ratio: 4 / 3;
}

.brand-case-photo-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.brand-case-gallery--model-portraits img,
.brand-case-gallery--pharmacy img {
  object-fit: cover;
}

.brand-case-photo figcaption {
  padding: 11px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #48606c;
}

@media (max-width: 900px) {
  .brand-case-group--livestream {
    grid-template-columns: 1fr;
  }

  .brand-case-gallery--social-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #brand-in-action {
    scroll-margin-top: 70px;
  }

  .brand-case-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-case-gallery--livestream.brand-case-gallery--pair {
    grid-template-columns: 1fr;
  }
}
