/* MAAC Student Work - pure black theme */
.maac-sw, .maac-modal, .maac-lb {
  --maac-bg: #000000;
  --maac-bg2: #050505;
  --maac-card: #0a0a0a;
  --maac-line: #1c1c1c;
  --maac-text: #f2f2f2;
  --maac-mut: #a3a3ab;
  --maac-a: #e11d2e;
  --maac-at: #ff7a84;
}
:root { --maac-a: #e11d2e; --maac-at: #ff7a84; }

.maac-sw, .maac-sw *, .maac-modal, .maac-modal *, .maac-lb, .maac-lb * { box-sizing: border-box; }
.maac-sw {
  background: transparent;
  color: var(--maac-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
}
/* Full-width: the exact offset is set by JS (frontend.js) so it works inside any theme container. */
.maac-sw.maac-bleed {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
}
.maac-sw h1, .maac-sw h2, .maac-sw h3, .maac-modal h2 { font-family: 'Sora', 'Inter', sans-serif; color: var(--maac-text); margin: 0; letter-spacing: 0; }
.maac-sw p { margin: 0; }
.maac-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.maac-lock { overflow: hidden; }

.maac-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--maac-at); }
.maac-h1 { font-weight: 800; font-size: 56px; line-height: 1.08; max-width: 860px; }
.maac-h2 { font-weight: 700; font-size: 36px; line-height: 1.15; }
.maac-h2-sm { font-size: 30px; line-height: 1.2; }
.maac-lead { font-size: 19px; line-height: 1.6; color: var(--maac-mut); max-width: 680px; }
.maac-copy { font-size: 16px; line-height: 1.65; color: var(--maac-mut); }

