.modules:not(.tiny) {
  padding: 3rem 2rem;
}
.modules.has-bg-color {
  background:var(--wp--preset--color--tertiary);
}
.modules .alignwide {
  width: 100%;
  max-width: var(--alignwide);
  margin: 0 auto;
}
.modules h2.module-list-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
}
.modules p.module-list-description {
  color:var(--wp--preset--color--text-grey);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.module-link {
  text-decoration: none;
  color:inherit;
}
.module-list {
  max-width: var(--alignwide);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap:clamp(0.5rem, 1.5vw, 2rem);
}
@media all and (min-width:600px) {
  .module-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media all and (min-width:768px) {
  .module-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media all and (min-width:1080px) {
  .module-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.module-list.tiny {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.module-item {
  border-radius: 1rem;
  overflow: hidden;
  background: white;
  display: flex;
  transition: box-shadow 200ms ease;
  box-shadow: 0 2px 8px rgba(0 0 0 / 10%);
  border: 1px solid #d5d5d5;
  transform: translateZ(0);
}
@supports not (gap:clamp(0.5rem, 1.5vw, 2rem)) {
  .module-item {
    margin-bottom: 1rem;
  }
}
.module-item:hover {
  box-shadow: 0 3px 20px rgba(0 0 0 / 20%);
  border: 1px solid var(--border-hover, #333);
}
.module-item_image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 75px;
  height: 75px;
  flex: none;
  border:4px solid;
  border-radius:1em;
  margin:10px;
}
.module-item_image img {
  height: 60%;
  width: 75%;
  object-fit: contain;
  object-position: center center;
  transition: all 100ms ease-in-out;
}
.module-item.tiny .module-item_image {
  width:44px;
}
.module-item:hover .module-item_image {
  filter: brightness(1.15);
}
.module-item:hover img {
  transform:scale(1.1);
}
.module-item_desc {
  padding: 0.9rem;
  box-sizing: border-box;
}
.module-item h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-decoration: none;
}
.module-item:hover h2 {
  color:var(--border--hover);
}
.module-item.tiny {
  border-radius: 0.6rem;
  box-shadow: 0 3px 6px rgba(0 0 0/10%);
}
.module-item.tiny h2 {
  font-size: 0.8rem;
}
.module-item.tiny .module-item_desc {
  padding: 0.7rem;
}
.module-item p {
  font-size: 12px;
  color:var(--wp--preset--color--grey);
  text-decoration: none;
  margin: 0.5em 0 0 0;
  line-height: 1.3;
}
