.academy-image-popup{position:fixed;inset:0;width:min(520px,calc(100vw - 40px));max-width:520px;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #ffffff25;border-radius:16px;background:#101318;box-shadow:0 24px 80px #0009;overflow:auto}
.academy-image-popup::backdrop{background:#000b;backdrop-filter:blur(5px)}
.academy-image-popup img{display:block;width:100%;max-height:calc(100dvh - 50px);object-fit:contain;height:auto}
.academy-image-popup a{display:block}
.academy-image-popup-close{position:absolute;right:10px;top:10px;z-index:1;display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff50;border-radius:50%;background:#080a0ed9;color:#fff;cursor:pointer}
.academy-image-popup-close:hover{background:#0c9c67}
.academy-image-popup :focus-visible{outline:3px solid #5ff3bc;outline-offset:-3px}
@media(max-width:600px){.academy-image-popup{width:calc(100vw - 28px);border-radius:12px}}
