/* ═══════════════════════════════════════════════
   COMPONENTE: Galeria de Fotos (grid + cards)
   Usado em: Galeria, Evento (detalhe), Eventos
   ═══════════════════════════════════════════════ */

.cr-grid-fotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.cr-foto-card {
  padding: 12px;
  background: rgba(255, 252, 244, 0.56);
  border: 1px solid var(--cr-borda);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.08);
}

.cr-foto-card>a.cr-lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 360px;
  background: transparent;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.cr-foto-fonte-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  color: var(--cr-dourado);
  font-size: 0.8rem;
  padding: 6px 10px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.cr-foto-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
  filter: grayscale(0.18);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.cr-foto-card>a.cr-lightbox:hover img {
  transform: scale(1.015);
  filter: grayscale(0);
}

.cr-foto-card p {
  margin: 12px auto 0;
  max-width: 90%;
  line-height: 1.65;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .cr-grid-fotos {
    grid-template-columns: 1fr;
  }

  .cr-foto-card img {
    height: auto;
    max-height: 520px;
  }
}

@media (max-width: 640px) {
  .cr-foto-card {
    padding: 9px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.08);
  }

  .cr-foto-card>a.cr-lightbox {
    height: 300px;
  }
}