
/*--------------------------------------------------------------
# Case studies 
--------------------------------------------------------------*/


body.page-template-case-studies-template {
  padding: 0 !important;
}

body.page-template-case-studies-template .case-studies {
  padding-top: 80px;
}

.case-studies .site-header {
  z-index: 10;
  padding-top: 16px;
}

@media screen and (min-width: 768px) {
  .case-studies .site-header {
    padding-top: 0;
  }
}

.case-studies .entry-header {
  display: none;
  padding: 24px 15px 0 15px;
}

.case-studies .entry-header h1 {
  line-height: 1;
}

.case-studies .header-content {
  top: 0;
  background: var(--white);
}

.case-studies .page {
  padding: 0 !important;
}

.case-studies .breadcrumbs {
  margin-top: 0;
  padding-left: 15px;
}

@media screen and (min-width: 782px) {
  .case-studies .breadcrumbs {
    padding-left: 64px;
  }
}

.case-studies .breadcrumbs a {
  color: #1D173D;
}

.case-section {
  padding: 0 15px;
}

.case-section-wide {
  position: relative;
  background: #1D173C;
  padding: 76px 15px;
}

.case-section-wide .case-section-title,
.case-section-wide p {
  color: var(--white);
}

@media screen and (min-width: 768px) {
  .case-section {
    padding: 0 15px;
  }

  .case-section-wide {
    padding: 44px 15px 0 15px;
  }
}

@media screen and (min-width: 782px) {
  .case-section {
    padding: 0 64px;
  }
  .case-section-wide {
    padding: 76px 64px 76px 64px;
  }
}

@media screen and (min-width: 1280px) {
  .case-section {
    padding: 0 112px;
  }
  .case-section-wide {
    padding: 88px 128px;
  }
}

.page-template-case-studies-template .footer {
  background: var(--white);
  padding-top: 34px;
  position: static;
  padding-bottom: 20px;
}

@media screen and (min-width: 768px) {
  .page-template-case-studies-template .footer {
    padding-top: 24px;
  }
}

.page-template-case-studies-template .footer .footer-item:last-child {
  display: none;
}

.case-banner {
  position: relative;
  margin: 0 0 40px;
  padding-right: 0;
  padding-left: 0;
}

@media screen and (min-width: 1280px) {
  .case-banner {
    padding-left: 64px;
    padding-right: 64px;
    /* margin: 0 0 116px; */
    margin: 0 0 50px;
  }
}

.case-banner-img {
  position: relative;
}

.case-about-description.case-section-description {
  margin-bottom: 0;
}

.case-banner-img .wp-block-image {
  margin: 0;
}

.case-banner-img .wp-block-image img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.case-banner-title-wrapper {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  z-index: 3;
  max-width: calc(100% - 30px);
}

@media screen and (min-width: 768px) {
  .case-banner-title-wrapper {
    left: 64px;
    max-width: calc(100% - 128px);
  }
}

@media screen and (min-width: 1280px) {
  .case-banner-title-wrapper {
    left: 124px;
  }
}

.case-description {
  color: var(--white);
}

.case-description--top {
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  margin: 0 0 22px;
}

.case-description--top:after {
  content: "";
  display: block;
  width: 86px;
  height: 2px;
  background: var(--white);
  margin-top: 25px;
}

.case-description--bottom {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}

.case-description--bottom a {
  color: var(--white);
}

.case-description--bottom a:hover,
.case-description--bottom a:focus {
  color: #D9D9D9;
}

.case-title {
  text-transform: uppercase;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  margin: 0 0 22px;
}

/* .case-banner-title-wrapper .case-title {
  color: var(--lightYellow);
} */

body.dark-theme .case-banner-title-wrapper .case-title {
  color: #fff;
}

.case-section-title {
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  margin: 0 0 18px;
  text-transform: uppercase;
}

@media screen and (min-width: 1024px) {
  .case-title {
    font-size: 50px;
  }

  .case-section-title {
    font-size: 30px;
    line-height: 50px;
  }
}

.case-section-description {
  margin-bottom: 25px;
}

.case-about {
  position: relative;
  /* margin-bottom: 76px; */
  margin-bottom: 50px;
  /* min-height: 470px; */
  /* padding-left: 64px; */
}

.case-about-img {
  max-width: 300px;
  margin: 0 auto !important;
  filter: brightness(0.985);
}


