body {
  margin: 0;
  background-color: #121212;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #1e1e1e;
}

h1 {
  margin: 0;
  font-size: 1.5em;
}

.visitor-count {
  font-size: 0.9em;
  color: #ccc;
  margin-left: 15px;
}

.contact-btn {
  padding: 6px 12px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.95em;
  transition: background-color 0.2s;
}

.contact-btn:hover {
  background-color: #555;
}

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

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
  border-radius: 5px;
}

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

.photo-number {
  font-size: 0.7em;
  color: #aaa;
  text-align: center;
  margin: 3px 0;
}

.info {
  padding: 8px;
  text-align: center;
  font-size: 0.9em;
}

.photo-date {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 3px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}

.modal img {
  max-width: 90%;
  max-height: 60%;
  border-radius: 5px;
}

.modal-description {
  color: #fff;
  margin-top: 10px;
  text-align: center;
  font-size: 1em;
}

.modal-date {
  color: #ccc;
  font-size: 1em;
  margin-top: 3px;
}

.modal-text {
  max-width: 900px;
  margin-top: 12px;
  padding: 0 10px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #ddd;
  text-align: center;
}

.modal-controls {
  margin-top: 15px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-controls button {
  padding: 5px 12px;
  font-size: 1em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background-color: #333;
  color: #fff;
  transition: background-color 0.2s;
}

.modal-controls button:hover {
  background-color: #555;
}

@media (max-width: 500px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .modal img {
    max-height: 50%;
  }
}
