/* Compact certificate gallery, scoped to the About section. */
#certyfikaty .certificate-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#certyfikaty .certificate-details .certificate-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#certyfikaty .certificate-card{padding:14px;gap:10px;grid-template-rows:160px 1fr auto;box-shadow:none}
#certyfikaty .certificate-card img,#certyfikaty .certificate-card--landscape img{display:block;width:100%;height:160px;aspect-ratio:auto;object-fit:contain;padding:8px;background:#f5f8fa}
#certyfikaty .certificate-title{font-size:15px;line-height:1.4}
#certyfikaty .certificate-action{font-size:13px;line-height:1.4}
#certyfikaty .certificate-card:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
#certyfikaty .certificate-details summary{border:1px solid var(--line);border-radius:12px;padding:14px 18px;background:#fff}
.certificate-viewer{width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:20px;border:0;border-radius:18px;color:var(--navy);background:#fff;box-shadow:0 24px 80px #0005}
.certificate-viewer::backdrop{background:rgba(8,20,45,.78)}
body:has(.certificate-viewer[open]){overflow:hidden}
.certificate-viewer-header{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:14px}
.certificate-viewer-header h2{font-size:20px;line-height:1.35;margin:0}
.certificate-viewer button{flex-shrink:0;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#f5f8fa;color:var(--navy);font-size:20px;cursor:pointer}
.certificate-viewer-image-wrap{display:flex;justify-content:center;background:#f5f8fa;padding:10px;overflow:auto;border-radius:10px}
.certificate-viewer-image{display:block;max-width:100%;max-height:calc(100dvh - 230px);width:auto;height:auto;object-fit:contain}
.certificate-viewer-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.certificate-viewer-count{margin:0;font-size:14px}
.certificate-viewer-original{margin-left:auto;min-height:44px;display:inline-flex;align-items:center;font-size:14px;text-decoration:underline}
@media(max-width:1024px){#certyfikaty .certificate-details .certificate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#certyfikaty .certificate-grid,#certyfikaty .certificate-details .certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#certyfikaty .certificate-card{padding:10px;grid-template-rows:112px 1fr auto;gap:8px}#certyfikaty .certificate-card img,#certyfikaty .certificate-card--landscape img{height:112px;padding:5px}#certyfikaty .certificate-title{font-size:14px}#certyfikaty .certificate-action{font-size:12px}.certificate-viewer{width:calc(100vw - 20px);padding:12px;border-radius:12px;max-height:calc(100dvh - 20px)}.certificate-viewer-header h2{font-size:16px}.certificate-viewer-original{margin-left:0;flex-basis:100%}.certificate-viewer-image{max-height:calc(100dvh - 250px)}}
