:root {
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    background-color: #f5f5f5;
    color: #213547;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
  padding: 5px;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  background: white;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 75%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-item p {
  margin: 5px 0;
  font-size: 0.85em;
  color: #666;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  margin: 30px auto;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-description {
  color: white;
  margin-top: 20px;
  padding: 0 20px;
  font-size: 1.2em;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 16px;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  transition: background-color 0.3s ease;
  z-index: 1002;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

#prevBtn {
  left: 20px;
}

#nextBtn {
  right: 20px;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close:hover {
  color: #ddd;
}