/* ==========================================================================
   FONTES PERSONALIZADAS
========================================================================== */
@font-face {
  font-family: 'Turnery';
  src: url('font/Turnery-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'TrizP-Light';
  src: url('font/TrizP-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Basier-Circle-Regular';
  src: url('font/Basier-Circle-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   TIPOGRAFIA GLOBAL
========================================================================== */
body,
h1, h2, h3, h4, h5, h6,
p, small, a, button,
ul, ol, li, nav, span,
div, label, input,
select, textarea {
  font-family: 'Turnery', Arial, sans-serif;
}

/* ==========================================================================
   CABEÇALHO / HEADER
========================================================================== */
.logo-header {
  margin-left: 15px;
}

.email-header {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #555;
}

/* ==========================================================================
   NAVEGAÇÃO / MENU
========================================================================== */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  height: 40px;
  width: 80px;
}

.navbar-toggler.d-none {
  display: none !important;
}

.custom-toggler-icon {
  display: inline-block;
  width: 32px;
  height: 24px;
  position: relative;
}

.custom-toggler-icon::before,
.custom-toggler-icon::after,
.custom-toggler-icon .dot {
  content: '';
  display: block;
  position: absolute;
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.custom-toggler-icon::before { left: 0; }
.custom-toggler-icon .dot { left: 20px; }
.custom-toggler-icon::after { left: 40px; }

/* ==========================================================================
   CONTEÚDO DO POST
========================================================================== */
.post-header {
  margin: 60px auto 0;
  text-align: center;
}

.post-title,
.post-header h1 {
  font-family: 'TrizP-Light', Arial, sans-serif !important;
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 120px auto;
  max-width: 500px;
  padding-left: 20px;
  padding-right: 20px;;
}

.post-meta,
.post-header .year-line-container {
  position: relative;
  margin: 0 auto;
}

.post-divider,
.post-header .year-line-container::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #111;
}

.post-year,
.post-header .year-label {
  display: block;
  font-size: 1.1rem;
  padding-bottom: 5px;
}

.post-main,
main.post-content {
  margin: 0 auto 40px;
  padding: 0;
  text-align: center;
}

.post-image,
.post-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
  padding: 0 20px;
}

@media (max-width: 576px) {
  .post-image {
    padding: 0 20px;
  }
}

.post-caption {
  font-size: 0.95rem;
  color: #444;
}

.post-content,
.post-text {
  text-align: left;
  margin: 40px auto 100px;
  max-width: 700px;
}

.post-paragraph,
.post-text p {
  font-size: 1.08rem;
  line-height: 1.6;
  font-family: 'Basier-Circle-Regular', Arial, sans-serif !important;
}

/* ==========================================================================
   SEÇÕES DO POST
========================================================================== */
.post-section {
  border-top: 1px solid #000;
  padding-bottom: 50px;
}

.post-section-title {
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Turnery', Arial, sans-serif;
  margin-top: 5px;
}

.post-figure {
  margin-bottom: 150px;
}

.post-quote {
  text-align: center;
  font-size: 1.25rem;
  font-family: 'TrizP-Light', Arial, sans-serif;
  font-style: italic;
  margin: 30px auto;
}

/* ==========================================================================
   BOTÃO VOLTAR AO TOPO
========================================================================== */
#back-to-top-container,
.back-to-top-container {
  width: 100%;
  text-align: center;
  margin: 40px 0 60px;
  font-family: 'TrizP-Light', Arial, sans-serif !important;
}

#back-to-top {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.back-to-top-arrow {
  font-size: 1.2rem;
  line-height: 1;
  margin-bottom: 2px;
}

.back-to-top-text {
  font-size: 1rem;
}

/* ==========================================================================
   GALERIA DE IMAGENS
========================================================================== */
#gallery {
  margin-bottom: 100px;
  font-family: 'TrizP-Light', Arial, sans-serif !important;
}

#gallery .col.item {
  height: 240px;
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 0 !important;
}

.gallery-item-container {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 10px;
  padding-bottom: 2px;
  background: #fff;
  border-bottom: 1px solid #111;
  overflow: hidden;
  text-decoration: none;
}

.gallery-item-container img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  padding: 12px 12px 8px;
  max-height: calc(100% - 56px);
}

.gallery-caption-row {
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 36px;
  padding: 8px 12px 4px;
  font-size: 0.95em;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.gallery-title,
.gallery-year {
  pointer-events: auto;
  word-break: break-word;
  line-height: 1.2;
  font-size: 0.85rem !important;
  text-align: left;
}

.gallery-year {
  min-width: 48px;
  font-size: 0.75rem !important;
  text-align: right;
}

#gallery .col.item span {
  font-size: 0.85rem !important;
}

#gallery .item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}

#gallery .item.fade-out,
#gallery .item.fading-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

#gallery .item.hidden {
  display: none !important;
}

#gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

#gallery p {
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================================================
   FILTRO LATERAL
========================================================================== */
#categoryFilter {
  transition: all 0.3s ease;
  padding: 50px 40px;
}

#categoryFilter h5 {
  text-transform: uppercase;
  font-family: 'TrizP-Light', Arial, sans-serif !important;
  margin-bottom: 24px;
}

#categoryFilter ul {
  padding-left: 0;
}

#categoryFilter li {
  font-weight: bold;
}

/* ==========================================================================
   BOTÕES DE FILTRO
========================================================================== */
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
  color: #333;
  padding: 4px 8px;
  font-weight: bold;
  text-align: left;
}

.filter-toggle::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #333;
  border-radius: 50%;
  background-color: transparent;
  margin-right: 8px;
  transition: background-color 0.3s ease;
}

.filter-toggle.active::before {
  background-color: #111;
}

.filter-toggle:hover {
  color: #000;
}

/* ==========================================================================
   LINKS
========================================================================== */
a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   GRADE DE IMAGENS (MASONRY)
========================================================================== */
#imageGrid {
  column-count: 2;
  column-gap: 16px;
}

@media (min-width: 768px) {
  #imageGrid {
    column-count: 3;
  }
}

#imageGrid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  border-radius: 6px;
  break-inside: avoid;
}

/* ==========================================================================
   AJUSTES EM IMAGENS
========================================================================== */
.post-image,
#imageGrid img,
.img-fluid {
  border-radius: 0;
}

/* ==========================================================================
   RESPONSIVIDADE
========================================================================== */
@media (max-width: 991.98px) {
  #categoryFilter {
    display: none;
    margin-top: 10px;
  }

  .post-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 575.98px) {
  .logo-header {
    width: 180px;
    min-width: 80px;
    height: auto;
    max-width: 40vw;
  }
  
}

/* ==========================================================================
   CRÉDITOS
========================================================================== */
.credit-list {
  text-align: center;
  font-family: 'Basier-Circle-Regular', Arial, sans-serif;
  list-style-type: none;
  padding-left: 0;
}

.credit-item {
  margin: 18px 0;
}