/* Buttons */
.maac-sw .maac-btn, .maac-modal .maac-btn, .maac-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent; line-height: 1.2;
  transition: opacity .15s, background .15s;
}
.maac-btn:hover { opacity: .88; }
.maac-btn:focus-visible, .maac-chip:focus-visible, .maac-thumb:focus-visible, .maac-reel-box:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.maac-sw .maac-btn-primary, .maac-modal .maac-btn-primary, .maac-btn-primary { background: var(--maac-a); color: #ffffff; border-color: var(--maac-a); }
.maac-sw .maac-btn-ghost, .maac-modal .maac-btn-ghost, .maac-btn-ghost { background: transparent; color: #ffffff; border-color: #3a3a3f; }
.maac-sw .maac-btn-white { background: #ffffff; color: #000000; border-color: #ffffff; }
.maac-sw .maac-btn-outline-white { background: transparent; color: #ffffff; border-color: #ffffff; }
.maac-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.maac-hero {
  padding: 72px 0 48px;
  background: radial-gradient(ellipse at 80% 0%, #1a0508 0%, #000000 62%);
}
.maac-hero .maac-wrap { display: flex; flex-direction: column; gap: 20px; }
.maac-hero .maac-actions { margin-top: 8px; }

/* Showreel */
.maac-reel { padding: 24px 0 72px; }
.maac-reel-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.maac-reel-box {
  flex: 999 1 560px; min-width: 0; aspect-ratio: 16 / 9; border-radius: 20px; padding: 0;
  background: linear-gradient(135deg, #1a0508 0%, #0a0a0a 60%, #000 100%);
  border: 1px solid var(--maac-line); position: relative; overflow: hidden; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.maac-reel-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.maac-reel-text { flex: 1 1 280px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.maac-link { color: var(--maac-at); font-weight: 600; font-size: 15px; text-decoration: none; }
.maac-link:hover { color: #ffffff; }

.maac-play {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 1.5px solid rgba(255, 255, 255, .6); color: #fff;
}
.maac-play svg { margin-left: 2px; }
.maac-play-lg { width: 88px; height: 88px; background: var(--maac-a); border: 0; }

/* Gallery */
.maac-gallery { background: var(--maac-bg2); border-top: 1px solid var(--maac-line); border-bottom: 1px solid var(--maac-line); padding: 72px 0; }
.maac-gallery .maac-wrap { display: flex; flex-direction: column; gap: 14px; }
.maac-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.maac-sw .maac-chip {
  cursor: pointer; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid #2a2a2e; background: transparent; color: #d6d6dc;
}
.maac-sw .maac-chip:hover { border-color: #55555c; }
.maac-sw .maac-chip.is-active { background: var(--maac-a); border-color: var(--maac-a); color: #fff; font-weight: 600; }

.maac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.maac-card { background: var(--maac-card); border: 1px solid var(--maac-line); border-radius: 16px; overflow: hidden; }
.maac-card[hidden] { display: none; }
.maac-sw .maac-thumb {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%;
  aspect-ratio: 4 / 3; padding: 0; border: 0; margin: 0; cursor: pointer; color: #fff; overflow: hidden;
  border-radius: 0; box-shadow: none; text-transform: none; min-height: 0;
  background: linear-gradient(135deg, #1a0508, #0a0a0a);
}
/* Image display modes (Settings > Look > Image display) */
.maac-fit-contain .maac-thumb { background: #000; }
.maac-fit-contain .maac-thumb img { object-fit: contain; }
.maac-fit-natural .maac-thumb { aspect-ratio: auto; display: block; background: #000; }
.maac-fit-natural .maac-thumb img { position: static; display: block; width: 100%; height: auto; object-fit: initial; }
.maac-fit-natural .maac-thumb .maac-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.maac-fit-natural .maac-grid { align-items: start; }
.maac-sw div.maac-thumb { cursor: default; }
.maac-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.maac-sw button.maac-thumb:hover img { transform: scale(1.04); }
.maac-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(0, 0, 0, .78); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
}
.maac-meta { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.maac-sw .maac-meta h3 { font-weight: 600; font-size: 18px; line-height: 1.3; color: #f2f2f2; text-transform: none; margin: 0; }
.maac-sw .maac-meta p { font-size: 14px; color: var(--maac-mut); text-transform: none; margin: 0; }
.maac-sw .maac-meta h3:empty { display: none; }
.maac-empty { color: var(--maac-mut); padding: 20px 0; }
.maac-sw .maac-meta .maac-student { font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #e6e6ea; }
.maac-sw .maac-meta .maac-course { color: var(--maac-mut); }

/* Home page block [maac_student_work_home] */
.maac-home { padding: 56px 0; background: var(--maac-bg); }
.maac-home.maac-transparent { background: transparent; color: inherit; }
.maac-home .maac-wrap { display: flex; flex-direction: column; gap: 14px; }
.maac-home .maac-grid { margin-top: 12px; }
.maac-sw .maac-more { display: flex; justify-content: center; margin: 48px 0 8px; }

/* Awards */
.maac-awards { padding: 80px 0; background: var(--maac-bg); }
.maac-awards .maac-wrap { display: flex; flex-direction: column; gap: 14px; }
.maac-award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 22px; }
.maac-award { border: 1px solid var(--maac-line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 8px; background: var(--maac-card); }
.maac-award-year { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; color: var(--maac-at); }
.maac-award strong { font-weight: 600; font-size: 17px; color: var(--maac-text); }
.maac-award span:last-child:not(.maac-award-year) { font-size: 14px; color: var(--maac-mut); line-height: 1.55; }

/* CTA */
.maac-cta-sec { padding: 0 0 72px; background: var(--maac-bg); }
.maac-cta {
  border-radius: 24px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 28px;
  background: linear-gradient(120deg, var(--maac-a) 0%, #4a0710 100%);
}
.maac-cta-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.maac-sw .maac-cta h2 { font-weight: 800; font-size: 34px; line-height: 1.15; color: #fff; }
.maac-cta p { font-size: 17px; line-height: 1.6; color: #ffe4e7; }

/* Lightbox */
.maac-lb { position: fixed; inset: 0; z-index: 999999; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 56px 16px 24px; overflow-y: auto; }
.maac-lb-cap { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: #f2f2f2; font-family: 'Inter', system-ui, sans-serif; }
.maac-lb-cap:empty { display: none; }
.maac-lb-cap strong { font-family: 'Sora', 'Inter', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ffffff; }
.maac-lb-cap span { font-size: 15px; color: #a3a3ab; }
.maac-lb[hidden], .maac-modal[hidden] { display: none; }
.maac-lb-stage { width: 100%; max-width: 1100px; display: flex; align-items: center; justify-content: center; }
.maac-lb-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; max-height: 80vh; }
.maac-lb-img { max-width: 100%; max-height: 72vh; border-radius: 12px; }
.maac-lb-close, .maac-modal-close {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #333; background: #0a0a0a; color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.maac-lb-close:hover, .maac-modal-close:hover { background: #1a1a1a; }

/* Popup */
.maac-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(0, 0, 0, .86); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.maac-modal-box {
  position: relative; width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto;
  background: #0a0a0a; color: #f2f2f2; border: 1px solid #222; border-radius: 20px; padding: 36px 32px 32px;
  font-family: 'Inter', system-ui, sans-serif;
}
.maac-modal-box h2 { font-weight: 700; font-size: 26px; line-height: 1.2; padding-right: 36px; }
.maac-modal-sub { color: #a3a3ab; margin: 8px 0 22px; font-size: 15px; }
.maac-form { display: flex; flex-direction: column; gap: 16px; }
.maac-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.maac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.maac-field label { font-size: 13px; font-weight: 600; color: #d6d6dc; }
.maac-modal input[type="text"], .maac-modal input[type="tel"], .maac-modal input[type="email"], .maac-modal select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #2a2a2e;
  background: #000; color: #f2f2f2; font-size: 16px; font-family: inherit; box-shadow: none;
}
.maac-modal input:focus, .maac-modal select:focus { outline: none; border-color: var(--maac-a); }
.maac-modal .maac-invalid { border-color: #ff6b75; }
.maac-modal select option { background: #0a0a0a; color: #f2f2f2; }
.maac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.maac-msg { min-height: 20px; font-size: 14px; margin: 0; }
.maac-msg.err { color: #ff8a93; }
.maac-modal .maac-submit { width: 100%; }
.maac-modal .maac-submit:disabled { opacity: .6; cursor: wait; }
.maac-done { text-align: center; padding: 20px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.maac-done[hidden], .maac-modal-form[hidden] { display: none; }
.maac-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--maac-a); color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; }
.maac-done p { color: #a3a3ab; max-width: 360px; margin: 0; }

@media (max-width: 720px) {
  .maac-h1 { font-size: 38px; }
  .maac-h2 { font-size: 28px; }
  .maac-hero { padding: 48px 0 32px; }
  .maac-gallery, .maac-awards { padding: 48px 0; }
  .maac-cta { padding: 36px 24px; }
  .maac-row2 { grid-template-columns: 1fr; }
  .maac-modal-box { padding: 28px 20px 24px; }
  .maac-play-lg { width: 68px; height: 68px; }
}

/* ---------- Background modes ---------- */
.maac-sw.maac-bg-black { background: #000000; }

/* Transparent (default): your website's own background shows through */
.maac-bg-transparent .maac-hero,
.maac-bg-transparent .maac-gallery,
.maac-bg-transparent .maac-awards,
.maac-bg-transparent .maac-cta-sec,
.maac-bg-transparent.maac-home { background: transparent; }
.maac-bg-transparent .maac-gallery { border-top: 0; border-bottom: 0; }
.maac-bg-transparent .maac-card,
.maac-bg-transparent .maac-award {
  background: rgba(0, 0, 0, .62);
  border-color: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.maac-bg-transparent .maac-chip { background: rgba(0, 0, 0, .45); }
.maac-bg-transparent .maac-lead,
.maac-bg-transparent .maac-copy { color: #d0d0d6; }
.maac-bg-transparent .maac-h1,
.maac-bg-transparent .maac-h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }

/* ---------- Pagination ---------- */
.maac-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.maac-pager:empty { display: none; }
.maac-sw .maac-pg {
  min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #2f2f35; background: rgba(0, 0, 0, .55); color: #e6e6ea;
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 500; line-height: 1;
}
.maac-sw .maac-pg:hover:not(:disabled) { border-color: #66666e; }
.maac-sw .maac-pg.is-active { background: var(--maac-a); border-color: var(--maac-a); color: #fff; font-weight: 600; }
.maac-sw .maac-pg:disabled { opacity: .35; cursor: default; }
.maac-pg-gap { color: #a3a3ab; padding: 0 4px; }

.maac-sw .maac-chip, .maac-sw .maac-tag { text-transform: none; }

/* Keep the block's own height: nothing below may slide over the cards */
.maac-sw { display: flow-root; }
.maac-thumb img.maac-nodim { aspect-ratio: 4 / 3; object-fit: contain; }
