:root {
    --accent-color: #b00035;
    --accent-color-dark: #b15b74;
    --text-color: #333333;
    --bg-color: #ffffff;
  }

  /* GLOBAL STYLY */
  body {
    font-family: 'Winky Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    /* line-height: 2; */
  }

  html {
    scroll-behavior: smooth;
  }

  /* Section & Subsection Headers */
  .section-header h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    /* margin-bottom: 2rem; */
    text-align: center;
  }
  .section-header p {
    letter-spacing: 0.1em;
	font-size: 1.3rem;
    color: var(--accent-color);
    text-align: center;
    /* margin-bottom: 2rem; */
  }

  .section-subheader {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
  }

  /* Hero overlay s výchozím gradientem */
  #hero-overlay {
    position: absolute;
    inset: 0;
    /* Gradient is now controlled by JS */
    transition: background-image 0.3s ease-out; /* Smooth transition for gradient */
  }

  /* Odkazy s ikonami */
  .section-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    font-size: 1.3rem;
  }

  .section-link:hover {
    color: var(--accent-color-dark);
  }

  /* Kontaktní karty */
  .card {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  /* Primary Button */
  .button-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
    display: inline-block;
  }

  .button-primary:hover {
    background-color: var(--accent-color-dark);
  }

  /* Footer */
  .footer-bg {
    background-color: var(--accent-color);
    color: #f9f9f9;
  }

  /* Informační sekce */
  .informace-container {
    display: flex;
    flex-direction: column;
    row-gap: 4rem;
    padding: 2rem 1rem;
  }

  /* Jednotlivé event sekce */
  .event-section {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
  }

  .event-details {
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    /* padding: 2rem 1rem; */
    max-width: 600px;
    align-items: center;
  }

  /* Oddělovač */
  .separator {
    width: 100%;
    height: 2px;
    background-color: #ddd;
    margin: 2rem 0;
  }

  /* Timeline */
  .timeline {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
    margin: 2rem 0;
    padding-left: 2.5rem;

  }


  /* Položky časové osy */
  .timeline-item {
    display: flex;
    align-items: center;


  }

  /* ikony časové osy */
  .timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
  }

  /* čas a popis */
  .timeline-time {
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 1.2rem;

  }

  .timeline-label {
    font-size: 1.05rem;
    text-align: left;
    min-width: 200px;
    font-size: 1.2rem;

  }

  .process-note {
    font-size: 0.95rem;
    color: #777;
    margin-top: 0.5rem;
    padding-left: 2rem;
    text-align: left;
	font-size: 1.1rem;
  }

  /* Kulatá fotografie pro kontakty */
  .circular-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
  }

  /* --- Gallery Pinboard Styles --- */
  .gallery-pinboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Align items vertically if they wrap unevenly */
    gap: 2rem; /* Adjust gap as needed */
    padding: 1rem;
  }

  .gallery-item {
    /* Define size - let's use aspect-ratio for consistency */
    width: 200px;
    aspect-ratio: 1 / 1; /* Make items square, adjust as needed (e.g., 3 / 2) */
    cursor: pointer;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
    background-color: white; /* Background for border effect */
    overflow: hidden; /* Hide parts of image that overflow due to object-fit: cover */
    position: relative; /* Needed for z-index */
    display: flex; /* Use flex to center image */
    justify-content: center;
    align-items: center;
    transform: scale(1) rotate(var(--initial-rotation, 0deg)); /* Use CSS variable for rotation */
    backface-visibility: hidden; /* Helps promote to own layer */
    will-change: transform, box-shadow; /* Hint the browser about upcoming changes */

    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }

  .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container, maintain aspect ratio, crop if needed */
    object-position: center; /* Center the image within its box */
  }

  .gallery-item:hover,
  .gallery-item.active {
    transform: scale(1.15) rotate(0deg) !important; /* Override initial rotation */
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.3);
    z-index: 10; /* Bring active/hovered item to the front */
  }

  /* --- End Gallery Pinboard Styles --- */


  /* Desktopové nastavení pro informační sekci */
  @media (min-width: 768px) {
    .informace-container {
      flex-direction: row; /* Side-by-side on desktop */
      align-items: flex-start; /* Align tops */
      justify-content: space-around; /* Space out sections */
      gap: 3rem; /* Gap between sections */
      padding: 2rem;
    }
    .event-section {
      max-width: none; /* Allow sections to take available space */
      flex: 1; /* Allow sections to grow */
      margin: 0; /* Reset margin */
      text-align: left; /* Align text left within sections */
    }
    .event-details {
        align-items: flex-start; /* Align details left */
    }
    .timeline {
        padding-left: 0.5rem; /* Adjust padding if needed */
    }
    .timeline-item {
        justify-content: flex-start; /* Align timeline items left */
    }
    .process-note {
        padding-left: 2.5rem; /* Keep note indented relative to timeline items */
    }

    .separator {
        width: 2px; /* Vertical separator */
        height: auto; /* Auto height */
        align-self: stretch; /* Stretch to container height */
        margin: 0 2rem; /* Margin around separator */
    }

    /* Adjust gallery item size on larger screens if desired */
    .gallery-item {
        width: 250px; /* Keep aspect ratio defined earlier */
    }
  }

  /* Further responsive adjustments if needed */
  @media (max-width: 767px) {
    /* Ensure separator is horizontal on mobile */
    .separator {
        width: 80%;
        height: 2px;
        margin: 2rem auto; /* Center horizontally */
    }
    .section-header h2 {
        font-size: 2.5rem; /* Slightly smaller header on mobile */
    }
    .section-subheader {
        font-size: 1.8rem;
    }
    .gallery-item {
        width: 150px; /* Smaller items on mobile, keep aspect ratio */
        gap: 1rem;
    }
  }