/*
  Theme Name: EssentialPeople Theme
  Theme URI: https:www.netengine.it
  Description: Mustache essentialpeople Theme
  Version: 1.1
  Author: Netengine
  Author URI: https:www.netengine.it
*/



/*TIPOGRAPHY test*/
html,
body {
  font-size: 12px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

h1 {
  font-size: 8.75rem;
}

h2 {
  font-size: 4.06rem;
}

h3 {
  font-size: 3.88rem;
}

h4 {
  font-size: 3.63rem;
}

h5 {
  font-size: 3.08rem;
  line-height: 4.08rem;
}

h6 {
  font-size: 2.81rem;
}

h6.job-title,
h6.article-job-title {
  font-size: 2.5rem;
}

.buttons-container p {
  font-size: 1.6rem;
}

.article-text-area .text-area p {
  font-size: 2.81rem;
}

/*generic settings*/
html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: white;
  color: black;
}

/*HEADER SETTINGS*/
header {
  display: flex;
  flex-flow: row;
  width: 100%;
  justify-content: center;
  transition: height 0.3s;
  height: 104px;
}

.header-container {
  display: flex;
  max-width: 1440px;
  justify-content: center;
  justify-items: center;
  align-items: center;
}

.header-container img {
  width: 100%;
  height: 30px;
  transition: all 0.3s ease-in-out;
  display: block;
}

.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
  padding-top: 66.25%;
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

h1.header-text {
  color: white;
  text-align: center;
  font-weight: bold;
}

/*CONTENT Wrapper*/
section.content {
  max-width: 1440px;
  margin: 0 auto
}

.content-wrapper {
  display: flex;
  max-width: 1440px;
  flex-flow: column;
  margin: 0 auto;
}

/*------HOME PAGE-----*/

body.modal-view {
  overflow: hidden
}

/*Section Header*/
.header-box {
  display: flex;
  justify-content: center;
  width: 100%;
  height: auto;
  position: relative;
}

.home-header {
  width: 100%;
  position: relative;
  margin-top: 60px;
}

.header-image-text {
  display: flex;
  flex-flow: column;
  position: absolute;
  top: 0;
  bottom: 0;
  justify-content: center;
  left: 0;
  right: 0;
}
/*set video as background*/
.video-js{
  overflow:hidden;
  position:absolute !important;
  height:100%;
  width:100%;
  top:0;
  left:0;
  z-index: -998;
}

/*Section TEXT*/
section.text {
  width: 62.5%;
  text-align: center;
  margin: 0 auto;
}

.hashtag-text {
  margin: 60px 0px 30px;
  color: #E71F83;
  font-weight: bold;
}

.subtitle {
  color: #888B8D;
  margin-bottom: 70px;
}


/*SECTION ARTICLE GRID*/
section.article-grid {
  width: 86.12%;
  margin: 0 auto;
}

.article-grid-first-row,
.article-grid-second-row,
.article-grid-third-row,
.article-grid-fourth-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0px 20px;
  flex-wrap: wrap;
}

/*Square container for 2 square article with portrait article (second article row)*/
.square-container {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  width: 49%;
}

.square-container .quote-container,
.square-container .job-square {
  width: 100%;
}

/*Single article item*/
.quote-container,
.job-square {
  display: flex;
  flex-flow: column;
  width: 49%;
  min-height: 608px;
}

