/* ========================================
   INSTAGRAM GRID
   3 across desktop
   2 across tablet
   1 across mobile
   ======================================== */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
  width: 100%;
  margin: 20px 0;
}


/* ========================================
   GRID ITEMS
   ======================================== */

.instagram-grid-item {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


/* ========================================
   ALL INSTAGRAM BLOCKQUOTES
   ======================================== */

.instagram-grid .instagram-media,
.instagram-grid blockquote.instagram-media {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}


/* ========================================
   REGULAR INSTAGRAM POSTS
   ======================================== */

.instagram-grid-item.instagram-post {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.instagram-post .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.instagram-post iframe {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}


/* ========================================
   INSTAGRAM REELS
   ======================================== */

.instagram-grid-item.instagram-reel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.instagram-reel .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.instagram-reel iframe {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}


/* ========================================
   GENERAL INSTAGRAM IFRAME OVERRIDE
   DO NOT SET HEIGHT
   Instagram determines the correct height.
   ======================================== */

.instagram-grid iframe {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}


/* ========================================
   TABLET
   2 across
   ======================================== */

@media (max-width: 1000px) {

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

}


/* ========================================
   MOBILE
   1 across
   ======================================== */

@media (max-width: 650px) {

  .instagram-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

}