@import url("https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:ital,wght@0,300;0,700;1,300&display=swap");

#content {
  position: relative;
}

.event-content {
  background: white;
  transition: 0.2s;
  z-index: 1;
}

.event-text {
  padding: 1rem;
}

.event-text p {
  margin: 0;
  padding: 0;
}

.event-content:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.event-title {
  color: #333;
}

.event-title h2 {
  padding: 0;
  margin: 0 0 1rem 0;
  font-family: "Open Sans Condensed", sans-serif;
  font-weight: bold;
}

.banner {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
  background-position: top;
  background-size: cover;
  width: 100%;
  height: 497px;
}

.banner__image {
  width: 100%;
  opacity: 1;
  height: auto;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(238, 238, 238);
  /*background-image: linear-gradient(19deg, #21D4FD 0%, #B721FF 100%);*/
  background-image: none;
  opacity: 0.9;
  z-index: 1;
  opacity: 0.75;
}

.banner::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: -moz-linear-gradient(
    top,
    rgba(255, 255, 255, 0) 35%,
    rgba(238, 238, 238, 1) 90%
  );
  background: -webkit-linear-gradient(
    top,
    rgba(255, 255, 255, 0) 35%,
    rgba(238, 238, 238, 1) 90%
  );
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 35%,
    rgba(238, 238, 238, 1) 90%
  );
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
  z-index: 2;
}

.banner__text-wrapper {
  position: relative;
  text-align: center;
  margin: 2.5rem 0;
}

.banner__text-wrapper p {
  background: rgba(238, 238, 238, 0.4);
  box-shadow: 0 0 20px 15px rgba(238, 238, 238, 0.4);
}

.banner__text {
  font-family: "rockwell", sans-serif !important;
  font-weight: bold;
  font-size: 3.5rem;
  line-height: 3rem;
  display: inline-block;
  padding: 1rem 0;
  position: relative;
  color: #333333;
  text-shadow: none;
  text-transform: none;
}

.banner__subtext {
  color: black;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  box-sizing: border-box;
  text-shadow: none;
  position: relative;
  line-height: 1.75rem;
}

.event-image {
  width: 100%;
}

@media screen and (max-width: 1024px) {
  #content {
    max-width: 100vw;
    min-width: 0;
  }
}

/* 
Wrap everything in a @supports to exclude internet explorer 11 
CSS Grid doesn't work in IE11
*/
@supports not (-ms-high-contrast: none) {
  #grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    grid-auto-rows: 1fr;
  }

  @media screen and (max-width: 768px) {
    #grid {
      grid-template-columns: 1fr;
    }
  }
}
