/* 메인 공지 팝업(85) — 시안 Popup(-M). 팝업이 있을 때만 읽음. 화면 위에 고정이라 본문 배치 변화 없음 */
.f2-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 17, 17, .55); overscroll-behavior: contain; }
.f2-pop[hidden] { display: none; }
.f2-pop__box { --f2-pop-w: min(480px, calc(100vw - 32px), calc(100vh - 180px)); --f2-pop-imgmax: var(--f2-pop-w); position: relative; display: flex; flex-direction: column; width: var(--f2-pop-w); overflow: hidden; border-radius: var(--f2-r-4); background: var(--f2-white); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); outline: none; }
.f2-pop__media { position: relative; }
.f2-pop__slide { display: block; aspect-ratio: 1 / 1; overflow-y: auto; background: var(--f2-sub-bg); color: var(--f2-black); font-size: var(--f2-fs-14); }
/* 원본 내용: 에디터 문단 · 크기 지정이 있어도 칸 폭에 맞춤. 11/18: 세로로 긴 이미지는 칸 높이(--f2-pop-imgmax)에 맞게 줄여 전체 보임(스크롤 없음, 양옆 여백) */
.f2-pop__slide > :first-child { margin-top: 0; }
.f2-pop__slide p { margin: 0; }
.f2-pop__slide img { display: block; width: 100% !important; max-width: 100%; height: auto !important; max-height: var(--f2-pop-imgmax); object-fit: contain; }
.f2-pop__pos { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--f2-r-4); background: rgba(17, 17, 17, .75); color: var(--f2-white); font-size: var(--f2-fs-12); font-weight: 700; pointer-events: none; }
.f2-pop__ctrl { display: flex; justify-content: center; padding: 8px 0 0; }
/* 화살표(11/18 B안, main.css 슬라이드 화살표 공통과 같은 모양): 상자 없음 · 얇은 꺾쇠 2.5 · 검정 .8 + 흰 테두리 빛, PC 48 · 아이콘 38 · 사진 끝 8px 안쪽 */
.f2-pop__arrow { position: absolute; top: calc(var(--f2-pop-w) / 2 - 24px); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--f2-r-4); background: none; color: #000; cursor: pointer; }
.f2-pop__arrow svg { width: 38px; height: 38px; overflow: visible; opacity: .8; transition: opacity .15s; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px rgba(255,255,255,.9)); }
.f2-pop__arrow svg path { stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.f2-pop__arrow:focus-visible { outline: 2px solid var(--f2-black); outline-offset: -2px; box-shadow: inset 0 0 0 4px var(--f2-white); }
.f2-pop__arrow--prev { left: 8px; }
.f2-pop__arrow--next { right: 8px; }
.f2-pop__dots { display: flex; align-items: center; gap: 0; }
button.f2-pop__dot { display: flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; border: 0; background: none; cursor: pointer; }
button.f2-pop__dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--f2-gray-9a); }
button.f2-pop__dot[aria-current="true"]::before { width: 24px; background: var(--f2-black); }
.f2-pop__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid var(--f2-line); }
.f2-pop__today, .f2-pop__close { height: 56px; padding: 0 8px; border: 0; background: var(--f2-white); font-size: var(--f2-fs-14); cursor: pointer; }
.f2-pop__today { border-right: 1px solid var(--f2-line); color: var(--f2-text-sub); }
.f2-pop__close { color: var(--f2-black); font-weight: 700; }
.f2-pop__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) {
  .f2-pop__today:hover, .f2-pop__close:hover { background: var(--f2-sub-bg); }
  .f2-pop__arrow:hover svg { opacity: 1; }
}

/* 모바일: 아래에서 올라오는 창(11/18 쇼핑몰 앱 아래 시트형) — 시트 최대 55vh(안전 영역 포함) · 위 모서리 20px(사이트 4px 규칙 예외)
   버튼("오늘 하루 보지 않기" · X)은 시트 바깥 바로 위 어두운 바탕에 흰색 — 바탕 .7 = 흰 화면 위에서도 흰 글자 대비 7:1 이상
   이미지 = 시트 폭 꽉 채움, 높이가 넘으면 줄여서 전체(가운데 · 양옆 흰 여백), 스크롤 없음 */
.f2-pop--m { flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 0; background: rgba(17, 17, 17, .7); }
.f2-pop--m .f2-pop__box {
  --f2-pop-w: 100%; --f2-pop-max: 55vh; --f2-pop-ctrl: 0px;
  --f2-pop-imgmax: calc(var(--f2-pop-max) - var(--f2-pop-ctrl) - env(safe-area-inset-bottom, 0px));
  width: 100%; overflow: visible; border-radius: 0; background: none; box-shadow: none; transform: translateY(100%); transition: transform .25s;
}
@supports (height: 1dvh) { .f2-pop--m .f2-pop__box { --f2-pop-max: 55dvh; } }
.f2-pop--m .f2-pop__box.is-multi { --f2-pop-ctrl: 60px; }   /* 넘김 줄(화살표 44 + 위아래 8) */
.f2-pop--m.is-open .f2-pop__box { transform: none; }
.f2-pop__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px; }
.f2-pop--m .f2-pop__today, .f2-pop--m .f2-pop__close { min-width: 44px; height: 44px; border: 0; border-radius: var(--f2-r-4); background: none; color: var(--f2-white); }
.f2-pop--m .f2-pop__today { padding: 0 12px; font-weight: 500; }
.f2-pop--m .f2-pop__close { display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; }
.f2-pop--m .f2-pop__bar button:focus-visible { outline: 2px solid var(--f2-white); outline-offset: -2px; }   /* 어두운 바탕에서 보이는 초점 */
.f2-pop__sheet { display: flex; flex-direction: column; box-sizing: border-box; max-height: var(--f2-pop-max); overflow: hidden; border-radius: 20px 20px 0 0; background: var(--f2-white); padding-bottom: env(safe-area-inset-bottom, 0px); }
.f2-pop--m .f2-pop__slide { aspect-ratio: auto; max-height: var(--f2-pop-imgmax); background: var(--f2-white); }
.f2-pop--m .f2-pop__pos { left: 16px; top: 16px; height: 26px; padding: 0 10px; }
.f2-pop--m .f2-pop__ctrl { flex: none; box-sizing: border-box; height: var(--f2-pop-ctrl); align-items: center; justify-content: space-between; padding: 8px 16px; }
.f2-pop--m .f2-pop__arrow { position: static; flex: none; width: 44px; height: 44px; }   /* 모바일: 사진 아래 조작 줄 안(사진 밖) */
.f2-pop--m .f2-pop__arrow svg { width: 30px; height: 30px; }
.f2-pop--m .f2-pop__dots { gap: 8px; }
.f2-pop--m span.f2-pop__dot { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--f2-gray-9a); }
.f2-pop--m span.f2-pop__dot.is-on { width: 20px; background: var(--f2-black); }
@media (hover: hover) {
  .f2-pop--m .f2-pop__today:hover, .f2-pop--m .f2-pop__close:hover { background: rgba(255, 255, 255, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .f2-pop--m .f2-pop__box { transition: none; }
}
