.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ====== FUN CARD LOOK & FEEL ====== */

/* Grid stays tidy */
.wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

/* Each card (the <li> inside Post Template) */
.wp-block-post-template li {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border-radius: 16px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,.85), rgba(255,255,255,.9)),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.8));
  box-shadow:
    0 1px 0 rgba(0,0,0,.04),
    0 6px 16px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Hover “lift” */
.wp-block-post-template li:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 0 rgba(0,0,0,.04),
    0 12px 28px rgba(0,0,0,.12);
  border-color: rgba(0,0,0,.10);
}

/* Category/title link at top */
.wp-block-post-template li a:first-of-type {
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  color: #173d7a;            /* your Michelle Directory blue */
}
.wp-block-post-template li a:first-of-type:hover { text-decoration: underline; }

/* Setup & punchline typography */
.wp-block-post-template li p { 
  margin: 0 0 8px;
  line-height: 1.35;
}
.wp-block-post-template li p strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

/* Optional: clamp long setups so cards stay even (remove if you want full text) */
@supports (-webkit-line-clamp: 3) {
  .wp-block-post-template li p:not(:has(strong)) {
    display: -webkit-box;
    -webkit-line-clamp: 4;      /* show up to 4 lines of setup */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Cute divider before votes */
.wp-block-post-template li::after {
  content: "";
  display: block;
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
}

/* ====== UPVOTES PINNED & STYLED ====== */
.joke-upvotes {
  margin-top: auto;         /* pins to bottom */
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

/* Vote buttons (assuming they’re buttons/links inside .joke-upvotes) */
.joke-upvotes button,
.joke-upvotes a[role="button"] {
  appearance: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f7ff;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.joke-upvotes button:hover,
.joke-upvotes a[role="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23,61,122,.18);
  background: #edf1ff;
}
.joke-upvotes button:active,
.joke-upvotes a[role="button"]:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 0 rgba(0,0,0,.08);
}

/* Upvote count badge */
.joke-upvotes .count,
.joke-upvotes .score {
  padding: 6px 10px;
  border-radius: 999px;
  background: #173d7a;
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 3px 8px rgba(23,61,122,.25);
}

/* ====== EXTRA POLISH ====== */

/* Subtle emoji confetti on hover (pure CSS, no perf hit) */
.wp-block-post-template li:hover::before {
  content: "😂";
  position: absolute;
  transform: translate(-8px, -12px) rotate(-8deg);
  opacity: .08;
  font-size: 48px;
  pointer-events: none;
}

/* Focus styles for accessibility */
.wp-block-post-template li:focus-within {
  outline: 2px solid #173d7a;
  outline-offset: 2px;
  border-radius: 18px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wp-block-post-template li,
  .joke-upvotes button,
  .joke-upvotes a[role="button"] { transition: none; }
  .wp-block-post-template li:hover { transform: none; }
}
