/* Amostra 14px/12px aprovada pelo proprietário em 14/10/2026. */
.gallery-label,
.intent-image small,
.image-credit,
.gallery-caption p {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
  color: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: none;
  opacity: 1;
}

.gallery-label,
.intent-image small,
.image-credit {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  padding: 13px 18px;
  background: #152027c7;
}

/* Mantém a fotografia visível mesmo quando a legenda ocupa várias linhas. */
.detail-gallery button {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
}

.detail-gallery img {
  height: auto;
  aspect-ratio: 1.45;
  flex: none;
}

.gallery-label {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 0 auto;
}

/* A faixa fica acima do conteúdo para preservar título, CTA e busca. */
.hero .image-credit {
  top: 10px;
  bottom: auto;
  left: 20px;
  right: 20px;
  z-index: 2;
  pointer-events: none;
}

.gallery-caption p {
  margin: 10px 0 15px;
  padding: 13px 18px;
  background: #152027c7;
}

@media (max-width: 560px) {
  .gallery-label,
  .intent-image small,
  .image-credit,
  .gallery-caption p {
    font-size: 12px;
    padding: 10px 12px;
  }

  .hero .image-credit {
    top: 8px;
    left: 12px;
    right: 12px;
  }

  .detail-gallery img {
    aspect-ratio: 1.1;
  }
}
