html.ifc-gallery-open{overflow:hidden}
#gallery-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#081a2a;color:#fff;overflow:hidden;font-family:IFC,'Segoe UI',sans-serif}
#gallery-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;animation:ifc-gallery-enter .25s ease}
#gallery-dialog::backdrop{background:#04111ff5;backdrop-filter:blur(14px)}
.ifc-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:22px 34px;border-bottom:1px solid #ffffff12;background:#0c2134}
.ifc-gallery-heading{min-width:0}.ifc-gallery-brand{font-family:Georgia,serif;font-size:22px;line-height:1;color:#b2dfff}.ifc-gallery-brand>span{font-family:IFC,sans-serif;font-size:9px;letter-spacing:.2em}
.ifc-gallery-heading h2{font-family:IFC,sans-serif;font-weight:500;font-size:14px;letter-spacing:0;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 0 0;max-width:65vw;color:#f0f6fc}
.ifc-gallery-heading>p{font-size:10px;letter-spacing:.06em;color:#87a7c2;margin-top:3px}
.ifc-gallery-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
#gallery-dialog .gallery-counter{margin:0 20px 0 0;font-size:12px;color:#b2cfE5;letter-spacing:.13em;white-space:nowrap;font-variant-numeric:tabular-nums}
.ifc-gallery-tools button{display:grid;place-items:center;width:42px;height:42px;background:transparent;border:1px solid #ffffff26;border-radius:50%;color:#d9ebfb;cursor:pointer;transition:background .2s,border-color .2s}
.ifc-gallery-tools .icon{width:19px;height:19px}.ifc-gallery-tools button:hover,.ifc-gallery-tools button[aria-pressed=true]{background:#20547a;border-color:#70b6e7}.ifc-gallery-tools button:disabled{opacity:.35}
.ifc-gallery-stage{position:relative;min-height:0;min-width:0;background:radial-gradient(ellipse at center,#19394f55,transparent 70%);padding:25px 95px;display:grid}
.ifc-gallery-frame{overflow:auto;min-height:0;min-width:0;display:block;position:relative;scrollbar-width:thin;scrollbar-color:#35688d #0b2336}
#gallery-dialog .ifc-gallery-image{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;border-radius:4px;transition:opacity .2s;user-select:none}
#gallery-dialog .ifc-gallery-image[hidden]{display:none}
.ifc-gallery-frame[aria-busy=true] .ifc-gallery-image{opacity:.16}
#gallery-dialog .ifc-gallery-frame.is-zoomed .ifc-gallery-image{width:auto;min-width:100%;max-width:none;height:auto;min-height:100%;max-height:none;object-fit:initial;cursor:grab}
#gallery-dialog .gallery-prev,#gallery-dialog .gallery-next{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:66px;padding:0;background:#ffffff09;border:1px solid #ffffff20;border-radius:10px;color:#c8e7ff;font-family:Georgia,serif;font-size:40px;line-height:1;cursor:pointer;transition:background .2s}
#gallery-dialog .gallery-prev{left:24px}#gallery-dialog .gallery-next{right:24px}
#gallery-dialog .gallery-prev:hover,#gallery-dialog .gallery-next:hover{background:#2b6b98}
.ifc-gallery-loader,.ifc-gallery-error{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;pointer-events:none}
.ifc-gallery-loader>span{width:34px;height:34px;border:2px solid #ffffff20;border-top-color:#96d5ff;border-radius:50%;animation:ifc-gallery-spin .8s linear infinite}
.ifc-gallery-loader p,.ifc-gallery-error p{font-size:12px;letter-spacing:.03em;color:#b9d4e9}.ifc-gallery-error button{pointer-events:auto;border:1px solid #699ec5;border-radius:6px;background:#16476c;color:#fff;font-size:12px;padding:10px 20px;cursor:pointer}
.ifc-gallery-footer{padding:14px 28px 13px;border-top:1px solid #ffffff12;background:#0c2134;min-width:0}
.ifc-gallery-thumbs{display:flex;gap:10px;overflow-x:auto;max-width:100%;width:max-content;margin:auto;padding:3px 3px 7px;scrollbar-width:thin;scrollbar-color:#35688d transparent}
.ifc-gallery-thumb{flex:0 0 90px;width:90px;height:62px;border:2px solid transparent;border-radius:7px;background:#18334c;padding:2px;opacity:.5;cursor:pointer;transition:opacity .2s,border-color .2s}
#gallery-dialog .ifc-gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:3px}
.ifc-gallery-thumb[aria-pressed=true]{opacity:1;border-color:#93d2ff}.ifc-gallery-thumb:hover{opacity:1}
.ifc-gallery-hint{display:flex;justify-content:center;gap:23px;font-size:9px;letter-spacing:.04em;color:#7d9bb3;margin-top:6px}
#gallery-dialog button:focus-visible{outline:2px solid #a0dcff;outline-offset:3px}
@keyframes ifc-gallery-enter{from{opacity:0}to{opacity:1}}@keyframes ifc-gallery-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.ifc-gallery-header{padding:17px 16px;gap:12px}.ifc-gallery-heading h2{font-size:11px;max-width:50vw}.ifc-gallery-brand{font-size:20px}.ifc-gallery-brand>span{font-size:8px}.ifc-gallery-tools{gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:110px}.ifc-gallery-tools button{width:34px;height:34px}#gallery-dialog .gallery-counter{flex-basis:100%;text-align:right;margin:0;font-size:10px}.ifc-gallery-stage{padding:16px 10px}.ifc-gallery-frame{touch-action:pan-y}.ifc-gallery-frame.is-zoomed{touch-action:auto}#gallery-dialog .gallery-prev,#gallery-dialog .gallery-next{top:auto;bottom:17px;transform:none;width:38px;height:42px;font-size:31px;background:#0a203bbf}#gallery-dialog .gallery-prev{left:18px}#gallery-dialog .gallery-next{right:18px}.ifc-gallery-footer{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.ifc-gallery-thumbs{gap:7px}.ifc-gallery-thumb{width:68px;flex-basis:68px;height:48px}.ifc-gallery-hint{display:none}}
@media(prefers-reduced-motion:reduce){#gallery-dialog[open],.ifc-gallery-loader>span{animation:none}.ifc-gallery-loader>span{border-top-color:#96d5ff;border-right-color:#96d5ff}}
