.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  text-align: center;
}

@media (max-width: 768px) {
  #content-wrap,
  #fullwidth {
    width: 100%;
    padding-left: 0px !important;
    padding-right: 0px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .category-list {
    grid-template-columns: 1fr;
  }
}

.entry-content ul.category-list,
.entry-content ul.category-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category-list .image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-list .image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.category-list .grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.category-list .grid-2x2 .grid-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-list .grid-2x2 img,
.category-list .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


  /* Replicate theme */

/* Base title element (same font and rhythm as theme) */
.category-title a {
    font-family: 'Josefin Sans', Tahoma, serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.5em;
    margin: 10px 0 0 0;
    padding: 0;
}

.category-caption {
    font-family: 'Josefin Sans', Tahoma, serif;
    color: #7f7f7f !important;
    line-height: 1.5em;
    margin: 10px 0 0 0;
    padding: 0;
}

/* --- TITLE LINK: reproduce tag page look & behavior --- */
/* Start grey, no underline, animate color smoothly */
.category-title a {
    color: #000000 !important;                           /* base grey was #7f7f7f*/
    text-decoration: none !important;         /* beat global underline */
    transition: color .5s ease !important;               /* smooth color transition */
}

/* Hover/focus/active: exact blue you provided, still no underline */
.category-title a:hover,
.category-title a:focus,
.category-title a:active,
.category-title a:visited:hover {
    color: #3d53ff !important;                           /* exact tag-page blue */
    text-decoration: none !important;
}

/* Keep visited the same grey (adjust if your tag page differs) */
.category-title a:visited {
    color: #7f7f7f;
    text-decoration: none !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .category-title a { transition: none; }
}