* {
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  margin: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fafafa;
  color: #212121;
  line-height: 1.5;
}

.gallery {
  display: grid;
  max-width: 1128px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 20px ;
  padding: 0;
  margin: 0;
  list-style: none;
}

.modal {
  max-width: 800px;
  max-height: 600px;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-content {
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: black;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  font-size: 32px;
  padding: 20px 15px;
  cursor: pointer;
  border-radius: 12px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  z-index: 1001;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.nav-btn:active {
  transform: scale(0.9);
}

.image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: cover;
}
