#instafeeds-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 2rem;
  max-width: 1200px;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
}

.insta-card {
  width: 30%;
  max-width: 320px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  transition: transform 0.2s;
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  justify-content: space-between;
  overflow: hidden;
}

.insta-card:focus,
.insta-card:active,
.insta-card:hover {
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.insta-header {
  display: flex;
  align-items: center;
  padding-left: 16px;
  padding-right: 16px;
}

.insta-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #ddd;
  margin-top: 25px;
  margin-bottom: 25px;
}

.insta-user {
  font-weight: bold;
  font-size: 1em;
  margin: 0% !important;
}

.insta-date {
  font-size: 0.8em;
  color: #666;
  margin: 0% !important;
}

.insta-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* number of lines to show */
  line-clamp: 5;
  -webkit-box-orient: vertical;
  font-size: 1em;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
}

.insta-image-container {
  width: 100%;
  margin-top: auto;
}

.insta-image-container a {
  display: block;
  width: 100%;
}

.insta-image,
.insta-video {
  width: 100%;
  height: auto;
  border: none;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  display: block;
}

video {
  width: 100%;
  object-fit: cover;
  max-height: 362px !important;
}

.swiper {
  width: 100%;
  height: auto;
  position: relative;
  margin-top: 1rem;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img,
.swiper-slide video {
  width: 100%;
  height: auto;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

.swiper-button-next,
.swiper-button-prev {
  width: 40px !important;
  height: 40px !important;
  color: white !important;
  background-color: #0c57bf;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: bold;
  line-height: 1;
  margin: 0;
  display: block;
  width: 100%;
  text-align: center;
}

.insta-header-info {
  display: flex;
  flex-direction: column;
  word-break: break-word;
  max-width: 300px;
}

/* Tablet */
@media (max-width: 800px) {
  #instafeeds-container {
    flex-direction: row;
  }

  .insta-card {
    width: 30%;
  }

  .insta-user,
  .insta-date,
  .insta-caption {
    font-size: 0.8rem;
  }

  .insta-avatar {
    width: 40px;
    height: 40px;
  }

  video {
  width: 100%;
  object-fit: cover;
  max-height: 267px !important;
}
}

/* Mobile */
@media (max-width: 600px) {
  #instafeeds-container {
    flex-direction: column;
    align-items: center;
  }

  .insta-card {
    width: 90%;
    max-width: 100%;
  }

  .insta-user,
  .insta-date,
  .insta-caption {
    font-size: 1rem;
  }

  .insta-avatar {
    width: 40px;
    height: 40px;
  }

  video {
  width: 100%;
  object-fit: cover;
  max-height: 420px !important;
}
}

/* Desktop */
@media (min-width: 1200px) {
  video {
  width: 100%;
  object-fit: cover;
  max-height: 397px !important;
  }
}