.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.gallery-item {
  cursor: pointer;
}

.gallery-image, .gallery-video, .gallery-youtube {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-image:hover, .gallery-video:hover, .gallery-youtube:hover {
  transform: scale(1.05);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}


.modal-image, .modal-video, .modal {
  transition: transform 0.3s ease;
}

.modal-video {
  width: 100%;
  height: auto;
}

.modal-iframe {
  width: 90%;
  height: 90%;
  border: none;
  border-radius: 8px;
}

.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal-content {
  max-width: 85%; /* Обмежуємо ширину модального вікна */
  max-height: 85%; /* Обмежуємо висоту модального вікна */
  overflow: hidden;
  position: relative;
}

