.galeria-album-detail {
  min-height: 70vh;
}

.album-header {
  margin-bottom: 1.4rem;
}

.album-title {
  margin: 0;
  font-size: 40px;
  color: var(--black-main);
}

.album-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 920px;
}

.album-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-download-all,
.btn-download-single {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--red-main);
  transition: all 0.25s ease;
  padding: 0.5em;
}

.btn-download-all {
  color: var(--white);
  background: var(--red-main);
}

.btn-download-all:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.album-carousel-wrapper {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1rem;
  background: var(--white);
}

#albumCarousel {
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f4;
}

.carousel-item-album {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-item-album::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: rgba(255, 255, 255, 0.55);
  z-index: 0;
}

.album-main-image {
  width: 100%;
  min-height: 60vh;
  max-height: 60vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
}

.album-single-download {
  margin-top: 1rem;
}

.btn-download-single {
  color: var(--red-main);
  background: transparent;
}

.btn-download-single:hover {
  color: var(--white);
  background: var(--red-main);
}

.album-thumbs-carousel {
  margin-top: 1rem;
}

.thumbs-viewport {
  overflow: hidden;
  width: 100%;
}

.thumbs-track {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.26s ease;
  will-change: transform;
}

.thumb-btn {
  flex: 0 0 120px;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb-btn img {
  display: block;
  width: 100%;
  height: 85px;
  object-fit: cover;
}

.thumb-btn:hover {
  transform: translateY(-2px);
}

.thumb-btn.active {
  border-color: var(--red-main);
}

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--red-main);
  border: 1px solid var(--red-main);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-voltar:hover {
  background-color: var(--red-main);
  color: var(--white);
}

@media (max-width: 992px) {
  .album-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .album-title {
    font-size: 1.75rem;
  }

  .album-carousel-wrapper {
    padding: 0.75rem;
  }

  .album-main-image {
    max-height: 46vh;
  }

  .album-thumbs-carousel {
    margin-top: 0.75rem;
  }

  .thumbs-track {
    gap: 0.5rem;
  }

  .thumb-btn {
    flex-basis: 95px;
  }

  .thumb-btn img {
    height: 72px;
  }

  .album-main-image {
  min-height: 40vh;
  max-height: 40vh;
  }

  .album-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-download-all,
  .btn-download-single {
    width: 100%;
    justify-content: center;
  }
}
