/*
Theme Name: Karol Smagacz F3
Theme URI: http://feel3creations.com
Author: Feel3creations Team
Author URI: http://feel3creations.com
Description: Default theme specialy made for Karol Smagacz by Feel3Creations.
Version: 1.0
Requires at least: 5.4
Requires PHP: 5.2.4
License: For client purpose only
License URI: http://feel3creations.com
Text Domain: karolsmagacz
Tags: 
*/

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "MonserratRegular";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Montserrat/Montserrat-Regular.ttf");
}

@font-face {
  font-family: "MontserratExtraLight";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Montserrat/Montserrat-ExtraLight.ttf");
}

@font-face {
  font-family: "MonserratMedium";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Montserrat/Montserrat-Medium.ttf");
}

@font-face {
  font-family: "MonserratBold";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Montserrat/Montserrat-Bold.ttf");
}

@font-face {
  font-family: "OpenSansRegular";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Open_Sans/OpenSans-Regular.ttf");
}

@font-face {
  font-family: "OpenSansLight";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Open_Sans/OpenSans-Light.ttf");
}

@font-face {
  font-family: "OpenSansBold";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Open_Sans/OpenSans-Bold.ttf");
}

@font-face {
  font-family: "RalewayThin";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Raleway/Raleway-Thin.ttf");
}

@font-face {
  font-family: "RalewayRegular";
  src: url("/wp-content/themes/karolsmagaczf3/fonts/Raleway/Raleway-Regular.ttf");
}

body {
  margin: 0 auto;
  font-family: "OpenSansLight";
  color: #8c8c8c;
}

.homepagecontent {
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
  justify-content: center;
}

.homepagecontent .n2-section-smartslider,
.wp-block-group {
  position: relative;
  z-index: 0;
}

/* ADDITIONAL */
#map img {
  width: 100%;
  height: 100%;
}
#map {
  width: 80%;
  height: 100%;
  position: relative;
  left: 20%;
}
.map-holder {
  width: 100%;
  height: 50%;
}

#publikacje figure.wp-block-image {
  padding: 20px;
}

a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  position: relative;
}
a:after {
  display: flex;
  content: "";
  height: 1px;
  width: 100%;
  background: #aaa;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: 0.5s all;
}
a:hover:after {
  opacity: 1;
}

.wp-block-image.hero::before {
  content: "";
  background-image: url(/wp-content/uploads/Karol%20Smagacz%20Logo.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 80% auto;
  position: absolute;
  top: calc(70px + 32%);
  left: 50%;
  z-index: 100;
  background-color: #f2eee2;
  align-items: center;
  justify-content: center;
  width: 20%;
  padding-top: 20%;
  transform: translate(-50%, -50%);
}

/* ANIMATION */
@keyframes an {
  from {
    opacity: 0;
    transform: perspective(500px) translate3d(-35px, -40px, -150px)
      rotate3d(1, -1, 0, 35deg);
  }
  to {
    opacity: 1;
    transform: perspective(500px) translate3d(0, 0, 0);
  }
}

/* MAIN PROJECTS */

.projects {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  grid-auto-rows: minmax(100px, auto);
}

.projects > a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.projecthover {
  font-size: 28px;
  text-transform: capitalize;
  display: none;
  color: #fff;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  transition: 0.5s all ease-in;
}

.singleproject {
  width: 100%;
  max-width: 600px;
  height: 930px;
  background-size: 100% 100%;
}

.projects .mobiletitle {
  display: none;
  font-size: 24px;
  font-family: "OpenSansLight";
}

.singleproject:hover .projecthover {
  display: flex;
}

/* SINGLE PAGE */

.singlepage .wp-block-columns {
  height: 100vh;
  overflow: hidden;
  margin-bottom: 0;
}

.singlepage .custom-slider {
  height: 100vh;
}
/* 
.singlepage .wp-block-column:first-of-type {
  padding-left: 15px;
} */

.singlepage .wp-block-column:nth-of-type(2) {
  margin-top: 50px;
  overflow: scroll;
  margin-left: 16px;
  padding-bottom: 30px;
  position: relative;
  overflow-x: hidden;
}

.singlepage .blocks-gallery-grid .blocks-gallery-item:last-of-type {
  margin-bottom: 0;
}

/* FOOTER */
footer {
  margin: 100px 40px 30px;
}

.clientname {
  font-size: 24px;
}

.clientdata {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 20px auto;
}

.clientdata a {
  text-decoration: none;
  color: #aaaaaa;
}

.clientdata a:hover {
  text-decoration: underline;
  color: rgba(170, 170, 170, 0.5);
}

.clientwork {
  margin: 10px auto;
  font-size: 12px;
}

.clientphone {
  font-size: 16px;
  margin-top: 30px;
}

.clientemail {
  font-size: 16px;
  margin-top: 15px;
}

.clientsocial {
  margin-top: 15px;
  display: flex;
}

.separator {
  margin: 0 5px;
}

/* bottom footer */

.f3copyright {
  font-size: 12px;
  background: #fff;
  color: #aaaaaa;
  display: flex;
  align-items: center;
  padding-right: 16px;
  justify-content: flex-end;
  margin-top: 100px;
}

.topbutton {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 1px;
  bottom: 100px;
  z-index: 1;
  background-repeat: no-repeat;
  display: none;
}

.arrowtop {
  border: solid #333;
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 3px;
  width: 15px;
  height: 15px;
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
  position: relative;
  right: -11px;
  bottom: -18px;
}

.single-page-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
}

