/* F-Policy / Shot at Studio HaruKim / v14-scroll-chain-fix */

.hk-shot-at__head p{
  margin:0;
}

.hk-shot-at__body{
  position:relative;
}

.hk-shot-at__toggle-check{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.hk-shot-at__preview-shell{
  --hk-shot-row-height: clamp(240px, 27vw, 340px);
  --hk-shot-gap: 12px;
  max-height:var(--hk-shot-row-height);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  padding:0 2px 0 0;
  margin:18px 0 0;
  transition:max-height .28s ease;
  scrollbar-width:thin;
}

.hk-shot-at__toggle-check:checked ~ .hk-shot-at__preview-shell{
  max-height:calc((var(--hk-shot-row-height) * 2.5) + (var(--hk-shot-gap) * 2));
}

.hk-shot-at__list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:var(--hk-shot-row-height);
  gap:var(--hk-shot-gap);
  align-items:start;
}

.hk-shot-at__empty{
  grid-column:1 / -1;
  height:var(--hk-shot-row-height);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d2d0cb;
  border-radius:18px;
  background:#f7f7f5;
  color:#777;
  font-size:13px;
  font-weight:400;
  letter-spacing:-0.02em;
}

.hk-shot-at__embed-card{
  position:relative;
  height:var(--hk-shot-row-height);
  aspect-ratio:1 / 1;
  overflow:hidden;
  border:1px solid #d2d0cb;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}

.hk-shot-at__embed-card .instagram-media{
  margin:0 !important;
  min-width:0 !important;
  width:100% !important;
  max-width:100% !important;
  border:0 !important;
}

.hk-shot-at__embed-card iframe{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}

.hk-shot-at__embed-fallback{
  display:flex;
  min-height:100%;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  padding:18px;
  color:#111;
  text-decoration:none;
  box-sizing:border-box;
}

.hk-shot-at__embed-fallback:hover,
.hk-shot-at__embed-fallback:focus,
.hk-shot-at__embed-fallback:active{
  color:#111;
  text-decoration:none;
  outline:none;
  box-shadow:none;
}

.hk-shot-at__fallback-kicker{
  color:#777;
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.hk-shot-at__fallback-title{
  color:#111;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  letter-spacing:-0.03em;
}

.hk-shot-at__fallback-text{
  color:#666;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:-0.02em;
}

.hk-shot-at__delete{
  position:absolute;
  top:8px;
  right:8px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:26px;
  padding:0 9px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#222;
  font-size:11px;
  font-weight:500;
  line-height:1;
  letter-spacing:-0.02em;
  cursor:pointer;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
}

.hk-shot-at__delete:hover,
.hk-shot-at__delete:focus,
.hk-shot-at__delete:active{
  outline:none;
  box-shadow:none;
  background:#fff;
  color:#111;
}

.hk-shot-at__toggle{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  width:auto;
  min-width:34px;
  min-height:26px;
  height:auto;
  margin:12px auto 0;
  cursor:pointer;
  color:#111;
  -webkit-tap-highlight-color:transparent;
}

.hk-shot-at__toggle-icon{
  display:block;
  width:10px;
  height:10px;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:rotate(45deg);
  transition:transform .18s ease;
}

.hk-shot-at__toggle-text{
  display:block;
  color:#777;
  font-size:11px;
  font-weight:400;
  line-height:1;
  letter-spacing:-0.03em;
  white-space:nowrap;
}

.hk-shot-at__toggle-check:checked ~ .hk-shot-at__toggle .hk-shot-at__toggle-icon{
  transform:rotate(-135deg);
}

.hk-shot-at__toggle-check:checked ~ .hk-shot-at__toggle .hk-shot-at__toggle-text{
  display:none;
}

.hk-shot-at__expand-area{
  display:none;
  margin:16px 0 0;
}

.hk-shot-at__toggle-check:checked ~ .hk-shot-at__expand-area{
  display:block;
}

.hk-shot-at__form{
  margin:0;
}

.hk-shot-at__input-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px;
  gap:10px;
  align-items:center;
}

.hk-shot-at__url-label{
  display:block;
  min-width:0;
}

.hk-shot-at__url-input{
  display:block;
  width:100%;
  height:42px;
  padding:0 14px;
  border:1px solid #d2d0cb;
  border-radius:8px;
  background:#fff;
  color:#111;
  font-size:14px;
  font-weight:400;
  line-height:1;
  letter-spacing:-0.02em;
  outline:none;
  box-sizing:border-box;
}

.hk-shot-at__url-input:focus{
  border-color:#99958d;
  box-shadow:none;
}

.hk-shot-at__submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:120px;
  height:42px;
  padding:0 16px;
  border:1px solid #d2d0cb;
  border-radius:8px;
  background:#f7f7f5;
  color:#222;
  font-size:14px;
  font-weight:500;
  line-height:1;
  letter-spacing:-0.02em;
  text-decoration:none;
  cursor:pointer;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

.hk-shot-at__submit:hover,
.hk-shot-at__submit:focus,
.hk-shot-at__submit:active{
  border-color:#d2d0cb;
  background:#f7f7f5;
  color:#222;
  outline:none;
  box-shadow:none;
}

.hk-shot-at__submit:disabled{
  opacity:.52;
  cursor:default;
}

.hk-shot-at__honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.hk-shot-at__guide{
  margin:9px 0 0;
  color:#777;
  font-size:12px;
  font-weight:400;
  line-height:1.55;
  letter-spacing:-0.02em;
  word-break:keep-all;
}

.hk-shot-at__message{
  min-height:18px;
  margin:8px 0 0;
  color:#666;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
  letter-spacing:-0.02em;
}

.hk-shot-at__message[data-type="success"]{
  color:#2f6f3e;
}

.hk-shot-at__message[data-type="error"]{
  color:#9b2f2f;
}

@media(max-width:980px){
  .hk-shot-at__list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:640px){
  .hk-shot-at__preview-shell{
    --hk-shot-row-height: clamp(150px, 43vw, 220px);
    --hk-shot-gap: 10px;
  }

  .hk-shot-at__list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:var(--hk-shot-gap);
  }

  .hk-shot-at__toggle{
    gap:12px;
  }

  .hk-shot-at__toggle-text{
    font-size:10px;
  }

  .hk-shot-at__embed-card,
  .hk-shot-at__empty{
    border-radius:14px;
  }

  .hk-shot-at__delete{
    height:24px;
    padding:0 8px;
    font-size:10px;
  }

  .hk-shot-at__input-row{
    grid-template-columns:1fr;
    gap:8px;
  }

  .hk-shot-at__submit{
    width:100%;
  }

  .hk-shot-at__url-input{
    font-size:16px;
  }
}


