/* =====================================================================
   Orchid University — Glimpses: home-page scrolling ticker + the
   dedicated /glimpses/ masonry page. Self-contained (uses brand tokens
   from styles.css). Loaded on index.html and /glimpses/.
   ===================================================================== */

/* ---------- home-page ticker section ---------- */
.glm-sec { padding: clamp(48px, 6vw, 80px) 0; }
.glm-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.glm-sec__head .eyebrow2 { color: var(--green); font-weight: 700; letter-spacing: .14em; font-size: 12.5px; text-transform: uppercase; }
.glm-sec__head h2 { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; margin: 8px 0 0; }
.glm-sec__head p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; max-width: 52ch; }
.glm-sec__all { flex: none; color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 22px; transition: border-color .15s ease, color .15s ease; white-space: nowrap; }
.glm-sec__all:hover { border-color: var(--green); color: var(--green); }

/* the marquee — full-bleed within the section */
.glm-ticker { position: relative; overflow: hidden; }
.glm-ticker::before, .glm-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3; pointer-events: none; }
.glm-ticker::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.glm-ticker::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.glm-track { display: flex; gap: 10px; width: max-content; animation: glm-scroll 90s linear infinite; }
.glm-ticker:hover .glm-track { animation-play-state: paused; }
@keyframes glm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .glm-track { animation: none; } .glm-ticker { overflow-x: auto; } }

/* fixed height, natural width — vertical & landscape photos both show fully */
.glm-item { position: relative; flex: 0 0 auto; height: 500px; border-radius: 18px; overflow: hidden; background: #e7ebf3; }
.glm-item img { height: 100%; width: auto; display: block; transition: transform .5s ease; }
.glm-item:hover img { transform: scale(1.04); }
.glm-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 16px 14px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35;
  background: linear-gradient(0deg, rgba(15,20,45,.82) 0%, rgba(15,20,45,0) 100%);
  transform: translateY(101%); transition: transform .3s ease;
}
.glm-item:hover figcaption { transform: translateY(0); }

/* ---------- dedicated /glimpses/ page ---------- */
.glm-page { max-width: 1240px; margin: 0 auto; padding: 26px 20px 90px; }
.glm-page__head { text-align: center; max-width: 720px; margin: 10px auto 34px; }
.glm-page__head .kicker { color: var(--green); font-weight: 700; letter-spacing: .14em; font-size: 12.5px; text-transform: uppercase; }
.glm-page__head h1 { font-family: 'aesthet-nova', serif; color: var(--navy); font-size: clamp(32px, 5vw, 52px); margin: 10px 0 8px; }
.glm-page__head p { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.glm-masonry { columns: 4 260px; column-gap: 16px; }
.glm-masonry .glm-tile { position: relative; break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: #e7ebf3; }
.glm-masonry .glm-tile img { width: 100%; display: block; }
.glm-masonry .glm-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 15px; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35;
  background: linear-gradient(0deg, rgba(15,20,45,.85) 0%, rgba(15,20,45,0) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.glm-masonry .glm-tile:hover figcaption { opacity: 1; }
.glm-empty { text-align: center; color: var(--muted); padding: 40px; }

@media (max-width: 1100px) { .glm-item { height: 400px; } }
@media (max-width: 700px) {
  .glm-item { height: 320px; }
  .glm-masonry { columns: 2 150px; }
}
