/* ==========================================================================
   PÁGINA: ARQUIVO FOTOGRÁFICO (assets/css/arquivo-fotografico.css)
   Galeria Visual Contemporânea, Modal Lightbox Nativo, Filtros & Curadoria
   Diretrizes Estritas:
   - Zero sombras (box-shadow: none !important)
   - Sem linhas divisórias duras
   - Tipografia limpa sans-serif (Inter & Plus Jakarta Sans)
   - Imagens do Cloudflare R2
   - Performance impecável com aspect-ratio e lazy loading
   ========================================================================== */

/* Seção Principal da Galeria */
.foto-gallery-section {
  background-color: #FFFFFF;
  padding: 4.5rem 1.5rem 6.5rem;
}

.foto-container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Bloco de Introdução com Totem Afro */
.foto-intro-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.foto-totem-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.foto-totem-img {
  width: 54px;
  height: auto;
  opacity: 0.95;
  display: block;
}

.foto-intro-kicker {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #950221;
  margin-bottom: 0.75rem;
}

.foto-intro-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.foto-intro-desc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #475569;
  margin: 0;
}

/* Toolbar de Filtros e Busca */
.foto-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem 1.5rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: none !important;
}

/* Pills de Coleções / Filtros */
.foto-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.foto-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background-color: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.foto-pill-btn:hover {
  background-color: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.foto-pill-btn.is-active {
  background-color: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
}

.foto-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  background-color: #F1F5F9;
  color: #475569;
}

.foto-pill-btn.is-active .foto-pill-badge {
  background-color: #950221;
  color: #FFFFFF;
}

/* Campo de Busca Rápida */
.foto-search-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
}

.foto-search-icon {
  position: absolute;
  left: 0.85rem;
  color: #94A3B8;
  pointer-events: none;
}

.foto-search-input {
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 2.45rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  color: #0F172A;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-shadow: none !important;
}

.foto-search-input:focus {
  background-color: #FFFFFF;
  border-color: #950221;
}

.foto-search-clear {
  position: absolute;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background-color: #F1F5F9;
  border-radius: 8px;
  color: #64748B;
  cursor: pointer;
}

/* Informação de Contagem */
.foto-status-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  /* border-line removed */ border-bottom: none;
}

.foto-status-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.foto-status-count {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748B;
}

/* Grid de Imagens da Galeria */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card Individual de Fotografia */
.foto-card {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: none !important;
}

.foto-card:hover {
  transform: translateY(-3px);
  border-color: #950221;
}

.foto-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #0F172A;
  overflow: hidden;
}

.foto-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.foto-card:hover .foto-card-img {
  transform: scale(1.05);
}

/* Overlay de Zoom */
.foto-card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

.foto-card:hover .foto-card-hover-overlay {
  opacity: 1;
}

.foto-card-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #950221;
  border: none;
  box-shadow: none !important;
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.foto-card:hover .foto-card-zoom-btn {
  transform: scale(1);
}

.foto-card-caption-box {
  padding: 1.15rem 1.25rem;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.foto-card-collection-tag {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #950221;
  margin-bottom: 0.35rem;
}

.foto-card-caption {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #1E293B;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botão Carregar Mais por Etapas */
.foto-load-more-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.foto-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background-color: #FFFFFF;
  color: #1E293B;
  border: 1px solid #CBD5E1 !important;
  border-radius: 8px;
  padding: 0.8rem 2.25rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.foto-load-more-btn:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8 !important;
  color: #0F172A;
  transform: translateY(-1px);
}

.foto-load-more-btn svg {
  color: #64748B;
  transition: transform 0.2s ease;
}

.foto-load-more-btn:hover svg {
  color: #0F172A;
  transform: translateY(2px);
}

/* ==========================================================================
   HOMENAGEM EDITORIAL: JANUÁRIO GARCIA (1943-2021)
   Padrão Claro Institucional: Fundo Cinza Neutro (#F8FAFC) com Card Branco (#FFFFFF)
   ========================================================================== */
.foto-januario-section {
  background-color: #F8FAFC;
  color: #0F172A;
  padding: 5.5rem 1.5rem 6.5rem;
  position: relative;
  /* border-line removed */ border-top: none;
}

.foto-januario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.foto-januario-quote-box {
  border-left: 3px solid #950221;
  padding-left: 1.75rem;
  margin-bottom: 2rem;
}

.foto-januario-quote {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: #0F172A;
  margin: 0 0 1rem;
}

.foto-januario-author {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748B;
  display: block;
}

.foto-januario-bio {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.foto-januario-topic {
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none !important;
}

.foto-januario-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #950221;
  margin-bottom: 0.65rem;
}

.foto-januario-topic p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.985rem;
  font-weight: 400;
  line-height: 1.8;
  color: #334155;
  margin: 0;
  text-align: justify;
}

.foto-januario-topic p strong {
  font-weight: 700;
  color: #0F172A;
}

.foto-januario-card-highlight {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: none !important;
}

.foto-januario-badge {
  display: inline-block;
  background-color: #950221;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.foto-januario-card-highlight h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 1rem;
}

.foto-januario-card-highlight p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #64748B;
  margin: 0 0 1.5rem;
}

.foto-januario-acknowledgement {
  padding: 1.15rem;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #2581CC;
  border-radius: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* ==========================================================================
   MODAL LIGHTBOX NATIVO E ELEGANTE (ACESSIBILIDADE & TECLADO ESC)
   ========================================================================== */
.foto-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.foto-lightbox-backdrop.is-open {
  display: flex;
}

.foto-lightbox-dialog {
  position: relative;
  max-width: 1040px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background-color: #0F172A;
  border: 1px solid #334155;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none !important;
}

.foto-lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s ease;
}

.foto-lightbox-close-btn:hover {
  background-color: #950221;
  border-color: #950221;
}

.foto-lightbox-img-wrap {
  width: 100%;
  flex: 1;
  min-height: 280px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  overflow: hidden;
}

.foto-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.foto-lightbox-footer {
  padding: 1.25rem 1.75rem;
  background-color: #0F172A;
  /* border-line removed */ border-top: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.foto-lightbox-text {
  flex: 1;
}

.foto-lightbox-collection {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #950221;
  margin-bottom: 0.35rem;
}

.foto-lightbox-caption {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #F1F5F9;
  margin: 0;
}

.foto-lightbox-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.foto-lightbox-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #1E293B;
  border: 1px solid #334155;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.foto-lightbox-nav-btn:hover {
  background-color: #334155;
}

/* Responsividade */
@media (max-width: 1023px) {
  .foto-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: nowrap;
  }
  .foto-search-wrap {
    max-width: 360px;
    flex: 1 1 auto;
  }
  .foto-januario-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .foto-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .foto-search-wrap {
    max-width: 100%;
  }
  .foto-gallery-section {
    padding: 3.5rem 1.15rem 4.5rem;
  }
  .foto-grid {
    grid-template-columns: 1fr;
  }
  .foto-lightbox-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem;
  }
  .foto-lightbox-nav {
    justify-content: flex-end;
  }
}



@media (max-width: 768px) {
  .foto-intro-header {
    text-align: left;
    margin: 0 0 2.5rem;
  }
  .foto-intro-title {
    text-align: left;
  }
  .foto-intro-desc {
    text-align: left;
  }
  .foto-totem-wrap {
    justify-content: flex-start;
  }
}


@media (max-width: 768px) {
  .foto-intro-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 640px) {
  .foto-intro-desc,
  .foto-januario-card-highlight p,
  .foto-januario-acknowledgement {
    text-align: justify !important;
    text-justify: inter-word !important;
  }
}
