/* Content */
div.main-content.templates section.templates-list {
  padding: 40px 0;
}

.masonry-grid {
  margin: 0 !important;
  column-count: 4;
  column-gap: 20px;
}

.masonry-item {
  display: grid;
  grid-template-rows: 1fr auto;
  margin-bottom: 20px;
  break-inside: avoid;
}

.template-preview-image-wrapper {
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
  max-height: 200px;
  margin-bottom: 15px;
}

.masonry-grid .template-preview-image-wrapper {
  max-width: 100%;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
  max-height: unset;
  margin-bottom: 15px;
}

.main-content.templates .preview {
  display: flex;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #262365;
  font-family: "Avenir", sans-serif !important;
  font-weight: normal;
  font-size: 20px;
  position: relative;
  color: #2a1c4a;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  background-color: #fafafa;
  overflow: hidden;
}

.main-content.templates article {
  position: relative;
}

.main-content.templates article::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  top: 2px;
  left: 2px;
  border-radius: 10px;
  filter: blur(2px);
  border: 1px solid #26236550;
  pointer-events: none !important;
}

.main-content.templates .preview img {
  max-width: 100%;
}

.template-title {
  font-size: 16px;
  font-weight: 500;
  font-family: "Geist", sans-serif !important;
  line-height: 1;
  text-align: left;
}

.template-category {
  font-size: 14px;
  font-weight: normal;
  font-family: "Avenir", sans-serif !important;
  line-height: 1;
  text-align: center;
  margin-top: 10px;
}

.main-content.templates .btns {
  background-color: rgba(26, 0, 188, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  box-shadow: 3px 0 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1;
  border-radius: 12px;
}

div.main-content.templates .btns-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  gap: 10px;
}

div.main-content.templates .btns-inner a, div.main-content.templates .btns-inner button {
  background-color: #fff;
  color: #432dd0;
  display: block;
  text-align: center;
  max-width: 200px;
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: bold;
  font-family: "Geist", sans-serif !important;
  border-radius: 50px;
  border: 1px solid #fff;
}

div.main-content.templates .btns-inner .outline {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.main-content.templates .preview:hover .btns {
  opacity: 1;
  pointer-events: all;
}

.content--count-wrapper {
  font-family: "Avenir", sans-serif !important;
  font-weight: normal;
  font-size: 18px;
  margin-bottom: 20px;
}

.main-content.templates .main-list.row article,
.main-content.templates .main-list.row .preview {
  height: 100%;
}

.template-icon-wrapper {
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
}

.template-icon-wrapper img {
  max-height: 100px;
}

.template-preview-info {
  padding: 20px;
}

.template-excerpt {
  font-size: 14px;
  font-weight: normal;
  font-family: "Avenir", sans-serif !important;
  line-height: 1;
  margin-top: 10px;
}

img.integrations_icon {
  position: absolute;
  height: 30px;
  right: 14px;
  top: 14px;
}

@media screen and (max-width: 1440px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media screen and (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

/* Pagination */

.pagination--templates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 40px;
  margin-left: 85px;
}

@media screen and (max-width: 992px) {
  .pagination--templates {
    margin-left: 0;
  }
}

.pagination--templates li a {
  font-family: "Geist", sans-serif !important;
  font-size: 24px;
  font-weight: 400;
  color: #3C10A6;
}

@media screen and (max-width: 992px) {
  .pagination--templates li a {
    font-size: 18px;
  }
}

.pagination--templates .pagination--buttons {
  min-height: 58px;
  min-width: 58px;
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #C6C4EA;
  background-color: rgb(38 35 101 / 9%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  filter: drop-shadow(4px 4px 4px rgba(39, 35, 101, 0.38));
  border-radius: 50%;
}

@media screen and (max-width: 992px) {
  .pagination--templates .pagination--buttons {
    min-height: 46px;
    min-width: 46px;
    width: 46px;
    height: 46px;
  }
  .pagination--templates .pagination--buttons svg {
    max-width: 26px;
  }
}

.pagination--templates .pagination--buttons.prev-button {
  transform: rotate(180deg);
}

.pagination--templates .pagination--buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination--templates li.current a {
  min-height: 58px;
  min-width: 58px;
  width: 58px;
  height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #C6C4EA;
  background-color: rgb(38 35 101 / 9%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  filter: drop-shadow(4px 4px 4px rgba(39, 35, 101, 0.38));
  border-radius: 50%;
  margin: 0 -8px;
}

@media screen and (max-width: 992px) {
  .pagination--templates li.current a {
    min-height: 46px;
    min-width: 46px;
    width: 46px;
    height: 46px;
  }
}

.pagination--templates li.dots {
  margin: 6px -8px 0;
}

