/* Modal styles for presentation page */
.modal {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px 20px 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: zoomIn 0.3s ease;
  object-fit: contain;
  margin: auto;
  display: block;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #bbb;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Gallery styles */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.gallery img {
  max-width: 100%;
  max-height: 180px;
  height: auto;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.back-link {
  display: inline-block;
  margin: 20px;
  font-weight: 600;
  font-size: 1.3rem;
  text-decoration: none;
  color: #2c3e50;
  padding: 8px 16px;
  border: 2px solid #2c3e50;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(44, 62, 80, 0.1);
}

.back-link:hover,
.back-link:focus {
  text-decoration: none;
  background-color: #2c3e50;
  color: #fff;
  outline: none;
  box-shadow: 0 6px 12px rgba(44, 62, 80, 0.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .gallery {
    gap: 10px;
  }

  .gallery img {
    max-height: 120px;
  }

  .modal-close {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

strong {
  font-weight: 700;
}