@charset "utf-8";

#fbPopWrap { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 28px; border: 0; background: transparent; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
#fbPopWrap[open] { display: flex; }
#fbPopWrap::backdrop { background: rgba(15, 17, 25, .8); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#fbPopWrap *, #fbPopWrap *::before, #fbPopWrap *::after { box-sizing: border-box; }
.fb-pop { width: min(100%, var(--fb-pop-width)); margin: auto; color: #fff; animation: fbPopIn .3s ease-out; }
@keyframes fbPopIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fb-pop-head { position: relative; display: flex; justify-content: center; align-items: center; min-height: 40px; margin: 0 16px 36px; }
.fb-pop-head h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; font-weight: 800; letter-spacing: -.04em; }
.fb-pop-controls { position: absolute; right: 0; display: flex; gap: 4px; }
.fb-pop-controls button { display: flex; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; transition: background .2s; }
.fb-pop-controls button:hover { background: rgba(255,255,255,.16); }
.fb-pop-controls button:disabled { opacity: .35; cursor: default; }
.fb-pop-arrow { font-size: 34px; line-height: 1; }
.fb-pop-toggle { font-size: 19px; }
.fb-pop-viewport { width: 100%; overflow: hidden; touch-action: pan-y; }
.fb-pop-track { display: flex; align-items: center; will-change: transform; }
.fb-pop-slide { flex: 0 0 var(--fb-pop-basis); min-width: 0; max-width: var(--fb-pop-basis); padding: 0 16px; }
.fb-pop-poster { display: flex; align-items: center; justify-content: center; height: var(--fb-pop-image-height, min(74vh, max(120px, calc(100vh - 230px)))); line-height: 0; transition: filter .2s; }
a.fb-pop-poster:hover { filter: brightness(1.06); }
.fb-pop-poster img { display: block; width: auto !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; border-radius: 18px; }
.fb-pop-content { max-height: min(74vh, max(120px, calc(100vh - 230px))); padding: 20px; overflow: auto; border-radius: 18px; background: #fff; color: #222; overflow-wrap: anywhere; }
.fb-pop-content img { max-width: 100% !important; height: auto !important; }
.fb-pop-content iframe, .fb-pop-content video { max-width: 100%; }
.fb-pop-dots { display: none; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; margin: 12px 0 0; }
.fb-pop-dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 20px; background: transparent; cursor: pointer; }
.fb-pop-dot::before { content: ""; width: 6px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.45); transition: width .2s, background .2s; }
.fb-pop-dot[aria-current="true"]::before { width: 22px; background: #fff; }
.fb-pop-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; color: #fff; font-size: 16px; }
.fb-pop-foot label, .fb-pop-close { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 20px; border: 1px solid rgba(255,255,255,.8); border-radius: 40px; background: rgba(0,0,0,.12); color: #fff; font: inherit; cursor: pointer; transition: background .2s; }
.fb-pop-foot label:hover, .fb-pop-close:hover { background: rgba(255,255,255,.16); }
.fb-pop-foot input { width: 20px; height: 20px; margin: 0; accent-color: #7759bc; cursor: pointer; }
.fb-pop-close { min-width: 120px; gap: 24px; }
.fb-pop-close span { font-size: 28px; line-height: 1; font-weight: 300; }
#fbPopWrap button:focus-visible, #fbPopWrap a:focus-visible, .fb-pop-foot label:has(input:focus-visible) { outline: 2px solid rgba(255,255,255,.75); outline-offset: 3px; }
.fb-pop-content a:focus-visible { outline-color: #5136a0 !important; }
.fb-pop-poster:focus-visible { outline-offset: -3px !important; border-radius: 18px; }

@media (max-width: 1000px) {
    .fb-pop-head:has(.fb-pop-controls) { justify-content: space-between; }
    .fb-pop-controls { position: static; }
}
@media (max-width: 760px) {
    #fbPopWrap { padding: 16px 10px; }
    .fb-pop { width: min(100%, 460px); }
    .fb-pop-head { margin: 0 8px 24px; gap: 12px; }
    .fb-pop-head h2 { font-size: 25px; }
    .fb-pop-controls { gap: 0; }
    .fb-pop-controls button { width: 36px; height: 44px; }
    .fb-pop-slide { flex-basis: 100%; max-width: 100%; padding: 0 4px; }
    .fb-pop-poster img, .fb-pop-content { border-radius: 16px; }
    .fb-pop-foot { gap: 8px; margin-top: 22px; font-size: 12px; }
    .fb-pop-foot label, .fb-pop-close { padding: 9px 12px; min-height: 44px; gap: 7px; }
    .fb-pop-close { min-width: 80px; gap: 12px; }
    .fb-pop-foot input { width: 18px; height: 18px; }
    .fb-pop-dots { display: flex; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .fb-pop { animation: none; }
    #fbPopWrap * { transition: none !important; }
}
@media (max-width: 360px) {
    .fb-pop-head { gap: 8px; }
    .fb-pop-head h2 { font-size: 22px; white-space: nowrap; }
    .fb-pop-controls button { width: 32px; }
    .fb-pop-foot { font-size: 11px; }
}
