.banner {
    background-position: top;
}

.inside-banner {
    margin-top: 5%;
}

.inside-banner h1 {
    margin-bottom: 5%;
}

.background {
    background-image: url(../../images/tile.png);
    background-color: rgba(255,255,255,0.6);
    background-blend-mode: lighten;
}

.reviews {
    width: 70%;
    margin: auto;
}

.container {
  margin-bottom: 5%;
}

h2, h3 {
    text-align: center;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.25em;
}

.main-gallery {
  width: 65%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: auto;
  -webkit-box-shadow: 0px 0px 70px 50px rgba(202,220,252,0.60),
  inset 0px 0px 70px 50px rgba(202,220,252,0.59);
          box-shadow: 0px 0px 70px 50px rgba(202,220,252,0.60),
  inset 0px 0px 70px 50px rgba(202,220,252,0.59);
}

.gallery-cell {
  width: 80%;
  height: 350px;
  margin-right: 30px;
  background-color: #CADCFC;
  padding: 3%;
  border: 5px double #408EC6;
  border-radius: 20px;
}

.taller-cell h3 {
  margin-top: 0;
}

.rows {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 70%;
  margin: auto;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 2% auto;
  
}

.company {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 2%;
}

.company img {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  margin: auto;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: auto;
  border-radius: 50%;
  -webkit-box-shadow: 10px 10px 70px 20px rgba(202,220,252,0.75);
          box-shadow: 10px 10px 70px 20px rgba(202,220,252,0.75);
}

.company a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 50%;
  text-align: center;
}

.company a:hover {
    -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
    -webkit-box-shadow: 0 0 0 5px #00246B35;
            box-shadow: 0 0 0 5px #00246B35;
}

.container p {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 2%;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
}

.case-study {
  width: 70%;
  margin: auto;
}

.study-desc {
  width: 80%;
  margin: auto;
}

.image-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin: 3% 0;
}

.image {
  width: 35%;
  border-radius: 25px;
  -webkit-box-shadow: 0px 0px 36px 19px rgba(202,220,252,0.75);
          box-shadow: 0px 0px 36px 19px rgba(202,220,252,0.75);
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  border-radius: 25px;
  -webkit-box-shadow: 0px 0px 36px 19px rgba(202,220,252,0.75);
          box-shadow: 0px 0px 36px 19px rgba(202,220,252,0.75);
}

.list {
  padding: 3%;
  margin: auto;
}

.list b {
  text-decoration: underline;
  font-size: 1.1em;
}

.list li {
  margin: 1% 0;
}

.case-studies-ext {
  width: 65%;
  margin: auto;
}

.case-studies-ext li {
  margin: 1% 0;
}

.case-studies-ext ul {
  width: 90%;
  margin: auto;
}

.outro {
    width: 60%;
    margin: 4% auto;
    text-align: center;
}

.outro p {
  font-size: 1.4em;
}

.outro a {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
}

@media only screen and (max-width: 1350px) {
  .main-gallery {
    width: 85%;
  }
}

@media only screen and (max-width: 950px) {
  .reviews {
    width: 90%;
  }

  .main-gallery {
    width: 85%;
  }

  .container p {
    font-size: .9em;
  }
}

@media only screen and (max-width: 850px) {
  .image {
    width: 100%;
  }

  .image-container {
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
          -ms-flex-direction: column;
              flex-direction: column;
  }

  .study-info :nth-child(even) {
      -webkit-box-orient: vertical;
      -webkit-box-direction: reverse;
          -ms-flex-direction: column-reverse;
              flex-direction: column-reverse;
  }

  li ul {
    padding-left: 5%;
  }

  .case-studies-ext {
    width: 80%;
  }

  .form {
    margin-top: 6%;
  }
  
}

@media only screen and (max-width: 800px) {

  .main-gallery {
    width: 100%;
  }

  .gallery-cell {
    height: 375px;
  }
}

@media only screen and (max-width: 600px) {
  .inside-banner h1 {
    font-size: 3em;
  }
}

@media only screen and (max-width: 525px) {
  .inside-banner h1 {
    font-size: 2.5em;
  }
}

@media only screen and (max-width: 450px) {
  .rows {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .case-study {
    width: 85%;
  }

  .case-studies-ext {
    width: 90%;
  }

  .form {
    margin-top: 11%;
  }
}

@media only screen and (max-width: 315px) {

  .inside-banner h1 {
    font-size: 2em;
  }

  .banner {
    padding-top: 7%;
  }

}