@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;1,400&display=swap");
.brickell-archive-layout {
  --color-bg-light: #f5f4f0;
  --color-text-dark: #2c251f;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --spacing-container: 5%;
  background-color: unset;
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  /* ARCHIVE HERO */
}
.brickell-archive-layout .archive-hero {
  padding-top: 12rem;
  padding-bottom: 4rem;
  padding-left: var(--spacing-container);
  padding-right: var(--spacing-container);
  max-width: 1400px;
  margin: 0 auto;
}
.brickell-archive-layout .archive-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
}
.brickell-archive-layout .archive-title .text-italic {
  font-style: italic;
}
.brickell-archive-layout .archive-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-dark);
  opacity: 0.7;
  max-width: 600px;
  margin-top: 0;
}
.brickell-archive-layout .section-padding {
  padding-left: var(--spacing-container);
  padding-right: var(--spacing-container);
  padding-bottom: 8rem; /* Equivalent to var(--spacing-section) */
}
.brickell-archive-layout {
  /* JOURNAL GRID inside QUERY LOOP */
}
.brickell-archive-layout .archive-journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  list-style: none; /* Because wp-block-post-template outputs an ul */
  padding: 0;
  /* Tablet */
}
@media (min-width: 768px) and (max-width: 1023px) {
  .brickell-archive-layout .archive-journal-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.brickell-archive-layout .archive-journal-grid {
  /* Mobile */
}
@media (max-width: 767px) {
  .brickell-archive-layout .archive-journal-grid {
    grid-template-columns: 1fr;
  }
}
.brickell-archive-layout .archive-journal-grid {
  /* Each post li generated by WP */
}
.brickell-archive-layout .archive-journal-grid li {
  margin: 0;
  padding: 0;
  display: block;
  /* This replicates .journal-card behavior */
}
.brickell-archive-layout .archive-journal-grid li:hover img {
  transform: scale(1.05);
}
.brickell-archive-layout .archive-journal-grid li .img-wrapper {
  overflow: hidden;
  display: block;
  margin-bottom: 1.5rem;
}
.brickell-archive-layout .archive-journal-grid li .img-wrapper img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.brickell-archive-layout .archive-journal-grid li {
  /* Allow masonry feel using pseudo-selector offset if needed, 
     though generic core/query output doesn't easily stagger elements. */
}
.brickell-archive-layout .archive-journal-grid li:nth-child(2n) .img-wrapper {
  /* We can add margin-top here on desktop if we want the staggered look like the static HTML */
}
@media (min-width: 1024px) {
  .brickell-archive-layout .archive-journal-grid li:nth-child(2n) .img-wrapper {
    margin-top: 4rem;
  }
}
.brickell-archive-layout .archive-journal-grid li .journal-card-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 400;
}
.brickell-archive-layout .archive-journal-grid li .journal-card-title a {
  color: inherit;
  text-decoration: none;
}
.brickell-archive-layout .archive-journal-grid li .text-md-muted {
  font-size: 0.9rem;
  color: #666;
  font-weight: 300;
  line-height: 1.6;
}
.brickell-archive-layout {
  /* ARCHIVE PAGINATION (query-pagination block) */
}
.brickell-archive-layout .archive-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-bottom: 0;
}
.brickell-archive-layout .archive-pagination .page-numbers, .brickell-archive-layout .archive-pagination .wp-block-query-pagination-numbers a, .brickell-archive-layout .archive-pagination .wp-block-query-pagination-numbers .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text-dark);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.brickell-archive-layout .archive-pagination .page-numbers:hover, .brickell-archive-layout .archive-pagination .wp-block-query-pagination-numbers a:hover, .brickell-archive-layout .archive-pagination .wp-block-query-pagination-numbers .current:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.brickell-archive-layout .archive-pagination .page-numbers.current, .brickell-archive-layout .archive-pagination .wp-block-query-pagination-numbers a.current, .brickell-archive-layout .archive-pagination .wp-block-query-pagination-numbers .current.current {
  background-color: var(--color-text-dark);
  color: var(--color-bg-light);
}
