.cases-grid {
    display: flex;
    gap: clamp(24px, calc(1.5rem + (30 - 24) * ((100vw - 782px) / (1440 - 782))), 30px);
    margin: 2rem 0 8rem;
    flex-wrap: wrap;
}


.case-item {
  --wp--custom--side-padding: 0px;
    position: relative;
    flex-basis: calc(50% - 15px);
  width: calc(50% - 15px);
}
@media screen and (max-width: 599px) {
  .cases-grid {
    /* gap: 0px; */
  }
  .case-item {
    flex-basis: 100%;
    width: 100%;
  }
}

.case-gallery {
    aspect-ratio: 645/430;
    margin-bottom: 11px;
    object-fit: cover;
}

.case-title {
    font-size: 22px;
    font-weight: 400;
    margin: 15px 30px 0px 0px !important;
}

.case-meta {
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px;
    align-content: flex-start;

    padding-bottom: clamp(40px, calc(2.5rem + (90 - 40) * ((100vw - 782px) / (1440 - 782))), 90px); /* 90px */
    padding-top: 30px;
}

.case-deliverables-toggle {
    display: none;
}

.case-deliverables {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    font-size: 18px;
}

.case-deliverables.is-collapsed {
    display: none;
}

.deliverable {
    display: block;
    color: #000000;
    font-size: 18px;
    line-height: 1.23em;
    margin: 0px !important;
    white-space: nowrap;
}

.swiper-slide {
    height: 100%;
}

.swiper-slide img,
.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}
.swiper-slide img:hover,
.swiper-slide video:hover {
  transform: scale(1.1);
}

.case-description {
  align-content: flex-start;
  /*
    margin: 1rem 0 1.5rem;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  */
  padding-bottom: clamp(40px, calc(2.5rem + (90 - 40) * ((100vw - 782px) / (1440 - 782))), 90px); /* 90px */
  padding-top: 30px;
}

.case-description p {
  font-size: 18px;
  line-height: 1.23em;
  margin-bottom: 1.23em;
  color: #aaaaaa;
  font-weight: 300;
}

.case-description p:last-child {
    margin-bottom: 0;
}

.case-description-toggle {
    display: none;
}

.case-description.is-collapsed {
    display: none;
}

.case-details {
    /*margin-top: 30px;*/
    position: relative;
}
.case-details-toggle {
  position: absolute;
  right: 0px;
  top: -33px; /* -63px; */
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1em;
  padding: 10px 0px 10px 17px !important;
  cursor: pointer;
}

.case-details-content {
  display: flex;
  gap: clamp(24px, calc(1.5rem + (50 - 24) * ((100vw - 782px) / (1440 - 782))), 50px); /* 50px */
  /*position: absolute;*/
  background-color: #ffffff;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 2;
  /*padding-bottom: clamp(40px, calc(2.5rem + (90 - 40) * ((100vw - 782px) / (1440 - 782))), 90px);*/ /* 90px */
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
@media screen and (max-width: 999px) {
  .case-details-content {
    flex-direction: column-reverse;
    gap: 24px;
  }
}
@media screen and (min-width: 415px) and (max-width: 599px) {
  .case-details-content {
    flex-direction: row;
  }
}
.case-details-content.is-collapsed {
  /*display: none;*/
  max-height: 0px;
  margin: 0;
}
.swiper-button-next,
.swiper-button-prev {
  --swiper-navigation-sides-offset: 8px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  position: absolute;
  bottom: 0px;
  z-index: 10;
  cursor: pointer;
  top: auto;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 11px;
  line-height: 1em;
}
.swiper-button-next:after {
  content: url("data:image/svg+xml;utf8,%3Csvg width='22' height='11' viewBox='0 0 22 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.261475 5.33442H20.0439M15.0908 9.80746L20.029 5.33442L15.0908 0.8479' stroke='%231D1D1B' stroke-width='1.5' stroke-miterlimit='10'/%3E%3C/svg%3E");

}
.swiper-button-prev:after {
  content: url("data:image/svg+xml;utf8,%3Csvg width='22' height='11' viewBox='0 0 22 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.7538 5.33477L1.97144 5.33477M6.92448 0.86173L1.98631 5.33477L6.92448 9.82129' stroke='%231D1D1B' stroke-width='1.5' stroke-miterlimit='10'/%3E%3C/svg%3E");
}
.swiper-pagination {
  display: none;
}
.meta-title {
  font-size: 18px;
  font-weight: 300;
  color: #aaaaaa;
  margin: 0px !important;
  line-height: 1.23em;
}