.single-page-navigation a:hover img {
  transition: all 0.7s ease;
  transform: scale(1.3);
}

.single-page-navigation img {
  width: 35px;
}

.single-page-navigation .alignright {
  transform: rotate(180deg);
  margin-top: -5px;
}

.alignleft,
.alignright {
  position: absolute;
}
.alignleft {
  left: 35%;
  /* margin-right: 60px; */
}

.alignright {
  /* margin-left: 60px; */
  right: 35%;
}

.wp-block-gallery {
  margin-bottom: 30px;
}

@keyframes jump {
  0% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  40% {
    transform: translate3d(0, 30%, 0) scale3d(1, 1, 1);
  }
  100% {
    transform: translate3d(0, 100%, 0) scale3d(1, 1, 1);
  }
}

.jump {
  transform-origin: 50% 50%;
  animation: jump 1s linear alternate infinite;
}

@keyframes slide {
  0% {
    opacity: 0;
    transform: translateY(300px);
  }
  30% {
    opacity: 0.2;
    transform: translateY(200px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.slide-up {
  animation: slide 1.5s linear alternate;
}
/* SLIDERY */

.n2-ss-slider .n2-ss-slide-background,
.n2-ss-slider .n2-ss-slide-background * {
  height: 100vh !important;
}
.n2-ss-slider [data-mode="fill"] .n2-ss-slide-background-image {
  background-position: center;
}

@media (max-width: 910px) {
  .n2-ss-slider .n2-ss-slide-background,
  .n2-ss-slider .n2-ss-slide-background * {
    height: 100%;
  }
  #map {
    width: 90%;
    height: 300px;
    position: relative;
    left: 5%;
  }
}

/* RESETS */
.wp-block-group::after {
  display: flex;
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(112, 112, 112, 0.3);
  top: 0;
  left: -25px;
}
.alternate {
  position: relative;
  left: -100%;
  text-align: right;
  margin-right: 50px;
}
.wp-block-image.hero {
  margin: 0;
  width: 100%;
  height: 100vh;
  display: flex;
}
.wp-block-image.hero img {
  object-position: 50% 0%;
}
.wp-block-image.hero-sub {
  margin: 0;
  width: 100%;
  height: 50vh;
  display: flex;
}
.wp-block-image.hero-sub img {
  object-position: 0% 0%;
}
.wp-block-column:first-child * {
  text-align: right;
}
p {
  font-family: "MontserratExtraLight";
  font-weight: 200;
  font-size: 16px;
  line-height: 32px;
}
h2 {
  font-family: "RalewayThin";
  font-weight: 100;
  font-size: 110px;
}
h3 {
  font-family: "RalewayThin";
  font-size: 48px;
  font-weight: 100;
}
h4 {
  font-family: "RalewayThin";
  font-size: 36px;
  font-weight: 100;
  text-transform: uppercase;
  padding: 20px 40px;
  margin: 0;
}
h5 {
  display: block;
  width: 100%;
  font-family: "RalewayThin";
  font-weight: 100;
  text-align: center;
  font-size: 32px;
  letter-spacing: 0px;
  text-transform: uppercase;
  padding: 400px 0;
}
h5 .char {
  font-size: 36px;
  height: 36px;
  animation: an 1s ease-out 1 both;
  display: inline-block;
}
.singlepage h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 50px;
}
.wp-block-latest-posts li {
  width: 50%;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 35% 25px 35%;
  margin: 80px 0;
}
.wp-block-latest-posts li:nth-child(2n + 1) {
  margin-top: -30%;
}
.wp-block-latest-posts {
  display: flex;
  flex-flow: row-reverse wrap;
  align-items: flex-start;
  max-width: 1280px;
  justify-content: center;
  padding: 0;
  margin-top: 400px;
  width: 100%;
}
.wp-block-latest-posts li .wp-block-latest-posts__featured-image,
.wp-block-latest-posts li a {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  bottom: 25px;
  z-index: 1;
}
.wp-block-latest-posts li a {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  opacity: 0;
  font-weight: 100;
  font-family: "RalewayThin";
  background: rgba(0, 0, 0, 0.5);
  transition: 0.5s all ease-in;
  color: #fff;
  text-decoration: none;
  font-size: 38px;
}
.wp-block-latest-posts li a:hover {
  opacity: 1;
}
.wp-block-latest-posts__featured-image img,
.wp-block-image img,
.wp-block-image.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-media-text {
  max-width: 1480px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

ul.wp-block-latest-posts:before {
  content: "Nasze\ARealizacje";
  display: flex;
  position: absolute;
  font-family: "RalewayThin";
  font-weight: 100;
  font-size: 110px;
  left: -20px;
  justify-content: flex-end;
  width: 50%;
  margin-top: -350px;
  white-space: pre;
  text-align: right;
}

.homepagecontent .wp-block-columns {
  max-width: 1280px;
}
.homepagecontent .wp-block-column {
  padding: 10px;
}
.homepagecontent > .wp-block-columns .wp-block-column:first-child {
  padding-left: 40px;
}
.homepagecontent > .wp-block-columns .wp-block-column:last-child {
  padding-right: 40px;
}

.wp-block-image {
  margin: 0;
}

.wp-block-pullquote {
  padding: 0 0 2em;
}
.wp-block-quote {
  padding: 2em 0 0;
}
.wp-block-pullquote p,
.wp-block-quote p {
  font-family: "RalewayThin";
  font-size: 24px;
  font-weight: 100;
  text-align: left;
  position: relative;
}
.wp-block-quote p {
  text-align: right;
}
.wp-block-pullquote blockquote,
.wp-block-quote {
  margin: 0;
}
.wp-block-pullquote p:after,
.wp-block-quote p:after {
  content: "";
  display: flex;
  width: 67%;
  position: absolute;
  bottom: -10px;
  height: 1px;
  background: rgba(112, 112, 112, 0.3);
}
hr {
  height: 1px;
  width: 100%;
  position: relative;
  border: none;
}
hr:after {
  content: "";
  display: flex;
  width: 67%;
  position: absolute;
  bottom: 0px;
  height: 1px;
  background: rgba(112, 112, 112, 0.3);
}
.wp-block-pullquote p:after {
  left: 0;
}
.wp-block-quote p:after {
  right: 0;
}
.wp-block-column:first-child p {
  padding: 0 0px;
}
.wp-block-column p {
  position: relative;
}
.wp-block-column:first-child .wp-block-quote p:after {
  right: 0px;
}
.upper-margin {
  margin-top: 200px;
}

.navbar {
  width: 100%;
  list-style-type: none;
  display: flex;
  height: 70px;
  justify-content: center;
}

nav#topbar {
  display: flex;
  width: 100%;
  position: fixed;
  height: 50px;
  background: #fff;
  /* box-shadow: 0px 3px 6px #00000029; */
  z-index: 200;
  justify-content: center;
  transition: 0.5s all;
}
nav#topbar.hidden {
  background: transparent;
  transition: 0.5s all;
}
nav#topbar.clicked {
  background: #fff;
}
nav#topbar.hidden .hamburger span,
nav#topbar.hidden .hamburger span:after,
nav#topbar.hidden .hamburger span:before {
  background: #fff;
}
nav#topbar.clicked .hamburger span,
nav#topbar.clicked .hamburger span:after,
nav#topbar.clicked .hamburger span:before {
  background: #8c8c8c;
}
nav#topbar.hidden #menu-contacts li,
nav#topbar.hidden a.menu-icon svg {
  color: #fff;
  fill: #fff;
  transition: 0.5s all;
}
nav#topbar.clicked #menu-contacts li,
nav#topbar.clicked a.menu-icon svg {
  color: #8c8c8c;
  fill: #8c8c8c;
  transition: 0.5s all;
}
.flex-container {
  display: flex;
  max-width: 1280px;
  width: 100%;
  justify-content: flex-end;
  flex-direction: column;
  flex-wrap: wrap;
  position: relative;
  align-content: flex-end;
}
#topbar ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.contact-menu {
  align-self: flex-end;
  height: 50px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