@media screen and (min-width: 1280px) {
  .case-about-img {
    /* position: absolute; */
    right: 126px;
    /* bottom: 50px; */
    max-width: 500px;
    margin-top: -130px !important;
  }  
}

@media screen and (min-width: 1601px) {
  .case-about-img {
    margin-top: -150px !important;
    /* bottom: 50px; */
    /* top: -165px; */
  }

  .case-banner {
    margin-bottom: 70px;
  }

  .case-about-description.case-section-description {
    margin-bottom: 20px;
  }

  .case-about {
    margin-bottom: 70px;
  }
}

@media screen and (min-width: 1800px) {
  .case-about-img {
    /* max-width: unset; */
    max-width: 740px;
    /* bottom: 15px; */
    /* bottom: -20px; */
  }  
}

@media screen and (min-width: 1921px) {
  .case-about-img {
    /* max-width: unset; */
    margin-top: -175px !important;
    /* bottom: 15px; */
    /* bottom: -20px; */
  }  
}

/* @media screen and (min-width: 1921px) {
  .case-about-img {
    max-width: unset;
  }
}  */

.case-about-description {
  margin-bottom: 40px;
}

@media screen and (min-width: 1280px) {
  .case-about-description {
    /* max-width: calc(100% - 500px); */
  }
}

@media screen and (min-width: 1800px) {
  .case-about-description {
    /* max-width: 768px; */
  }
}

@media screen and (min-width: 1921px) {
  .case-about-description {
    /* max-width: 50%; */
  }
}

.case-key {
  padding-top: 76px;
  padding-bottom: 76px;
  background: #fdf9f3;
  
  margin: 0 0 76px 0;
  padding: 48px 15px 24px;
}

.case-features,
.case-section-wide,
.case-key {
  padding: 48px 15px 24px;
}

@media screen and (min-width: 1024px) {
  .case-features,
  .case-section-wide,
  .case-key {
    width: calc(100% - 128px);
    /* margin: 0 0 76px 48px; */
    margin: 0 0 24px 64px;
    padding: 48px 64px;
  }
}

/* @media screen and (min-width: 1280px) {
  .case-features,
  .case-section-wide,
  .case-key {
    padding-top: 106px;
    padding-bottom: 106px;
  }
} */

.case-key-descriprion {
  justify-content: space-between;
  gap: 0;
  margin-bottom: 0;
}

.case-key-descriprion .case-section-description {
  /* margin-bottom: 0; */
}

@media screen and (min-width: 960px) {
  .case-key-descriprion {
    gap: 2em;
  }

  .case-key-descriprion .case-section-description {
    margin-bottom: 25px;
  }
}

.case-key-descriprion .wp-block-column {
  max-width: 703px;
}

.case-stack,
.case-key {
  /* padding: 0 64px; */
  margin-bottom: 50px;
}

@media screen and (min-width: 960px) {
  .case-stack, 
  .case-key {
    margin-bottom: 76px;
  }
}

.case-stack-title {
  margin-bottom: 45px;
}

.case-stack-col {
  margin-bottom: 40px;
}

.case-stack-col .wp-block-image {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.case-stack-col .wp-block-image figcaption {
  margin: 0 0 0 14px;
  color: #2C2C2C;
  font-size: 18px;
  line-height: 1;
  text-align: left;
}


.case-highlights .wp-block-columns {
  margin-bottom: 0;
}

.case-highlights-slider {
  padding: 0;
}

.case-highlights-slider .case-gallery {
  flex-wrap: nowrap;
  overflow: scroll;
  margin-bottom: 75px;
}

@media screen and (min-width: 768px) {
  .case-highlights-slider .case-gallery {
    /* transform: translateX(-64px); */
    transform: translateX(0);
    overflow: hidden;
    margin-bottom: 100px;
  }
}


.case-highlights-slider .case-gallery a.active {
  cursor: grab;
  pointer-events: none;
}

#case-studies .case-gallery .wp-block-image {
  max-width: 50%;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  #case-studies .case-gallery .wp-block-image {
    max-width: calc(100%/3);
  }
}

#case-studies .case-gallery .wp-block-image img {
  min-height: 335px;
}

.pswp__bg {
  background: rgba(0,0,0,.9);
}

