.album-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.album {
  width: 100%;
  max-width: 500px;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.album-cover {
  background-color: #950e0e;
  color: #ddd;
  padding: 15px;
  text-align: center;
}

.album-cover:hover {
  background-color: #210303;
  color: rgba(252, 255, 50, 0.8);
}

.album-content {
  display: none;
  padding: 15px;
  background-color: #fff;
}

.album.open .album-content {
  display: flex;
  flex-direction: column; /* Default for mobile */
}

.album-content .media {
  margin-bottom: 15px;
}

.media img,
.media video {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

/* Lightbox styling */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  width: 80%;
  max-width: 800px;
}

.lightbox img {
  width: 100%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 50px;
  color: rgb(255, 255, 255);
  cursor: pointer;
}

.lightbox .close:hover {
  color: aquamarine;
}

/* Desktop view - Column layout for the album content */
@media (min-width: 768px) {
  .album.open .album-content {
    flex-direction: row; /* Change to row layout for larger screens */
    flex-wrap: wrap;
  }

  .album-content .media {
    width: calc(33.33% - 10px); /* 3 items per row in desktop */
    margin: 5px;
  }
}
