.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-bottom: 1px solid #c66628;
}

.gallery-item img {
  width: 100%;
  height: auto;
}

.gallery-item p {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

/* Reproductor */
#audio-container {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
  border: 1px solid #ccc;
  margin-top: 30px;
}

.audio-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
}

.audio-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  flex-wrap: nowrap;
  margin: 10px auto;
}

.audio-player .controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-player .controls i {
  color: #ff6600;
  font-size: 18px;
  cursor: pointer;
}

.audio-player .info {
  flex: 1;
  text-align: center;
  font-size: 14px;
  margin: 0 15px;
  white-space: nowrap;
}

.audio-player .progress-bar {
  display: flex;
  justify-content: center;
}

.audio-player .progress-bar input[type='range'] {
  width: 100%;
  accent-color: #ff6600;
}

.audio-player .time {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 0 15px;
  white-space: nowrap;
}

.audio-player .track-name-arabic {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .audio-player {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .audio-player .controls,
  .audio-player .info,
  .audio-player .progress-bar {
    margin: 0;
  }

  .audio-player .controls {
    gap: 5px;
  }

  .audio-player .progress-bar {
    flex: 1;
  }

  .audio-player .progress-bar input[type='range'] {
    width: 80%;
  }

  .info,
  .track-title {
    display: none;
  }
}

button {
  display: block;
  padding: 10px 20px;
  background-color: rgb(0, 123, 255);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 auto; /* Centra el botón horizontalmente */
}