.case-project {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media screen and (min-width: 1280px) {
  .case-project {
    padding-top: 20px;
  }
}

.case-project-col {
  /* display: flex; */
}

.case-project > .wp-block-group__inner-container .wp-block-columns:last-of-type {
  margin-bottom: 0;
}

@media screen and (min-width: 960px) {
  .case-project > .wp-block-group__inner-container .wp-block-columns:last-of-type {
    margin-bottom: 28px;
  }  
}

@media screen and (min-width: 1280px) {
  .case-project-col {
    display: flex;
  }
}

.case-project-number {
  flex-shrink: 0;
  font-size: 48px;
  line-height: 1;
  margin: 0 20px 0 0;
  color: #e6ebf2;
  color: var(--yellow);
  font-weight: 700;
}

@media screen and (min-width: 960px) {
  .case-project-number {
    font-size: 64px;
  }
}

.case-project-text {
  margin-bottom: 0;
}

@media screen and (min-width: 1024px) {
  .case-project-text {
    max-width: 372px;
  }
}

.case-features {
  padding-bottom: 24px;
  background: #FDF9F3;
  margin-bottom: 0;
}

@media screen and (min-width: 1921px) {
  .case-features {
    padding-bottom: 48px;
  }
}

.case-features-title {
  margin-bottom: 38px;
}

.case-features-subtitle {
  position: relative;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 18px;
}

.case-features-subtitle::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_226_1406)'%3E%3Cpath d='M11.9265 19.3574L12.0312 19.4595L12.136 19.3574L21.9797 9.76194L22.0899 9.65453L21.9797 9.54712L21.0518 8.64259L20.9471 8.54053L20.8424 8.64258L12.0312 17.2308L7.15763 12.4808L7.05293 12.3787L6.94823 12.4808L6.0203 13.3853L5.91011 13.4927L6.0203 13.6001L11.9265 19.3574Z' fill='%23D78516' stroke='%23D78516' stroke-width='0.3'/%3E%3Cpath d='M19 1H1V19' stroke='%23D78516' stroke-width='2'/%3E%3Cpath d='M9 27H27V9' stroke='%23D78516' stroke-width='2'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_226_1406'%3E%3Crect width='28' height='28' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A") no-repeat center/contain;
  position: absolute;
  left: -48px;
}

.case-features-col {
  display: flex;
  margin-bottom: 20px;
  padding-left: 48px;
}

.case-features-col .wp-block-image {
  flex-shrink: 0;
  margin-right: 30px;
}

.case-customer {
  padding-top: 76px;
  padding-bottom: 76px;
}

@media screen and (min-width: 1280px) {
  .case-customer {
    padding-top: 110px;
    padding-bottom: 110px;
  }
}

.case-customer-title {
  margin-bottom: 75px;
}

.case-customer-col {
  display: block; 
}

.case-customer-info {
  flex-shrink: 0;
  margin: 0 0 30px 0;
}

@media screen and (min-width: 1366px) {
  .case-customer-info {
    margin: 0 130px 0 0;
  }
}

.case-customer-info > div {
  display: flex;
  flex-direction: column-reverse;
}

.case-customer-img {
  margin: 0 24px 0 0;
  max-width: 133px;
}

.case-customer-name {
  flex-shrink: 0;
  margin: 0 11px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.case-customer-position {
  margin: 0 0 20px 0;
  font-size: 20px;
  line-height: 1;
  color: #B0B0B0;
}

.case-customer-text {
  position: relative;
  margin: 0;
  
  padding: 24px 28px 0 28px;
  border: 2px solid var(--yellow);
  background: var(--white);
}

@media screen and (min-width: 782px) {
  .case-customer-text::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid #ebc28b;
  
    position: absolute;
    top: -14px;
    left: 18px;
    z-index: -1;
  }
}

