
.instagram__items {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.instagram__item {
  width: calc((100% - 3rem) / 3);
  cursor: pointer;
  display: block;
}
.instagram__item.hide {
  display: none;
}
.instagram__modal {
  position: fixed;
  z-index: 1001!important;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  transition: opacity 0.5s;
  display: none;
  opacity: 0;
}
.instagram__modal__inner {
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  height: 100%;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.instagram__modal__body {
  flex: 1;
  overflow: scroll;
  scrollbar-width: none;
  background-color: #F9F9F9;
}
.instagram__modal__close {
  width: 100%;
  background: #000000;
  color: #FFFFFF;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.instagram__modal__item {
  margin: 3rem 1rem;
  background-color: #fff;
}
.instagram__modal__item video {
  max-height: 500px;
  width: 100%;
}
.instagram__modal__item:first-child {
  margin-top: 1rem;
}
.instagram__modal__item:last-child {
  margin-bottom: 1rem;
}
.instagram__modal__item img {
  width: 100%;
  max-width: unset;
}
.instagram__modal__item span {
  display: block;
  padding: 1rem;
}

.show-modal .instagram__modal {
  display: block;
  opacity: 1;
}

.instagram #sb_instagram #sbi_load .sbi_load_btn {
  margin: 4rem auto;
  font-size: 1.5rem;
  width: 24.8rem;
  max-width: 100%;
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #707070;
  cursor: pointer;
  border-radius: 3rem;
}

.sbi_loader {
  display: none;
}

.instagram #sb_instagram .sbi_btn_text.sbi_hidden {
  opacity: 1 !important;
}

#sb_instagram .sbi_follow_btn a:active, #sb_instagram #sbi_load .sbi_load_btn:active {
  box-shadow: unset !important;
}
@media screen and (max-width: 768px) {
  .instagram__items {
    gap: 0.5rem;
  }
  .instagram__item {
    width: calc((100% - 1rem) / 3);
    display: flex;
    position: relative;
  }
  .instagram__sns_type {
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: 3px;
    right: 3px;
    padding: 3px;
    display: flex;
    background-color: white;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (min-width:769px) {
  .instagram__item {
    display: flex;
    position: relative;
  }

  .instagram__sns_type {
    position: absolute;
    width: 25px;
    height: 25px;
    bottom: 5px;
    right: 5px;
    padding: 3px;
    display: flex;
    background-color: white;
    justify-content: center;
    align-items: center;
  }

  .instagram__sns_type svg {
    height: 30px;
    width: 30px;
  }

}

.instagram__modal__item svg {
  width: 30px;
  height: 50px;
  line-height: 50px;
  margin-right: 20px;
}

.instagram__modal__item img {
  max-height: 500px;
  object-fit: contain;
}
}
