header {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
}

main {
  width: 80%;
  margin: 0 auto;
  flex: 1;
}

footer {
  display: flex;
  justify-content: center;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #E5E4E2 !important;
}

.single-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-header h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.text-columns {
  display: flex;
  justify-content: center;
  gap: 2rem;              /* espaço entre as colunas */
  flex-wrap: wrap;        /* permite que empilhem quando faltar espaço */
  margin: 2rem auto;
  max-width: 1000px;      /* largura máxima do conjunto */
  padding: 0 1rem;        /* espaçamento lateral */
}

.text-block {
  flex: 1 1 45%;          /* baseia cada bloco em ~45% do espaço */
  min-width: 280px;       /* evita colunas muito estreitas */
  line-height: 1.6;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 2fr));
  align-items: start;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.portfolio-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.portfolio-content img {
  display: block;
  max-width: 70%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 10px;;
}

.portfolio-content audio {
  display: block;
  margin: 2rem auto;
  width: 100%;
  max-width: 500px;
}

.horizontal-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  list-style: none;        /* remove os marcadores */
  padding: 0;
  margin: 2rem auto;
  flex-wrap: wrap;         /* faz quebrar linha no celular */
  max-width: 1000px;
}

.item-title {
  display: block;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

.horizontal-list li {
  text-align: center;
  flex: 1 1 200px;         /* largura flexível mínima */
}

.horizontal-list li p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.horizontal-list li img {
  width: 100%;
  max-width: 220px;        /* limite de tamanho */
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.horizontal-list li img:hover {
  transform: scale(1.05);
}

/* Responsividade — empilha os itens em telas pequenas */
@media (max-width: 700px) {
  .horizontal-list {
    flex-direction: column;
    align-items: center;
  }
}

/* Container geral — grid responsivo */
.audio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartão individual de áudio */
.audio-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Capa do álbum */
.audio-cover {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 1rem;
  height: auto;
}

/* Título e player */
.audio-info h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #222;
}

audio {
  width: 100%;
  max-width: 250px;
  outline: none;
}

/* Responsividade extra */
@media (max-width: 768px) {
  .audio-gallery {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .audio-card {
    padding: 1.2rem;
  }
}
