/* Two-column grid for shortcode output */
.special-tags {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 20px; /* spacing between items */
  list-style: none; /* remove default bullets */
  padding: 0;
  margin: 0;
}

.special-tags li {
  text-align: center; /* center image + link */
}

/* Mobile: stack items in one column */
@media (max-width: 768px) {
  .special-tags {
    grid-template-columns: 1fr;
  }
}

.entry-content ul.special-tags,
.entry-content ul.special-tags li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Container that enforces 16:9 ratio */
.special-tags .image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio (9/16 = 0.5625) */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Zoom the whole wrapper on hover */
.special-tags .image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Image fills the container */
.special-tags .image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop to fill */
}
