/* Student page only. Keep existing glass cards, dimensions and hover motion. */
.student-sky .student-generation{min-width:0;max-width:100%}
.student-sky .student-generation .student-grid{display:flex;flex-wrap:nowrap;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}
.student-sky .student-generation .student-card{flex-shrink:0}
.student-sky .student-grid img{-webkit-user-drag:none}
@media(hover:hover) and (pointer:fine){.student-sky .student-generation .student-grid{cursor:grab;user-select:none}.student-sky .student-generation .student-grid.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto}}

/* Compact 3:4 portraits; retain the existing horizontal rail. */
.student-sky .student-card{height:auto!important;min-height:0!important;padding:18px!important;flex-basis:clamp(220px,23vw,310px)!important}.student-sky .student-card .portrait{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:3/4!important;margin:0!important;overflow:hidden;border-radius:8px}.student-sky .student-card .portrait img{width:100%!important;height:100%!important;object-fit:cover!important;display:block}.student-sky .student-card-copy{padding:18px 4px 8px!important}.student-sky .student-card h4{margin:8px 0!important;font-size:23px!important;line-height:1.35!important}

body.student-sky .student-generation .student-card .portrait{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:3/4!important}body.student-sky .student-generation .student-card .portrait img{height:100%!important;width:100%!important;object-fit:cover!important}