a.menu-icon svg {
  width: 20px;
  margin-right: 16px;
  fill: #8c8c8c;
  transition: 0.5s all;
}
a.menu-icon:after,
.jump:after,
a.logo:after,
.wp-block-image > a:after,
.single-page-navigation a:after {
  display: none !important;
}

.wp-block-columns .wp-block-column:first-child .margined {
  margin-right: 40px;
}
.wp-block-columns .wp-block-column:last-child .margined {
  margin-left: 40px;
}

ul#menu-glowne {
  flex-direction: column;
  background: #fff;
}
.main-menu li {
  padding: 40px;
}
.main-menu li a {
  font-size: 36px;
  font-family: "RalewayThin";
  font-weight: 100;
}
#topbar .main-menu {
  position: fixed;
  top: 50px;
  display: flex;
  right: 0;
  /* box-shadow: 0px 3px 6px #00000029; */
  opacity: 0;
  visibility: hidden;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  transition: 0.5s all;
}
ul#menu-glowne {
  flex-direction: column;
  background: #fff;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
}
#topbar.clicked .main-menu {
  opacity: 1;
  visibility: visible;
}
.hamburger {
  width: 50px;
  height: 50px;
  margin-left: 20px;
  margin-right: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.hamburger span {
  width: 26px;
  height: 4px;
  background: #8c8c8c;
  border-radius: 5px;
  position: relative;
}
.hamburger span:after,
.hamburger span:before {
  display: flex;
  position: absolute;
  content: "";
  width: 100%;
  height: 4px;
  background: #8c8c8c;
  border-radius: 5px;
}
.hamburger span:after {
  top: 9px;
}
.hamburger span:before {
  top: -9px;
}
.logo {
  position: absolute;
  width: 180px;
  top: 10px;
  left: 40px;
  transition: 0.5s all;
  opacity: 1;
  visibility: visible;
}
#topbar.hidden .logo {
  opacity: 0;
  visibility: hidden;
}
#topbar.clicked .logo {
  opacity: 1;
  visibility: visible;
}

