.block--cards-card {
  --card-width: 100%;
}
.cards > .block--cards-card {
  flex: 1 1 var(--card-width, 100%);
  max-width: var(--card-width, 100%);
  align-self: stretch;
  padding: 0 calc(0.5 * var(--bs-gutter-x));
}
@media (min-width: 768px) {
  .cards > .block--cards-card {
    --card-width: 50%;
  }
}
@media (min-width: 992px) {
  .cards > .block--cards-card {
    --card-width: calc(100% / (var(--card-count, 4) - 1)) ;
  }
}
@media (min-width: 1200px) {
  .cards > .block--cards-card {
    --card-width: calc(100% / var(--card-count, 4));
  }
}
.block--cards-card .card {
  position: relative;
  height: 100%;
  margin-top: 0;
  background-color: var(--bs-light);
  padding: 20px 35px;
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  box-shadow: 0px 4px 15px 5px rgba(38, 38, 43, 0.15);
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.15s ease-in-out, box-shadow 0.3s ease-in-out;
  backface-visibility: hidden;
  min-height: var(--min-height);
}
.block--cards-card .card .img-style-background {
  transform: scale(1);
  transition: transform 1s ease-in-out, box-shadow 0.3s ease-in-out;
}
.block--cards-card .card.layout-default {
  display: flex;
  flex-direction: column;
}
.block--cards-card .card.layout-circle {
  aspect-ratio: 1;
  border-radius: 50% !important;
  max-width: 100%;
  overflow: hidden;
  padding: 10% !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.block--cards-card .card.layout-circle > * {
  margin: initial;
}
.block--cards-card .card.layout-background {
  display: flex;
  border: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  min-height: var(--min-height);
}
[data-aspect-ratio=square] .block--cards-card .card.layout-background {
  aspect-ratio: 1;
}
.block--cards-card .card.layout-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45.28%, rgba(0, 0, 0, 0.25) 66.78%, rgba(0, 0, 0, 0.75) 91.91%);
  z-index: -1;
}
.block--cards-card .card.layout-background .img-style-background {
  filter: grayscale(0);
  transition: filter 0.3s ease-out;
}
.block--cards-card .card.layout-background .card-body {
  background-color: transparent;
  width: 100%;
  padding: calc(var(--bs-gutter-x) * 0.5);
  transition: background-color 0.45s ease-out;
}
.block--cards-card .card.layout-background:hover .card-body, .block--cards-card .card.layout-background:focus-within .card-body {
  background-color: var(--bs-secondary);
  transition: background-color 0.3s ease-out;
}
.block--cards-card .card.layout-background:hover .img-style-background, .block--cards-card .card.layout-background:focus-within .img-style-background {
  filter: grayscale(1);
}
.block--cards-card .card.linked:hover, .block--cards-card .card.linked:focus-within {
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.block--cards-card .card.linked:hover .img-style-background, .block--cards-card .card.linked:focus-within .img-style-background {
  transition: transform 0.5s ease-in-out, box-shadow 0.15s ease-in-out;
}
.block--cards-card .card.linked a {
  text-decoration: none;
}
.block--cards-card .card.linked.linked-multi {
  cursor: default;
}
.block--cards-card .card p:last-of-type {
  margin-bottom: 0;
}
.block--cards-card .card a.visually-hidden-focusable {
  position: absolute;
  left: 0;
  bottom: 0;
}
.block--cards-card .card a.visually-hidden-focusable:focus {
  width: 100%;
  padding: 0.25rem 0.5rem;
  text-align: center;
  box-shadow: none;
  outline: none;
}
.block--cards-card .card .wp-block-button .wp-element-button {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-width: 1px;
}
.block--cards-card .card.has-banner > .card-body > .wp-block-image:first-child {
  margin: -20px -35px 0;
}
.block--cards-card .card.has-banner > .card-body > .wp-block-image:first-child img {
  width: 100% !important;
  aspect-ratio: 362/198;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.block--cards-card .card .wp-block-image {
  margin-bottom: 1rem;
}
.block--cards-card .card:not(.layout-background) .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.block--cards-card .wp-block-heading.has-background {
  padding: 0.5em 1rem;
  margin: 0 calc(-1 * var(--bs-spacer-3, -1rem));
}
.block--cards-card.is-style-plain .card {
  box-shadow: none;
  border: 0;
}
@media (min-width: 992px) {
  .block--cards-card.is-style-plain .card {
    padding: 1rem 16.6666666667%;
  }
}
.block--cards-card.is-style-bare-bones .card {
  background-color: transparent;
  box-shadow: none;
  border: 0;
}
@media (min-width: 992px) {
  .block--cards-card.is-style-bare-bones .card {
    padding: 0;
  }
}

.editor-styles-wrapper .wp-block > .block--cards-card {
  height: 100%;
}
.editor-styles-wrapper .block--cards-card .card {
  min-width: initial;
  border: 0;
}
.editor-styles-wrapper .block--cards-card .card.layout-circle {
  overflow: visible;
}
.editor-styles-wrapper .block--cards-card .card.has-banner > .card-body > div:first-child > .wp-block-image:first-child {
  margin: -44px -59px 0;
}
.editor-styles-wrapper .block--cards-card .card.has-banner > .card-body > div:first-child > .wp-block-image:first-child > div:first-child {
  width: 100% !important;
}
.editor-styles-wrapper .block--cards-card .card.has-banner > .card-body > div:first-child > .wp-block-image:first-child > div:first-child[style*="height: auto"] {
  height: 150px !important;
}
.editor-styles-wrapper .block--cards-card .card.has-banner > .card-body > div:first-child > .wp-block-image:first-child > div:first-child > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
