/* Site chrome shared by the gallery family of pages (session pages): fonts, base,
 * header, gallery-style hero, session cards, footer, back-to-top, skip link.
 * Extracted verbatim from src/pages/gallery.astro + contact.astro so a session
 * page looks exactly like /gallery. Font URLs made absolute (pages live under /gallery/). */
    @font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/rubik-400.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/rubik-500.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/rubik-700.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: normal; font-weight: 900; font-display: swap; src: url('/assets/fonts/rubik-900.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/rubik-400i.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/rubik-500i.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/rubik-700i.woff2') format('woff2'); }
    @font-face { font-family: 'Rubik'; font-style: italic; font-weight: 900; font-display: swap; src: url('/assets/fonts/rubik-900i.woff2') format('woff2'); }
    @font-face { font-family: 'Karla'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/karla-400.woff2') format('woff2'); }
    @font-face { font-family: 'Karla'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/karla-700.woff2') format('woff2'); }
    @font-face { font-family: 'Karla'; font-style: italic; font-weight: 400; font-display: swap; src: url('/assets/fonts/karla-400i.woff2') format('woff2'); }
    @font-face { font-family: 'Karla'; font-style: italic; font-weight: 700; font-display: swap; src: url('/assets/fonts/karla-700i.woff2') format('woff2'); }
@font-face { font-family: 'Clickerscript'; src: url('/assets/fonts/ClickerScript-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    img { max-width: 100%; height: auto; display: block; }
    body {
      font-family: 'Karla', sans-serif; background: #1a1a2e; color: #fff;
      min-height: 100vh;
    }
    a { color: inherit; text-decoration: none; }

    /* Accessibility */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    /* ===== NAVBAR (same as homepage) ===== */
    .navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      padding: 8px 0; transition: all 0.3s;
    }
    .navbar.scrolled { background: rgba(26,26,46,0.95); }
    .navbar .container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
    .nav-logo { display: flex; align-items: center; margin-right: auto; }
    .nav-logo-img {
      width: auto; height: 90px; position: relative; z-index: 101;
    }
    .nav-toggle { display: none; background: none; border: none; color: #fff; font-family: 'Rubik', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
    .nav-links { display: flex; gap: 32px; margin-left: auto; }
    .nav-links a {
      font-family: 'Karla', sans-serif; font-size: 13px; letter-spacing: 2px;
      text-transform: uppercase; opacity: 0.7; transition: opacity 0.2s; text-decoration: none; color: #fff;
    }
    .nav-links a::after {
      content: ''; display: block; width: 0; height: 1px; background: #fff; transition: width 0.3s; margin-top: 2px;
    }
    .nav-links a:hover::after { width: 100%; }
    .nav-links a:hover { opacity: 1; }
    @media (max-width: 767px) {
      .navbar { padding: 2px 0; }
      .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(26,26,46,0.98); flex-direction: column;
        padding: 16px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
      }
      .nav-links.open { display: flex; }
      .nav-toggle { display: block; }
      .nav-logo-img { height: 80px; width: auto; }
      .gallery-hero { padding: 90px 24px 40px; }
    }
    
    /* Landscape phones - utilize header space efficiently */
    @media (max-height: 500px) and (orientation: landscape) {
      .navbar { padding: 2px 0; }
      .nav-logo-img { height: 65px !important; }
      .gallery-hero { padding: 70px 24px 30px; }
    }

    /* ===== FILTER TABS ===== */
    .gallery-hero {
      padding: 95px 24px 40px; text-align: center; background: #1a1a2e;
    }
    .gallery-hero .section-script {
      font-family: 'Clickerscript', cursive; font-size: 42px; color: #ff9ee0;
      margin-bottom: 4px;
    }
    .gallery-hero .section-heading {
      font-family: 'Rubik', sans-serif; font-size: 28px; font-weight: 500;
      text-transform: uppercase; letter-spacing: 3px; color: #fff;
      margin-bottom: 0;
    }
    /* ===== SESSIONS (project cards from Betsy's portal, kit 1.12) ===== */
    .sessions-section { margin: 40px 32px 0; }
    .sessions-section[hidden] { display: none; }
    .sessions-header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
    .sessions-title { font-size: 1.6rem; color: #fff; margin: 0; font-weight: 700; }
    .sessions-sub { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 0; }
    .sessions-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
    .session-card[hidden] { display: none; }
    .session-card a { display: block; color: #fff; text-decoration: none; border-radius: 12px; outline-offset: 4px; }
    .session-card .cover { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: #2d2d4a; }
    .session-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
    .session-card a:hover img { transform: scale(1.04); }
    .session-card .count { position: absolute; left: 10px; bottom: 10px; background: rgba(20,20,37,0.85); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
    .session-card .t { font-weight: 700; font-size: 1.05rem; margin-top: 10px; }
    .session-card a:hover .t, .session-card a:focus-visible .t { color: #ff9ee0; }
    .session-card .m { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
    @media (max-width: 768px) {
      .sessions-section { margin: 28px 16px 0; }
      .sessions-title { font-size: 1.3rem; }
      /* Phones: one swipeable row, so the photo grid stays close. */
      .sessions-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
      .session-card { flex: 0 0 62%; scroll-snap-align: start; }
    }
    @media (prefers-reduced-motion: reduce) { .session-card img { transition: none; } .session-card a:hover img { transform: none; } }
    /* ===== FOOTER ===== */
    /* ===== FOOTER ===== */
    .footer {
      background: #1a1a2e; color: #fff; padding: 40px 0 0;
    }
    .footer-cols {
      display: grid; grid-template-columns: auto auto; gap: 80px;
      justify-content: center; text-align: center;
      padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .footer-col-title {
      font-family: 'Rubik', sans-serif; font-size: 12px; font-weight: 600;
      letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.62); /* was .4: 3.9:1, under AA */
      margin-bottom: 16px;
    }
    .footer-nav { display: flex; flex-direction: column; gap: 10px; }
    .footer-nav a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; text-decoration: none; }
    .footer-nav a:hover { color: #fff; }
    .footer-social-col { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
    .footer-social-col a {
      width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.15);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      transition: border-color 0.3s, background 0.3s;
    }
    .footer-social-col a:hover { border-color: #ff9ee0; background: rgba(255,113,203,0.1); }
    .footer-social-col svg { width: 16px; height: 16px; fill: #fff; }
    .footer-bottom {
      display: flex; align-items: center; justify-content: center;
      flex-wrap: wrap; gap: 12px; padding: 20px 0;
      font-size: 14px; color: rgba(255,255,255,0.5); text-align: center;
    }
    .footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: underline; transition: color 0.2s; }
    .footer-bottom a:hover { color: #fff; }
    .footer-sep { opacity: 0.3; }
    @media (max-width: 479px) {
      .footer-cols { grid-template-columns: 1fr; text-align: center; }
      .footer-social-col { justify-content: center; }
    }
    /* ===== BACK TO TOP ===== */
    .back-to-top {
      position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
      background: #ff71cb; color: #fff; border: none; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; opacity: 0; transition: opacity 0.3s; z-index: 99;
    }
    .back-to-top.visible { opacity: 1; }
    .back-to-top svg { width: 16px; height: 16px; fill: #fff; }

    /* ===== SKIP LINK (ADA) ===== */
    .skip-link {
      position: absolute; top: -40px; left: 0; background: #1a1a2e; color: #fff;
      color: #fff; padding: 8px 16px; z-index: 200; transition: top 0.3s;
    }
    .skip-link:focus { top: 0; }
