#projects #student-victories .ach-split{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#projects #student-victories .ach-photo-grid{display:contents}
#projects #student-victories button.ach-photo-frame{display:block;width:100%;padding:0;border:0;cursor:pointer;background:#e7effa}
#projects #student-victories .ach-photo{min-width:0;background:#fff;border-radius:13px;overflow:hidden}
#projects #student-victories .ach-photo figcaption{padding:12px}
#projects #student-victories .ach-photo h4{color:#02275e}
#projects #student-victories .ach-photo p{color:#627b9c}
#projects #student-victories .student-competition-all{margin-top:16px;font-size:11px;padding:11px 14px;min-height:44px}
#projects #student-victories .student-certificates{margin-top:26px;padding-top:24px;border-top:1px solid #ffffff30}
#projects #student-victories .student-certificates>h4{color:#ffd90c;font-size:23px;margin:0 0 16px}
#projects #student-victories .student-certificate-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}
#projects #student-victories .student-certificate-previews button{padding:9px;background:#fff;border:1px solid #d4e1ef;border-radius:11px;cursor:pointer;min-width:0}
#projects #student-victories .student-certificate-previews img{display:block;width:100%;height:155px;object-fit:contain}
#projects #student-victories .student-certificates>.button{font-size:12px;min-height:44px}
.student-media-gallery{width:min(1100px,calc(100vw - 24px));height:calc(100dvh - 24px);max-width:none;max-height:none;box-sizing:border-box;background:#06275a;color:white;padding:18px;border:1px solid #ffffff40;border-radius:16px;overflow:hidden}
.student-media-gallery[open]{display:flex;flex-direction:column;gap:12px}
.student-media-gallery::backdrop{background:#001128dd;backdrop-filter:blur(4px)}
.student-gallery-controls{display:flex;gap:9px;flex-shrink:0}
.student-gallery-controls button{border:1px solid #ffffff50;background:#164679;color:#fff;min-width:44px;min-height:44px;border-radius:8px;padding:7px 12px;cursor:pointer;font:inherit}
.student-gallery-controls [data-close]{margin-left:auto;font-size:25px}
.student-media-gallery .student-gallery-caption{color:#fff;font-size:13px;line-height:1.5;margin:0}
.student-gallery-stage{min-height:0;flex:1;overflow:auto;background:#dbe4ef;border-radius:8px}
.student-gallery-stage img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;object-position:top center}
.student-gallery-stage img.is-zoomed{height:auto}
@media(max-width:600px){#projects #student-victories .ach-split{grid-template-columns:minmax(0,1fr)}#projects #student-victories .ach-video-zone{width:100%;max-width:270px;justify-self:center}#projects #student-victories .ach-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#projects #student-victories .student-certificate-previews{gap:6px}#projects #student-victories .student-certificate-previews button{padding:5px}#projects #student-victories .student-certificate-previews img{height:110px}.student-media-gallery{padding:12px}.student-gallery-controls{gap:5px}.student-gallery-controls button{font-size:12px;padding:6px 10px}}
#projects #student-victories .student-competition-all{margin-top:14px;margin-left:calc((100% + 14px)/3);padding-top:14px;padding-bottom:14px}
.student-media-gallery.student-gallery-simple{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.student-gallery-simple .student-gallery-caption,.student-gallery-simple [data-zoom],.student-gallery-simple [data-close]{display:none}
.student-gallery-simple .student-gallery-stage{background:transparent;border-radius:0;overflow:hidden}
.student-gallery-simple .student-gallery-stage img{object-position:center}
.student-gallery-simple .student-gallery-controls{position:absolute;inset:0;pointer-events:none;align-items:center;justify-content:space-between;padding:0 10px;z-index:1}
.student-gallery-simple .student-gallery-controls button{pointer-events:auto;border-radius:50%;background:#06275acc;font-size:24px;width:48px;height:48px;padding:0}
@media(max-width:600px){#projects #student-victories .student-competition-all{margin-left:0}.student-gallery-simple .student-gallery-controls{padding:0 4px}}
.student-gallery-simple .student-gallery-stage{position:relative;align-self:center;max-width:100%;width:auto;height:100%}
.student-gallery-simple .student-gallery-stage img{width:auto!important;max-width:100%;height:100%;object-fit:contain}
.student-gallery-photos .student-gallery-stage .student-gallery-caption{display:block;position:absolute;bottom:12px;left:12px;right:12px;padding:14px 16px;border:1px solid #ffffff55;border-radius:12px;background:#06275acc;color:#fff;font-size:14px;line-height:1.5;max-height:35%;overflow:auto;box-sizing:border-box}
@media(max-width:600px){.student-gallery-photos .student-gallery-stage .student-gallery-caption{font-size:12px;padding:10px;left:6px;right:6px;bottom:6px}}
@media(max-width:700px){#projects #student-victories .ach-photo figcaption p{display:none}}
@media(max-width:700px){
#projects .ach-results-row #student-victories .ach-split{grid-template-columns:minmax(0,1fr)}
#projects .ach-results-row #student-victories .ach-video-zone{width:100%;max-width:none;grid-column:1/-1}
#projects .ach-results-row #student-victories .ach-video-zone>.ach-short{width:100%;max-width:none}
#projects .ach-results-row #student-victories .ach-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1/-1}
#projects .ach-results-row #student-victories .ach-photo{width:100%;max-width:none}
}
#student-victories .competition-details{margin-top:8px}#student-victories .competition-details summary{cursor:pointer;color:#004b96;font-size:12px;font-weight:700}@media(max-width:700px){#student-victories .competition-details{display:none}}

.teacher-certificate-gallery .student-gallery-stage{flex:none;margin:auto;width:min(100%,calc((100dvh - 24px) * 1040 / 735));height:auto;aspect-ratio:1040 / 735}
