.certificate-modal{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#17262b;overflow:hidden}
.certificate-modal::backdrop{background:rgba(24,16,8,.88)}
.certificate-modal[open]{display:grid;place-items:center}
.certificate-modal__stage{position:relative;width:max-content;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}
.certificate-modal__stage img{display:block;width:auto;height:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);object-fit:contain;background:#fff;border-radius:5px}
.certificate-modal__title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.certificate-modal__close{position:absolute;z-index:2;top:12px;right:12px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d7dfde;border-radius:50%;background:#fff;color:#17262b;cursor:pointer;transition:background-color .15s ease}
.certificate-modal__close:hover{background:#f4f5f1}
.certificate-modal__close:focus-visible{outline:2px solid #a74419;outline-offset:2px}
.certificate-modal__close .icon{width:20px;height:20px}
@media(max-width:600px){.certificate-modal__stage{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.certificate-modal__stage img{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.certificate-modal__close{top:8px;right:8px}}
