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

  .gallery img {
    height: 150px;
  }
}
body {
  margin: 0;
  font-family: sans-serif;
  background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

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

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 5px solid black;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

/* Premium effect */
.premium-image {
  filter: blur(8px);
  position: relative;
}

/* Optional overlay label */
.premium-image::after {
  content: "Premium";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Modal */
.modal {
  display: none;
  opacity: 0;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

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

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.premium-image {
  filter: blur(5px);
  pointer-events: auto;
}
.premium-image:hover {
  filter: blur(5px) brightness(0.8);
  cursor: not-allowed;
}
