/* Ark Care Instagram section */
.ark-instagram-section {
  position: relative;
  overflow: hidden;
  background: #fff !important;
}

.ark-instagram-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0) 0%, rgba(234, 246, 252, .32) 100%);
  pointer-events: none;
}

.ark-instagram-section__inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--ark-content-max, 1120px)) !important;
  max-width: var(--ark-content-max, 1120px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.ark-instagram-section__head {
  margin-bottom: var(--ark-section-head-gap, clamp(30px, 4vw, 44px)) !important;
}

.ark-instagram-section__head h2 span {
  display: block;
}

.ark-instagram-section__head p {
  max-width: 46em;
  line-height: 1.92;
}

.ark-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.7vw, 18px);
  width: min(100%, var(--ark-content-max, 1120px)) !important;
  margin-inline: auto;
}

.ark-instagram-post {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(47, 128, 201, .12);
  border-radius: 18px;
  background: #eaf6fc;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(30, 95, 153, .075);
}

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

.ark-instagram-post:hover img,
.ark-instagram-post:focus-visible img {
  transform: scale(1.035);
  filter: brightness(1.03);
}

.ark-instagram-post:focus-visible {
  outline: 3px solid rgba(47, 128, 201, .42);
  outline-offset: 4px;
}

.ark-instagram-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 36px);
}

.ark-instagram-button {
  min-width: min(100%, 248px);
}

@media (max-width: 834px) {
  .ark-instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 620px) !important;
  }

  .ark-instagram-post:nth-child(n + 5) {
    display: none;
  }

  .ark-instagram-section__head h2 span {
    display: inline;
  }

  .ark-instagram-section__head h2 span + span::before {
    content: "";
    display: block;
  }
}

@media (max-width: 430px) {
  .ark-instagram-grid {
    gap: 9px;
  }

  .ark-instagram-br {
    display: none;
  }

  .ark-instagram-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ark-instagram-post img {
    transition: none;
  }

  .ark-instagram-post:hover img,
  .ark-instagram-post:focus-visible img {
    transform: none;
  }
}
