.student-gallery{max-width:none;background:#F6F0E6;color:#182337;padding:72px max(24px,calc((100vw - 1160px)/2))}
.student-gallery-head{max-width:680px;margin:0 auto 38px;text-align:center}.student-gallery .section-label{color:#8C6B35;font-size:11px;letter-spacing:.15em}.student-gallery h2{font:400 clamp(34px,4vw,48px)/1.2 var(--display);letter-spacing:-.02em;color:#182337}.student-gallery-head>p:last-child{font-size:15px;line-height:1.9;color:#626B77;margin-top:20px}
.student-gallery-grid{columns:4;column-gap:18px}.student-photo{display:block;break-inside:avoid;width:100%;margin:0 0 18px;padding:0;background:#E8DFCF;border:1px solid #D8C7A7;border-radius:20px;overflow:hidden;cursor:zoom-in;position:relative;box-shadow:0 8px 20px #5D472010}.student-photo img{display:block;width:100%;height:auto;transition:filter .2s}.student-photo:hover{box-shadow:0 10px 28px #5D472025}.student-photo:focus-visible{outline:3px solid #A78243;outline-offset:5px}
.student-gallery-note{text-align:center;margin-top:18px;color:#6C737D;font-size:12px;line-height:1.8}
.student-lightbox{position:fixed;inset:0;margin:auto;padding:0;width:min(1120px,calc(100% - 32px));max-width:none;max-height:calc(100svh - 32px);border:1px solid #D5B87866;border-radius:24px;background:#0A1020;color:#F6F0E6;overflow:auto;z-index:1200;font-family:var(--sans);box-shadow:0 20px 100px #0009}.student-lightbox::backdrop{background:#050A14E8;backdrop-filter:blur(7px)}
.student-lightbox-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-bottom:1px solid #D5B87830}.student-lightbox-header p{font-size:13px;margin:0;color:#D0D6DF}.student-lightbox-close{width:44px;height:44px;flex-shrink:0;border-radius:50%;border:1px solid #D5B87855;background:#19273A;color:#EAD095;display:grid;place-items:center;font-size:27px;line-height:1;cursor:pointer}
.student-lightbox figure{margin:0;padding:20px}.student-lightbox img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100svh - 235px);margin:auto;object-fit:contain;border-radius:9px}.student-lightbox figcaption{text-align:center;color:#C8CFD9;font-size:13px;line-height:1.7;padding-top:14px}
.student-lightbox-nav{display:flex;justify-content:center;gap:12px;padding:0 20px 20px}.student-lightbox-nav button{font:500 13px/1.4 var(--sans);color:#EAD095;background:#17253A;border:1px solid #D5B87855;border-radius:30px;padding:12px 20px;min-height:44px;cursor:pointer}.student-lightbox button:focus-visible{outline:3px solid #EAD095;outline-offset:3px}
@media(max-width:1023px){.student-gallery-grid{columns:3}}
@media(max-width:767px){.student-gallery{padding:52px 20px}.student-gallery-head{margin-bottom:28px}.student-gallery h2{font-size:34px}.student-gallery-head>p:last-child{font-size:14px}.student-gallery-grid{columns:2;column-gap:12px}.student-photo{margin-bottom:12px;border-radius:14px}.student-lightbox{width:calc(100% - 20px);max-height:calc(100svh - 20px);border-radius:20px}.student-lightbox-header{padding:12px 14px}.student-lightbox-header p{font-size:12px}.student-lightbox figure{padding:14px}.student-lightbox img{max-height:calc(100svh - 230px)}.student-lightbox-nav{padding:0 14px 16px;gap:10px}.student-lightbox-nav button{flex:1;padding:12px;font-size:12px}.student-lightbox figcaption{font-size:12px}}
@media(prefers-reduced-motion:reduce){.student-photo img{transition:none}}

.student-photo img,.student-lightbox img{filter:var(--photo-filter,none)}.student-photo.trim-ceiling img{aspect-ratio:1;object-fit:cover;object-position:center bottom}