.job-square {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.quote-container {
  background-color: rgba(136, 139, 141, 20%);
}

.quote-container h4 {
  padding: 45px 55px;
  color: #888B8D;
}

.job-landscape {
  display: flex;
  flex-flow: column;
  width: 100%;
  height: 680px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.job-portrait {
  display: flex;
  flex-flow: column;
  width: 49%;
  /*height: 1240px;*/
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.article-card-text {
  margin-top: auto;
  background-color: rgba(244, 244, 244, 63%);
  ;
  padding: 45px;
  color: #20244D;
}

.square-container .job-square {
  margin-bottom: 20px;
}


/*-----ARTICLE PAGE-----*/
.article-title {
  margin: 0;
  text-align: left;
  padding: 40px 30px 20px 30px;
}

.article-title h2,
.article-title h6 {
  color: #E71F83;
}

.article-title h2 {
  text-transform: uppercase;
  font-weight: bold;
}

/*Image container*/
.article-img-audio-container {
  display: flex;
  align-items: center;
  flex-flow: column;
  background-color: rgba(136, 139, 141, 20%);
  min-width: 100%;
}

.article-image {
  max-width: 100%;
  display: block;
  margin: auto;
}

h6.audio-title {
  margin-top: 30px;
  text-transform: uppercase;
  color: #20244D;
  font-weight: 900;
}

.audio-container {
  margin: 25px 0px 30px;
}

.article-quote-container {
  padding: 70px 0px;
  background-color: rgba(136, 139, 141, 20%);
  color: #888B8D;
}

.article-text-area {
  width: 63.9%;
  padding: 104px 0px 140px;
  margin: auto;
}

.article-text-area .text-area {
  width: 80%;
  margin: auto;
}

.article-text-area .text-area p {
  color: #888B8D;
  font-size: 2.58rem;
  line-height: 3.34rem;
}

/*Buttons container*/
.buttons-container {
  width: 88.2%
    /*1270px*/
  ;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  margin: 65px auto 102px;
}

.btn-bar {
  height: 6px;
  width: 144px;
  margin-bottom: 10px;
  background-color: #20244D;
  transition: background-color 0.2s;
}

.prev,
.next {
  opacity: 0;
}

.prev.show,
.next.show {
  opacity: 1;
  display: block !important;
}

.prev:hover .btn-bar,
.next:hover .btn-bar {
  background-color: #E71F83;
}

.buttons-container p {
  text-align: center;
  color: #888B8D;
}

.article-quote-container .article-quote {
  width: 63%;
  margin: 0 auto;
}
.article-quote h2 {
  font-size: 3.83rem;
  line-height: 5rem;
}
/*footer*/
.essentialpeople-footer {
  text-align: center;
  margin: 40px 0px 30px;
}

h2.hashtag-footer {
  text-transform: uppercase;
  color: #E71F83;
  font-weight: bold;
  font-size: 3.8rem;
}

.footer-logo {
  width: 10%;
  margin: 0 auto;
  margin-top: 20px;
}



/*body:after{
  content: "{{mustache}}";
}*/

a {
  color: grey;
}

.pagination {
  margin-top: 1em;
}

/*player audio*/
.green-audio-player {
  background-color: black;
  margin: 0 auto;
  width: 90%;
}

.green-audio-player .slider .gap-progress,
.green-audio-player .slider .gap-progress .pin {
  background-color: #E71F83;
}

.green-audio-player .slider {
  background-color: #ab9a8a;
}

path.play-pause-btn__icon,
path.volume__speaker,
.green-audio-player .volume .volume__button.open path {
  fill: #ab9a8a;
}

span.controls__current-time,
span.controls__total-time {
  color: #ab9a8a;
}

/*grid experiment*/
/*Quote article card*/
.random-post.quote {
  background-color: #e7e8e8;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  color: #888B8D;
  position: relative;
  height: 0;
  padding-bottom: 100%;
}

.random-post.quote h2 {
  text-align: left;
  line-height: 1.3;
}

/*text container*/
.random-post.quote .quote-text {
  width: 80%;
  padding-top: 60px;
  padding-bottom: 60px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Quote icon*/
.random-post.quote .quote-text *:not(strong):before,
.article-quote-container h2:before {
  content: url('asset/open-quote.svg');
  width: 22px;
  vertical-align: super;
  position: absolute;
  margin-top: -16px;
  margin-left: -27px;
}

.random-post.quote .quote-text *:not(strong):after,
.article-quote-container h2:after {
  content: url('asset/close-quote.svg');
  position: absolute;
  width: 22px;
  vertical-align: sub;
  margin-left: 10px;
  margin-top: 15px;
}

.random-post.quote .quote-text h2 {
  padding-left: 28px;
  display: inline;
}

.random-post.quote .quote-text h1,
.random-post.quote .quote-text h2,
.random-post.quote .quote-text h3,
.random-post.quote .quote-text h4,
.random-post.quote .quote-text h5,
.random-post.quote .quote-text h6,
.random-post.quote .quote-text p {
  font-size: 2.75rem;
}

.random-post-container {
  width: 100%;
  display: none;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  max-width: 1235px;
  column-gap: 20px;
  row-gap: 20px;
  grid-template-areas:
    "zeroquote zerosquare"
    "secondsquare longportrait"
    "firstquote longportrait"
    "firstland firstland"
    "lastsquare lastquote";
}
.random-post-container.showhide{
  display: grid;
}
button.loadmore {
  display: flex;
    align-items: center;
    align-self: center;
    font-size: 1.6rem;
    padding: 35px;
    position: relative;
    color: #888B8D;
    transition: transform 0.3s ease-in-out;
}
button.loadmore:after{
  content: '';
    display: block;
    margin-left: auto;
    width: 25px;
    height: 25px;
    background-image: url(asset/plus-btn.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: transparent;
    position: absolute;
    right: 0;
    
    
}
button.loadmore:hover{
  transform: scale(1.2);
}

.random-post-container :nth-child(1) {
  grid-area: zeroquote;
}

.random-post-container :nth-child(2) {
  grid-area: zerosquare;
}

.random-post-container :nth-child(3) {
  grid-area: secondsquare;
}

.random-post-container :nth-child(4) {
  grid-area: longportrait;
}

.random-post-container :nth-child(5) {
  grid-area: firstquote;
}

.random-post-container :nth-child(6) {
  grid-area: firstland;
}

.random-post-container :nth-child(7) {
  grid-area: lastsquare;
}

.random-post-container :nth-child(8) {
  grid-area: lastquote;
}

.random-post {
  display: flex;
  flex-flow: column-reverse;
  flex-wrap: wrap;
  background-color: #e7e8e8;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 100%;
  margin-bottom: 15px;
}

.random-post .bg-image.desktop {
  display: none;
}

.random-post .bg-image {
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: scale 0.2s ease-in-out;
}

.random-post:hover .bg-image {
  scale: 1.05;
}

.random-title-block {
  position: relative;
}

.random-title-block:not(.quote) {
  background-color: rgba(244, 244, 244, 0.6);
  padding: 20px;
  color: #20244D;

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

@media screen and (min-width:760px) {
  .random-post {
    height: auto;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  
  .random-title-block:not(.quote) {
    position: relative;
    bottom: auto;
    left: auto;
  }
}

.random-title-block h2 {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
}

.random-title-block h3 {
  font-size: 2rem;
}

.text-home-page {
  margin-bottom: 40px;
}

.text-home-page {
  font-size: 1.8rem;
  line-height: 2.41rem;
  text-align: left;
  color: #6D6E71;
}

.text-home-page p {
  font-size: 1.8rem;
  line-height: 2.41rem;
  margin: 30px 0px;
  color: #6D6E71;
}

a.random-title-block.quote {
  margin-left: auto;
  width: 50px;
  height: 50px;
  background-image: url(asset/plus-btn.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-color: transparent;
  position: absolute;
  bottom: 20px;
  right: 20px;
  transition: transform 0.2s ease-in-out
}

a.random-title-block.quote:hover {
  transform: scale(1.2);
}

/*Sticky header*/
.sticky{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:60px;
  width:100%;
  background-color:white;
  transition: height 0.3s;
  z-index: 10000;
}
.sticky .header-container{
  height: 60px; 
}
.sticky .header-container a {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sticky img{
  scale: 0.7;
}

/*Media Queries*/
@media screen and (min-width:1440px) {
  .content-wrapper:not(.home-page) {
    width: 1440px;
  }
}

@media screen and (max-width:1024px) {
  .square-container {
    width: 100%;
  }

  .quote-container,
  .job-square {
    width: 100%;
  }

  .job-portrait {
    width: 100%;
  }
  .random-post.quote .quote-text h1, .random-post.quote .quote-text h2, .random-post.quote .quote-text h3, .random-post.quote .quote-text h4, .random-post.quote .quote-text h5, .random-post.quote .quote-text h6, .random-post.quote .quote-text p {
    font-size: 2.5rem;
}
}

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

  /*TIPOGRAPHY*/
  h1 {
    font-size: 4.43rem;
  }

  h2 {
    font-size: 2.12rem;
  }
  .article-quote h2 {
    font-size: 2.12rem;
    line-height: 3rem;
  }

  .hashtag-text h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.8rem;
  }

  h5 {
    font-size: 1.62rem;
  }

  h6 {
    font-size: 1.37rem;
  }

  h6.job-title,
  h6.article-job-title {
    font-size: 1.25rem;
  }

  p.text-home-page {
    font-size: 1.37rem;
    line-height: 32px;
  }
  .text-home-page p {
    font-size: 1.06rem;
    line-height: 25px;
    letter-spacing: 1px;
  }
  .buttons-container{
    margin:33px auto;
  }
  .buttons-container .btn-bar{
    height: 2px;
    width: 65px;
  }
  .buttons-container p {
    font-size: 1.1rem;
  }
  .article-text-area {
    width: 84%;
    margin: 30px auto;
    padding:0px;
    text-align: left;
  }
  .article-text-area .text-area p {
    font-size: 1.5rem;
    line-height: 2.2rem;
  }

  header {
    position: fixed;
    background: #fff;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px;
    height: 60px;
    z-index: 2;
  }
  section.text {
    width: 84.5%;
  }

  .article-quote-container h2:before {
    width: 20px;
  }

  .article-quote-container h2:after {
    width: 20px;
  }

  .quote-container,
  .job-square {
    min-height: 304px;
  }

  .job-portrait {
    min-height: 620px;
  }

  .job-landscape {
    max-height: 304px;
  }

  .article-card-text {
    padding: 15px;
  }
  /*Plus btn article card*/
  a.random-title-block.quote{
    width:30px;
    height:30px;
  }

  .article-grid-first-row div:nth-child(2),
  .article-grid-second-row div:nth-child(2),
  .article-grid-third-row div:nth-child(2),
  .article-grid-fourth-row div:nth-child(2) {
    margin-top: 20px;
  }

  .subtitle {
    width: 95%;
    margin: 0 auto 30px;
    line-height: 30px;
  }
  .subtitle h5 {
    font-size: 1.25rem;
    line-height: 2.2rem;
  }
  /*header logo*/
  .header-container a {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  
  /*footer logo*/
  .footer-logo {
    width: 18%;
  }
  h2.hashtag-footer {
    font-size: 1.3rem;
  }
  .random-post.quote .quote-text h1,
  .random-post.quote .quote-text h2,
  .random-post.quote .quote-text h3,
  .random-post.quote .quote-text h4,
  .random-post.quote .quote-text h5,
  .random-post.quote .quote-text h6,
  .random-post.quote .quote-text p {
    font-size: 1.75rem;
  }

}
@media screen and (max-width:760px) {
  .random-post-container {
    display: none;
    flex-flow: column;
    margin: 0 auto;
    max-width: auto;
    grid-template-columns: auto;
    grid-template-rows: auto;
    max-width: auto;
    column-gap: 0;
    row-gap: 15px;
    padding: 0 15px;
  }
 .random-post-container.showhide{
    display: flex;
    
  }

  .random-post.quote .quote-text h1,
  .random-post.quote .quote-text h2,
  .random-post.quote .quote-text h3,
  .random-post.quote .quote-text h4,
  .random-post.quote .quote-text h5,
  .random-post.quote .quote-text h6,
  .random-post.quote .quote-text p {
    font-size: 1.4rem;
  }
  .random-title-block h2 {
    font-size: 1.4rem;
    font-weight: 700;
  }
  
  .random-title-block h3 {
    font-size: 1.2rem;
  }
}
/*-----End Media Queries-----*/

.opacity-0 {
  opacity: 0;
}
.hide {
  display: none;
}
.show {
  display: flex !important;
}
.modal {
  display: none;
  flex-flow: column;
  position: fixed;
  width: 100%;
  min-height: 300px;
  height: 100%;
  background: #fff;
  color: #000000;
  text-align: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: scroll;
  z-index: 11000;
}
.modal .close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: url(asset/close.svg) center center no-repeat;

}

#modal-content{
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  min-width: 80%;
  width: 100%;
}

#modal-content #modal-ready {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#modal-content.show #modal-ready {
  opacity: 1;
}

.modal > .content-wrapper {
  position: relative;
  width: 100%;
}

#modal-content .content,
#modal-content .content-wrapper {
  width: 100%;
}

.audio-container .green-audio-player {
  border-radius: 8px;
}

.video-js .vjs-tech {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
}

.modal-link {
  cursor: pointer;
}

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

  .header-container img {
    height: 40px;
  }

  .home-header {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: calc(100vh - 104px);
    position: relative;
  }
  
  .header-image-text {
    display: flex;
    flex-flow: column;
    position: absolute;
    top: 0;
    bottom: 0;
    justify-content: center;
    left: 0;
    right: 0;
  }

  .home-header.show-video {
    height: auto;
    display: flex;
  }

  .embed-responsive::before {
    padding-top: 56.25%;
  }

  .text-home-page {
    margin-bottom: 95px;
  }
  
  .hashtag-text {
    margin: 125px 0px 60px;
  }
  
  .audio-container {
    width: 600px;
  }
  
  #modal-content{
    max-width: 1440px;
    min-width: 80%;
  }
  .modal .close-modal {
    top: 35px;
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .article-title {
    margin: 80px 0;
    text-align: left;
    padding: 0 0px 0 80px;
  }
  
  .random-post-container {
    margin: 0 auto 15px;
  }
  
  .random-title-block:not(.quote) {
    padding: 40px;
  }

  .random-post.quote .quote-text {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .random-post.quote .quote-text h2 {
    padding-left: 40px;
  }

  /*Quote icon*/
  .random-post.quote .quote-text *:not(strong):before,
  .article-quote-container h2:before {
    width: 38px;
    margin-top: -30px;
    margin-left: -45px;
  }

  .random-post.quote .quote-text *:not(strong):after,
  .article-quote-container h2:after {
    width: 38px;
    vertical-align: sub;
    margin-left: 10px;
    margin-top: 18px;
  }
  
  .random-post .bg-image.desktop {
    display: block;
  }
  
  .random-post .bg-image {
    display: none;
  }
  .essentialpeople-footer {
    margin: 95px 0px 30px;
  }
  
  h6.audio-title {
    margin-top: 45px;
  }
  
  .audio-container {
    margin: 30px 0px 80px;
  }  
}
