.breakdance .bde-post-list {
  max-width: 100%;
  width: 100%;
}

.breakdance .bde-post-list .ee-post-meta a,
.breakdance .bde-post-list .ee-post-title a,
.breakdance .bde-post-list .ee-post-taxonomy-item a {
  text-decoration: none;
}

/* Grid Layout */
.breakdance .bde-post-list .ee-posts {
  --bde-posts-per-row: 1;
  --bde-posts-gap: 20px;
  display: grid;
  grid-template-columns: repeat(var(--bde-posts-per-row), minmax(0, 1fr));
  gap: var(--bde-posts-gap);
  grid-auto-rows: auto;
}

/* List Layout */
.breakdance .bde-post-list .ee-posts-list {
  --bde-posts-per-row: 1;
}

/* Slider Layout */
.breakdance .bde-post-list .ee-posts-slider {
  --bde-posts-gap: 0px;
  display: flex;
  flex-wrap: nowrap!important;
}

.breakdance .bde-post-list .ee-post {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.breakdance .bde-post-list .ee-post-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.breakdance .bde-post-list .ee-post-image-link {
  width: 100%;
  flex-shrink: 0;
  order: 0;
}

.breakdance
.bde-post-list
.ee-post-image-link.ee-posts-image-left,
.breakdance
.bde-post-list
.ee-post-image-link.ee-posts-image-right {
  width: 25%;
}

.breakdance .bde-post-list .ee-post-image {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
}

.breakdance .bde-post-list .ee-post-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  object-fit: cover;
}

.breakdance .bde-post-list .ee-post-title {
  margin: 0 0 20px 0;
  text-align: left;
  font-size: 1.25em;
}

.breakdance .bde-post-list .ee-post-title a {
  color: inherit;
  display: block;
}

.breakdance .bde-post-list .ee-post-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  order: 2;
  font-size: 0.8125em;
}

.breakdance .bde-post-list .ee-post-meta-item {
  position: relative;
}

.breakdance .bde-post-list .ee-post-meta-item a {
  color: inherit;
}

.breakdance
.bde-post-list
.ee-post-meta-item:not(:last-child):after {
  content: ".";
  margin: 0 5px;
}

.breakdance
.bde-post-list
.ee-post-taxonomy-item:not(:last-child):after {
  content: "/";
  margin: 0 5px;
}

.breakdance .bde-post-list .ee-post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px 0;
  padding: 0;
  font-size: 0.875em;
  order: 3;
}

.breakdance .bde-post-list .ee-post-taxonomy-item {
  position: relative;
  list-style: none;
}

.breakdance .bde-post-list .ee-post-taxonomy-item a {
  color: inherit;
}

.breakdance .bde-post-list .ee-post-content {
  text-align: left;
  font-size: 0.875em;
  margin-bottom: 20px;
  order: 4;
}

.breakdance .bde-post-list .ee-post-content p {
  margin: 0;
}

.breakdance .bde-post-list .ee-post-button {
  margin-top: auto;
  order: 10;
}

/* Isotope Layout */
.breakdance .bde-post-list .ee-posts-isotope {
  --bde-posts-isotope-width: calc(100% / var(--bde-posts-per-row));
  --bde-posts-isotope-width-diff: calc(
    var(--bde-posts-gap) - (var(--bde-posts-gap) / var(--bde-posts-per-row))
  );
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.breakdance .bde-post-list .ee-posts-isotope > .ee-post,
.breakdance .bde-post-list .ee-posts-isotope .ee-post-sizer {
  width: calc(var(--bde-posts-isotope-width) - var(--bde-posts-isotope-width-diff));
  margin-bottom: var(--bde-posts-gap);
}

.breakdance .bde-post-list .ee-posts-isotope .ee-post-gutter {
  width: var(--bde-posts-gap);
}

/* Force cell to be full-width */
.breakdance .bde-post-list .ee-posts-list .ee-post-sizer {
  width: 100%;
}

.breakdance .bde-post-list .ee-posts-list .ee-post-sizer,
.breakdance .bde-post-list .ee-posts-isotope .ee-post-gutter {
  pointer-events: none;
}

/* Pagination */

.breakdance
.bde-post-list
.bde-posts-pagination-infinite-loader-wrapper {
  text-align: center;
}

.breakdance
.bde-post-list
.bde-posts-pagination-infinite-loader-wrapper {
  margin-top: 32px;
  font-size: 32px;
}

.bde-posts-pagination {
  font-size: 16px;
  gap: 20px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bde-posts-pagination ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 16px;
  padding: 0;
}

.breakdance .bde-posts-pagination a,
.breakdance .bde-posts-pagination a:hover {
  color: inherit;
  text-decoration: none;
}

.breakdance .bde-posts-pagination ul li a.is-active {
  color: var(--bde-brand-primary-color);
}

@media (max-width: 479px) {
  .bde-posts-pagination {
    flex-direction: column;
  }

  .bde-posts-pagination ul {
    margin: 16px 0;
  }
}

.bde-posts-pagination .breakdance-form-loader {
  animation: posts-list-loading-spinner 1.5s linear infinite;
}

@keyframes posts-list-loading-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
