/* gallery.css */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8fafc;
  color: #23272f;
  margin: 0;
  padding: 0;
}

header {
  background: #2d3a4a;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(44,62,80,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px rgba(44,62,80,0.13);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
  transition: transform 0.2s;
}

.zoom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 34, 40, 0.95);
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.zoom-modal.active {
  display: flex;
  opacity: 1;
}

.zoom-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  background: #fff;
  margin: 0 50px;
  object-fit: contain;
}

.zoom-close {
  position: absolute;
  top: 32px;
  right: 48px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  z-index: 1002;
  transition: color 0.2s;
}

.zoom-close:hover {
  color: #e74c3c;
}

.zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 0 18px;
  user-select: none;
  z-index: 1001;
  background: rgba(44,62,80,0.22);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.zoom-prev {
  left: 24px;
}

.zoom-next {
  right: 24px;
}

.zoom-nav:hover {
  background: #1a73e8;
  color: #fff;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}


@media (max-width: 900px) {
  main {
    padding: 1rem 0.5rem;
  }
  .gallery-grid {
    gap: 1rem;
  }
  .gallery-item img {
    height: 140px;
  }
  .zoom-close {
    top: 18px;
    right: 18px;
    font-size: 2rem;
  }
  .zoom-image {
    margin: 0 10px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: 120px;
  }
  .zoom-image {
    max-width: 98vw;
    max-height: 60vh;
  }
  .zoom-close {
    top: 8px;
    right: 10px;
    font-size: 1.6rem;
  }
  .zoom-nav {
    font-size: 2rem;
    padding: 0 8px;
  }
}
