body {
  font-family: Arial, sans-serif;
  background-color: #fdf2af;
  margin: 0;
  padding: 0;
}

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

.container {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form input[type="submit"] {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

form input[type="submit"]:hover {
  background-color: #333;
}

.centre {
  text-align: center;
  margin-bottom: 2rem;
}

#artCollection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.card h2 {
  font-size: 1.3rem;
  margin: 0.5rem 0;
}

.card h4 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: #555;
}

.likeBtn {
  margin-top: 0.7rem;
  padding: 0.5rem 1rem;
  border: none;
  background-color: #ff3385;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.likeBtn:hover {
  background-color: #e6006b;
}


.artImage {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.artImage:hover {
  transform: scale(1.02);
}

.artDetails {
  text-align: left;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444;
}

.modal-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  max-width: 600px;
  max-height: 80vh;
  overflow: auto;
  border-radius: 8px;
  position: relative;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: none;
}

#modalImage {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

