:root {
      --red:        #C8102E;
      --red-dark:   #9E0C24;
      --red-soft:   #FBE3E6;
      --gold:       #C98A00;
      --yellow:     #FFD100;
      --yellow-soft:#FFF5CC;
      --blue:       #003893;
      --blue-soft:  #E5EAF4;
      --off-white:  #FAFAF7;
      --warm-gray:  #F0EDE6;
      --stone:      #E4E0D8;
      --mid-gray:   #8A8680;
      --text:       #1C1A17;
      --text-light: #5C5854;
      --serif:      'Cormorant Garamond', Georgia, serif;
      --sans:       'Outfit', system-ui, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
    body { font-family: var(--sans); background: var(--off-white); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { font-family: inherit; cursor: pointer; }

    .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
    .flag-stripe { height: 5px; background: linear-gradient(to right, var(--yellow) 33.33%, var(--blue) 33.33% 66.66%, var(--red) 66.66%); }

    /* BUTTONS */
    .btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 100px; font-weight: 600; font-size: .87rem; letter-spacing: .015em; padding: .85rem 1.65rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer; border: 1.5px solid transparent; line-height: 1; }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
    .btn-dark { background: var(--text); color: #fff; border: none; }
    .btn-dark:hover { background: var(--red); }
    .btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
    .btn-outline:hover { background: var(--text); color: #fff; }
    .btn-sm { padding: .6rem 1.1rem; font-size: .8rem; }

    /* NAV */
    nav { position: sticky; top: 0; z-index: 200; background: rgba(250,250,247,0.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
    nav.scrolled { border-bottom-color: var(--stone); background: rgba(250,250,247,.97); }
    .nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 76px; }
    .nav-logo { display: flex; align-items: center; gap: .8rem; }
    .nav-logo img { width: 46px; height: 46px; object-fit: contain; }
    .nav-name { display: flex; flex-direction: column; line-height: 1; font-family: var(--serif); }
    .nav-name .nm-1 { font-size: 1.05rem; font-weight: 700; color: var(--red); letter-spacing: .02em; }
    .nav-name .nm-2 { font-size: 1.35rem; font-weight: 500; color: var(--blue); font-style: italic; letter-spacing: -.02em; margin-top: -2px; }
    .nav-links { display: flex; gap: 1.8rem; align-items: center; }
    .nav-links a { font-size: .85rem; font-weight: 500; color: var(--text-light); letter-spacing: .01em; position: relative; transition: color .2s; }
    .nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
    .nav-links a:hover { color: var(--text); }
    .nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
    .nav-links a.current { color: var(--text); font-weight: 600; }
    .nav-cta { background: var(--red); color: #fff !important; padding: .55rem 1.15rem; border-radius: 100px; font-weight: 600 !important; font-size: .83rem !important; }
    .nav-cta:hover { background: var(--red-dark) !important; }
    .nav-cta::after { display: none !important; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: 0; }
    .hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-menu { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--stone); }
    .mobile-menu a { padding: .85rem 2rem; font-size: .95rem; color: var(--text-light); border-bottom: 1px solid var(--warm-gray); font-weight: 500; }
    .mobile-menu a.current { color: var(--text); font-weight: 700; }
    .mobile-menu.open { display: flex; }

    /* SECTION DEFAULTS */
    .eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
    .eyebrow::before { content: ''; width: 24px; height: 1.5px; background: var(--red); display: block; }
    .stitle { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; color: var(--text); margin-bottom: .85rem; }
    .stitle em { font-style: italic; color: var(--red); font-weight: 500; }
    .ssub { font-size: 1.02rem; color: var(--text-light); line-height: 1.7; max-width: 640px; }

    /* GALLERY HERO */
    .gal-hero { background: linear-gradient(180deg, #fff 0%, var(--off-white) 100%); padding: 4rem 2rem 3.5rem; position: relative; overflow: hidden; }
    .gal-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,209,0,.14) 0%, transparent 70%); pointer-events: none; }
    .gal-hero::after { content: ''; position: absolute; bottom: -80px; left: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(0,56,147,.06) 0%, transparent 70%); pointer-events: none; }
    .gal-hero .container { position: relative; z-index: 1; }
    .gal-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

    /* YEAR TABS */
    .year-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
    .ytab { padding: .55rem 1.15rem; border-radius: 100px; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1px solid var(--stone); color: var(--text-light); background: #fff; transition: all .2s; font-family: var(--sans); }
    .ytab:hover { color: var(--text); border-color: var(--text); }
    .ytab.active { background: var(--text); color: #fff; border-color: var(--text); }

    /* GALLERY MAIN */
    .gal-body { background: var(--off-white); padding: 3rem 2rem 6rem; }

    /* LOADING SKELETON */
    @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
    .skeleton { background: linear-gradient(90deg, var(--warm-gray) 25%, var(--stone) 50%, var(--warm-gray) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; border-radius: 12px; }
    .skel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
    .skel-card { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--stone); }
    .skel-img { height: 200px; }
    .skel-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
    .skel-line { height: 14px; border-radius: 6px; }
    .skel-line-sm { height: 11px; width: 55%; border-radius: 6px; }

    /* ERROR / EMPTY */
    .gal-error-box { background: var(--red-soft); border: 1px solid rgba(200,16,46,.25); border-radius: 14px; padding: 1.5rem 1.8rem; font-size: .9rem; line-height: 1.7; margin-bottom: 2rem; }
    .gal-error-box strong { color: var(--red); display: block; margin-bottom: .3rem; }
    .gal-empty { text-align: center; padding: 5rem 2rem; color: var(--text-light); }
    .gal-empty svg { width: 60px; height: 60px; fill: var(--stone); margin: 0 auto 1.5rem; }
    .gal-empty h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--text); margin-bottom: .5rem; }
    .gal-empty p { font-size: .9rem; line-height: 1.65; max-width: 360px; margin: 0 auto; }

    /* YEAR GROUP */
    .gal-year-group { margin-bottom: 3.5rem; }
    .gal-year-heading { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
    .gal-year-heading h2 { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--text); line-height: 1; }
    .yr-line { flex: 1; height: 1px; background: var(--stone); }
    .yr-count { font-size: .7rem; font-weight: 700; color: var(--mid-gray); text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }

    /* EVENT CARDS */
    .events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
    .ev-card { background: #fff; border: 1px solid var(--stone); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
    .ev-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -20px rgba(0,0,0,.2); border-color: var(--mid-gray); }
    .ev-cover { aspect-ratio: 4/3; background: var(--warm-gray); position: relative; overflow: hidden; }
    .ev-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
    .ev-card:hover .ev-cover img { transform: scale(1.07); }
    .ev-cover-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; background: repeating-linear-gradient(45deg, var(--yellow-soft) 0 16px, var(--warm-gray) 16px 32px); }
    .ev-cover-ph svg { width: 34px; height: 34px; fill: var(--mid-gray); opacity: .45; }
    .ev-cover-ph span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mid-gray); font-weight: 600; background: rgba(255,255,255,.7); padding: .28rem .55rem; border-radius: 4px; }
    .ev-body { padding: 1.1rem 1.2rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
    .ev-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; line-height: 1.25; margin-bottom: .3rem; color: var(--text); }
    .ev-meta { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; }
    .ev-year { font-size: .7rem; font-weight: 700; color: var(--mid-gray); text-transform: uppercase; letter-spacing: .1em; }
    .ev-count { background: var(--warm-gray); border-radius: 100px; padding: .2rem .65rem; font-size: .7rem; font-weight: 600; color: var(--text-light); transition: background .2s; }
    .ev-card:hover .ev-count { background: var(--yellow-soft); }

    /* PHOTOS VIEW */
    .photos-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
    .back-btn { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--text-light); border: 1px solid var(--stone); border-radius: 100px; padding: .5rem 1.1rem; background: #fff; cursor: pointer; transition: all .2s; }
    .back-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
    .back-btn svg { width: 14px; height: 14px; }
    .photos-head { }
    .photos-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--red); margin-bottom: .25rem; }
    .photos-title { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--text); line-height: 1.15; }

    /* PHOTO GRID */
    .photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
    .ph-cell { border-radius: 10px; overflow: hidden; background: var(--warm-gray); position: relative; cursor: pointer; aspect-ratio: 1; transition: transform .25s, box-shadow .25s; }
    .ph-cell:hover { transform: scale(1.02); box-shadow: 0 16px 36px -12px rgba(0,0,0,.28); }
    .ph-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; display: block; }
    .ph-cell:hover img { transform: scale(1.06); }
    .ph-cell.is-video .video-badge { position: absolute; bottom: .5rem; left: .5rem; background: rgba(0,0,0,.65); color: #fff; font-size: .63rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 4px; display: flex; align-items: center; gap: .3rem; }
    .ph-cell.is-video .video-badge svg { width: 9px; height: 9px; fill: var(--yellow); }
    .ph-cell.is-video::before { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: rgba(255,255,255,.9); background: rgba(0,0,0,.2); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 1; }
    .ph-cell.is-video:hover::before { opacity: 1; }
    .load-more-wrap { text-align: center; margin-top: 2.5rem; }

    /* LIGHTBOX */
    .lb { position: fixed; inset: 0; background: rgba(10,8,6,.93); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
    .lb.open { opacity: 1; pointer-events: all; }
    .lb-media { position: relative; max-width: 90vw; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
    .lb-media img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 100px rgba(0,0,0,.7); display: block; }
    .lb-media video { max-width: 88vw; max-height: 86vh; border-radius: 4px; box-shadow: 0 40px 100px rgba(0,0,0,.7); }
    .lb-btn { position: fixed; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; z-index: 1000; font-size: 1.25rem; }
    .lb-btn:hover { background: rgba(255,255,255,.22); }
    .lb-close { top: 1.2rem; right: 1.4rem; font-size: 1.1rem; }
    .lb-prev { top: 50%; left: 1.2rem; transform: translateY(-50%); }
    .lb-next { top: 50%; right: 1.2rem; transform: translateY(-50%); }
    .lb-counter { position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .75rem; font-weight: 600; letter-spacing: .1em; pointer-events: none; }
    .lb-caption { position: fixed; bottom: 1.3rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: rgba(255,255,255,.8); font-size: .75rem; padding: .4rem 1rem; border-radius: 100px; white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

    /* FOOTER */
    footer { background: var(--warm-gray); color: var(--text-light); padding: 4rem 2rem 0; border-top: 1px solid var(--stone); }
    .ft-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 2fr; gap: 3.5rem; padding-bottom: 2.5rem; }
    .ft-brand img { width: 64px; margin-bottom: 1rem; }
    .ft-tag { font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; color: var(--text); margin-bottom: .5rem; font-weight: 500; }
    .ft-tag svg.star { width: 14px; vertical-align: -2px; margin-right: 4px; fill: var(--yellow); }
    .ft-sub { font-size: .82rem; color: var(--text-light); font-style: italic; }
    .ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .ft-cols h5 { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .85rem; }
    .ft-cols a { display: block; font-size: .87rem; padding: .3rem 0; color: var(--text-light); transition: color .2s; }
    .ft-cols a:hover { color: var(--text); }
    .ft-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem 0; border-top: 1px solid var(--stone); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .78rem; color: var(--mid-gray); }
    .ft-bottom a:hover { color: var(--red); }

    /* REVEAL */
    .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
    .rv.in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      .rv { opacity: 1 !important; transform: none !important; }
      html { scroll-behavior: auto; }
    }

    /* RESPONSIVE */
    @media (max-width: 1000px) {
      .events-grid, .skel-grid { grid-template-columns: repeat(3, 1fr); }
      .photos-grid { grid-template-columns: repeat(3, 1fr); }
      .ft-inner { grid-template-columns: 1fr; gap: 2.5rem; }
      .gal-hero-inner { flex-direction: column; align-items: stretch; gap: 1.5rem; }
      /* Inline align-self:flex-end from the markup pins the tabs right on the
         narrow layout — reset it so they run full width and can scroll. */
      #yearTabs { align-self: stretch !important; }
    }
    @media (max-width: 700px) {
      .gal-hero { padding: 2.5rem 1.25rem 2.25rem; }
      .gal-body { padding: 2rem 1.25rem 4rem; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .events-grid, .skel-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
      .photos-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
      .ft-cols { grid-template-columns: 1fr 1fr; }
      .nav-name .nm-2 { font-size: 1.15rem; }
      .nav-cta { display: none; }

      /* Year tabs: one swipeable row instead of a tall wrapped block. */
      .year-tabs {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: .45rem;
        margin: 0 -1.25rem; padding: .25rem 1.25rem .4rem;
        scroll-snap-type: x proximity;
      }
      .year-tabs::-webkit-scrollbar { display: none; }
      .ytab { flex: 0 0 auto; scroll-snap-align: start; }

      /* Year headings + section titles read smaller on phones. */
      .gal-year-heading h2 { font-size: 1.9rem; }
      .gal-year-group { margin-bottom: 2.5rem; }
      .ev-name { font-size: 1.05rem; }
      .ev-body { padding: .85rem .9rem 1rem; }
      .photos-title { font-size: 1.6rem; }
      .photos-nav { margin-bottom: 1.5rem; gap: .75rem; }

      /* Bigger, thumb-friendly lightbox controls, kept clear of the media. */
      .lb-btn { width: 52px; height: 52px; font-size: 1.5rem; }
      .lb-close { top: .8rem; right: .8rem; }
      .lb-prev { top: auto; bottom: 1rem; left: 1rem; transform: none; }
      .lb-next { top: auto; bottom: 1rem; right: 1rem; transform: none; }
      .lb-media img, .lb-media video { max-width: 94vw; max-height: 78vh; }
      .lb-caption { bottom: 5rem; max-width: 90vw; }
    }
    @media (max-width: 480px) {
      .events-grid, .skel-grid { grid-template-columns: 1fr 1fr; }
      .photos-grid { grid-template-columns: repeat(2, 1fr); }
      .gal-hero .stitle { font-size: clamp(1.9rem, 8vw, 2.4rem) !important; }
    }