/* Vasknarva sadama sündmuste leht – kasutaja lilla-sinine stiil */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: #2d3748;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  padding: 20px;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 10px; }
.back-button-container { margin-bottom: 20px; text-align: left; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  color: white; text-decoration: none; padding: 8px 18px;
  border-radius: 40px; font-weight: 500; font-size: .9rem;
  transition: all .2s ease; border: 1px solid rgba(255,255,255,.2);
}
.back-btn:hover { background: rgba(255,255,255,.3); transform: translateX(-3px); }
.services-header { text-align: center; margin-bottom: 30px; }
.main-title {
  color: white; font-size: 2rem; margin: 0 0 8px;
  text-shadow: 0 3px 5px rgba(0,0,0,.2); letter-spacing: 1.2px; font-weight: 700;
}
.subtitle { color: rgba(255,255,255,.9); font-size: .9rem; margin-top: 3px; font-weight: 300; }
.section-title { color: white; font-size: 1.45rem; margin: 0 0 18px; }
.event {
  background: rgba(255,255,255,.95); border-radius: 16px;
  overflow: hidden; margin-bottom: 25px; padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(255,255,255,.2);
}
.event:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.2); background: white; }
.event-date { color: #667eea; font-weight: 700; font-size: .9rem; margin: 0 0 6px; }
.event h2 { font-size: 1.4rem; color: #2d3748; margin: 0 0 12px; }
.event h2 a { color: inherit; text-decoration: none; }
.event h2 a:hover { color: #667eea; text-decoration: underline; }
.event-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.event-gallery a { display: block; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #edf0f8; cursor: zoom-in; }
.event-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.event-gallery a:hover img { transform: scale(1.06); }
.event-gallery .gallery-hidden { display: none; }
.gallery-hint { font-size: .85rem; color: #667085; margin: 10px 0 0; }
.footer { margin-top: 35px; text-align: center; color: rgba(255,255,255,.85); padding: 16px 12px 12px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }
.footer p { margin: 4px 0; }
.footer a { color: white; }
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.94); align-items: center; justify-content: center; padding: 20px; }
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img { max-width: 90vw; max-height: 82vh; max-height: 82dvh; object-fit: contain; }
.gallery-lightbox button { position: absolute; border: 1px solid rgba(255,255,255,.2); background: rgba(102,126,234,.7); color: white; border-radius: 10px; padding: 10px 15px; font-size: 26px; cursor: pointer; }
.gallery-lightbox button:hover { background: #764ba2; }
.gallery-close { top: 16px; right: 16px; }
.gallery-prev { top: 50%; left: 12px; transform: translateY(-50%); }
.gallery-next { top: 50%; right: 12px; transform: translateY(-50%); }
#gallery-counter { position: absolute; bottom: 16px; color: white; background: rgba(102,126,234,.65); padding: 5px 14px; border-radius: 20px; }
.event-gallery a:focus-visible, .gallery-lightbox button:focus-visible, .back-btn:focus-visible { outline: 3px solid white; outline-offset: 3px; }
@media(max-width:700px) { body { padding: 16px; } .event { padding: 18px; } .main-title { font-size: 1.6rem; } .event-gallery { gap: 8px; } }
@media(max-width:480px) { .back-btn { padding: 6px 12px; font-size: .8rem; } .event { padding: 15px; } .event h2 { font-size: 1.2rem; } .event-gallery { gap: 6px; } .gallery-lightbox button { padding: 8px; font-size: 22px; } .gallery-prev { left: 3px; } .gallery-next { right: 3px; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