.case-customer-popup-btn {
  display: flex;
  align-items: center;

  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.case-customer-popup-btn svg {
  margin: -6px 8px 0 0;
}

label.close-image-btn {
  font-size: 0;
}

label.close-image-btn::before {
  content: "\00d7";
  font-size: 28px;
  color: var(--white);
}

@media screen and (min-width: 1280px) {

  .case-customer-info {
    margin: 0 30px 0 0;
  }

  .case-customer-info > div {
    flex-direction: row;
    align-items: center;
  }

  .case-customer-col {
    display: flex;
    align-items: center;
  }

  .case-customer-position {
    margin: 0;
  }
}

.case-lessons {
  padding-top: 48px;
  padding-bottom: 48px;
}

.case-lessons .wp-block-columns,
.case-lessons .wp-block-columns p:last-of-type {
  margin-bottom: 0;
}

@media screen and (min-width: 782px) {
  .case-lessons{
    padding-top: 24px;
  }
}

.case-other-works {
  position: relative;
  /* display: block; by JS in main.js*/
  display: none;
  padding-bottom: 54px;
}

@media screen and (min-width: 782px) {
  .case-other-works {
    max-width: calc(100vw - 128px);
  }
}

.case-other-works .wp-block-group .wp-block-group__inner-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

@media screen and (min-width: 768px) {
  .case-other-works .wp-block-group .wp-block-group__inner-container {
    flex-direction: row;
  }
}

.case-other-works .case-section-title {
  margin: 0 0 18px;
}

#case-studies .case-other-works .page-list-ext-item {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .case-other-works .case-section-title {
    margin: 0 0 50px;
  }
}

#case-sliser-prev,
#case-sliser-next {
  position: absolute;
  bottom: -30px;
}

#case-sliser-prev.disabled,
#case-sliser-next.disabled {
  opacity: 0.5;
}

#case-sliser-prev {
  cursor: pointer;
  left: 50%;
  transform: translateX(calc(-80% - 24px));
}

#case-sliser-next {
  cursor: pointer;
  right: 50%;
  transform: translateX(calc(80% + 24px));
}

@media screen and (min-width: 1024px) {
  #case-sliser-prev,
  #case-sliser-next {
    position: static;
    order: unset;
    margin: 0;
    transform: none;
  }
}

#case-studies .page-list-ext {
  width: 100%;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  max-width: calc(100vw - 30px);
  padding-bottom: 30px;
}

#case-studies .page-list-ext-item {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  margin: 0 0 24px 0;
  width: 100%;
  flex-shrink: 0;
  padding: 0 5px;
  min-height: 312px;
} 

@media screen and (min-width: 768px) {
  #case-studies .page-list-ext-item {
    width: 50%;
    padding: 0 24px;
  }
}

@media screen and (min-width: 1281px) {
  #case-studies .page-list-ext-item {
    width: calc((100%/3));
    min-height: 284px;
  }
}

#case-studies .page-list-ext .page-list-ext-image {
  display: block;
  float: none;
  margin: 0 0 24px;

  position: absolute;
  left: 0;
  top: 0;
  
  width: 100%;
}

@media screen and (min-width: 768px) {
  #case-studies .page-list-ext .page-list-ext-image {
    left: 24px;
    width: calc(100% - 48px);
  }
}

#case-studies .page-list-ext .page-list-ext-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

#case-studies .page-list-ext .page-list-ext-title {
  margin: 0;
  position: relative;
  left: 24px;
  z-index: 1;
  max-width: calc(100% - 48px);
}

#case-studies .page-list-ext .page-list-ext-item-content {
  margin: 24px 0 16px;
  position: relative;
  left: 24px;
  z-index: 1;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 600;
  max-width: calc(100% - 48px);
  line-height: 1.33;
  font-size: 20px;
}

#case-studies .page-list-ext .page-list-ext-title a {
  font-size: 16px;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 600;
}

@media screen and (min-width: 1280px) {

  #case-studies .page-list-ext .page-list-ext-item-content {
    font-size: 24px;
  }

  #case-studies .page-list-ext .page-list-ext-title a {
    font-size: 18px;
  }
}


/*--------------------------------------------------------------
# Case studies signle page
--------------------------------------------------------------*/

.case-page .page-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 0;
}

.case-page .page-list::before {
  display: none;
}

@media screen and (min-width: 1280px) {
  .case-page .page-list {
    flex-direction: column;
    height: 100%;
    /* height: auto; */
    margin-right: -20px;
  }
}

@media screen and (min-width: 1440px) {
  .case-page .page-list {
    margin-right: -50px;
  }
}

.case-page .page-list .page-list-ext-item {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;

  width: 100%;
  margin: 0 0 20px 0;
}

/* .case-page .page-list .page-list-ext-item:last-child {
  margin-bottom: 0;
} */

@media screen and (min-width: 768px) {
  .case-page .page-list .page-list-ext-item {
    width: calc(50% - 10px);
    max-height: unset;
    margin: 0 0 35px 0;
  }
}

