.event_row {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 15px;
}

.event_row img {
  width: 100%;

  height: 220px;

  object-fit: cover;

  border-radius: 6px;

  cursor: pointer;

  transition: 0.3s;
}

.event_row img:hover {
  transform: scale(1.03);
}

/*------- MY GALLERY CSS ---------*/

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

#lightbox {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  animation: fade 0.3s;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#lightbox_img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 85%;
  border-radius: 5px;
}

.close {
  position: absolute;
  top: 15px;
  right: 30px;
  font-size: 45px;
  color: white;
  cursor: pointer;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 55px;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

#counter {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 20px;
}

#event_title {
  position: absolute;
  top: 15px;
  left: 30px;
  font-size: 15px;
  color: white;
  cursor: pointer;
}
