/* Base layout */
body {
    font-family: Arial, sans-serif;
    background-color: #FDF2E9;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Month ribbons */
.month-section {
  position: relative;
  min-height: 400px;
  padding: 40px 20px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  border-top: 4px solid #C0392B;
}

.month-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.month-section h2 {
  position: absolute;
  top: 15px;
  left: 20px;
  background: rgba(192,57,43,0.9);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1.6em;
}

/* Event tiles */
.event-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 80px;
}

.event-tile {
  aspect-ratio: 2.5 / 4;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-tile:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 45px rgba(0,0,0,0.25);
}

.event-tile img,
.event-tile video {
  width: 100%;
  height: 65%;
  object-fit: cover;
}

.event-info {
  padding: 12px;
  text-align: left;
}

.event-info h3 {
    margin: 0;
    color: #C0392B;
    font-size: 1.2em;
}

.event-info p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #555;
}

/* Footer */
footer {
    background-color: #C0392B;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

.visitor-counter {
    margin-top: 5px;
    font-weight: bold;
}

/* Slideshow */
.slideshow {
    position: relative;
    max-width: 90%;
    margin: 30px auto;
}

.slideshow img {
    width: 100%;
    border-radius: 10px;
}

.slideshow .prev,
.slideshow .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(192,57,43,0.7);
    color: white;
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 50%;
    user-select: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .event-tile { width: calc(33.33% - 20px); }
}

@media (max-width: 768px) {
    .event-tile { width: calc(50% - 20px); }
}

@media (max-width: 480px) {
    .event-tile { width: 100%; }
}
.site-header {
  background:#C0392B;
  color:white;
  padding:15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Keep header on top to avoid content overlapping it */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
}

.site-header a {
  color:white;
  margin:0 10px;
  text-decoration:none;
}

.hamburger {
  font-size:26px;
  background:none;
  border:none;
  color:white;
  display:none;
}

#mainMenu {
  display:flex;
  align-items:center;
  gap:10px;
}

#mainMenu select {
  padding:5px;
}

.site-footer {
  background:#222;
  color:#fff;
  text-align:center;
  padding:20px;
  margin-top:40px;
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger { display:block; }
  #mainMenu {
    display:none;
    flex-direction:column;
    background:#C0392B;
    position:absolute;
    top:60px;
    right:0;
    padding:15px;
  }
  #mainMenu.open { display:flex; }
}
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #FDF2E9;
  font-family: Arial, sans-serif;
}

/* Reserve space for sticky header so content doesn't overlap */
:root {
  --site-header-height: 64px;
}

body {
  padding-top: var(--site-header-height);
}

main {
  flex: 1;
}

.site-footer {
  background: #1c1c1c;
  color: #fff;
  text-align: center;
  padding: 20px;
}
@media (max-width: 768px) {
  .month-section {
    background-attachment: scroll;
  }

  .event-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