/* v50-share-submit-thumbnail-fix-final
 * 중복 override 정리본.
 * - 웹 접힘: 바깥 Shot at 영역은 정확히 1줄 높이, 그 안에서 썸네일 목록 스크롤
 * - 펼침: 2.5줄 표시, 같은 목록 스크롤 유지
 * - 카드: 정사각형 유지
 * - Instagram: 카드 내부 스크롤 제거, 제공 iframe 프레임을 중앙 기준으로 확대 배치
 */
#hk-studio-policy.hk-shot-at{
  container-type:inline-size !important;
  --hk-shot-gap:12px;
  --hk-shot-row-size:calc((100cqw - (var(--hk-shot-gap) * 3)) / 4);
  --hk-shot-collapsed-height:var(--hk-shot-row-size);
  --hk-shot-expanded-height:calc((var(--hk-shot-row-size) * 2.5) + (var(--hk-shot-gap) * 2));
  --hk-shot-ig-cover-scale:1.42;
  --hk-shot-ig-cover-x:0px;
  --hk-shot-ig-cover-y: 134px;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__preview-shell{
  height:var(--hk-shot-collapsed-height) !important;
  min-height:0 !important;
  max-height:var(--hk-shot-collapsed-height) !important;
  overflow:hidden !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  padding:0 !important;
  margin:18px 0 0 !important;
  scrollbar-width:thin;
  transition:height .28s ease, max-height .28s ease;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__toggle-check:checked ~ .hk-shot-at__preview-shell{
  height:var(--hk-shot-expanded-height) !important;
  min-height:0 !important;
  max-height:var(--hk-shot-expanded-height) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:auto !important;
  overscroll-behavior-y:auto !important;
  touch-action:pan-y !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__list{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  grid-auto-rows:var(--hk-shot-row-size) !important;
  gap:var(--hk-shot-gap) !important;
  align-items:start !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card,
#hk-studio-policy.hk-shot-at .hk-shot-at__empty{
  position:relative !important;
  width:100% !important;
  height:var(--hk-shot-row-size) !important;
  min-height:var(--hk-shot-row-size) !important;
  max-height:var(--hk-shot-row-size) !important;
  aspect-ratio:1 / 1 !important;
  min-width:0 !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  border-radius:18px !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__empty{
  grid-column:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #d2d0cb !important;
  background:#f7f7f5 !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-link{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:inherit;
  background:#111;
  color:#fff;
  text-decoration:none;
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:scale(1.04);
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-link--vimeo.is-thumb-missing,
#hk-studio-policy.hk-shot-at .hk-shot-at__media-link--vimeo:not(:has(img)){
  background:linear-gradient(135deg,#111 0%,#222 54%,#00adef 100%);
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-play{
  position:absolute;
  left:50%;
  top:46%;
  width:54px;
  height:54px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:rgba(255,255,255,.86);
  box-shadow:0 2px 14px rgba(0,0,0,.18);
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-play::before{
  content:"";
  position:absolute;
  left:22px;
  top:16px;
  width:0;
  height:0;
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
  border-left:16px solid rgba(0,0,0,.72);
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-badge{
  position:absolute;
  left:10px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  background:rgba(0,0,0,.54);
  color:#fff;
  font-size:10px;
  font-weight:600;
  line-height:1;
  letter-spacing:.01em;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-link--youtube .hk-shot-at__media-badge{
  background:rgba(255,0,0,.78);
}

#hk-studio-policy.hk-shot-at .hk-shot-at__media-link--vimeo .hk-shot-at__media-badge{
  background:rgba(0,173,239,.82);
}

#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card--youtube,
#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card--vimeo{
  background:#111 !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card[data-provider="instagram"]{
  cursor:pointer !important;
  background:#111 !important;
  overflow:hidden !important;
  overflow-x:hidden !important;
  overflow-y:hidden !important;
  clip-path:inset(0 round 18px) !important;
  touch-action:manipulation !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__instagram-frame{
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  width:118% !important;
  min-width:0 !important;
  max-width:none !important;
  height:calc(var(--hk-shot-row-size) + 360px) !important;
  min-height:calc(var(--hk-shot-row-size) + 360px) !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
  pointer-events:none !important;
  transform:translate(calc(-50% + var(--hk-shot-ig-cover-x)), calc(-50% + var(--hk-shot-ig-cover-y))) scale(var(--hk-shot-ig-cover-scale)) !important;
  transform-origin:center center !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__instagram-click{
  position:absolute !important;
  inset:0 !important;
  z-index:20 !important;
  display:block !important;
  background:transparent !important;
  text-decoration:none !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  -webkit-tap-highlight-color:transparent !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__more-wrap{
  position:absolute !important;
  left:auto !important;
  right:8px !important;
  bottom:8px !important;
  z-index:40 !important;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__more-wrap[hidden]{
  display:block !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__more-wrap *,
#hk-studio-policy.hk-shot-at .hk-shot-at__more,
#hk-studio-policy.hk-shot-at .hk-shot-at__menu,
#hk-studio-policy.hk-shot-at .hk-shot-at__delete,
#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card--youtube .hk-shot-at__media-link,
#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card--youtube .hk-shot-at__media-link *,
#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card--vimeo .hk-shot-at__media-link,
#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card--vimeo .hk-shot-at__media-link *{
  pointer-events:auto !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__more{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:rgba(255,255,255,.88) !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1 !important;
  letter-spacing:-0.08em !important;
  box-shadow:none !important;
  text-shadow:0 1px 7px rgba(0,0,0,.5) !important;
  cursor:pointer !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__more:hover,
#hk-studio-policy.hk-shot-at .hk-shot-at__more:focus,
#hk-studio-policy.hk-shot-at .hk-shot-at__more:active{
  border:0 !important;
  background:transparent !important;
  color:rgba(255,255,255,.96) !important;
  outline:none !important;
  box-shadow:none !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__menu{
  position:absolute !important;
  left:auto !important;
  right:0 !important;
  bottom:32px !important;
  z-index:41 !important;
  min-width:58px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__delete{
  position:static !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:46px !important;
  height:24px !important;
  padding:0 9px !important;
  border:0 !important;
  border-radius:999px !important;
  background:rgba(0,0,0,.62) !important;
  color:rgba(255,255,255,.96) !important;
  font-size:10px !important;
  font-weight:500 !important;
  line-height:1 !important;
  letter-spacing:-0.02em !important;
  box-shadow:none !important;
  cursor:pointer !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__delete:hover,
#hk-studio-policy.hk-shot-at .hk-shot-at__delete:focus,
#hk-studio-policy.hk-shot-at .hk-shot-at__delete:active{
  background:rgba(0,0,0,.72) !important;
  color:#fff !important;
  outline:none !important;
  box-shadow:none !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__submit{
  width:120px !important;
  min-height:48px !important;
  height:48px !important;
  padding:0 16px !important;
  border:0 !important;
  border-radius:8px !important;
  background:#111 !important;
  color:#fff !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:400 !important;
  letter-spacing:-0.02em !important;
  cursor:pointer !important;
  box-shadow:none !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__submit:hover,
#hk-studio-policy.hk-shot-at .hk-shot-at__submit:focus,
#hk-studio-policy.hk-shot-at .hk-shot-at__submit:active{
  background:#2f2f2b !important;
  color:#fff !important;
  border:0 !important;
  outline:none !important;
  box-shadow:none !important;
  filter:none !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__url-input{
  height:48px !important;
  min-height:48px !important;
}

@media(min-width:641px) and (max-width:980px){
  #hk-studio-policy.hk-shot-at{
    --hk-shot-row-size:calc((100cqw - var(--hk-shot-gap)) / 2);
    --hk-shot-collapsed-height:var(--hk-shot-row-size);
    --hk-shot-expanded-height:calc((var(--hk-shot-row-size) * 2.5) + (var(--hk-shot-gap) * 2));
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:640px){
  #hk-studio-policy.hk-shot-at{
    --hk-shot-gap:10px;
    --hk-shot-row-size:calc((100cqw - var(--hk-shot-gap)) / 2);
    --hk-shot-collapsed-height:var(--hk-shot-row-size);
    --hk-shot-expanded-height:calc((var(--hk-shot-row-size) * 2.5) + (var(--hk-shot-gap) * 2));
    --hk-shot-ig-cover-scale:1.30;
    --hk-shot-ig-cover-y:102px;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__list{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:var(--hk-shot-gap) !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__embed-card,
  #hk-studio-policy.hk-shot-at .hk-shot-at__empty{
    border-radius:14px !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__embed-card[data-provider="instagram"]{
    clip-path:inset(0 round 14px) !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__instagram-frame{
    width:118% !important;
    height:calc(var(--hk-shot-row-size) + 300px) !important;
    min-height:calc(var(--hk-shot-row-size) + 300px) !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__more-wrap{
    left:auto !important;
    right:6px !important;
    bottom:6px !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__menu{
    left:auto !important;
    right:0 !important;
    bottom:30px !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__more{
    width:28px !important;
    height:28px !important;
    font-size:15px !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__delete{
    height:23px !important;
    min-width:44px !important;
    font-size:10px !important;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__media-play{
    width:44px;
    height:44px;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__media-play::before{
    left:18px;
    top:13px;
    border-top-width:9px;
    border-bottom-width:9px;
    border-left-width:14px;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__media-badge{
    left:8px;
    bottom:8px;
    height:20px;
    font-size:9px;
  }

  #hk-studio-policy.hk-shot-at .hk-shot-at__submit{
    width:100% !important;
    font-size:13px !important;
    font-weight:400 !important;
  }
}

@media(max-width:430px){
  #hk-studio-policy.hk-shot-at{
    --hk-shot-ig-cover-scale:1.24;
    --hk-shot-ig-cover-y:86px;
  }
}


/* v49-input-hitbox-fix
 * 공유하기 입력창 클릭/입력 복구.
 * Instagram 클릭 overlay / document capture보다 입력 폼이 확실히 위에서 이벤트를 받도록 고정.
 */
#hk-studio-policy.hk-shot-at .hk-shot-at__expand-area,
#hk-studio-policy.hk-shot-at .hk-shot-at__form,
#hk-studio-policy.hk-shot-at .hk-shot-at__input-row,
#hk-studio-policy.hk-shot-at .hk-shot-at__url-label{
  position:relative !important;
  z-index:2147483602 !important;
  pointer-events:auto !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__url-input,
#hk-studio-policy.hk-shot-at .hk-shot-at__submit,
#hk-studio-policy.hk-shot-at .hk-shot-at__guide,
#hk-studio-policy.hk-shot-at .hk-shot-at__message{
  position:relative !important;
  z-index:2147483603 !important;
  pointer-events:auto !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__url-input{
  user-select:text !important;
  -webkit-user-select:text !important;
  touch-action:manipulation !important;
}

#hk-studio-policy.hk-shot-at .hk-shot-at__embed-card[data-provider="instagram"] .hk-shot-at__instagram-click{
  position:absolute !important;
  inset:0 !important;
  z-index:20 !important;
}
