.instagram-section {
  background: var(--white);
  padding: 78px 18px 84px;
  overflow: hidden;
}

.instagram-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-bottom: 38px;
}

.instagram-heading h2 {
  max-width: 12ch;
  margin-top: 16px;
  font-size: clamp(2.7rem, 11.5vw, 4.2rem);
  line-height: .92;
}

.instagram-heading p {
  max-width: 32ch;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.45;
}

.instagram-handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 10px 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(91, 103, 73, .10);
  color: var(--olive-dark);
  font: 550 .9rem/1.15 "DM Sans", Arial, sans-serif;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.instagram-handle:hover,
.instagram-handle:focus-visible {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-2px);
}

.instagram-handle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 430px);
  margin: 0 auto;
}

.instagram-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 17px;
  background: var(--linen);
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.instagram-grid a:hover img,
.instagram-grid a:focus-visible img {
  transform: scale(1.035);
  filter: saturate(.94) brightness(.94);
}

.instagram-grid a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.instagram-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 10px rgba(16, 15, 15, .08);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.instagram-mark svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

.instagram-mark svg rect,
.instagram-mark svg circle:not(.instagram-mark__dot) {
  fill: none;
}

.instagram-mark__dot {
  fill: currentColor;
  stroke: none;
}

@media (min-width: 720px) {
  .instagram-heading {
    margin-bottom: 52px;
  }

  .instagram-heading h2 {
    font-size: clamp(3.7rem, 5.2vw, 4.9rem);
    max-width: 12ch;
  }

  .instagram-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 1040px);
  }

  .instagram-grid a {
    border-radius: 22px;
  }

  .instagram-section {
    padding: 112px var(--pad) 118px;
  }

  .instagram-mark {
    top: 13px;
    right: 13px;
    width: 30px;
    height: 30px;
  }
}
