 /* Gallery additions; shared styles are loaded from the existing stylesheets. */
    [hidden] { display: none !important; }
    .conference-gallery-content { padding-block: 5rem; }
    #event-title { overflow-wrap: anywhere; }
    .event-description { white-space: pre-line; }
    .conference-gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-content: start;
      gap: 1.5rem;
      margin-top: 3.5rem;
      max-height: min(72vh, 48rem);
      max-height: min(72svh, 48rem);
      overflow-y: auto;
      scrollbar-gutter: stable;
      scrollbar-width: auto;
      scrollbar-color: var(--primary) #e6edf3;
      padding: 1.25rem;
      border: 1px solid var(--border);
      border-radius: 1.5rem;
      background: #f8fafc;
      scroll-padding-block: 1.25rem;
    }
    .conference-gallery-content p.event-description {
      margin-top: calc(var(--spacing) * 8) !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    .conference-gallery-grid:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
    .conference-gallery-grid::-webkit-scrollbar { width: 12px; }
    .conference-gallery-grid::-webkit-scrollbar-track { background: #e6edf3; border-radius: 999px; }
    .conference-gallery-grid::-webkit-scrollbar-thumb { background: var(--primary); border: 3px solid #e6edf3; border-radius: 999px; }
    .conference-gallery-grid::-webkit-scrollbar-thumb:hover { background: #032f52; }
    .photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #f1f5f9; box-shadow: 0 10px 30px -18px rgba(15,23,42,.2); }
    .photo a { display: block; }
    .photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
    .photo a:hover img { transform: scale(1.025); }
    a:focus-visible, button:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
    .photo a:focus-visible { outline-offset: -5px; }
    .gallery-return { margin-top: 3rem; }
    .gallery-return a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--primary); font-weight: 600;text-decoration: none; }
    #site-header .dropdown-menu-item:focus-within > div { opacity: 1 !important; visibility: visible !important; pointer-events: auto; }
    @media (max-width: 1023px) { .conference-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
    @media (max-width: 600px) { .conference-gallery-content { padding-block: 4rem 3rem; } .conference-gallery-grid { grid-template-columns: minmax(0,1fr); gap: 1rem; margin-top: 2rem; padding: .75rem; border-radius: 1rem; max-height: 65vh; max-height: 65svh; scroll-padding-block: .75rem; } }
    @media (prefers-reduced-motion: reduce) { .photo img { transition: none; } }

    /* Gallery image viewer */
    .image-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; color: #fff; background: #082c48; overflow: hidden; }
    .image-viewer::backdrop { background: #031625db; }
    .image-viewer[open] { display: flex; flex-direction: column; }
    .image-viewer__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem; border-bottom: 1px solid #ffffff26; }
    .image-viewer__title { flex: 1 1 140px; min-width: 0; margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
    .image-viewer__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-left: auto; }
    .image-viewer button { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-width: 44px; min-height: 44px; padding: .5rem; border: 1px solid #ffffff40; border-radius: .5rem; background: #ffffff12; color: #fff; font: inherit; font-size: .875rem; cursor: pointer; }
    .image-viewer button:hover:not(:disabled) { background: var(--primary); }
    .image-viewer button:disabled { opacity: .4; cursor: default; }
    .image-viewer button:focus-visible, .image-viewer__stage:focus-visible { outline: 3px solid var(--secondary); outline-offset: -3px; }
    .image-viewer__zoom { min-width: 3rem; text-align: center; font-size: .8rem; }
    .image-viewer__stage { flex: 1; min-height: 0; overflow: auto; background: #031b2e; }
    .image-viewer__canvas { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; }
    .image-viewer__image { display: block; max-width: none; max-height: none; height: auto; }
    .image-viewer__status { min-height: 2rem; margin: 0; padding: .375rem .75rem; font-size: .8rem; }
    .image-viewer__share-link { margin: 0 .75rem .75rem; padding: .5rem; border-radius: .375rem; background: #fff; color: #111; width: calc(100% - 1.5rem); }
    @media (max-width: 600px) { .image-viewer__toolbar { gap: .375rem; } .image-viewer__title { flex-basis: 100%; } }
