/*
Theme Name: janeandpaul
Template: generatepress
Version: 1.0.0
*/

/* Global */

:root {
  --contrast: #aaa;
}

html, body, .inside-article, .site-header, .main-navigation, .main-navigation ul ul, footer.site-info, .wpcf7-submit {
  background-color: #000 !important;
  font-family: acumin-pro-wide, sans-serif;
  font-weight: 200;
  font-style: normal;
}

body > #page {
  min-height: 80vh;
}

h1 {
  font-size: 46px;
}

h4 {
  font-size: 30px;
}

p, a {
  font-size: 20px;
}

a, a:focus {
  color: #777;
  text-decoration: none
}

.mt-40 {
  margin-top: 40px;
}

.mt-25 {
  margin-top: 25px;
}

.width-100per figure, .width-100per img {
  width: 100%;
}

/* Header */

body > header.site-header {
  padding-top: 20px;
}

header .main-title a {
  font-family: acumin-pro-wide, sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 60px;
}

.main-navigation a {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 1.4 !important;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #ccc !important;
}

.main-navigation li:hover, .main-navigation a:hover, .main-navigation li:focus, .main-navigation a:focus, .main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #ececec !important;
}

/* Footer */

footer .copy-custom {
  font-weight: 400;
}

/* Bio */

.bio-container > .wp-block-group__inner-container {
  padding: 0;
}

.jane-bio > .wp-block-group__inner-container, .paul-bio > .wp-block-group__inner-container {
  padding-left: 0;
  padding-right: 0;
}

.jane-bio .wp-block-group__inner-container {
  border-bottom: solid 1px;
  padding-top: 70px;
}

.paul-bio .wp-block-group__inner-container {
  padding-top: 70px;
}

.bio-container img, .bio-container figure {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.bio-container .wp-block-column:not(:first-child) {
  margin-left: 6%;
}

.bio-container .wp-block-column p:last-child {
  margin-bottom: 10px;
}

/* Contact */

.contact-wrapper {
  padding-top: 20px;
}

.contact-wrapper .wpcf7 {
  max-width: 90%;
}

.wpcf7 input:not(.wpcf7-submit), .wpcf7 textarea {
  width: 100%;
  padding: 7px 10px;
  border-radius: 3px;
  color: #222;
}

.wpcf7 textarea {
  height: 185px;
}

.contact-wrapper h3 {
  font-size: 22px;
}

.contact-wrapper .wp-block-column > p {
  margin-bottom: 5px;
}

.contact-wrapper a {
  font-size: 18px;
}

.wpcf7-form-control-wrap {
  display: block;
  margin-top: 5px;
}

.wpcf7 label {
  font-size: 16px;
}

.contact-wrapper .email a:before, .contact-wrapper .phone a:before {
  content: "";
  background-size: contain;
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  position: relative;
  margin-right: 10px;
}

.contact-wrapper .email a:before {
  background-image: url("https://janeandpaul.co.za/wp-content/uploads/2021/12/Path-30.png");
  top: 5px;
}

.contact-wrapper .phone a:before {
  background-image: url("https://janeandpaul.co.za/wp-content/uploads/2021/12/Path-31.png");
  top: 1px;
}

.contact-wrapper .wpcf7 input.wpcf7-submit {
  background: transparent;
  border: solid 1px white;
  padding: 10px 25px;
  font-size: 14px;
  text-transform: uppercase;
  transition: 0.3s all;
  border-radius: 3px;
}

.contact-wrapper .wpcf7 input.wpcf7-submit:hover {
  background: #fff !important;
  color: #222;
}

.wpcf7-response-output {
  color: #fff !important;
}

.wp-social-link-linkedin {
  background-color: transparent !important;
}

.wp-social-link-linkedin a {
  padding: 0 !important;
}

.wp-block-social-link-anchor::after {
    content: "Linkedin";
    position: relative;
    font-size: 18px;
    color: #777;
    bottom: 4px;
    left: 6px;
    transition: 0.3s;
}

.wp-block-social-link-anchor:hover::after {
  color: #aaa;
}

.wp-block-social-link:hover {
    transform: unset !important;
}

.wp-social-link-linkedin svg {
  fill: #aaa !important;
  height: 22px !important;
  width: 22px !important;
}

/* Blog */

.blog-heading {
  padding: 40px;
}

body.blog .blog-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.blog .blog-wrapper article {
  width: 100%;
  max-width: 33%;
  margin-bottom: 20px;
}

body.blog .blog-wrapper .inside-article {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

body.blog .blog-wrapper h2 a {
  line-height: 1.3;
  margin-top: 25px;
  font-size: 22px;
  display: block;
}

body.blog .blog-wrapper .entry-summary p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* number of lines to show */
  -webkit-box-orient: vertical;
}

body.blog .blog-wrapper img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

body.blog .blog-wrapper .post-image {
  order: 1;
  margin-top: 0;
}

body.blog .blog-wrapper .entry-header {
  order: 2;
}

body.blog .blog-wrapper .entry-header .entry-meta {
  font-size: 14px;
}

body.blog .blog-wrapper .entry-summary {
  order: 3;
  margin-top: 10px;
}

body.blog .blog-wrapper footer.entry-meta {
  display: none;
}

.entry-meta .author a, .disable-author-link a {
  cursor: default;
}

.blog-wrapper > nav {
  background-color: transparent !important;
  width: 100%;
  text-align: center;
}

.custom-post-content .alignwide {
  width: 100% !important;
  margin: 0 auto 20px;
}

/* 404 */

.custom-404 {
  text-align: center;
  margin-top: 10vh;
  padding: 20px;
}

.custom-404 h1 {
  font-size: 100px;
}

.custom-404 h4 {
  font-size: 24px;
}

@media screen and (max-width: 960px) {

  body.blog .blog-wrapper article {
    max-width: 50%;
    margin-bottom: 30px;
  }

  body.blog .blog-wrapper img {
    height: 220px;
  }

  header .main-title a {
    font-size: 35px;
  }

  .main-navigation .main-nav ul li a {
    padding-left: 15px;
    padding-right: 15px;
  }

  .main-navigation a {
    font-size: 15px;
  }

  a, p {
    font-size: 18px;
  }

}

@media screen and (max-width: 780px) {

  .custom-404 h1 {
    font-size: 60px;
  }

  .custom-404 h4 {
    font-size: 20px;
  }

  #main.site-main {
    margin-top: 0;
  }

  .contact-wrapper {
    padding-top: 0;
  }

  h1 {
    font-size: 28px;
  }

  .bio-container h3 {
    margin-top: 25px;
  }

  .bio-container .wp-block-column:not(:first-child) {
      margin-left: 2em;
  }

  .contact-wrapper .wpcf7 {
    max-width: 100%;
  }

  .jane-bio .wp-block-group__inner-container {
    padding-top: 20px;
  }

  .blog-heading {
    padding: 30px 30px 0
  }

}

