body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f8f9fa;
  line-height: 1.6;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 2.5em;
}

.header p {
  color: #7f8c8d;
  font-size: 1.2em;
}

.admin-link,
.map-link {
  position: absolute;
  top: 20px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.admin-link {
  right: 20px;
}

.map-link {
  right: 140px;
}

.admin-link:hover,
.map-link:hover {
  text-decoration: underline;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.picture-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.picture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgb(0 0 0 / 20%);
}

.picture-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
}

.picture-info {
  padding: 20px;
}

.picture-filename {
  font-weight: bold;
  font-size: 1.1em;
  color: #2c3e50;
  margin-bottom: 10px;
}

.picture-description {
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.picture-meta {
  font-size: 0.9em;
  color: #7f8c8d;
}

.picture-meta div {
  margin-bottom: 5px;
}

.meta-icon {
  display: inline-block;
  width: 20px;
  text-align: center;
}

.location-info {
  color: #27ae60;
  font-weight: 500;
}

.date-info {
  color: #8e44ad;
}

.no-pictures {
  text-align: center;
  color: #7f8c8d;
  font-size: 1.2em;
  margin-top: 50px;
}

.loading {
  text-align: center;
  color: #7f8c8d;
  font-size: 1.2em;
  margin-top: 50px;
}

/* Modal styles for full-size image viewing */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 90%);
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

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

.error-message {
  text-align: center;
  color: #e74c3c;
  font-size: 1.2em;
  margin-top: 50px;
}

@media (width <= 768px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .picture-card {
    margin-bottom: 20px;
  }

  .admin-link,
  .map-link {
    position: static;
    display: inline-block;
    margin: 10px 10px 0 0;
    font-size: 0.9em;
    text-align: center;
  }
}
