#media {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  justify-content: center;
}

#p-media {
  margin-bottom: 30px;
}

#media > .blur {
  background-color: var(--color-d);
  width: 400px;
  height: 500px;
  top: 20px;
  right: 20%;
  border-radius: 300px;
}

#media p {
  max-width: 700px;
}

#media .media-wall-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

#media .media-wall {
  flex: 1 1 45%; /* Allows two columns with some spacing */
  box-sizing: border-box;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content */
  padding: 0;
  max-width: 460px;
  min-width: 350px;
}

.card {
  opacity: 0.9;
  background-color: #0000002c;
  padding: 20px 25px;
  border-radius: 10px;
  margin: 10px;
  border: 1px solid #ffffff14;
  width: 100%; 
  border-radius: 5px;
  border-radius: 10px;
  position: relative;
}

.card p {
  text-align: center;
}

.card h4 {
  text-align: center;
}

/* Audio player styling - responsive and similar to images */
.audio-recorder {
  width: 100%;
  background-color: #1f1f1f;
  border-bottom: 1px solid #ffffff14;
  border-left:  1px solid #ffffff14;
  border-right:  1px solid #ffffff14;
  display: flex;
  margin-top: -5px;
  justify-content: center;
  align-items: center;
  height: fit-content;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#media img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ffffff14;
}

#media .audio-image {
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

@media (max-width: 800px), (max-height: 700px) {
  .media-wall {
    flex: 1 1 100%; /* Stack columns on smaller screens */
    margin: 0 10px !important;
    padding: 0 !important;
  }
  .card {
    margin-bottom: 10px !important;
  }
}