.post-container--inst * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* === Container === */
.post-container--inst {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* === Header === */
.post-header--inst {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: unset;
  margin-bottom: unset;
}

.post-container--inst img {
  margin: 0;
}
.post-container--inst .confirm {
  margin-top: 2px;
  margin-left: 5px;
}
.post-header--inst img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
}
.user-name-wrapper {
  display: inline-block;
  align-items: center;
}

.user-name--inst {
  font-weight: 600;
  font-size: 14px;
}

/* === Post Content === */
.post-content--inst {
  overflow: unset;
  padding: 16px;
  width: 100%;
}

/* === Actions === */
.actions-container {
  order: unset;
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  /* margin-bottom: 10px; */
}
.post-actions--inst {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-actions-left--inst *,
.action__btn--inst * {
  color: #000;
  width: 20px;
}

.post-actions-left--inst {
  display: flex;
  gap: 16px;
}

.post-actions--inst button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.post-actions--inst img {
  width: 24px;
  height: 24px;
}

.action__btn--inst {
  display: flex;
  gap: 5px;
}

.post-container--inst .action__counter--inst {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

/* === Likes, Description & Date === */
.post-likes--inst {
  font-weight: bold;
  margin-bottom: 8px;
}

.post-description--inst {
  margin-top: 4px;
  margin-bottom: 8px;
  line-height: 1;
}

.post-description--inst span {
  font-weight: 600;
}

.post-date--inst {
  color: #737373;
  font-size: 12px;
}

/* === Comments === */
.post-comments--inst {
  display: none;
  flex-direction: column;
  gap: 15px;
  font-size: 14px;
}

.comment--inst {
  display: flex;
  gap: 5px;
  align-items: center;
  width: 100%;
}

.comment__img-container--inst {
  align-self: flex-start;
  width: 32px;
  margin-right: 7px;
  flex-shrink: 0;
}

.comment-img--inst {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.comment__main--inst {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comment-header--inst {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}

.comment-name--inst {
  font-weight: 600;
}
.comment-actions--inst {
  display: flex;
  gap: 10px;
}
.comment-actions--inst span {
  font-size: 12px;
  color: #737373;
}
.comment-like--inst,
.comment-reply--inst {
  font-weight: 600;
}

.post-container--inst .comment-text--inst {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  word-break: break-word;
}
.like-span--inst {
  margin-left: auto;
}
.like-comment {
  width: 16px !important;
  height: 16px !important;
}

/* === Image Containers === */
.img-container--desktop--inst {
  display: none;
  background-color: #000;
  max-width: 50%;
}
.slider__btn--inst svg {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}
.img-container--mobile--inst {
  margin-bottom: 10px;
}
.img-container--mobile--inst .slider__btn--inst--prev {
  left: 30px;
}

.img-container--mobile--inst .slider__btn--inst--next {
  right: 30px;
}

.img-container--mobile--inst .slider--inst {
  /* background-color: rgba(0, 0, 0, 0.05); */
}

/* === Slider === */
.slider--inst {
  overflow: hidden;
  width: 100%;
  /* min-height: 400px; */
}

.slider__track--inst {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.slider__slide--inst {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  width: 100%;
  align-self: center;
  height: 100%;
}

.slider__slide--inst img {
  height: auto;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.slider__btn--inst {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.slider__icon {
  width: 32px;
  height: 32px;
  display: block;
  color: #e1d9cd;
}

.slider__btn--inst--prev,
.slider__btn--inst--next {
  z-index: 20;
}

.slider__btn--inst--prev {
  left: 5px;
}

.slider__btn--inst--next {
  right: 5px;
}

.slider__btn--inst--prev .slider__icon circle,
.slider__btn--inst--next .slider__icon circle {
  fill: #fff;
}

/* === Slider Dots & Counter === */
.slider__dots--inst {
  position: absolute;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.slider__dot--inst {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  transition: 0.2s ease;
  border: none;
  padding: 0;
}

.slider__dot--inst--active {
  transform: scale(1.2);
  opacity: 1;
}

.slider__counter--inst {
  display: none;
  position: absolute;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 12px;
  z-index: 30;
  user-select: none;
}

#slider1 .slider__counter--inst {
  top: 12px;
  right: 36px;
}

#slider2 .slider__counter--inst {
  top: 0;
  right: 30px;
}

@media (max-width: 999px) {
  .post-container--inst .comment-text--inst,
  .post-container--inst .post-comments--inst,
  .post-container--inst .user-name--inst,
  .post-container--inst .post-description__text--inst {
    font-size: 14px;
  }
}

/* === Responsive: Mobile === */
@media (max-width: 600px) {
  .post-container--inst {
    border-radius: 0;
  }

  .img-container--mobile--inst > .post-image--inst {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
  }

  .slider__slide--inst img {
    height: 100%;
  }
}

/* === Responsive: Desktop === */
@media (min-width: 768px) {
  .post-container--inst {
    max-height: 600px;
    flex-direction: row;
    max-width: 900px;
  }
  .post-header--inst {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
  }
  .post-content--inst {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .img-container--desktop--inst,
  .post-comments--inst {
    position: relative;
    display: flex;
    align-items: center;
  }

  .img-container--mobile--inst,
  .post-description--inst,
  .post-date--inst {
    display: none;
  }
  .actions-container .post-date--inst {
    display: initial;
  }
  .post-comments--inst {
    margin-bottom: 20px;
  }
  .actions-container {
    order: 2;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    margin-bottom: unset;
  }
  .slider__counter--inst {
    font-size: 14px;
    padding: 4px 6px;
  }
  .confirm {
    margin-left: 5px;
  }
  .post-actions-left--inst *,
  .action__btn--inst * {
    width: 20px;
  }
  .action__counter--inst {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .actions-container .post-date--inst {
    display: none;
  }
}
.post-description__main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.post-description__text--inst {
  font-weight: 400 !important;
}

.inst-color {
  color: #4150F7;
  font-weight: 400 !important;
  white-space: nowrap;
}