@media screen and (max-width: 600px) {

  .bio-container .wp-block-column:not(:first-child) {
    margin-left: 0;
  }

  body.blog .blog-wrapper article {
    max-width: 100%;
  }

}

/* Home re-design */

body.home main > article .inside-article {
  padding-left: 0;
  padding-right: 0;
}

.homepage-wrapper, .homepage-wrapper img {
  position: relative;
  z-index: 6;
}

.homepage-wrapper:not(.new) h1, .homepage-wrapper h2, .homepage-wrapper:not(.new) h3 {
  position: absolute;
  z-index: 9;
  text-align: center;
  font-weight: 100;
  color: #ececec;
  width: 100%;
  left: 0;
}

.homepage-wrapper:not(.new) h2 {
  top: 20%;
  font-size: 58px;
}

.homepage-wrapper:not(.new) h1 {
  bottom: 9%;
  font-size: 30px;
}

.homepage-wrapper:not(.new) h3 {
  bottom: 4%;
  font-size: 18px;
}

/* Home New */

.homepage-wrapper.new {
  max-width: 95%;
  margin: 20px auto 0;
}

.homepage-wrapper.new img {
  width: 100%;
}

.homepage-wrapper.new h2 {
  top: 10%;
  font-size: 70px;
}

.homepage-wrapper.new .center {
  width: 31%;
  text-align: center;
  position: absolute;
  bottom: 21%;
  z-index: 9;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.homepage-wrapper.new .center p {
  margin-bottom: 1.8%;
  font-size: 1vw;
}

.homepage-wrapper.new .left {
  position: absolute;
  bottom: 4%;
  z-index: 9;
  left: 6%;
  max-width: 55%;
}

.homepage-wrapper.new .right {
  position: absolute;
  bottom: 4%;
  z-index: 9;
  right: 4%;
  max-width: 30%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.homepage-wrapper.new .right div {
  text-align: center;
  width: 100%;
  max-width: 33%;
}

.homepage-wrapper.new .right > div:nth-child(2) {
  position: relative;
  left: 5%;
}

.homepage-wrapper.new .right div span, .homepage-wrapper.new .images div {
  display: block;
  font-size: 9px;
  padding: 0 10px;
 line-height: 1.2;
	font-weight: 400;
}

.homepage-wrapper.new .right img {
  height: 75px;
  object-fit: contain;
}

.homepage-wrapper.new .left h1 {
  font-size: 35px;
  font-weight: 100;
  color: #ececec;
  margin-bottom: 5px;
}

.homepage-wrapper.new .left h3 {
  font-size: 14px;
  font-weight: 100;
  color: #ddd;
}

.homepage-wrapper.new .mobile-show {
  display: none;
}

/* Gallery */

.gallery .container {
  padding: 40px;
}

.gallery h1 {
  padding: 40px;
}

.gallery .flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gallery .gallery-wrapper {
  width: 100%;
  max-width: 23.4%;
}

.gallery .flex img.main {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.gallery .flex p {
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 400;
}

.slick-arrow {
  position: absolute;
  top: calc(50% - 15px);
  background-color: transparent !important;
  z-index: 999;
  text-indent: -99999px;
  font-size: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
  padding: 5px;
}

.slick-prev {
  left: 1% !important;
  background-image: url('/wp-content/themes/janeandpaul/img/left.svg');
}

.slick-next {
  right: 1% !important;
  background-image: url('/wp-content/themes/janeandpaul/img/right.svg');
}

/* Modal */

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #00000090;
  z-index: 999999;
  display: none;
}

.modal .container {
  width: 100%;
  max-width: 80%;
  margin: 50px auto;
}

.modal .container img {
  width: 100%;
  max-height: 90vh;
}

@media screen and (max-width: 1500px) {

  .homepage-wrapper.new .center p {
/*     font-size: 15px; */
  }

}

@media screen and (max-width: 1400px) {

  .homepage-wrapper.new .center p {
/*     font-size: 14px; */
/*     margin-bottom: 1%; */
  }

}

@media screen and (max-width: 1200px) {

  .homepage-wrapper.new .mobile-show {
    display: block;
  }

  .homepage-wrapper.new .mobile-hide {
    display: none;
  }

  .homepage-wrapper.new h1 {
    font-size: 70px;
    position: relative;
    font-weight: 100;
    color: #ececec;
    width: 100%;
    left: 0;
    text-align: center;
    margin: 40px auto 50px;
  }

  .homepage-wrapper.new h2, .homepage-wrapper.new h3 {
    position: relative;
    font-size: 20px;
    font-weight: 200;
    text-align: center;
    top: 0;
    color: var(--contrast);
    line-height: 1.3;
  }

  .homepage-wrapper.new h2 {
    margin-bottom: 20px;
  }

  .homepage-wrapper.new h3 {
    margin-bottom: 50px;
  }

  .homepage-wrapper.new p {
    text-align: center;
    margin-bottom: 10px;
  }

  .homepage-wrapper.new .images {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
  }

  .homepage-wrapper.new .images div {
    width: 100%;
    max-width: 33%;
    padding: 5px;
    text-align: center;
  }

  .homepage-wrapper.new .images img {
    object-fit: contain;
    height: 60px;
  }

}

@media screen and (max-width: 980px) {

  .gallery h1 {
    padding: 30px;
  }

  .gallery .gallery-wrapper {
    max-width: 31%;
  }

  .homepage-wrapper:not(.new) h2 {
    font-size: 36px !important;
  }

  .homepage-wrapper:not(.new) h1 {
    bottom: 8% !important;
    font-size: 20px !important;
  }

  .homepage-wrapper:not(.new) h3 {
    bottom: 3% !important;
    font-size: 15px !important;
    padding: 0 15px !important;
    font-weight: 200 !important;
  }

}

@media screen and (max-width: 620px) {

  .gallery .gallery-wrapper {
    max-width: 48%;
  }

  .gallery .container {
    padding: 0 30px;
  }

  .gallery .flex img {
    height: 130px;
  }

  .homepage-wrapper:not(.new) h2 {
    font-size: 20px !important;
  }

  .homepage-wrapper:not(.new) h1 {
    bottom: -3px !important;
    font-size: 18px !important;
    font-weight: 200 !important;
  }

  .homepage-wrapper.new h1 {
    font-size: 48px;
    margin: 40px auto;
  }

  .homepage-wrapper:not(.new) h3 {
    bottom: -80px !important;
    padding: 0 15px !important;
  }

  .homepage-wrapper.new h2, .homepage-wrapper.new h3 {
    font-weight: 200;
  }

  .homepage-wrapper.new p {
    font-size: 15px;
  }

}

.scroll-cta {
  background-color: #777777;
  padding: 15px 40px 18px;
}

.scroll-cta p {
  font-size: 15px;
  margin: 0 8px;
  color: #fff;
  white-space: nowrap;
  width: max-content;
  letter-spacing: 0.5px;
font-weight: 400;
}

.scroll-cta .word-slider {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

@media screen and (max-width: 767px) {

  .scroll-cta {
    padding: 18px 20px 20px;
  }

  .scroll-cta p {
    font-size: 14px;
    margin: 0 6px;
  }

}
