/* Event content is static; each participation owns its funding attribution. */
.events-page { color: #4e5667; }
.events-page p { color: #4e5667; }
.events-page h1, .events-page h2, .events-page h3 { color: #22344c; }
.events-page a:focus-visible, .events-page button:focus-visible { outline: 3px solid #1a76d1; outline-offset: 5px; }
.events-page .skip-link { position: absolute; left: 15px; top: -100px; z-index: 2000; background: white; padding: 12px; }
.events-page .skip-link:focus { top: 12px; }
.events-intro { background: #f5f8fc; padding: 42px 0 36px; border-bottom: 1px solid #e3eaf3; }
.events-eyebrow { color: #1a76d1; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.events-intro h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 15px; }
.events-intro p { max-width: 720px; font-size: 16px; line-height: 1.8; }
.events-breadcrumb { font-size: 12px; margin-bottom: 22px; }
.events-breadcrumb a, .events-back, .funding-link { color: #1766af; text-decoration: underline; }
.events-content { padding-top: 28px; padding-bottom: 60px; }
.funding-block { padding: 26px 32px; border: 1px solid #dbe4ef; border-left: 4px solid #1a76d1; border-radius: 8px; background: #fff; }
.funding-heading { font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 16px; color: #22344c; }
.funding-logos { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 0 22px; }
.funding-logo { padding: 0 24px; border-right: 1px solid #ccd4df; flex: 0 1 auto; }
.funding-logo:first-child { padding-left: 0; }
.funding-logo:last-child { border: 0; padding-right: 0; }
.funding-logo img { display: block; height: 54px; width: auto; max-width: 100%; object-fit: contain; transition: none; }
.funding-logo--eu img { height: 58px; }
.funding-block p { font-size: 14px; line-height: 1.8; }
.funding-block p + p { margin-top: 12px; }
.funding-scope { color: #5c6678; font-size: 13px !important; }
.funding-link { display: inline-block; margin-top: 14px; font-size: 13px; }
.funding-overview { margin-top: 25px; }
.funding-overview .funding-block + .funding-block { margin-top: 20px; }
.project-group > .funding-overview { padding: 0; max-width: none; }
.project-group .events-cards { margin-top: 26px; }
.project-group + .project-group { border-top: 1px solid #e0e6ee; }
.event-detail-page .event-section { border-top: 0; padding-top: 0; }
.event-detail-page .funding-overview { margin-top: 0; padding: 0; max-width: none; }
.event-detail-page .event-section h2 { font-size: 24px; }
.events-index { padding: 42px 0; }
.events-index h2 { font-size: 25px; margin-bottom: 8px; }
.events-index > p { margin-bottom: 22px; }
.events-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.event-card { display: block; overflow: hidden; border: 1px solid #e0e6ee; border-radius: 8px; background: white; transition: box-shadow .2s; }
.event-card:hover { box-shadow: 0 6px 20px #22344c16; }
.event-card img { display: block; width: 100%; height: 180px; object-fit: cover; }
.event-card-copy { padding: 18px; }
.event-card h3 { font-size: 18px; margin-bottom: 7px; }
.event-card p { font-size: 13px; line-height: 1.6; }
.event-card .event-card-funding { margin-top: 9px; font-size: 11px; color: #526579; }
.event-card-action { display: block; color: #1766af; margin-top: 12px; font-size: 13px; font-weight: 600; }
.event-section { scroll-margin-top: 20px; padding: 36px 0 48px; border-top: 1px solid #e0e6ee; }
.event-section h2 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.event-description { max-width: 850px; line-height: 1.8; margin-bottom: 22px; }
.event-section .funding-block { margin-bottom: 26px; }
.event-meta { color: #1766af; font-size: 13px; margin-bottom: 8px; }
.event-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.event-gallery figure { margin: 0; }
.event-gallery a { display: block; border-radius: 6px; overflow: hidden; background: #eef2f7; }
.event-gallery img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform .2s; }
.event-gallery a:hover img { transform: scale(1.025); }
.event-gallery figcaption { font-size: 12px; line-height: 1.5; color: #596575; padding: 8px 0 0; }
.event-videos { margin-top: 26px; }
.event-videos h3 { font-size: 20px; margin-bottom: 14px; }
.event-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.event-video-grid figure { margin: 0; }
.event-video-grid video { display: block; width: 100%; aspect-ratio: 4/3; background: #152136; border-radius: 6px; object-fit: contain; }
.event-video-grid figcaption { font-size: 12px; padding-top: 8px; }
.events-back { display: inline-block; margin-top: 22px; font-size: 13px; }
.events-footer { background: #f5f8fc; padding: 28px 0; border-top: 1px solid #dbe4ef; font-size: 13px; }
.events-footer a { color: #1766af; text-decoration: underline; }
.gallery-dialog { position: fixed; inset: 0; margin: auto; width: min(1100px, 94vw); max-height: 94vh; padding: 20px; border: 0; border-radius: 8px; background: white; color: #22344c; overflow: auto; }
.gallery-dialog::backdrop { background: #142033e8; }
.gallery-dialog:not([open]) { display: none; }
.gallery-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gallery-dialog h2 { font-size: 17px; }
.gallery-dialog button { background: #edf3fb; color: #174f84; border: 1px solid #d2dfed; border-radius: 5px; padding: 9px 14px; cursor: pointer; }
.gallery-dialog figure { margin: 0; }
.gallery-dialog-image { display: block; width: 100%; height: min(62vh, 720px); object-fit: contain; background: #f3f5f8; }
.gallery-dialog-caption, .gallery-dialog-funding { font-size: 12px; line-height: 1.6; margin-top: 10px; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; }
@media (min-width: 768px) and (max-width: 1199px) {
  .funding-logo { padding: 0 16px; }
  .funding-logo img { height: 40px; }
  .funding-logo--eu img { height: 44px; }
  .events-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .event-gallery img { height: 185px; }
}
@media (max-width: 767px) {
  .events-intro { padding: 28px 0; }
  .events-content { padding-top: 20px; }
  .funding-block { padding: 22px 18px; }
  /* Vertical institutional block: all four complete marks remain readable. */
  .funding-logos { flex-direction: column; gap: 20px; }
  .funding-logo, .funding-logo:first-child, .funding-logo:last-child { padding: 0; border: 0; }
  .funding-logo img { height: 48px; max-width: 100%; }
  .funding-logo--eu img { height: 52px; }
  .events-index { padding: 32px 0; }
  .events-cards, .event-video-grid { grid-template-columns: 1fr; }
  .event-card img { height: 210px; }
  .event-section { padding: 28px 0 36px; scroll-margin-top: 15px; }
  .event-section h2 { font-size: 25px; }
  .event-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .event-gallery img { height: 150px; }
  .gallery-dialog { padding: 14px; }
  .gallery-dialog button { padding: 9px 10px; }
}
@media (max-width: 374px) {
  .event-gallery { grid-template-columns: 1fr; }
  .event-gallery img { height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .event-card, .event-gallery img { transition: none; }
}
@media print {
  .events-page .header, .events-index, .events-back, .events-footer, .gallery-dialog { display: none !important; }
  .events-intro { padding: 15px 0; }
  .funding-block { break-inside: avoid; }
  .funding-logos { flex-direction: row; gap: 0; }
  .funding-logo { padding: 0 14px; }
  .funding-logo img { height: 40px; }
  .funding-logo--eu img { height: 44px; }
  .event-gallery figure { break-inside: avoid; }
}
