/* Reddit-style Blogger post infinite scroll — v1.1.4 */
#jtInfiniteFeed{
  width:100%;
  max-width:100%;
  margin:0;
  padding:0;
  box-sizing:border-box;
}
#jtInfiniteFeed .jt-inf-post{
  margin-top:32px;
  padding-top:28px;
  border-top:1px solid rgba(0,0,0,.12);
  box-sizing:border-box;
}
#jtInfiniteFeed .jt-inf-post > .post-outer-container,
#jtInfiniteFeed .jt-inf-post > .post-outer{
  margin:0 !important;
}
#jtInfiniteFeed .jt-inf-post .post-share-buttons,
#jtInfiniteFeed .jt-inf-post .post-sidebar,
#jtInfiniteFeed .jt-inf-post .post-ads,
#jtInfiniteFeed .jt-inf-post .inline-ad,
#jtInfiniteFeed .jt-inf-post .comments,
#jtInfiniteFeed .jt-inf-post #comments,
#jtInfiniteFeed .jt-inf-post script,
#jtInfiniteFeed .jt-inf-post iframe{
  display:none !important;
}
.jt-inf-loader{
  display:none;
  text-align:center;
  padding:24px 0 40px;
  color:#6B7280;
  font-size:13px;
  font-weight:500;
}
.jt-inf-loader.on{display:block}
.jt-inf-loader i{
  display:inline-block;
  width:16px;
  height:16px;
  margin-right:8px;
  border:2px solid rgba(0,0,0,.15);
  border-top-color:#FF4500;
  border-radius:50%;
  animation:jtInfSpin .7s linear infinite;
  vertical-align:middle;
}
@keyframes jtInfSpin{to{transform:rotate(360deg)}}
.jt-inf-end{
  display:none;
  text-align:center;
  padding:18px 0 32px;
  color:#6B7280;
  font-size:12px;
}
@media screen and (max-width:768px){
  #jtInfiniteFeed .jt-inf-post{margin-top:22px;padding-top:20px}
}
@media (prefers-color-scheme:dark){
  #jtInfiniteFeed .jt-inf-post{border-top-color:rgba(255,255,255,.14)}
  .jt-inf-loader,.jt-inf-end{color:#9CA3AF}
  .jt-inf-loader i{border-color:rgba(255,255,255,.18);border-top-color:#FF4500}
}

/* 추가 글: 하단 빈 공간 제거 + 데스크톱에서 좌우로 조금 더 넓게 */
#jtInfiniteFeed .jt-inf-post{padding-bottom:0 !important}
#jtInfiniteFeed .jt-inf-post .post-body-container{margin-bottom:0 !important}
#jtInfiniteFeed .jt-inf-post .post-bottom{
  margin:0 !important;
  padding:0 !important;
  height:0 !important;
  min-height:0 !important;
}
@media screen and (min-width:1240px){
  #jtInfiniteFeed .jt-inf-post .post-content.container{
    width:calc(100% + 32px) !important;
    max-width:none !important;
    margin-left:-16px !important;
    margin-right:-16px !important;
  }
}

/* 세로로 긴 추가 글 접기/펼치기 */
#jtInfiniteFeed .jt-inf-post .post-outer{
  display:block !important;
  flex-direction:column !important;
}
#jtInfiniteFeed .jt-inf-post .post-content.jt-foldable{
  position:relative;
  max-height:720px;
  overflow:hidden;
  isolation:isolate;
}
#jtInfiniteFeed .jt-inf-post .post-content.jt-foldable:not(.jt-expanded):after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:5;
  height:220px;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.18) 28%,rgba(255,255,255,.62) 62%,rgba(255,255,255,.94) 88%,#fff 100%);
}
#jtInfiniteFeed .jt-inf-post .post-content.jt-expanded{
  max-height:none;
  overflow:visible;
}
#jtInfiniteFeed .jt-inf-post .post-content > .separator:not(:has(img)),
#jtInfiniteFeed .jt-inf-post .post-content > div:empty,
#jtInfiniteFeed .jt-inf-post .post-content > p:empty{
  display:none !important;
}
@keyframes jtFoldPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(255,69,0,.38),0 6px 18px rgba(255,69,0,.22)}
  50%{box-shadow:0 0 0 7px rgba(255,69,0,0),0 8px 24px rgba(255,69,0,.38)}
}
@keyframes jtFoldShine{
  0%{left:-120%}
  45%,100%{left:130%}
}
#jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn{
  display:block;
  width:max-content;
  position:relative;
  z-index:2;
  margin:18px auto 6px;
  padding:0 24px;
  height:40px;
  border:0;
  border-radius:999px;
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(135deg,#ff6a00,#ff4500);
  color:#fff;
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  letter-spacing:.01em;
  cursor:pointer;
  text-shadow:0 1px 2px rgba(90,20,0,.18);
  animation:jtFoldPulse 2.2s ease-in-out infinite;
  transition:transform .2s ease,filter .2s ease;
}
#jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn:after{
  content:"";
  position:absolute;
  top:-25%;
  bottom:-25%;
  left:-120%;
  width:55%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.62),transparent);
  transform:skewX(-20deg);
  animation:jtFoldShine 2.6s ease-in-out infinite;
  pointer-events:none;
}
#jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn:hover{
  border-color:transparent;
  color:#fff;
  filter:brightness(1.08);
  transform:translateY(-1px);
}
html[data-theme="dark"] #jtInfiniteFeed .jt-inf-post .post-content.jt-foldable:not(.jt-expanded):after{
  background:linear-gradient(180deg,rgba(15,17,19,0) 0%,rgba(15,17,19,.18) 28%,rgba(15,17,19,.62) 62%,rgba(15,17,19,.94) 88%,#0f1113 100%);
}
html[data-theme="dark"] #jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,#ff6a00,#ff4500);
}
html[data-theme="dark"] #jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn:hover{
  border-color:transparent;
  color:#fff;
}
@media (prefers-reduced-motion:reduce){
  #jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn{animation:none}
  #jtInfiniteFeed .jt-inf-post .jt-inf-fold-btn:after{display:none}
}
