@charset "utf-8";
/* CSS Document */

/**_thumbnail_grid**/
.thumbnailWrapper {margin: 0 auto;padding: 10px 0;box-sizing: border-box;display: flex;flex-wrap: wrap;justify-content: center;gap: 10px;font-size:0.8em;}
.thumbnailContainer {height: auto;flex: 0 1 175px;display: flex;padding: 4px;flex-direction: column;justify-content: space-between;box-sizing: border-box;background-color: #fff;border: 1px solid #ddd;border-radius: 5px;text-align: left;line-height: normal;transition: box-shadow 0.3s ease;}
.thumbnailContainer:hover {box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.35);}
.thumbnail a {text-decoration: none;font-weight: normal;color: #000;}
.thumbnail a img {width: 100%;max-width: 175px !important;height: auto;display: block;margin: 0 auto 10px auto;}
.pagelistTitle {font-weight: bold;margin-bottom: 6px;}
.pagelistDate { padding: 0 0 10px 20px;font-style: italic;background-image: url("blog-clock.png");background-repeat: no-repeat;background-position: 4px top;font-size: 0.9em;}
.pagelistDescription {margin-top: auto;font-size: 0.9em;line-height: 1.4em;}

/* === MMG Pagination (template-scoped) === */

/* Container & centering */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .375rem;                 /* space between buttons */
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0 0;
}

/* Items */
.page-item { display: block; }

/* Links / buttons */
.page-link {
  display: block;
  min-width: 2.25rem;
  padding: .5rem .75rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  font-size: .95rem;
  border: 1px solid #d1d5db;   /* gray-300 */
  border-radius: .5rem;
  background: #fff;
  color: #1f2937;              /* slate-800 */
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease;
}

/* Hover/focus for clickable items only */
.page-item:not(.disabled):not(.active) .page-link:hover {
  background: #f8fafc;         /* slate-50 */
  border-color: #b9c3cf;       /* slightly darker */
  color: #0f172a;              /* slate-900 */
}

.page-item:not(.disabled) .page-link:focus {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25); /* primary focus ring */
}

/* Active (current page) */
.page-item.active .page-link,
.page-link[aria-current="page"] {
  background: #2563eb;         /* primary */
  border-color: #2563eb;
  color: #fff;
  cursor: default;
}

/* Disabled (Prev/Next at ends or ellipsis) */
.page-item.disabled .page-link {
  color: #9aa3af;              /* gray-400 */
  background: #f3f4f6;         /* gray-100 */
  border-color: #e5e7eb;       /* gray-200 */
  cursor: not-allowed;
}

/* Make Prev/Next a bit wider for easier tap targets */
.page-item.prev .page-link,
.page-item.next .page-link {
  padding-inline: .9rem;
}

/* Optional: style an ellipsis node (if you output one as disabled) */
.page-item.disabled .page-link[onclick*="return false"],
.page-item.disabled .page-link[data-ellipsis="true"] {
  background: transparent;
  border: none;
  padding: .5rem .5rem;
  color: #6b7280;              /* gray-500 */
}

/* Visually hidden utility (for "(current)" text) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .page-link {
    min-width: 2rem;
    padding: .45rem .6rem;
    font-size: .9rem;
  }
}

/* Optional dark mode */
@media (prefers-color-scheme: dark) {
  .page-link {
    background: #0b1220;
    border-color: #243044;
    color: #dce3ee;
  }
  .page-item:not(.disabled):not(.active) .page-link:hover {
    background: #121a2b;
    border-color: #31425e;
    color: #fff;
  }
  .page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #0b1220;
  }
  .page-item.disabled .page-link {
    background: #0e1525;
    border-color: #1c273a;
    color: #56627a;
  }
}


@media (max-width: 768px) {
  .thumbnailContainer {flex: 0 1 48%;}}
@media (max-width: 450px) {
  .thumbnailContainer:nth-of-type(n+3) {display: none;}}