#primekit-templates-content-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.primekit-single-template-item {
  background: #fff;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  transition: 0.3s ease-out;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 16px;
  padding: 10px;
}
#primekit-templates-pagination-wrapper {
  margin-top: 20px;
}
.primekit-loading {
  width: 80px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 100%;
  animation: loading 1s infinite linear;
}
@keyframes loading {
  33% {
    background-size: calc(100% / 3) 0%, calc(100% / 3) 100%, calc(100% / 3) 100%;
  }
  50% {
    background-size: calc(100% / 3) 100%, calc(100% / 3) 0%, calc(100% / 3) 100%;
  }
  66% {
    background-size: calc(100% / 3) 100%, calc(100% / 3) 100%, calc(100% / 3) 0%;
  }
}

.primekit-template-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.primekit-single-template-item:before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 99;
  position: absolute;
  border-radius: 5px;
  top: 0px;
  left: 0px;
  transform: scale(0);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}
.primekit-single-template-item:hover::before {
  transform: scale(1);
  visibility: visible;
  opacity: 0.7;
  transition: 0.3s;
}
.primekit-template-footer {
    position: absolute;
    top: 150%;
    left: 50%;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    gap: 15px;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}
.primekit-single-template-item:hover .primekit-template-footer {
    visibility: visible;
    opacity: 1;
    transition: 0.3s;
    top: 50%;
}
.primekit-template-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.primekit-template-footer h2 {
  color: #fff;
  margin: 0;
  font-size: 23px;
    line-height: 1.3em;
}
.primekit-template-buttons a {
  background-color: #055346;
  font-family: Inter, sans-serif;
  min-width: 100px;
  font-size: 15px;
  cursor: pointer;
  color: rgb(255, 255, 255);
  border-width: 1px;
  border-style: solid;
  border-color: #055346;
  border-image: initial;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
  display: flex;
  text-decoration: none;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.primekit-template-buttons a:hover {
  background-color: #011f1a;
  transition: 0.3s;
  border-color: #012e27;
}
.primekit-pagination .primekit-page-btn.button-primary {
  background-color: #055346;
  border-color: #055346;
  color: #fff;
}
.primekit-pagination .primekit-page-btn.button-primary.current-page, .primekit-pagination button.button.primekit-page-btn:hover {
  background-color: #011f1a;
  border-color: #011f1a;
  color: #fff;
}
