article figure{
  float: right; 
  margin: 0 0 1rem 1rem; 
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
}
article section {
  overflow: hidden;
  padding-top: 1.5em;
}
header nav:nth-of-type(2) {
  flex-direction: row-reverse;
}
header ul:nth-of-type(2){
  max-width: 90%;
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}
.li {
  padding-top: 0;
  padding-bottom: 0;
}
.grid h3{
  font-size: 1.125rem;
  height: 1.225;
}
.page-type-category figure{
  float: none;
  max-width: 100%;
  margin:0;
}
.page-type-category article article{
  max-width: 455px;
}
@media screen and (max-width: 768px) {
  article figure{
      float: none; 
      max-width: 100%;
      margin: 1rem 0;
  }
}

/* Category Showcase widget */
.category-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.category-showcase .showcase-group,
.category-showcase .showcase-remainder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-showcase .group-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.category-showcase .group-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.category-showcase .grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-showcase .grid article {
  margin: 0;
}

.category-showcase .grid a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.category-showcase .grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.category-showcase .grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-showcase .grid h3 {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  gap: 8px;
  align-items: center;
}

.category-showcase .badge {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.category-showcase .pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-showcase .pagination a {
  color: var(--link-color, #0070f3);
  text-decoration: none;
  font-weight: 600;
}

.category-showcase .pagination .disabled {
  color: #9ca3af;
}

.category-showcase .pagination .page-number {
  color: #4b5563;
}
