.aktualita {
  transition: transform 0.4s;
}
.aktualita:hover {
  transform: scale(1.05);
}
/* Modal styles for aktualita details */
#aktualita-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}
#aktualita-modal.flex {
  display: flex;
}
#modal-content {
  background: white;
  border-radius: 2vw;
  max-width: 600px;
  width: 90vw;
  padding: 2vw;
  position: relative;
  box-shadow: 0 10px 30px rgb(83, 83, 83);
}
#modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}
#modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 1vw;
  margin-bottom: 1vw;
  display: block;
}
#modal-title {
  font-weight: 700;
  font-size: 25px;
  margin-bottom: 10px;
}
#modal-date {
  color: rgb(126, 126, 126);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
#modal-description {
  font-size: 16px;
}
.section {
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  position: relative;
  height: auto;
  padding-bottom: 18vw;
  padding-top: 90px;
}

.aktuality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 30px;
  row-gap: 8vw;
  margin: 0 2vw;
  z-index: 50;
}

.aktualita {
  background-color: rgb(255, 255, 255);
  height: auto;
  border-radius: 2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5vw 2.5vw 1vw 2.5vw;

  box-shadow: 0 10px 30px rgb(83, 83, 83);
}

.aktualita-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.aktualita-title {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 25px;
}

.aktualita-title p {
  margin-bottom: 10px;
}

.aktualita-date {
  width: 100%;
  text-align: center;
  color: rgb(126, 126, 126);
  font-weight: 700;
  font-size: 15px;
}

/* expand function*/

.aktualita-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

@media (min-width: 300px) and (max-width: 749px) {
  .aktuality-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 30px;
    margin: 0 6vw;
  }
}

@media (min-width: 750px) and (max-width: 999px) {
  .aktuality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
    margin: 0 6vw;
  }
}

@media (min-width: 1000px) and (max-width: 1499px) {
  .aktuality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 30px;
    margin: 0 6vw;
  }
}