@media screen and (min-width: 1280px) {
  .case-page .page-list .page-list-ext-item {
    width: calc(25% - 20px);
    height: calc(50% - 20px);
    margin: 0 20px 20px 0;
  }
}

@media screen and (min-width: 1440px) {
  .case-page .page-list .page-list-ext-item {
    margin: 0 35px 40px 0;
    width: calc(25% - 40px);
    height: calc(50% - 40px);
  }
}

.case-page .page-list .page-list-ext-title {
  order: 1;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: normal;
}

@media screen and (min-width: 768px) {
  .case-page .page-list .page-list-ext-title {
    font-size: 18px;
  }
}

@media screen and (min-width: 1280px) {
  .case-page .page-list .page-list-ext-title {
    font-size: 24px;
  }
}

.case-page .page-list .page-list-ext-title a {
  color: #1D173D;
}

.case-page .page-list .page-list-ext-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 160px;
  order: 2;
  flex-shrink: 0;
  margin: 0;
}

@media screen and (min-width: 1024px) {
  .case-page .page-list .page-list-ext-image {
    max-height: 240px;
  }
}

@media screen and (min-width: 1280px) {
  .case-page .page-list .page-list-ext-image {
    max-height: unset;
  }
}

@media screen and (min-width: 768px) {
  .case-page .page-list .page-list-ext-image {
    height: calc(100% - 40px);
  }
}

.case-page .page-list .page-list-ext-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.case-page .page-list .page-list-ext-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.case-page .page-list .page-list-ext-item-content {
  order: 3;
  position: absolute;
  top: 30px;
  left: 0;
  padding: 15px;
  color: var(--white);
  font-size: 14px;
  white-space: normal;
}

@media screen and (min-width: 1280px) {
  .case-page .page-list .page-list-ext-item-content {
    top: 38px;
    padding: 20px;
    max-width: 298px;
    font-size: 16px;
  }
}

@media screen and (min-width: 1921px) {
  .case-page .page-list .page-list-ext-item-content {
    max-width: 420px;
    font-size: 24px;
  }
}

@media screen and (min-width: 1280px) {
  .case-page.case-section-other-pages .page-list {
    flex-direction: row;
  }
}

.case-section .contact-us-form-title {
  display: none !important;
}

.case-stack-col {
  display: grid !important;
  grid-template-columns: repeat(2, auto);
}

@media screen and (min-width: 660px) {
  .case-stack-col {
    grid-template-columns: repeat(3, auto);
  }
}

@media screen and (min-width: 1025px) {
  .case-stack-col {
    grid-template-columns: repeat(5, auto);
  }
}

@media screen and (min-width: 1921px) {
  .case-stack-col {
    grid-template-columns: repeat(8, auto);
  }
}

.case-highlights-images .wp-block-image {
  margin-bottom: 0;
}

@media screen and (min-width: 861px) {
  .case-highlights-images .wp-block-image {
    display: flex;
    justify-content: flex-end;
  }
}

body.dark-theme .case-section-wide.case-result {
  background-color: #000000 !important;
}

.case-not-ordered-list,
.case-section ul {
  list-style: none;
  margin-left: 0;
}


.case-about p > a,
.case-key p > a,
.case-highlights p > a,
.case-project p > a,
.case-features p > a,
.case-result p > a, 
.case-lessons p > a {
  color: var(--yellow);
}

body.dark-theme .case-about p > a,
body.dark-theme .case-key p > a,
body.dark-theme .case-highlights p > a,
body.dark-theme .case-project p > a,
body.dark-theme .case-features p > a,
body.dark-theme .case-result p > a, 
body.dark-theme .case-lessons p > a {
  color: var(--lightYellow);
}

@media screen and (min-width: 1921px) {
  .case-section-description {
    font-size: 22px;
  }

  .case-section p,
  .case-result p,
  .case-result a,
  .case-result span,
  .case-highlights p,
  .case-highlights a,
  .case-highlights span{
    font-size: 22px;
  }

  p.case-project-number {
    font-size: 64px;
  }

  .case-key-descriprion .wp-block-column {
    max-width: 46%;
  }

  .case-features-subtitle {
    font-size: 24px;
  }

  .case-not-ordered-list,
  .case-section ul {
    font-size: 22px;
  }
}