/* =========================
   Audio Gallery Layout (Desktop version)
========================= */
.audio-gallery {
  margin-top: 30px;
}

.audio-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.audio-item {
  width: 180px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease;
}

.audio-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #fff;
}

.audio-item:hover {
  transform: scale(1.05);
}

.audio-item p {
  margin-top: 10px;
  font-size: 1rem;
  color: #fff;
}

/* =========================
   Audio Player Styling (Same for all devices)
========================= */
#audio-player {
  display: block;
  margin: 0 auto;
  margin-top: 30px; /* Ensure spacing between player and gallery */
}

/* =========================
   Back to Home Button Styling
========================= */
.back-home-link {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #0056b3; /* Darker blue by default */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-home-link:hover {
  background-color: #007BFF; /* Lighter blue on hover */
}

/* =========================
   Mobile Layout - 2 items per row
========================= */
@media screen and (max-width: 768px) {
  .audio-item {
    width: calc(50% - 10px); /* 2 items per row with a little gap */
  }
  
  .audio-row {
    gap: 10px; /* Adjust the gap between items */
  }

  .back-home-link {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
