@layer layout {
  .events-header {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--primary-subdued);
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 200px;
  }

  .divider-container {
    width: 100%;
    padding: 10px 0;
  }

  .divider {
    width: 100%;
    border: 2px solid var(--primary-base);
  }

  #ec {
    flex: 1;
  }

  .event-container {
    display: flex;
  }
  .image-container {
    width: 30%;
  }
  .image-container img {
    height: 100%;
    object-fit: contain;
  }

  @media screen and (max-width: 800px) {
    .events-container {
      flex-direction: row;
    }

    #ec {
      flex: 1 0 100%;
    }
  }

  #event-menu-wrapper {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--primary-subdued);
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
  }
  #event-menu-wrapper h2 {
    font-size: 24px;
    font-weight: bold;
  }

  #upcoming-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  #upcoming-events .event {
    text-wrap: wrap;
    font-size: 16px;
    font-weight: 600;
  }
  #upcoming-events h3 {
    font-weight: bold;
  }
}