body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #ff9a9e, #fad0c4);
  color: #333;
  text-align: center;
}

.container {
  margin-top: 100px;
}

.password-form {
  margin: 20px;
}

.password-form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.password-form button {
  padding: 10px 20px;
  margin-left: 10px;
  background: #ff4b5c;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.password-form button:hover {
  background: #ff1e3c;
}

.error-message {
  color: red;
  display: none;
}

.gallery-container {
  display: none;
  padding: 20px;
}

.gallery-header {
  margin-bottom: 20px;
}

.heart {
  color: red;
  animation: beat 1s infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-item p {
  margin-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: #444;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

.modal video {
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 20px; right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.caption {
  margin: 20px;
  color: #ccc;
}

/* Music Button */
.music-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px #ff4b5c; }
  to { box-shadow: 0 0 20px #ff4b5c; }
}
