.instagram-posts-section {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 120px 0;
}

.instagram-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5px;
}

.instagram-subtitle {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.4;
  letter-spacing: 1px;
  padding: 0 5px;
}

.instagram-subtitle a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

.instagram-posts-section .instagram-handle a {
  text-decoration: none;
}

.instagram-post a,
.instagram-post a:hover {
  text-decoration: none;
}

.instagram-posts-section .mb-carousel__slide > a {
  text-decoration: none;
}

.instagram-static-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.instagram-static-grid__item {
  flex: 1 1 0;
  min-width: 0;
}

.instagram-static-grid__item .instagram-post-link img {
  aspect-ratio: 2/1;
  object-fit: cover;
}

.instagram-carousel-only {
  display: none;
}

@media (max-width: 991px) {
  .instagram-static-grid {
    display: none;
  }

  .instagram-carousel-only {
    display: block;
  }
}

.instagram-grid-wrapper {
  overflow: hidden;
  padding: 0;
  margin: 0;
  width: 100%;
}

.instagram-grid.mb-carousel {
  height: auto;
  overflow: visible;
}

.instagram-grid .mb-carousel__viewport {
  overflow: hidden;
}

.instagram-grid .mb-carousel__track {
  display: flex;
  gap: 15px;
  height: auto;
}

.instagram-grid .mb-carousel__slide {
  flex: 0 0 352px;
  width: 352px;
  min-width: 0;
  height: auto;
}

.instagram-post img,
.instagram-grid .mb-carousel__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-position: center;
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.instagram-post-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.instagram-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  font-size: 16px;
  letter-spacing: 1px;
  text-decoration: none;
  font-family: var(--font-heading);
  color: #000;
}

a.instagram-handle {
  text-decoration: none !important;
}

.instagram-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

a.instagram-post-link {
  text-decoration: none !important;
  color: inherit;
}

@media (max-width: 991px) {
  .instagram-grid .mb-carousel__slide {
    flex: 0 0 80%;
    width: 80%;
  }

  .instagram-posts-section {
    padding: 60px 0;
  }

  .instagram-title,
  .instagram-subtitle {
    padding-left: 30px;
    padding-right: 30px;
  }

  .instagram-handle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .instagram-title {
    font-size: 20px;
  }

  .instagram-subtitle {
    font-size: 16px;
  }
}
