.gallery-section {
  padding: clamp(88px, 9vw, 138px) 4vw;
  overflow: visible;
  background: #efedea;
}

.gallery-static-head {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: 1.5fr .5fr;
  gap: 8vw;
  align-items: end;
}

.gallery-static-head h2 {
  margin: 0;
  font: 600 clamp(58px, 7vw, 112px)/.88 'Manrope';
  letter-spacing: -.085em;
}

.gallery-static-head > p {
  max-width: 330px;
  margin: 0 0 7px;
  color: #686062;
  font-size: 15px;
  line-height: 1.65;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, 31vw));
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #d7d2ce;
}

.gallery-featured { grid-row: 1 / 3; }
.gallery-wide { grid-column: 2 / 4; }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(25, 14, 18, .82));
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-item > span {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8f4f0;
  color: var(--wine);
  font: 700 9px 'DM Mono';
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 23px;
  color: #fff;
}

.gallery-item h3 {
  max-width: 530px;
  margin: 0;
  font: 600 clamp(27px, 2.7vw, 43px)/.96 'Manrope';
  letter-spacing: -.06em;
}

.gallery-item p {
  max-width: 390px;
  margin: 10px 0 0;
  color: #eee5e7;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .gallery-static-head { grid-template-columns: 1fr; gap: 22px; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 520px 340px 340px; }
  .gallery-featured { grid-column: 1 / 3; grid-row: 1; }
  .gallery-wide { grid-column: 1 / 3; }
}

@media (max-width: 600px) {
  .gallery-section { padding: 76px 18px; }
  .gallery-static-head { margin-bottom: 35px; }
  .gallery-static-head h2 { font-size: 58px; }
  .gallery-static-head > p { font-size: 13px; }
  .gallery-mosaic { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-item,
  .gallery-featured,
  .gallery-wide { grid-column: auto; grid-row: auto; height: 390px; }
  .gallery-featured { height: 470px; }
  .gallery-item figcaption { left: 20px; right: 20px; bottom: 20px; }
  .gallery-item h3 { font-size: 32px; }
}
