.cabb-block.cards .cards-content-wrapper {
    display: grid;
}
@media (min-width: 768px) {
    .cabb-block.cards .cards-content-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cabb-block.cards .cards-content-wrapper.cards-bordered {
    gap: .75rem;
}
@media (min-width: 1024px) {
    .cabb-block.cards .cards-content-wrapper.cards-bordered {
        gap: 1.5rem;
    }
}

.cabb-block.cards .cards-content-wrapper.cards-plain {
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .cabb-block.cards .cards-content-wrapper.cards-plain {
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .cabb-block.cards .cards-content-wrapper.grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cabb-block.cards .cards-content-wrapper.grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cabb-block.cards .cards-content-wrapper.grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cabb-block.cards .cards-plain {
    color: rgb(23 23 23);
}

.cabb-block.cards .cards-bordered {
    color: var(--wp--preset--color--orange);
}

.cabb-block.cards .card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    row-gap: 40px;
}

.cabb-block.cards .cards-bordered .card-item {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
    border: 1px solid rgb(64 64 64);
    border-radius: .25rem;
    overflow: hidden;
}

.cabb-block.cards .cards-bordered a.card:hover {
    background-color: rgb(23 23 23);
    border-color: rgb(23 23 23);
}

.editor-styles-wrapper .cabb-block.cards .cards-bordered a.card-item {
    text-decoration: none;
}

.cabb-block.cards .card-item h2 {
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
}

.cabb-block.cards .cards-content-wrapper:not(.cards-plain) .card-item h2{
    font-size: 1.5rem;
    line-height: 1;
}

.cabb-block.cards .cards-content-wrapper.cards-plain .card-item h2{
    font-size: 1.25rem;
    line-height: 1.75rem;
}
@media (min-width: 1024px) {
    .cabb-block.cards .cards-content-wrapper.cards-plain .card-item h2{
        font-size: 1.5rem;
    }
    .cabb-block.cards .cards-content-wrapper:not(.cards-plain) .card-item h2{
        font-size: 1.875rem;
    }
}

.cabb-block.cards .card-item .editor_content {
    color: rgb(163 163 163);
}

.cabb-block.cards .card-item .editor_content p {
    margin-bottom: 0;
    margin-top: 1rem;
}

.cabb-block.cards .card-item .editor_content p:first-child {
    margin-top: 0;
}

.cabb-block.cards .card-item.padding-whole {
    padding: 1.75rem;
}

.cabb-block.cards .card-item.padding-partial {
    padding-bottom: 1.75rem;
}

.cabb-block.cards .cards-content-wrapper:not(.cards-plain) .card-item.padding-partial .card-content {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.cabb-block.cards .cards-content-wrapper:not(.cards-bordered) .card-item {
    padding: 0;
    margin-top:1rem;
}

.cabb-block.cards .cards-content-wrapper:not(.cards-bordered) .card-item .text-content{
    max-width: 28rem;
}

/*------------ Show more/less ------------*/

.cabb-block.cards .text-content {
  max-height: 128px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
}

.cabb-block.cards .text-container.expanded .text-content {
  max-height: none;
}

.cabb-block.cards .text-container:not(.expanded) .text-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--wp--preset--color--dark-grey)
  );
  pointer-events: none;
}

/*------------ End Show more/less ------------*/

.cabb-block.cards a.card-item:hover{
    background-color: rgb(23 23 23);
    border-color: rgb(23 23 23);
}

.cabb-block.cards .card-item.padding-partial .card-content.no-media {
    padding-top: 1.75rem;
}

.cabb-block.cards .card-item .card-media {
    flex-shrink: 0;
    height: 250px;
    max-height: 250px;
    width: 100%;
    overflow: hidden;
}

.cabb-block.cards .cards-plain .card-item .card-media.media-icon {
    height: 72px;
    max-height: 72px;
    width: 72px;
    max-width: 72px;
    padding: 1.25rem;
    background-color: white;
    border: 1px solid #e5e5e5;
    border-radius: 9999px;
}

.cabb-block.cards .cards-bordered .card-item .card-media.media-icon {
    height: 72px;
    max-height: 72px;
    width: 72px;
    max-width: 72px;
    padding: 1.25rem;
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--orange);
    border-radius: 9999px;
}

.cabb-block.cards .card-item .card-media.media-icon svg {
    width:30px;
    height:auto;
}

.cabb-block.cards .cards-plain .card-item .card-media.media-icon svg {
    color: rgb(23,23,23);
}

.cabb-block.cards .cards-plain .card-item .card-media.media-icon svg path{
    fill: rgb(23,23,23);
}

.cabb-block.cards .cards-bordered .card-item .card-media.media-icon svg path{
    fill: var(--wp--preset--color--orange);
}

.cabb-block.cards .card-item .card-media img,
.cabb-block.cards .card-item .card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabb-block.cards .card-item .card-inner-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    row-gap: 24px;
}

.cabb-block.cards .card-item .card-inner-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    row-gap: 24px;
}

.cabb-block.cards .card-item .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    row-gap: 12px;
}
