body {
  font-family: Arial, sans-serif;
  background: url("https://dumbfucks.se/storage/backgrounds/AM26XVZUPhqHVWJGt5J1lZgXXylsVzXWg3gClwuv.jpg")
    no-repeat center center fixed;
  background-size: cover;
  text-align: center;
}

h1,
h2 {
  text-shadow: white 0px 0px 10px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.image-container {
  position: relative;
  background: black;
  border-radius: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
}

.gallery img,
.gallery video,
.gallery iframe {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-container:hover .caption {
  opacity: 1;
}

.pagination {
  margin: 20px;
}

.pagination button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  margin: 5px;
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  width: 90%;
  max-width: 1200px;
  /* max-height: 90vh; */
  height: auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal img,
.modal video,
.modal iframe {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 5px;
  object-fit: contain;
}

.modal .caption {
  color: white;
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px;
  user-select: none;
}

.nav-arrow.left {
  left: 10px;
}

.nav-arrow.right {
  right: 10px;
}

@media (max-width: 768px) {
  .close-button {
    font-size: 40px;
    padding: 15px;
  }
  .nav-arrow {
    font-size: 40px;
    padding: 15px;
  }
}
