body{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.image-slide-vview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 20px;
}

.slides {
  flex: 1 1 250px;
  max-width: 300px;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slides img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
}

.slides form {
  width: 100%;
  margin-bottom: 10px;
}

.slides input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

.slides button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slides button:hover {
  background-color: #0056b3;
}

.slides form:last-child button {
  background-color: #dc3545;
}

.slides form:last-child button:hover {
  background-color: #c82333;
}

@media screen and (max-width: 768px) {
  .image-slide-vview {
    flex-direction: column;
    align-items: center;
    padding: 15px 15px; /* ✅ fix here: equal left & right padding */
  }

  .slides {
    width: 100%;
    max-width: 90%;
  }

  .slides button {
    font-size: 14px;
    padding: 9px;
  }
}
