.atitude-instagram-video {
  width: 100%;
  max-width: 360px;
  height: 450px;
  overflow: hidden;
  border-radius: 22px;
  background: #fffaf3;
  box-shadow: 0 12px 30px rgba(87, 68, 25, 0.12);
  margin: 0 auto;
}

.atitude-instagram-video .instagram-media,
.atitude-instagram-video iframe {
  max-width: 100% !important;
  min-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.atitude-instagram-video iframe {
  height: 540px !important;
  transform: translateY(-55px);
}

.an-instagram-fixed-feed {
  width: 100%;
}

.an-instagram-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.an-instagram-feed-header span {
  display: block;
  color: #b1120f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.an-instagram-feed-header h3 {
  margin: 0;
  color: #1f1308;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
}

.an-instagram-feed-header p {
  max-width: 520px;
  margin: 10px 0 0;
  color: #6f604f;
  font-size: 15px;
  line-height: 1.5;
}

.an-instagram-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: #b1120f;
  color: #fffaf3 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.an-instagram-feed-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 20px;
  scrollbar-width: thin;
}

.an-instagram-feed-scroll::-webkit-scrollbar {
  height: 7px;
}

.an-instagram-feed-scroll::-webkit-scrollbar-track {
  background: #efe2ca;
  border-radius: 999px;
}

.an-instagram-feed-scroll::-webkit-scrollbar-thumb {
  background: #c29435;
  border-radius: 999px;
}

.an-instagram-post-card {
  flex: 0 0 calc(20% - 15px);
  min-width: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  display: block;
  scroll-snap-align: start;
  background: #fffaf3;
  box-shadow: 0 12px 28px rgba(87, 68, 25, 0.14);
  border: 1px solid rgba(194, 148, 53, 0.28);
  position: relative;
}

.an-instagram-embed-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: #fffaf3;
}

.an-instagram-embed-crop .instagram-media {
  min-width: 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.an-instagram-embed-crop iframe {
  width: 100% !important;
  min-width: 100% !important;
  height: 520px !important;
  transform: translateY(-70px);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .an-instagram-post-card {
    flex-basis: calc(33.33% - 12px);
  }
}

@media (max-width: 767px) {
  .an-instagram-feed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-instagram-feed-header h3 {
    font-size: 27px;
  }

  .an-instagram-post-card {
    flex-basis: 72%;
    min-width: 240px;
  }
}
