.shoe-size-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shoe-size-tags li {
  text-align: center;
}

@media (max-width: 768px) {
  .shoe-size-tags {
    grid-template-columns: 1fr;
  }
}

.entry-content ul.shoe-size-tags,
.entry-content ul.shoe-size-tags li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.shoe-size-tags .image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;   /* widescreen ratio */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shoe-size-tags .image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.shoe-size-tags .grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.shoe-size-tags .grid-2x2 .grid-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shoe-size-tags .grid-2x2 img,
.shoe-size-tags .image-wrapper img {
  width: 100%;
  height: 100
}
  
  /* Replicate theme */

/* Base title element (same font and rhythm as theme) */
.tag-footsize a {
    font-family: 'Josefin Sans', Tahoma, serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.5em;
    margin: 10px 0 0 0;
    padding: 0;
}

.tag-footcaption {
    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 */
.tag-footsize 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 */
.tag-footsize a:hover,
.tag-footsize a:focus,
.tag-footsize a:active,
.tag-footsize 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) */
.tag-footsize a:visited {
    color: #7f7f7f;
    text-decoration: none !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .tag-footsize a { transition: none; }
}