    /* ===========================
       GALLERY + ALBO D'ORO
    =========================== */
    #gallery { background: linear-gradient(180deg, #0b1740 0%, #0d1f5e 100%); }

    .gallery-list { display: flex; flex-direction: column; gap: 28px; max-width: 960px; margin: 0 auto; }

    .gallery-card {
      background: var(--card-bg);
      border: 1px solid rgba(245,184,0,0.18);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: var(--shadow);
    }

    .gallery-card-header {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 20px 24px;
      border-bottom: 1px solid rgba(245,184,0,0.12);
      flex-wrap: wrap;
    }

    .gallery-card-info { flex: 1; min-width: 180px; }
    .gallery-card-info h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 4px; }
    .gallery-card-info p { color: var(--text-muted); font-size: 0.86rem; }
    .gallery-card-header .event-action-btn { text-decoration: none; }

    .carousel { position: relative; padding: 16px 0; }

    .carousel-track {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding: 0 24px;
      padding: 0 24px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .carousel-track::-webkit-scrollbar { display: none; }
    .carousel-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

    .carousel-slide {
      flex: 0 0 auto;
      width: 280px;
      height: 210px;
      border: none;
      padding: 0;
      border-radius: 12px;
      overflow: hidden;
      cursor: zoom-in;
      scroll-snap-align: start;
      background: rgba(255,255,255,0.05);
      position: relative;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease;
    }

    .carousel-slide:hover img { transform: scale(1.05); }
    .carousel-slide:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

    .carousel-slide.is-broken img { visibility: hidden; }
    .carousel-slide.is-broken::after {
      content: '\f03e';
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: var(--text-muted);
    }

    .carousel-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(11,23,64,0.85);
      color: var(--gold);
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(0,0,0,0.4);
      transition: opacity var(--transition);
    }

    .carousel-nav.prev { left: 8px; }
    .carousel-nav.next { right: 8px; }
    .carousel-nav:disabled { opacity: 0; pointer-events: none; }

    .podium { padding: 4px 24px 22px; }

    .podium-title {
      font-size: 0.8rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin: 10px 0 12px;
    }

    .podium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

    .podium-col {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      padding: 14px 16px;
    }

    .podium-col h5 { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 900; margin-bottom: 10px; color: var(--white); }
    .podium-gold h5 i { color: var(--gold); }
    .podium-silver h5 i { color: #c0c7d6; }

    .podium-col ol { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .podium-col li { display: flex; gap: 10px; align-items: flex-start; }
    .podium-col li strong { display: block; font-size: 0.92rem; }
    .podium-col li span:not(.medal) { display: block; font-size: 0.8rem; color: var(--text-muted); }

    .medal {
      flex-shrink: 0;
      min-width: 34px;
      padding: 3px 6px;
      border-radius: 999px;
      text-align: center;
      font-family: 'Montserrat', sans-serif;
      font-weight: 900;
      font-size: 0.72rem;
      background: rgba(255,255,255,0.12);
      color: var(--white);
    }

    .medal-1 { background: var(--gold); color: var(--navy); }
    .medal-2 { background: #c0c7d6; color: var(--navy); }
    .medal-3 { background: #cd7f32; color: var(--navy); }

    /* Lightbox */
    html.lightbox-open, html.lightbox-open body { overflow: hidden; }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 3000;
      background: rgba(4, 9, 26, 0.95);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 56px 64px;
    }

    .lightbox-figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
    .lightbox-img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
    .lightbox-caption { color: var(--text-light); font-size: 0.85rem; text-align: center; }

    .lightbox-btn {
      position: absolute;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: none;
      background: rgba(255,255,255,0.1);
      color: var(--white);
      font-size: 1.1rem;
      cursor: pointer;
    }

    .lightbox-btn:hover { background: rgba(255,255,255,0.22); }
    .lightbox-btn:focus-visible { outline: 2px solid var(--gold); }
    .lightbox-close { top: 14px; right: 14px; }
    .lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
    .lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

    .gallery-archive-action { display: flex; justify-content: center; margin-top: 24px; }
    .gallery-archive-action a { text-align: center; justify-content: center; }
    .gallery-card-info, .podium-col li div { min-width: 0; overflow-wrap: anywhere; }

    .gallery-card .event-date-badge {
      display: flex; flex-direction: column; align-items: center;
      background: var(--gold); color: var(--navy); border-radius: 8px;
      padding: 10px 18px; min-width: 72px; flex-shrink: 0;
    }
    .gallery-card .event-date-badge .day { font: 900 2rem/1 'Montserrat', sans-serif; }
    .gallery-card .event-date-badge .month { font: 700 0.72rem 'Montserrat', sans-serif; text-transform: uppercase; margin-top: 2px; }

    @media (prefers-reduced-motion: reduce) {
      .carousel-slide img { transition: none; }
    }

    /* Standalone archive page */
    .archive-page {
      --navy: #0b1740;
      --gold: #f5b800;
      --white: #fff;
      --text-light: #d9e1f4;
      --text-muted: #adbbd8;
      --card-bg: #152060;
      --shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
      --transition: 0.2s ease;
      margin: 0;
      background: var(--navy);
      color: var(--white);
      font: 1rem/1.6 'Open Sans', sans-serif;
    }
    .archive-page * { box-sizing: border-box; }
    .archive-page [hidden] { display: none !important; }
    .archive-page h1, .archive-page h2, .archive-page h3, .archive-page h4, .archive-page h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
    .archive-page a { color: var(--gold); text-underline-offset: 3px; }
    .archive-page button, .archive-page input, .archive-page select { font: inherit; }
    .archive-page :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

    .archive-header {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      max-width: none; padding: 14px max(24px, calc((100% - 1200px) / 2)); margin: 0;
      border-bottom: 2px solid var(--gold); background: var(--navy);
    }
    .archive-brand { display: flex; align-items: center; gap: 12px; color: var(--gold) !important; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 900; }
    .archive-brand img { object-fit: contain; flex-shrink: 0; }
    .archive-menu { display: flex; align-items: center; margin-left: auto; margin-right: 22px; }
    .archive-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 4px; color: #fff; font-size: 0.88rem; font-weight: 700; text-decoration: none; transition: background var(--transition), color var(--transition); }
    .archive-menu a:hover { background: #152060; color: var(--gold); }
    .archive-languages { display: flex; flex-shrink: 0; border: 1px solid rgba(245,184,0,.5); border-radius: 5px; overflow: hidden; }
    .archive-languages button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; min-height: 36px; border: 0; color: #fff; background: transparent; padding: 7px 10px; cursor: pointer; }
    .archive-languages .lang-flag { display: block; width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
    .archive-languages button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
    .archive-main { max-width: 1200px; margin: auto; padding: 30px 32px 72px; }
    .archive-main h1 { max-width: 760px; font-size: 3.6rem; letter-spacing: 0; margin: 24px 0 22px; color: var(--white); overflow-wrap: anywhere; }
    .archive-main h1::after { content: ''; display: block; width: 76px; height: 5px; margin-top: 16px; border-radius: 2px; background: var(--gold); }
    .archive-main h2 { font-size: 1.7rem; margin: 0; }
    .archive-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
    .archive-tabs a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(245,184,0,.35); border-radius: 5px; background: #152060; color: var(--white); font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: background var(--transition), color var(--transition); }
    .archive-tabs a:hover { background: var(--gold); color: var(--navy); }
    .archive-tabs a i { color: var(--gold); }
    .archive-tabs a:hover i { color: var(--navy); }
    .archive-section { padding-top: 44px; scroll-margin-top: 20px; }
    .archive-section > h2 { margin-bottom: 10px; }
    .archive-page #gallery { background: none; }
    .archive-description { max-width: 760px; margin: 0; color: var(--text-light); font-size: 0.92rem; }
    .archive-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
    .archive-toolbar label { color: var(--text-light); font-size: 0.86rem; font-weight: 700; }
    .archive-toolbar input, .archive-toolbar select { min-height: 42px; max-width: 100%; padding: 8px 12px; border: 1px solid #6b7a9c; border-radius: 5px; background: #152060; color: var(--white); }
    .archive-toolbar input { width: min(100%, 300px); }
    #gallery-count { color: var(--text-muted); font-size: 0.86rem; }

    .standings-scroll { overflow-x: auto; border: 1px solid rgba(245,184,0,.3); border-radius: 6px; background: #152060; box-shadow: var(--shadow); }
    .standings-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
    .standings-pagination[hidden] { display: none; }
    .standings-pagination > span { min-width: 100px; color: var(--text-light); font-size: 0.88rem; font-variant-numeric: tabular-nums; text-align: center; }
    .standings-pagination .event-action-btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .standings-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
    .standings-table th, .standings-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.1); }
    .standings-table th:first-child { text-align: left; }
    .standings-table tbody th { max-width: 360px; overflow-wrap: anywhere; color: var(--white); font-weight: 700; }
    .standings-table tbody td { color: var(--text-light); }
    .standings-table tbody tr:last-child th, .standings-table tbody tr:last-child td { border-bottom: 0; }
    .standings-table tbody tr:hover { background: rgba(255,255,255,.05); }
    .standings-table thead th { background: #0b1740; color: var(--text-light); font-size: 0.82rem; }
    .standings-table thead tr:first-child th { padding-top: 14px; padding-bottom: 8px; border-bottom: 0; }
    .standings-table thead tr:nth-child(2) th { padding-top: 6px; color: var(--text-muted); font-size: 0.76rem; }
    .standings-table .standings-gold { color: var(--gold); }
    .archive-page .event-action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 1px solid rgba(245,184,0,.65); border-radius: 5px; color: var(--gold); background: rgba(245,184,0,.08); font-size: 0.85rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background var(--transition), color var(--transition); }
    .archive-page .event-action-btn:hover { background: var(--gold); color: var(--navy); }
    .archive-page .podium-col ol { padding: 0; margin: 0; }
    .archive-page .podium-col h5 { margin-top: 0; }
    .archive-page .podium-col li span:not(.medal) { line-height: 1.5; }
    .archive-footer { padding: 40px 5% 28px; border-top: 1px solid rgba(245,184,0,.1); background: #060e25; text-align: center; }
    .archive-footer-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
    .archive-footer-logo img { height: 40px; object-fit: contain; filter: brightness(.9); }
    .archive-footer-logo span { color: var(--gold); font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 900; }
    .archive-footer p { color: var(--text-muted); font-size: .82rem; line-height: 1.7; }
    .archive-footer a { color: var(--gold); font-size: .82rem; }
    .archive-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 12px 0 20px; }
    .archive-footer-copyright { margin: 0; font-size: .75rem !important; }

    .archive-page .gallery-list { max-width: none; gap: 24px; }
    .archive-page .gallery-card { border: 1px solid rgba(245,184,0,.25); border-radius: 6px; background: var(--card-bg); box-shadow: var(--shadow); }
    .archive-page .gallery-card-header { gap: 18px; padding: 22px 24px; border-bottom: 1px solid rgba(245,184,0,.14); }
    .archive-page .gallery-card-info h3 { margin: 0 0 5px; color: var(--white); font-size: 1.3rem; }
    .archive-page .gallery-card-info p { margin: 0; color: var(--text-muted); }
    .archive-page .gallery-card .event-date-badge { border-radius: 5px; background: var(--gold); color: var(--navy); }
    .archive-page .gallery-card .event-date-badge .month { color: var(--navy); }
    .archive-page .carousel { padding: 18px 0 8px; }
    .archive-page .carousel-track { gap: 12px; padding: 0 24px 10px; scroll-padding: 0 24px; }
    .archive-page .carousel-slide { width: 320px; height: 230px; border-radius: 4px; background: rgba(255,255,255,.08); }
    .archive-page .carousel-slide img { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
    .archive-page .carousel-slide:hover img { transform: scale(1.035); }
    .archive-page .carousel-nav { background: rgba(11,23,64,.92); color: var(--gold); box-shadow: 0 5px 16px rgba(0,0,0,.32); }
    .archive-page .podium { padding: 12px 24px 24px; }
    .archive-page .podium-title { margin: 8px 0 14px; color: var(--gold); font-size: 0.75rem; letter-spacing: 1.5px; }
    .archive-page .podium-grid { gap: 12px; }
    .archive-page .podium-col { border: 1px solid rgba(255,255,255,.1); border-radius: 5px; background: rgba(255,255,255,.04); }
    .archive-page .podium-col h5 { color: var(--white); }
    .archive-page .podium-gold h5 i { color: var(--gold); }
    .archive-page .podium-silver h5 i { color: #c0c7d6; }
    .archive-page .podium-col li strong { color: var(--white); }
    .archive-page .podium-col li span:not(.medal) { color: var(--text-muted); }
    .archive-page .medal { background: rgba(255,255,255,.12); color: var(--white); }
    .archive-page .medal-1 { background: var(--gold); color: var(--navy); }
    .archive-page .medal-2 { background: #c7d1d9; color: #263d52; }
    .archive-page .medal-3 { background: #d79a72; color: #fff; }
    .archive-page .gallery-archive-action { margin-top: 28px; }

    .archive-page .lightbox { background: rgba(9, 24, 39, 0.96); }
    .archive-page .lightbox-btn { background: rgba(255,255,255,.14); }
    .archive-page .lightbox-btn:hover { background: rgba(255,255,255,.26); }
    .archive-page .lightbox-btn:focus-visible { outline-color: var(--gold); }

    @media (max-width: 768px) {
      .archive-header { flex-wrap: wrap; }
      .gallery-card-header { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
      .gallery-card-header > .event-action-btn { grid-column: 1 / -1; justify-self: start; }
      .carousel-track { padding: 0 16px; scroll-padding: 0 16px; }
      .carousel-slide { width: 72vw; height: 54vw; max-height: 280px; }
      .carousel-nav { display: none; }
      .podium { padding: 4px 16px 18px; }
      .lightbox { padding: 60px 8px; }
      .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
      .archive-header { padding: 14px 18px; }
      .archive-brand { flex: 1 1 100%; font-size: 0.82rem; }
      .archive-menu { margin: 0 auto 0 0; }
      .archive-menu a { padding-left: 0; }
      .archive-main { padding: 24px 18px 48px; }
      .archive-main h1 { font-size: 2.25rem; }
      .archive-main h2 { font-size: 1.4rem; }
      .archive-section { padding-top: 34px; }
      .standings-table th, .standings-table td { padding: 10px 8px; font-size: 0.79rem; }
      .standings-table tbody th { max-width: 145px; }
      .archive-page .gallery-card-header { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 13px; }
      .archive-page .gallery-card-header > .event-action-btn { grid-column: 1 / -1; justify-self: start; }
      .archive-page .carousel-track { padding-inline: 16px; scroll-padding-inline: 16px; }
      .archive-page .carousel-slide { width: min(78vw, 360px); height: 58vw; max-height: 280px; }
      .archive-page .carousel-nav { display: none; }
      .archive-page .podium { padding: 10px 16px 18px; }
      .archive-page .podium-grid { grid-template-columns: minmax(0, 1fr); }
      .lightbox { padding: 60px 8px; }
      .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .archive-page .carousel-slide img { transition: none; }
    }

