:root {
  --share-background-color: var(--color-background);
  --share-heading-color: var(--color-white);
  --share-icon-background-color: var(--theme-color);
  /*#7ac469 !important;*/
  --share-icon-color: var(--color-white);
}

/* share modal */
.share-modal {
  /* display: none; */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  max-height: 400px;
  max-width: 575px;
  margin: auto;
  /* background: rgb(255, 255, 255); */
  background-color: var(--share-background-color);
  color: var(--share-heading-color);
  z-index: 25020;
}

.share-overlay {
  /* display: none; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 30100;
}

.share-modal .text-center {
  display: block;
  float: left;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0 20px;
}

.share-close {
  font-family: inherit;
  float: right;
  margin: 15px 0 0;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
}

.share-modal h1 {
  font-family: inherit;
  float: left;
  display: block;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 20px;
  color: inherit;
  margin-bottom: 0;
}

.share-modal a {
  display: inline-block;
  height: 43px;
  width: 43px;
  text-align: center;
  line-height: 46px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--share-icon-color);
  text-decoration: none;
  margin: 15px 10px 5px;
  padding: 0 !important;
}

.share-modal a.fa-facebook-f,
a.fa-facebook-f {
  background: #23346d;
}

.share-modal a.fa-twitter,
a.fa-twitter {
  background: #55acee;
}

.share-modal a.fa-pinterest-p,
a.fa-pinterest-p {
  background: #cb2027;
}

.share-modal a.fa-google-plus,
a.fa-google-plus {
  background: #dd4b39;
}

.share-modal a.fa-envelope,
a.fa-envelope {
  background: #23346d;
}

.share-modal a.fa-whatsapp,
a.fa-whatsapp {
  background: #25d366;
}

.share-modal a.fa-linkedin,
a.fa-linkedin {
  background: #0077b5;
}

.share-modal a.fa-reddit,
a.fa-reddit {
  background: #cee3f8;
}

.share-modal a.fa-tumblr,
a.fa-tumblr {
  background: #36465d;
}

.share-modal a.fa-stumbleupon,
a.fa-stumbleupon {
  background: #eb4924;
}

.share-modal a.fa-instagram,
a.fa-instagram {
  background: #e4e4e4;
}

.share-modal a.fa {
  background-color: var(--share-icon-background-color);
}

/* SHARING MODAL */
/*
.share-overlay .share-modal {
  outline: 5px solid var(--share-icon-background-color);
  border-radius: 0.25rem;
}
*/

.share-overlay .share-modal h1 {
  font: normal normal 16px 'Open Sans', sans-serif;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.5;
  margin: 0.5rem auto;
}

.share-overlay .share-modal .share-close {
  float: right;
  margin: 0;
  cursor: pointer;
  font: normal normal 40px 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 1;
  color: inherit;
}

.dismiss-modal {
  max-height: 10%;
}

.social-sharing.text-center {
  max-height: 45%;
  min-height: calc(22.5% + 2rem);
  margin: 0 auto 1.618rem;
}

.col-12.text-center.social-accounts {
  min-height: calc(20% + 2rem);
  max-height: 40%;
  margin: 0rem auto 0;
}

@media only screen and (max-width: 1440px) {
  .share-modal {
    max-height: 450px;
    max-width: 550px;
  }

  .dismiss-modal {
    min-height: calc(5% + 2rem);
  }

  .col-12.text-center.social-accounts {
    min-height: calc(25% + 2rem);
    max-height: 35%;
    margin: 1rem auto 0;
  }

  .social-sharing.text-center {
    max-height: 50%;
    min-height: calc(25% + 2rem);
    margin: 0 auto 2rem;
  }
}

@media only screen and (max-width: 1024px) {
  .share-modal {
    max-width: 50vmax;
  }

  .share-modal h1 {
    margin-bottom: 0;
  }

  .dismiss-modal {
    min-height: calc(2.5% + 2rem);
    max-height: 15%;
  }

  .social-sharing.text-center {
    max-height: 45%;
    min-height: calc(22.5% + 2rem);
    margin: 0 auto 1.618rem;
  }

  .col-12.text-center.social-accounts {
    min-height: calc(20% + 2rem);
    max-height: 40%;
    margin: 0rem auto 0;
  }

}

@media only screen and (max-width: 992px) {

  .share-modal {
    max-height: 375px;
    max-width: 425px !important;
  }

}

@media only screen and (max-width: 768px) {

  .share-modal {
    max-height: 375px;
    max-width: 37.5vmax !important;
  }

  .share-overlay .share-modal h1 {
    font: normal normal 16px 'Open Sans', sans-serif;
    font-family: inherit;
    font-weight: 600;
  }

  .share-overlay .share-modal .share-close {
    font-size: 30px;
  }

  .share-overlay .share-modal h1:nth-child(2) {
    margin-top: 1rem;
  }

  .share-modal a {
    height: 38px;
    width: 38px;
    margin: 10px 5px 0 5px !important;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
  }

  .share-overlay .share-modal .share-close {
    font-size: 35px;
  }

  .share-modal a {
    margin: 10px !important;
  }
}

@media only screen and (max-width: 768px) and (orientation: landscape) {
  .share-modal {
    max-height: 90vmin;
    max-width: 50vmax !important;
  }
}

@media only screen and (max-width: 576px) {
  .share-modal {
    max-width: 95vw !important;
  }

  .share-modal .text-center {
    padding: 0;
  }

}

@media only screen and (max-width: 576px) and (orientation: landscape) {
  .share-overlay .share-modal .share-close {
    margin-top: 10px;
  }

  .dismiss-modal {
    min-height: unset !important;
  }

}

@media only screen and (max-width: 480px) {
  .share-modal {
    max-width: 95vw !important;
  }

}