section.events {
  margin: 60px 0;
}

section.events .events__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

section.events .events__list .events__item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease;
}

section.events .events__list .events__item img {
  width: calc(100% + 60px);
  max-width: inherit;
  height: 350px;
  object-fit: cover;
  margin-top: -30px;
  margin-left: -30px;
}

section.events .events__list .events__item h3 {
  font-size: 20px;
  color: var(--dark-blue-100);
  line-height: 1.2;
  font-weight: bold;
  margin-bottom: 20px;
}

section.events .events__list .events__item .events__date {
  font-size: 14px;
  color: #666;
  margin-top: 30px;
  margin-bottom: 10px;
}

section.events .events__cta {
  display: table;
  width: 100%;
  text-align: center;
  padding: 10px;
  color: #fff;
  font: bold;
  border-radius: 40px;
  background: var(--light-blue-100);
  text-decoration: none;
}

section.events .events__cta:hover {
  background: var(--dark-blue-100);
}

section.events .events__modal {
  position: fixed;
  top: 0;
  left: 0;
  background: #00000066;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

section.events .events__modal-box {
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 30px #00000066;
  position: relative;
  min-width: 90%;
}

section.events .events__modal-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

section.events .events__modal-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 70vh;
  min-height: 500px;
  background: var(--dark-blue-100);
}

section.events .events__modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  line-height: 24px;
  color: #000;
  cursor: pointer;
}

section.events .events__modal-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

section.events .events__modal-date {
  font-size: 14px;
  color: var(--dark-blue-100);
  margin-bottom: 10px;
  background: #fff;
  border-radius: 30px;
  padding: 2px 15px;
  width: max-content;
  font-weight: bold;
  border: 2px var(--dark-blue-100) solid;
}

section.events .events__modal-title {
  font-size: 24px;
  color: var(--dark-blue-100);
  line-height: 1.2;
  font-weight: bold;
}

section.events .events__modal-address {
  display: flex;
  align-items: center;
  gap: 10px;
}

section.events .events__modal-address svg {
  width: 16px;
  height: 16px;
  fill: var(--dark-blue-100);
}

section.events .events__modal-description {
  font-size: 16px;
  color: #000;
  line-height: 1.5;
  max-height: 200px;
  overflow: auto;
}

section.events .events__modal-cta {
  background: var(--dark-blue-100);
  color: #fff;
  padding: 10px 30px;
  border-radius: 40px;
  text-decoration: none;
  width: max-content;
}

section.events .events__modal-cta:hover {
  background: var(--light-blue-100);
}

@media all and (max-width: 768px) {
  section.events .container {
    max-width: 90%;
  }

  section.events .events__list,
  section.events .events__modal-content {
    grid-template-columns: repeat(1, 1fr);
  }
}
