.case_study-wrapper {
  background-color: var(--black);
}

.case_study-right > img {
  width: 100%;
  height: 100%;
}

.case_study-left {
  color: var(--white);
  font-weight: 300;
  padding: 1rem;
  padding-bottom: 3rem;
}

.case_study-left > h2 {
  font-weight: 300;
  font-size: 2rem;
  line-height: 32.68px;
  margin: 1rem 0 2rem 0;
}

.case_study-right {
  min-height: 311px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.case_study-left p {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.case_study-left p span:first-child {
  font-size: 0.8rem;
}

.case_study-left p span:nth-child(2) {
  font-size: 0.4rem;
}

.case_study-left > a {
  color: var(--white);
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.46);
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .case_study-right {
    min-height: 600px;
  }
}

@media (min-width: 768px) {
  .case_study-left > a {
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .case_study-wrapper {
    background-size: 50vw 100%;
    background-repeat: no-repeat;
    background-position: right;
  }
    .case_study {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
    }

    .case_study-left,
    .case_study-right {
        flex-basis: 100%;
    }

    .case_study-left div {
        overflow-y: auto;
        max-height: 15rem;
        direction: rtl;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .case_study-left > h2 {
        font-size: 2.5rem;
        line-height: 70px;
        padding-bottom: 2.5rem;
        margin: 0;
    }
}

.case_study-right {
  background-image: none;
  min-height: 100%;
}

.case_study-left div * {
  direction: ltr;
    margin-left: 0;
}

.case_study-left div::-webkit-scrollbar {
  width: 5px;
}

.case_study-left div::-webkit-scrollbar-track {
  box-shadow: inset 0 0 2px grey;
  border-radius: 10px;
}

.case_study-left div::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 10px;
}

.case_study-left div > p {
  margin-top: 0;
  padding-bottom: 2rem;
  line-height: 1.7rem;
}
.case_study-left > a {
  padding: 1rem;
}

.case_study-left p span:first-child {
  font-size: 1.9rem;
}

.case_study-left p span:nth-child(2) {
  font-size: 1rem;
}

@media (min-width: 1250px) {
  .case_study-right {
    min-height: 613px;
    visibility: hidden;
  }

    .case_study-left > h2 {
        font-size: 2.625rem;
        line-height: 70px;
        padding-bottom: 2.5rem;
        margin: 0;
    }
}