/* PARALLAX */
.wp-block-latest-posts li:nth-child(3n-1):after {
  content: "";
  position: absolute;
  background: #f2eee2;
  width: 70%;
  height: 50%;
  left: -10px;
  bottom: attr(data-move);
}
.wp-block-latest-posts li:nth-child(2n + 1):after {
  right: -10px;
  left: auto;
}
.shape {
  background: #f2eee2;
  position: absolute;
  top: 0;
  z-index: -1;
}
.left .shape,
.shape.left {
  right: -30px;
}
.right .shape,
.shape.right {
  left: -30px;
}
.undershape {
  z-index: -2;
  position: relative;
}

/* MEDIA O NAS */
#media-o-nas .wp-block-column {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-direction: column;
}
.homepagecontent > #media-o-nas .wp-block-column:first-child {
  padding-left: 15px;
}
.homepagecontent > #media-o-nas .wp-block-column:last-child {
  padding-right: 15px;
}
#media-o-nas figure.wp-block-image {
  padding: 25px 0;
}
.wp-block-column.bottom-margin {
  margin-bottom: 100px;
}

/* MOBILE */
@media (max-width: 1020px) {
  .mobile-hidden {
    display: none !important;
  }
  .wp-block-latest-posts li .wp-block-latest-posts__featured-image,
  .wp-block-latest-posts li a {
    left: 0px;
    right: 0px;
    width: calc(100% - 0px);
    height: calc(100% - 140px);
  }
  .wp-block-latest-posts li:nth-child(3n-1):after {
    bottom: 100px;
  }
  .projects {
    max-width: 100%;
    grid-template-columns: repeat(1, 1fr);
  }
  .wp-block-image.hero {
    height: 100vh;
  }
  .singleproject {
    height: 600px;
    max-width: 100%;
    margin-bottom: 0;
  }

  .singleproject .projecthover {
    display: none;
  }

  .projects .mobiletitle {
    display: block;
    margin-top: 10px;
  }

  .projects a {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .singleproject .projecthover span {
    padding: 0 20px;
    text-align: center;
  }
  .wp-block-latest-posts {
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  .wp-block-latest-posts li:nth-child(2n + 1) {
    margin-top: 0;
  }
  ul.wp-block-latest-posts:before {
    content: "Nasze\ARealizacje";
    left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    top: 10px;
    font-size: 60px;
    margin-top: -200px;
  }
  #media-o-nas .wp-block-column:last-child {
    order: -1;
  }
}
@media (max-width: 800px) {
  .alignleft {
    left: 25%;
    /* margin-right: 60px; */
  }

  .alignright {
    /* margin-left: 60px; */
    right: 25%;
  }
  .wp-block-columns .wp-block-column:first-child .margined {
    margin-right: 0px;
  }
  .wp-block-columns .wp-block-column:last-child .margined {
    margin-left: 0px;
  }
  .logo {
    left: 0;
    right: 0;
    margin: auto;
  }
  .hamburger {
    margin-right: 0;
  }
  .wp-block-image.hero::before {
    width: 32%;
    padding-top: 32%;
  }
  .singlepage .wp-block-columns {
    height: auto;
    overflow: hidden;
    margin-bottom: 0;
    flex-direction: column;
  }

  .singlepage .wp-block-column:nth-of-type(2) {
    margin-left: 0;
    margin-top: 20px;
  }

  .singlepage .wp-block-column:first-of-type {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .singlepage .custom-slider {
    height: auto;
  }

  .blocks-gallery-item {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .projects {
    margin-left: 16px;
    margin-right: 16px;
  }

  .homepagecontent .n2-section-smartslider::before {
    background-size: 240px auto;
  }

  .f3copyright {
    justify-content: center;
    padding-right: 0px;
  }
  .wp-block-latest-posts li {
    width: 85%;
    padding: 85% 25px 85%;
    margin: 20px 0;
  }
  .homepagecontent > .wp-block-columns .wp-block-column:first-child,
  .homepagecontent > .wp-block-columns .wp-block-column:last-child {
    padding: 10px;
  }
  .wp-block-column:first-child * {
    text-align: center;
  }
  h2 {
    font-size: 60px;
    text-align: center;
  }
  h3 {
    font-size: 42px;
    text-align: center;
  }
  .wp-block-pullquote p,
  .wp-block-quote p {
    text-align: center;
  }
  .wp-block-pullquote p:after {
    left: 0;
    right: 0;
    margin: auto;
  }
  .alternate,
  p {
    position: relative;
    left: 0;
    text-align: center;
    margin-right: 0px;
  }
  #topbar #menu-contacts {
    display: none;
  }
  #topbar.hidden #menu-contacts {
    display: flex;
  }
  #topbar.clicked #menu-contacts {
    display: flex;
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    left: 0;
    right: 0;
    margin: auto;
    justify-content: center;
  }
  .main-menu li a {
    font-size: 28px;
  }
  .main-menu li {
    padding: 20px;
  }
  h5 {
    font-size: 24px;
  }
  h5 .char {
    font-size: 26px;
    height: 26px;
  }
  .wp-block-image.hero::before {
    top: 30%;
  }
  .wp-block-image.hero {
    height: 120vh;
  }
}
@media (max-width: 520px) {
  .wp-block-image.hero::before {
    width: 45%;
    padding-top: 45%;
    top: 25%;
  }
  .wp-block-image.hero {
    height: 100vh;
  }
}
