@import url("https://fonts.googleapis.com/css2?family=MuseoModerno:ital,wght@0,100..900;1,100..900&family=Zilla+Slab+Highlight:wght@400;700&family=Zilla+Slab:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

html,
body {
  margin: 0px;
  font-family: Zilla Slab;
  font-size: clamp(1.2rem, 0.9rem + 0.4vw, 1.125rem);
  line-height: 1.6;
}

::selection {
  background-color: #004225;
  color: white;
}

header {
  background-color: #dac8ae;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  background-color: #dac8ae;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer h3 {
  margin-bottom: 0px;
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-weight: bolder;
}

footer p {
  margin-top: 1vh;
}

header nav {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

header nav.nav-left {
  justify-content: flex-end;
  padding-right: 2rem;
}

header nav.nav-right {
  justify-content: flex-start;
  padding-left: 2rem;
}

header nav a {
  font-family: Zilla Slab;
  font-weight: 600;
  text-decoration: none;
  color: #3a2a1a;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
}

.site-notice-wrap {
  background: linear-gradient(90deg, #e9dcc4 0%, #f7edd9 50%, #e9dcc4 100%);
  border-top: 1px solid #d7c2a0;
  border-bottom: 1px solid #d7c2a0;
  padding: 0.5rem 1rem;
}

.site-notice {
  width: 100%;
  margin: 0 auto;
  background-color: transparent;
  color: #3a2a1a;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  padding: 0.1rem 0;
  line-height: 1.35;
}

.site-notice__label {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  background: #004225;
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-right: 0.55rem;
}

.site-notice__text {
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.05rem);
  font-weight: 600;
}

h1 {
  font-family: Zilla Slab Highlight;
  font-size: clamp(1.5rem, 1rem + 2.25vw, 2.75rem);
  font-weight: bold !important;
}

h2 {
  font-family: Zilla Slab Highlight;
  font-weight: bolder !important;
}

.hero {
  width: 100%;
  height: 60vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(/img/CF_BIRMINGHAM_0072.JPG);
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}

.hero--video {
  position: relative;
  overflow: hidden;
  line-height: normal;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(/img/CF_BIRMINGHAM_0072.JPG);
  background-size: cover;
  background-position: center;
}

.hero--video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
}

.hero h1 {
  font-family: Zilla Slab Highlight;
  color: white;
  font-size: clamp(2.5rem, 1.5rem + 6vw, 5rem);
}

.hero h2 {
  font-family: Zilla Slab;
  color: white;
  font-size: clamp(1.25rem, 1rem + 2.5vw, 2.2rem);
}

.hero h3 {
  font-family: Zilla Slab;
  color: white;
  font-size: clamp(1.05rem, 0.95rem + 1.6vw, 1.75rem);
  margin-bottom: 5px;
}

.hero h4 {
  font-family: Zilla Slab;
  color: white;
  font-size: clamp(1rem, 0.9rem + 1.2vw, 1.5rem);
}

.hero img {
  width: 30%;
}

.content {
  /* width: 65%; */
  margin: 15px auto;
}

.events {
  display: flex;
  flex-direction: column;
}

.event-card {
  background-color: aquamarine;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 20px;
  width: 100%;
  height: 30vh;
  color: white;
  align-content: center;
}

.btn {
  background-color: #004225;
  border-radius: 15px;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.event-projects {
  display: flex;
  flex-flow: row;
  width: 100%;
}

.event-project {
  width: 30%;
  background-color: #004225;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 10px;
  display: block;
  color: white;
  text-decoration: none;
  align-content: center;
}

.event-project img {
  width: 90%;
  border-radius: 10px;
}

.event-gallery {
  display: flex;
  flex-wrap: wrap;
}

.event-gallery img {
  width: 20vw;
  margin: 10px;
  border-radius: 10px;
  aspect-ratio: initial;
}

.sponsor-card {
  text-align: center;
  /* padding: 15px; */
  /* margin: 5px; */
  width: 12vw;
  align-content: center;
}

.sponsor-card img {
  max-width: 80%;
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  header > img {
    order: -1;
    flex: 0 0 100%;
    display: block;
    margin: 0 auto;
  }

  header nav {
    flex: none;
    justify-content: center;
    padding: 0.25rem 1rem;
  }

  header nav.nav-left,
  header nav.nav-right {
    padding: 0.25rem 1rem;
  }

  html,
  body {
    font-size: 16px;
  }

  header nav a {
    font-size: 1rem;
  }

  .site-notice-wrap {
    padding: 0.45rem 0.7rem;
  }

  .site-notice {
    width: 100%;
    padding: 0.1rem 0;
  }

  .site-notice__label {
    margin-right: 0.35rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }

  .site-notice__text {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .hero {
    line-height: normal;
    gap: 0.75rem;
    background-position-y: center !important;
  }

  .hero img {
    width: 55%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero h3 {
    font-size: 1.3rem;
  }

  .hero h4 {
    font-size: 1.1rem;
  }

  .content {
    width: 90%;
  }

  .event-gallery img {
    width: calc(50% - 8px);
    min-width: 120px;
    margin: 4px;
  }

  .event-projects {
    flex-wrap: wrap;
  }

  .event-project {
    width: calc(50% - 20px);
  }

  .sponsor-card {
    width: clamp(55px, 18vw, 100px);
  }
}

#image-carousel .splide__slide {
  height: auto !important;
}

#image-carousel .splide__slide img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 10px;
  display: block;
}

.splide__slide img {
  width: 100%;
  height: auto;
}
