/* Instagram on the site (clc-ig.js): story circles (Home), polaroid fan (Student Life), tap-through stories (Young Adult Life) */
.ig-sec { background: #000; color: #fff; overflow: hidden; }
.ig-sec .h-xl, .ig-sec .eyebrow, .ig-sec .eyebrow span { color: #fff; }
.ig-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.4vw, 44px); }
.ig-head .h-xl { margin: 0; }
.ig-follow { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.ig-follow:hover { background: var(--red, #EB1515); color: #fff; }
.ig-follow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig-follow.is-small { min-height: 38px; padding: 0 14px; font-size: 11px; }
.ig-av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #fff; border: 1.5px solid #fff; }
.ig-av.is-dark { background: #000; } .ig-av img { width: 100%; height: 100%; object-fit: cover; } .ig-av.is-dark img { width: 72%; height: auto; object-fit: contain; }
.ig-bars { display: flex; gap: 4px; }
.ig-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.38); overflow: hidden; }
.ig-bars u { display: block; height: 100%; width: 0; background: #fff; }
.ig-bars i.f u { width: 100%; }
.ig-tap { position: absolute; top: 14%; bottom: 22%; z-index: 3; width: 32%; border: 0; background: none; cursor: pointer; }
.ig-prev { left: 0; } .ig-next { right: 0; }
html.ig-lock { overflow: hidden; }

/* ---- Home: story circles + viewer ---- */
.igb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(28px, 5vw, 80px); align-items: center; }
.igb-bubs { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.igb-bub { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.igb-ring { display: block; width: clamp(92px, 9vw, 124px); aspect-ratio: 1; padding: 4px; border-radius: 50%; background: conic-gradient(var(--red, #EB1515), #F58BB0, #8A5CF6, var(--red, #EB1515)); transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.igb-bub.seen .igb-ring { background: rgba(255,255,255,.28); }
.igb-bub[aria-selected="true"] .igb-ring { transform: scale(1.06); }
.igb-bub:hover .igb-ring { transform: scale(1.08); }
.igb-ring > span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 4px solid #000; }
.igb-ring img { width: 100%; height: 100%; object-fit: cover; }
.igb-bub b { margin-top: 8px; font-size: 14px; } .igb-bub small { font-size: 12.5px; opacity: .6; }
.igb-hint { margin: 26px 0 22px; max-width: 42ch; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.72); }
.igb-follows { display: flex; flex-wrap: wrap; gap: 8px; }
.igb-follows .ig-follow { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); min-height: 42px; font-size: 11.5px; }
.igb-follows .ig-follow:hover { background: #fff; color: #000; }
.igb-frame { position: relative; aspect-ratio: 9 / 16; max-height: 78svh; margin-left: auto; border-radius: 30px; overflow: hidden; background: #111; box-shadow: 0 40px 90px rgba(0,0,0,.6); }
.igb-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ig-in .5s ease both; }
@keyframes ig-in { from { opacity: 0; transform: scale(1.04); } }
.igb-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), transparent 22%, transparent 55%, rgba(0,0,0,.88)); pointer-events: none; }
.igb-top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 4; }
.igb-who { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; } .igb-who span { opacity: .65; font-size: 13px; }
.igb-x { display: none; position: absolute; right: 0; top: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 24px; cursor: pointer; }
.igb-bot { position: absolute; left: 20px; right: 20px; bottom: 22px; z-index: 4; }
.ig-date { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.ig-cap { margin: 6px 0 14px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; line-height: 1.1; }
.igb-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.igb-open { color: #fff; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) {
  .igb { grid-template-columns: minmax(0, 1fr); }
  .igb-bubs { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut); }
  .igb-bubs::-webkit-scrollbar { display: none; }
  .igb-bub { flex: none; } .igb-ring { width: 86px; }
  .igb-hint { font-size: 15px; }
  /* the viewer opens full screen, like Instagram */
  .igb-viewer { display: none; }
  .igb-viewer.is-open { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: #000; }
  .igb-viewer.is-open .igb-frame { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; margin: 0; }
  .igb-viewer.is-open .igb-top { top: max(14px, env(safe-area-inset-top)); }
  .igb-viewer.is-open .igb-x { display: block; }
  .igb-viewer.is-open .igb-bot { bottom: max(26px, env(safe-area-inset-bottom)); }
}

/* ---- Student Life: polaroid fan ---- */
.igp { position: relative; height: clamp(440px, 38vw, 520px); }
.igp-fan { position: absolute; left: 50%; top: 20px; width: 0; height: 0; }
.igp-pol { --w: clamp(210px, 19vw, 260px); position: absolute; left: calc(var(--w) / -2); top: 0; z-index: var(--z); width: var(--w); padding: 12px 12px 16px; background: #fff; color: #1A1A1A; text-decoration: none; box-shadow: 0 22px 44px rgba(0,0,0,.28); transform-origin: 50% 150%;
  transform: rotate(calc(var(--k) * 11deg)) translateY(calc(var(--k) * var(--k) * 8px)); transition: transform .6s cubic-bezier(.3,1.25,.5,1), box-shadow .3s; }
.igp-ph { display: block; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.igp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.igp-pol b { display: block; margin: 12px 2px 0; font-family: var(--disp, inherit); font-weight: 400; font-size: 20px; line-height: 1; text-transform: uppercase; }
.igp-date { display: block; margin: 6px 2px 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
/* hover the hand: the polaroids spread out flat, each with its own little tilt */
.igp:hover .igp-pol, .igp:focus-within .igp-pol { transform: translateX(calc(var(--k) * (var(--w) + 18px))) rotate(var(--tilt)); transform-origin: 50% 50%; }
.igp-pol:hover { z-index: 20; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.igp:hover .igp-pol:hover { transform: translateX(calc(var(--k) * (var(--w) + 18px))) translateY(-12px) rotate(0deg) scale(1.04); }
.igp-ctl, .igp-hint { display: none; }
@media (max-width: 1100px) { .igp:hover .igp-pol, .igp:focus-within .igp-pol { transform: translateX(calc(var(--k) * (var(--w) * .78))) rotate(var(--tilt)); } }
@media (max-width: 820px) {
  /* phones: one pile; swipe the top polaroid away (or use the arrows) to see the next */
  .igp { height: auto; display: grid; justify-items: center; }
  .igp-fan { position: relative; left: auto; top: auto; width: min(74vw, 300px); height: calc(min(74vw, 300px) + 92px); }
  .igp-pol { --w: min(74vw, 300px); left: 0; z-index: calc(20 - var(--d, 0)); touch-action: pan-y;
    transform: translate(calc(var(--d, 0) * 9px + var(--dx, 0px)), calc(var(--d, 0) * 10px)) rotate(calc(var(--tilt) * (var(--d, 0) * 1.2 + .4) + var(--dx, 0px) * .04deg)); transform-origin: 50% 80%; }
  .igp-pol.is-drag { transition: none; }
  .igp:hover .igp-pol, .igp:focus-within .igp-pol, .igp:hover .igp-pol:hover { transform: translate(calc(var(--d, 0) * 9px + var(--dx, 0px)), calc(var(--d, 0) * 10px)) rotate(calc(var(--tilt) * (var(--d, 0) * 1.2 + .4) + var(--dx, 0px) * .04deg)); transform-origin: 50% 80%; }
  .igp-ctl { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
  .igp-ctl button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid currentColor; background: none; color: inherit; font-size: 20px; cursor: pointer; }
  .igp-count { font-size: 13px; font-weight: 700; letter-spacing: .14em; } .igp-count b { font-size: 18px; }
  .igp-hint { display: block; margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .5; }
}

/* ---- Young Adult Life: tap-through stories ---- */
.igs { position: relative; overflow: hidden; padding: 20px 0 10px; }
.igs-row { display: flex; gap: 18px; align-items: center; width: max-content; transition: transform .7s cubic-bezier(.2,.9,.25,1); }
.igs-card { --cw: clamp(220px, 20vw, 280px); position: relative; flex: none; width: var(--cw); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #111; color: #fff; text-decoration: none; opacity: .45; transform: scale(.88); transition: opacity .5s, transform .6s cubic-bezier(.2,.9,.25,1), box-shadow .5s; }
.igs-card.on { opacity: 1; transform: scale(1.04); box-shadow: 0 34px 80px rgba(0,0,0,.6); }
.igs-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.igs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), transparent 22%, transparent 52%, rgba(0,0,0,.88)); }
.igs-top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; }
.igs-who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; } .igs-who > span:last-child { opacity: .65; font-size: 12px; }
.igs-bot { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; display: grid; gap: 8px; }
.igs-bot b { font-size: 20px; line-height: 1.1; }
.igs-open { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.igs-card.on .igs-open { opacity: .85; }
.igs .ig-tap { display: none; }
.igs-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.igs-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); background: none; color: #fff; font-size: 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.igs-arrow:hover { background: #fff; color: #000; }
@media (max-width: 820px) {
  .igs-card { --cw: 72vw; }
  .igs .ig-tap { display: block; top: 20px; bottom: 90px; width: 22%; }
}
@media (prefers-reduced-motion: reduce) { .igs-row, .igs-card, .igp-pol { transition: none; } .igb-slides img { animation: none; } }
