.certificate-page-heading{padding-bottom:38px}
.certificate-page-heading h1{max-width:1000px}
.certificate-stream{width:min(1040px,calc(100% - var(--gutter)*2));margin:0 auto;padding:0 0 90px}
.certificate-sheet{margin:0;padding:0 0 56px}
.certificate-sheet+.certificate-sheet{padding-top:56px;border-top:1px solid var(--line)}
.certificate-scan{display:block;position:relative;width:100%;max-width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:center}
.certificate-scan img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border:1px solid #c3b48e44;box-sizing:border-box;box-shadow:0 18px 55px #0003}
.certificate-sheet.is-portrait .certificate-scan{max-width:700px;margin-inline:auto}
.certificate-sheet figcaption{max-width:900px;margin:19px auto 0;text-align:center;font-size:15px;line-height:1.9;color:var(--muted);text-wrap:pretty}
.certificate-scan:focus-visible{outline:2px solid var(--accent);outline-offset:7px}
.certificate-teasers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:42px}
.certificate-teasers figure{margin:0;min-width:0}
.certificate-teasers .certificate-scan{height:260px;display:flex;align-items:center;justify-content:center}
.certificate-teasers .certificate-scan img{width:auto;max-width:100%;height:auto;max-height:260px;object-fit:contain}
.certificate-teasers figcaption{font-size:12px;line-height:1.8;margin:16px 0 0;color:var(--muted)}
.certificate-gallery-link{margin-top:32px}
#viewer.certificate-viewer{width:min(1200px,96vw);max-width:96vw;max-height:94vh;padding:16px 24px 26px;background:#171a16;color:var(--text);border:1px solid var(--line);overflow:auto}
#viewer.certificate-viewer .viewer-close{position:sticky;top:0;right:auto;float:none;display:block;z-index:3;margin:0 0 14px auto;background:#171a16;border:1px solid var(--line);width:40px;height:40px;line-height:1;font-size:28px}
.certificate-enlargement{margin:0;clear:both;direction:ltr}
.certificate-enlargement button{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;overflow:auto;text-align:center}
.certificate-enlargement img{display:block;width:100%;height:auto;max-width:none;margin:auto;object-fit:contain}
.certificate-enlargement.is-portrait img{width:min(100%,720px)}
.certificate-enlargement.is-zoomed button{cursor:zoom-out}
.certificate-enlargement.is-zoomed img{width:var(--scan-width);max-width:none;margin:0}
.certificate-enlargement figcaption{margin:20px auto 0;font-size:14px;line-height:1.9;text-align:center;max-width:900px;color:var(--muted)}
@media(max-width:650px){
 .certificate-page-heading{padding-top:33px;padding-bottom:30px}
 .certificate-page-heading h1{font-size:34px!important;line-height:1.5!important}
 .certificate-stream{width:calc(100% - 28px);padding-bottom:46px}
 .certificate-sheet{padding-bottom:30px}
 .certificate-sheet+.certificate-sheet{padding-top:30px}
 .certificate-sheet figcaption{font-size:13px;line-height:1.95;margin:15px 8px 0}
 .certificate-teasers{grid-template-columns:1fr;gap:32px;margin-top:30px}
 .certificate-teasers .certificate-scan{height:auto}
 .certificate-teasers .certificate-scan img{width:100%;max-height:none}
 .certificate-teasers figcaption{font-size:13px;text-align:center}
 #viewer.certificate-viewer{padding:16px 10px 20px;width:96vw;max-height:94dvh}
 .certificate-enlargement figcaption{font-size:13px;margin-inline:5px}
}
