/* Case Studies */
.case-studies-header {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 80px;
}

.case-studies-header .breadcrumbs {
	padding-top: 24px;
  padding-bottom: 44px;
}

@media (max-width: 1120px) {
  .case-studies-header .breadcrumbs  {
    padding-bottom: 40px;
  }
}

.case-studies p {
  color: var(--grey700);
  max-width: 710px;
  font-size: 18px;
  line-height: 24px;
}

.case-studies-content {
  margin: 16px 32px 16px 24px;
}

@media (max-width: 1120px) {
  .case-studies-content {
    margin: 16px;
  }
}

.case-studies-grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 56px;
  justify-content: space-between;
  margin-bottom: 119px;
}
@media (max-width: 1120px) {
  .case-studies-grid {
    column-gap: 16px;
    row-gap: 30px;
  }
}

.case-studies-item {
  min-height: 455px;
  min-width: 524px;
  width: calc(50% - 30px);
  background-color: var(--white);
  border: 1px solid var(--grey900);
  clip-path: polygon(0 0, 0 100%, calc(100% - 30px) 100%, 100% calc(100% - 30px), 100% 0);
}

@media (max-width: 1120px) {
  .case-studies-item {
    min-width: auto;
    width: calc(50% - 16px);
  }
}

@media (max-width: 576px) {
  .case-studies-item {
    min-height: 328px;
    width: 100%;
  }
}

.case-studies-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.case-studies-wrapper:hover .ui-button {
  background-color: var(--dark-yellow);
}

.case-studies-tag {
  font-size: 14px;
  line-height: 26px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #8F958E;
}

.case-studies-image {
  height: 232px;
  background-color: var(--grey900);
}

.case-studies-image img {
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 0 100%, calc(100% - 30px) 100%, 100% calc(100% - 30px), 100% 0);
}

@media (max-width: 576px) {
  .case-studies-image {
    height: 180px;
  }
}

/* Single Case Study */
.case-study {
  overflow: hidden;
}

.case-study .ui-h3 {
  max-width: 894px;
}

.case-study p {
  font-size: 18px;
  line-height: 24px;
  color: var(--grey700);
  max-width: 894px;
}

.case-study p:not(:last-child) {
  margin-bottom: 16px;
}

.case-study-header {
  padding-bottom: 55px;
}

@media (max-width: 1120px) {
  .case-study-header {
    padding-bottom: 24px;
  }
}

.case-study-header .breadcrumbs {
	padding-top: 24px;
  padding-bottom: 36px;
}

@media (max-width: 1120px) {
  .case-study-header .breadcrumbs {
    padding-top: 24px;
    padding-bottom: 30px;
  }
}

.case-study-tags {
  font-size: 20px;
  line-height: 32px;
}

@media (max-width: 1120px) {
  .case-study-tags {
    font-size: 18px;
  }
}

.case-study-label {
  color: var(--grey600);
}

.case-study-value {
  color: var(--grey900);
  margin-right: 32px;
}

.case-study-featured-image {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  display: flex;
  justify-content: center;
  right: auto;
}

.case-study-featured-image img {
  width: 100%;
  max-width: 1920px;
  max-height: 760px;
  object-fit: cover;
  height: auto;
  display: block;
}

@media (max-width: 1120px) {
  .case-study-featured-image img {
    aspect-ratio: 390 / 185;
  }
}

.case-study-intro {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 36px;
}

@media (max-width: 1120px) {
  .case-study-intro {
    margin-bottom: 24px;
  }
}

/* Chars */
.case-study-chars .ui-h2 {
  padding-bottom: 36px;
}

.case-study-chars-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.case-study-chars-icon {
  grid-column: span 1;
  width: auto;
  padding: 24px 18px 36px 24px;
}
.case-study-chars-no-icon {
  grid-column: span 2;
  width: auto;
  padding: 18px 24px 22px 24px;
}

@media (max-width: 1120px) {
  .case-study-chars-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .case-study-chars-icon {
    grid-column: span 1;
    width: auto;
  }
  .case-study-chars-no-icon {
    grid-column: 1 / -1;
    width: auto;
  }
}

@media (max-width: 576px) {
  .case-study-chars-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .case-study-chars-icon,
  .case-study-chars-no-icon {
    grid-column: 1 / -1;
    width: auto;
  }
}

.case-study-chars-block:not(:last-child) {
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .case-study-chars-block:not(:last-child) {
    margin-bottom: 16px;
  }
}

.case-study-chars-no-icon-label {
  font-family: 'torquemedium', Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  padding: 4px 12px;
  margin-bottom: 13px;
  text-transform: uppercase;
  background: var(--yellow);
}

.case-study-chars-no-icon-title {
  font-family: 'torquebold', Arial, sans-serif;
  font-size: 33px;
  line-height: 40px;
  text-transform: uppercase;
  margin-top: 13px;
  padding-bottom: 0;
}

@media (max-width: 576px) {
  .case-study-chars-no-icon-title{
    font-size: 26px;
  }
}

.case-study-chars-icon-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.case-study-chars-icon img {
  max-width: 32px;
  vertical-align: middle;
}

.case-study-chars-icon-title {
  text-transform: uppercase;
}

.case-study-chars-icon-text {
  font-size: 14px;
  line-height: 24px;
}

/* Gallery */
.case-study-gallery-container {
  margin-bottom: 100px;
  position: relative;
}

.case-study-gallery {
  overflow: visible;
}

.case-study-gallery .splide__slide {
  margin-right: 40px;
  width: 750px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.case-study-gallery .splide__slide:not(.is-active) {
  opacity: 0.3;
}

.case-study-gallery .splide__slide img:not(.svg) {
  object-fit: cover;
  aspect-ratio: 754 / 500;
}

@media (max-width: 814px) {
  .case-study-gallery .splide__slide img:not(.svg) {
    aspect-ratio: 350 / 337;
  }

  .case-study-gallery .splide__list li {
    width: 95% !important;
    margin-right: 20px;
  }
}

.single-product-carousel.splide {
  visibility: visible;
}

.case-study-gallery .splide__pagination {
  position: relative;
  margin-bottom: 35px;
  gap: 15px;
  display: flex;
}

.case-study-gallery .splide__pagination__page {
  width: 35px;
  height: 7px;
  border-radius: unset;
  background: var(--grey800);
  opacity: 1;
  transform: initial;
}

.case-study-gallery .splide__pagination__page {
  background: var(--grey100);
}

.case-study-gallery .splide__arrow {
  position: absolute;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  opacity: 1;
}

.case-study-gallery .splide__arrow:disabled {
  opacity: 0;
}

.case-study-gallery .splide__arrow--prev.hide {
  opacity: 0;
}

.case-study-gallery .splide__pagination__page.is-active {
    background: var(--yellow);
}

@media (max-width: 1208px) {

  .case-study-gallery-container .splide__arrows {
    display: none;
  }

  .case-study-gallery-container .splide__pagination {
    margin-bottom: 5px;
    gap: 8px;
  }

  .case-study-gallery-container .splide__pagination__page {
    width: 16px;
    height: 3px;
  }
}
