.brand-inquiries {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  margin-top: 24px;
  padding: clamp(18px, 2.4vw, 34px);
  border-radius: 24px;
  background: #f7f4ef;
}

.brand-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(320px, 31vw, 425px);
  gap: clamp(6px, .8vw, 12px);
}

.brand-post {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #514538;
  color: white;
}

.brand-post-lead {
  grid-row: span 2;
}

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

.brand-post::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 63%));
}

.brand-post span {
  position: absolute;
  z-index: 1;
  left: clamp(10px, 1.15vw, 18px);
  bottom: clamp(8px, .9vw, 14px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.brand-post:hover span, .brand-post:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-contact {
  min-width: 0;
  padding: 22px clamp(4px, 2vw, 32px) 22px 0;
}

.brand-contact h2 {
  max-width: 12ch;
  font-size: clamp(36px, 3.7vw, 56px);
  letter-spacing: -.05em;
}

.brand-contact h2 span {
  white-space: nowrap;
}

.brand-contact p {
  margin: 18px 0 24px;
  max-width: 42ch;
  color: #595650;
  line-height: 1.65;
}

.brand-inquiry-button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.brand-inquiry-button:hover {
  background: #37332e;
}

.brand-email {
  display: block;
  width: fit-content;
  margin-top: 14px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 800px) {
  .brand-inquiries {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .brand-gallery {
    height: auto;
    aspect-ratio: 1.65;
  }

  .brand-contact {
    padding: 28px clamp(8px, 4vw, 32px) 16px;
    text-align: center;
  }

  .brand-contact h2, .brand-contact p, .brand-email {
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .brand-inquiries {
    padding: 12px;
    border-radius: 20px;
  }

  .brand-gallery {
    aspect-ratio: 1.38;
  }

  .brand-post {
    border-radius: 9px;
  }

  .brand-inquiry-button {
    width: 100%;
  }
}
