html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* 페이지 가운데 정렬 + 최대 900px */
.ig-post{
  max-width: 900px;
  margin: 0 auto 24px;
  background: #fff;
  /*border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;*/
  overflow: hidden;
}

/* 헤더 */
.ig-post__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.ig-user{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-user__meta{
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ig-user__name{
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.ig-user__time{
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

.ig-more{
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: rgba(0,0,0,0.7);
}

/* 미디어 영역: 캡처처럼 '안쪽 라운드 이미지' 느낌 */
.ig-post__media{
  position: relative;
  padding: 0 14px 12px;
}

.ig-media__img{
  width: 100%;
  height: auto;              /* 원본 비율 유지 */
  display: block;
  /*border-radius: 12px;       /* 캡처처럼 이미지 자체가 둥글게 */
  /* background: #111; */
}

/* 높이 제한을 걸고 싶으면(세로 너무 긴 사진 대비) */
@media (min-width: 420px){
  .ig-media__img{
    max-height: 700px;        /* 원하는 값으로 조절 */
    object-fit: contain;        /* max-height 걸면 cover/contain 선택 필요 */
  }
}

/* 액션 바 */
.ig-post__actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px 10px;
}

.ig-actions__left{
  display: flex;
  gap: 12px;
}

.ig-icon{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 6px;
}

/* 본문 */
.ig-post__body{
  padding: 0 14px 14px;
}

.ig-caption__name{
  font-weight: 700;
  margin-right: 6px;
}

.ig-caption__text{
  color: rgba(0,0,0,0.82);
}

.ig-footer{
  max-width: 900px;
  margin: 0 auto;
}


/* ===== Instagram-like comment + action area (added) ===== */

.ig-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 8px;
}

.ig-action{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px;
  color: rgba(0,0,0,0.75);
  border-radius: 10px;
}

.ig-action:hover{
  background: rgba(0,0,0,0.04);
}

.ig-action:active{
  transform: translateY(0.5px);
}

.ig-comments{
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
  margin-top: 6px;
}

.ig-comments__viewall{
  display: inline-block;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  margin-bottom: 10px;
}

.ig-comments__viewall:hover{
  text-decoration: underline;
}

.ig-comments__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ig-comment{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ig-comment__row{
  display: inline;
  word-break: break-word;
}

.ig-comment__user{
  font-weight: 700;
  color: #111;
  text-decoration: none;
  margin-right: 6px;
}

.ig-comment__user:hover{
  text-decoration: underline;
}

.ig-comment__text{
  color: rgba(0,0,0,0.82);
}

.ig-comment__meta{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: rgba(0,0,0,0.55);
}

.ig-comment__time{
  color: rgba(0,0,0,0.55);
}

.ig-comment__like{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  color: rgba(0,0,0,0.55);
  border-radius: 10px;
}

.ig-comment__like:hover{
  background: rgba(0,0,0,0.04);
}

.ig-addcomment{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ig-addcomment__input{
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.035);
}

.ig-addcomment__input:focus{
  background: rgba(0,0,0,0.055);
}

.ig-addcomment__submit{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: #0a66c2;
  padding: 8px 10px;
  border-radius: 10px;
}

.ig-addcomment__submit:hover{
  background: rgba(10,102,194,0.08);
}

.ig-addcomment__submit:disabled{
  opacity: 0.4;
  cursor: default;
}

/* nested comment (reply): ParentId != Id */
.ig-comment--nested{
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(0,0,0,0.08);
}

.ig-comment__reply{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 6px;
  color: rgba(0,0,0,0.55);
  border-radius: 10px;
}

.ig-comment__reply:hover{
  background: rgba(0,0,0,0.04);
}

/* reply box (slides in) */
.ig-replybox{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;

  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 200ms ease, opacity 200ms ease, transform 200ms ease;
}

.ig-replybox.is-open{
  opacity: 1;
  transform: translateY(0);
}

.ig-replybox__input{
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.035);
}

.ig-replybox__submit{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: #0a66c2;
  padding: 8px 10px;
  border-radius: 10px;
}

.ig-replybox__submit:hover{
  background: rgba(10,102,194,0.08);
}

.ig-replybox__cancel{
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  padding: 8px 10px;
  border-radius: 10px;
}

.ig-replybox__cancel:hover{
  background: rgba(0,0,0,0.04);
}