/* Student gallery: floating 3D windows, tilting grid, zoom lightbox (pairs with gallery-fx.js; founder 2026-10-09). */
.glx-head { position: relative; isolation: isolate; overflow: hidden; }
.glx-wins { position: absolute; inset: 0; z-index: -1; pointer-events: none; perspective: 1000px; }
.glx-win { position: absolute; width: 190px; aspect-ratio: 4 / 3; display: flex; flex-direction: column; border: 1px solid rgba(120, 170, 255, .35);
  background: linear-gradient(160deg, rgba(11, 34, 82, .9), rgba(4, 17, 46, .9)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 30px rgba(56, 182, 255, .15); }
.glx-w0 { left: 4%; top: 22%; transform: rotateY(28deg) rotateZ(-4deg); }
.glx-w1 { right: 5%; top: 14%; width: 210px; transform: rotateY(-30deg) rotateZ(3deg); }
.glx-w2 { right: 15%; bottom: 6%; width: 150px; transform: rotateY(-22deg) rotateX(10deg); opacity: .7; }
html.sfx-on .glx-win { animation: glx-float 7s ease-in-out infinite; }
html.sfx-on .glx-w1 { animation-delay: -2.4s; } html.sfx-on .glx-w2 { animation-delay: -4.6s; }
@keyframes glx-float { 50% { translate: 0 -12px; } }
.glx-bar { display: flex; gap: 5px; padding: 7px 8px; border-bottom: 1px solid rgba(120, 170, 255, .2); }
.glx-bar i { width: 7px; height: 7px; border-radius: 50% !important; background: #ec4899; }
.glx-bar i:nth-child(2) { background: #f5b82e; } .glx-bar i:nth-child(3) { background: #34d399; }
.glx-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.glx-body b { height: 10px; width: 60%; background: linear-gradient(90deg, #38b6ff, #8b5cf6); }
.glx-body em { height: 5px; width: 85%; background: rgba(166, 184, 219, .25); }
.glx-body em + em { width: 70%; }
.glx-tiles { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.glx-tiles i { aspect-ratio: 1; background: rgba(56, 182, 255, .18); border: 1px solid rgba(56, 182, 255, .25); }
html.sfx-on .glx-tiles i { animation: glx-blink 3s ease-in-out infinite; }
html.sfx-on .glx-tiles i:nth-child(2) { animation-delay: .5s; } html.sfx-on .glx-tiles i:nth-child(3) { animation-delay: 1s; }
@keyframes glx-blink { 50% { background: rgba(139, 92, 246, .45); } }
@media (max-width: 1000px) { .glx-wins { display: none; } }

/* Zoom button on each preview. */
.gal-card { position: relative; }
.glx-zoom { position: absolute; top: 10px; right: 10px; z-index: 5; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: zoom-in;
  color: #fff; border: 1px solid rgba(255, 255, 255, .3); background: rgba(2, 11, 31, .72); backdrop-filter: blur(4px); opacity: .85; transition: transform .25s, opacity .25s, background .25s; }
.glx-zoom .sfx-ic { width: 18px; height: 18px; }
.gal-card:hover .glx-zoom, .glx-zoom:focus-visible { opacity: 1; transform: translateZ(30px) scale(1.06); background: rgba(31, 123, 255, .85); }

/* The lightbox grows out of the card. */
.glx-lb { width: min(1100px, 94vw); height: min(780px, 88vh); max-width: none; max-height: none; padding: 0; border: 1px solid rgba(255, 255, 255, .16); background: #0b1330; color: #e8eeff; overflow: hidden; }
.glx-lb[open] { display: flex; flex-direction: column; }
.glx-lb::backdrop { background: rgba(3, 6, 18, .78); backdrop-filter: blur(3px); }
html.sfx-on .glx-lb[open] { animation: glx-zoom .45s cubic-bezier(.2, .9, .3, 1.1); transform-origin: var(--ox, 50%) var(--oy, 50%); }
@keyframes glx-zoom { from { opacity: 0; transform: perspective(1200px) scale(.4) rotateX(18deg); } to { opacity: 1; transform: none; } }
.glx-lb-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.glx-lb-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glx-x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; }
.glx-x .sfx-ic { width: 18px; height: 18px; }
.glx-lb-frame { flex: 1; background: #fff; }
.glx-lb-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) { .glx-win, .glx-tiles i { animation: none !important; } }
