img {
  max-width: 460px;
  max-height: 460px;
}
body {
  margin: 0;
}
a {
    text-decoration: none;
    outline: none;
    color: #000;
}
.text-center{
  text-align: center;
}
#block-krol-main-menu-menu{
  display: none;
}
.contextual {
    z-index: inherit;
    top: initial;
}
.wrap{
  width: 100%;
}
.screen-center{
  height: 100%;
}
.header {
  height: 50px;
  text-transform: uppercase;
  font-size: 12px;

}
.content{
  height: calc(100vh - 100px);
  position: relative;
}
.header p{
  text-transform: uppercase;
  font-size: 11px;
  font-family: Arial;
  color: #999999;
  letter-spacing: 4px;
  transition: .3s;
  padding-top: 5px;
}
.header p:hover{
  color: black;
  cursor: pointer;
  transition: .3s;
}

.header .left{
  width: 50%;
  float: left;
  margin-left: 20px;
}
.header .right{

  float: right;
  text-align: right;
  margin-right: 46px;
}
.menu-btn{

  width: 30%;
  float:right;
}
.menu-btn::before{
  display: none;
}
.menu-btn p{
  text-transform: uppercase;
  font-size: 11px;
  font-family: Arial;
  color: #999999;
  letter-spacing: 2px;
}
.close-btn{
  display: inline-block;
  position: absolute;
  margin-right: 20px;
  margin-top: 15px;
  right: 0;
  cursor: pointer;
  width: 12px;
  height: 12px;
  background-position: center;
  background-image: url(../img/close.png);
}

.menu-screen {
  background-color: white;
  z-index: 20;
  position: absolute;
  display: none;
  top:0px;
  bottom: 0px;
  left:0px;
  right: 0px;
  width: 100%;
}
.fields-box{
  display: table;
  height: 100%;
  margin: 0 auto;
}
.fields{
  display: table-cell;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  text-align: center;
  vertical-align: middle;
  height: 100%;
}
.fields .social{
  margin-top: 3%;
}
.fields a{
  text-transform: uppercase;
  font-size: 11px;
  font-family: Arial;
  color: #999999;
  letter-spacing: 4px;
}
.fields a:hover{
  color: black;
}
.fields ul{
  padding-left: 0;
  margin-bottom: 5%;
}
.fields li{
  text-decoration: none;
  list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
  margin: 30px 0;
}

.footer{
  height: 50px;
  bottom: 0;
  width: 100%;
}
.social{
  color: #b8b6b6;
  display: inline-block;
}
.footer .social{
  padding-left: 20px;
  position: absolute;
  bottom: 16px;
}

.facebook{
  height: 18px;
  width: 18px;
  display: inline-block;
  background-image: url(../img/fb.png);
  margin: 0 2px;
}
.facebook a{
  height: 18px;
  width: 18px;
  display: inline-block;
}

.instagram{
  height: 18px;
  width: 18px;
  display: inline-block;
  background-image: url(../img/insta.png);
  margin: 0 2px;
}
.instagram a{
  height: 18px;
  width: 18px;
  display: inline-block;
}

.content .bx-wrapper{
  box-shadow: none;
  border:none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  margin-top: 0;
  margin-bottom: 0;
}
.content .bx-wrapper .views-row{
  text-align: center;
}

.content .bx-wrapper .bx-controls-direction a {
  z-index: 15;
  top:0;
}
.content > div{
  height: 100%;
}
.views-element-container{
  height: 100%;
}

.content .bx-controls-direction { position: relative; }
.content .bx-wrapper .bx-controls-direction img { width: 30px; height: 9px; }
.content .bx-wrapper .bx-controls-direction a { position: fixed; width: 30px; height: 9px; background: none; bottom: 25px; top: initial; transition: .3s; }
.content .bx-wrapper .bx-controls-direction a:hover { opacity: .7; transition: .3s; }
.content .bx-wrapper .bx-controls-direction .bx-prev { left: 46%; }
.content .bx-wrapper .bx-controls-direction .bx-next { right: 46%; }

.slide{
  display: inline-block;
  text-align: right;
  padding:30px;

}

.slider.show-single { margin: 0 auto; visibility: visible; }
#block-views-block-recent-block-1 .slider .slide { opacity: 0; animation-delay: .2s; }
.slide-text{
  margin-top: 1.5%;
  font-size: 9px;
  font-family: Arial;
  font-style: italic;
  color: #999999
}
.slide img{
  margin-left: auto;
  margin-right: auto;
}

.slider.show-single .slide,
.slider.show-single .slide img { display: block; }

.slide a{
  font-size: 9px;
  font-family: Arial;
  font-style: italic;
  color: #999999;
}
.slide-text span::after{
  content: ', ';
  display: inline-block;
}
.slide-text div {
  display: inline-block;
}

/* GALLERY */
.back-btn{
  display: block;
  width: 17px;
  height: 9px;
  position: absolute;
  right: 15px;
  z-index: 17;
  top:5px;
  transition: .3s;
  padding: 10px;
}
.back-btn:hover div {
  margin-left: 10px;
  opacity: .7;
  transition: .3s;
}
.back-btn div{
  width: 17px;
  height: 9px;
  transition: .3s;
  background-image: url(../img/arrow_back.png);
  background-size: cover;
  background-position: center;
}
#block-krol-content{
  height: 100%;
  display:  flex;
  align-items: center;
}

.gallery-slider  div{
  display: inline-block;
}
.gallery-slide-text {
  display: inline-block;
  float: right;
  font-size: 9px;
  font-family: Arial;
  font-style: italic;
  color: #999999;
  margin-top: 1.5%;
}
.gallery-footer-box{
  width: 350px;
  position: absolute;
  right: 0;
  text-align: right;
  padding-right: 2%;
  height: 50px;
  bottom: -50px;
  font-family: Arial;
  font-size: 10px;
  color: #CCCCCC;
}
.gallery-footer-box .gallery-name-box{
  padding-top: 5px;
  text-transform: uppercase;
}
.gallery-footer-box .page-number-box{
  padding-top: 5px;
}
.gallery-name-box{
  display: inline-block;

}
.page-number-box{
  margin-left: 0.5%;
  display: inline-block;
  color: #999999;
}

.bx-viewport img{
  margin-left: auto;
  margin-right: auto;
}
.gallery-slider div{
text-align: center;

}

/* ARCHIVE */
#block-views-block-archive-view-block-1{
  overflow: hidden;
}
#block-views-block-archive-view-block-1 > div{
  overflow: auto;
  display: flex;
  padding-right: 17px;
  width: 100%;
}
.archive{
  display: inline-block;
  flex-wrap: wrap;
  max-height: calc(100vh - 100px);
  margin: 0 auto;
  width: 72vw;
  font-size: 0;
}
.archive .views-row{
  display: inline-block;
  float: left;

}
.grid-part{
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 18vw;
  width: 18vw;
}
.grid-text{
  position: absolute;
  height: 100%;
  width: 100%;
  top:0;
  left: 0;
  opacity: 0;
  transition: .3s;
  background-color: rgba( 255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  text-align: center;
  z-index: 12;
}

.grid-text a{
  margin: 0 auto;
  width: 100%;
  padding: 100px 20px;
}
.pic{
  width: 13vw;
  height: 13vw;
  z-index: 11;
  overflow: hidden;
  position: relative;
  display: inline-block;
}

.pic img{
  width: inherit;
  height: inherit;
}
.archive a{
  text-transform: uppercase;
  font-size: 11px;
  font-family: Arial;
  color: #333333;
  letter-spacing: 4px;
}
.archive .views-row{
  opacity: 0;
}
.archive-text{
  display: none;
}
.gallery-slider .gallery-slide-text-mobile{
  display: none;
}

/* PROSTA STRONA */
.page-box{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-content{
  width: 35vw;
  max-height: 70vh;
  overflow: auto;
  font-family: Arial;
  font-size: 10px;
  letter-spacing: 2px;
  color: #999999;
  line-height: 3vh;
  max-height: 100%;
  margin-right: -17px;
  position: relative;
}
.page-content p {
  padding-right: 17px;
}

.hidde-scroll{
  overflow: hidden;
  margin-right: 17px;
  position: relative;
}
.page-content.bio{
  height: 70vh;
}
.page-content.bio div:nth-child(1){
  top:0;
  width: 100%;
}

.page-footer-box{
  display: inline-block;
  position: absolute;
  right: 18px;
  bottom: -50px;
  width: 20vh;
  height: 30px;
  text-align: right;
  text-transform: uppercase;
  font-size: 11px;
  font-family: Arial;
  color: #999999;;
}

.page-arrow-box{
  display: inline-block;
  width: 36px;
  height: 20px;
  background-image: url(../img/arrow.png);
  position: absolute;
  right: 20px;
  z-index: 17;
  top:50%;
  background-size: cover;
  transition: .3s;
}
.page-arrow-box:hover{
  transition: .3s;
  right: 15px;
}
.page-arrow-box a{
  display: inline-block;
  width: 100%;
  height: 100%;
}
.page-image{
  text-align: center;
}
.page-image img{
  text-align: center;
  width: 100%;
  height: auto;
}

.alpha-gradient{
  display: inline-block;
  width: 100%;
  position: absolute;
  height: 10vh;
  background-image: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.8));
  bottom: 0;
}

.alpha-gradient-archive{
  display: inline-block;
  width: 100%;
  position: absolute;
  height: 15vh;
  background-image: linear-gradient(rgba(255,255,255,0.0), rgba(255,255,255,1));
  bottom: 0;
}

.scroll-bottom{
  position: fixed;
  background-image: url('../img/arrow.png');
  width: 36px;
  height: 20px;
  bottom: 30px;
  left: calc(50% - 23px);
  transform: rotate(90deg);
  animation: bounce 2s infinite;
}

@media (min-width: 992px) {
  .pic:hover .grid-text{
    opacity: 1;
    transition: .3s;
  }
  .slider{
    visibility: hidden;
    margin-left: calc( (100vw - 460px - 460px * 0.2 ) / 4 + 0.1 * 460px );
  }
  .views-element-container > div{
    height: 100%;
    display: flex;
    width: 100%;
    align-items: center;
  }
  .gallery-slider{
    height: 100%;
    margin-left: calc( (100vw - 460px - 460px * 0.2 ) / 4 + 0.1 * 460px );
  }


}
@media (min-width: 768px) {
  .views-row {
    transition: 0.3s;
  }
  .views-row.left-slide img{
    transition-duration: 0.5s;
  }
  .views-row.right-slide img{
    transition-duration: 0.5s;
  }
  .views-row.left-slide img:hover{
    transform: translateX(60px);
    transition-duration: 0.5s;
    opacity: 0.6;
    cursor: pointer;
  }
  .views-row.right-slide img:hover{
    transform: translateX(-60px);
    transition-duration: 0.5s;
    opacity: 0.6;
    cursor: pointer;
  }

  .gallery-slider > div{
    transition: 0.3s;
  }

  .gallery-slider > div.left-slide img{
    transition-duration: 0.5s;
  }
  .gallery-slider > div.right-slide img{
    transition-duration: 0.5s;
  }
  .gallery-slider > div.left-slide img:hover{
    transform: translateX(60px);
    transition-duration: 0.5s;
    opacity: 0.6;
    cursor: pointer;
  }
  .gallery-slider > div.right-slide img:hover{
    transform: translateX(-60px);
    transition-duration: 0.5s;
    opacity: 0.6;
    cursor: pointer;
  }
  .gallery-name-box-mobile{
    display: none;
  }
}
@media (max-width: 991px) {

  .pic{
    width: 17vw;
    height: 17vw;
  }
  .grid-part{
    width: 25vw;
    height: 25vw;
  }
  .archive{
    width: 75vw;
  }
  .bx-wrapper .slider{
    visibility: hidden;
    margin-left: calc( (100vw - 460px - 460px * 0.2 ) / 4 + 0.1 * 460px );
  }
  .gallery-slider{
    height: 100%;
    visibility: hidden;
    margin-left: calc( (100vw - 460px - 460px * 0.2 ) / 4 + 0.1 * 460px );
  }

}

@media (max-width: 768px) {

  .wrap {
    height: 100vh;
  }
  .menu-btn::before{
    content: url(../img/menu_hamb.png);
    display: inline-block;
    padding-top: 19px;
    padding-left: 25px;

  }
  .menu-btn p{
    display: none;
  }
  .back-btn{
    display: none;
  }
  .header p{
    font-size: 15px;
  }
  .content{
    height: calc(100vh - 50px);
  }
  .pic{
    width: 38vw;
    height: 38vw;
  }
  .grid-part{
    width: 45vw;
    height: 45vw;
    flex-direction: column;
  }
  .archive{
    width: 90vw;
  }
  .footer{
    display: none;
  }

  .fields a{
    font-size: 15px;
  }
  .archive-text{
    display: inline-block;
    padding-top: 1vw;
    text-align: center;
  }
  .archive-text a{
    text-transform: uppercase;
    font-size: 10px;
    font-family: Arial;
    color: black;
  }

  .bx-wrapper .slider{
    margin-left: 0;
  }
  .gallery-slider{

    margin-left: 0;
  }

  .slide{
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: calc(100vh - 50px - 15vh - 100vw);

  }


  .slider .views-row img{
    width: 80vw;
    height: 80vw;
    padding: 0;
  }


  #block-views-block-recent-block-1 .bx-wrapper{
    height: calc(100vh - 50px - 16vh);
    overflow: hidden;
    padding-top: 16vh;
    opacity: 0;
  }

  .gallery-slider > div{
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: calc(100vh - 50px - 20vh - 100vw);
  }
  .gallery-slider img {
    width: 80vw;
    height: 80vw;
    padding: 0;
  }
  #block-krol-content .bx-wrapper{
    height: calc(100vh - 50px - 16vh);
    overflow: hidden;
    padding-top: 16vh;
  }

  .gallery-footer-box{
    display: none;
  }

  .slide-text{
    text-align: center;
    margin-top: 5%;
  }
  .gallery-slider .gallery-slide-text-mobile{
    display: block;
  }
  .gallery-slider .gallery-slide-text{
    display: none;
  }
  .gallery-slider .gallery-slide-text-mobile p{
    font-size: 9px;
    font-family: Arial;
    color: #999999;
  }
  .gallery-slider .gallery-slide-text-mobile div{
    font-size: 9px;
    font-family: Arial;
    color: black;
  }

  .gallery-name-box-mobile{
    position: absolute;
    top:50px;
    text-align: center;
    width: 100%;
    display: inline-block;
    z-index: 19;
  }
  .gallery-name-box-mobile div{
    text-transform: uppercase;
    font-size: 15px;
    font-family: Arial;
    color: #CCCCCC;
    letter-spacing: 4px;
  }
  .page-footer-box{
    display: none;
  }
  .page-content{
    width: 80vw;
  }
  .page-arrow-box{
    display: none;
  }

}
/*  IE*/

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
 .page-content {
    display: inline-block;
    line-height: 20px;
}
}
/* ANIMACJE */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}
.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.bounce {
  -webkit-animation: bounce 2s infinite;
  -o-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}
@-moz-keyframes bounce {
  0%,
  100% {
    -moz-transform: translateY(0) rotate(90deg);
    transform: translateY(0) rotate(90deg);
  }
  50% {
    -moz-transform: translateY(-30px) rotate(90deg);
    transform: translateY(-30px) rotate(90deg);
  }
}
@-webkit-keyframes bounce {
  0%,
  100% {
    -webkit-transform: translateY(0) rotate(90deg);
    transform: translateY(0) rotate(90deg);
  }
  50% {
    -webkit-transform: translateY(-30px) rotate(90deg);
    transform: translateY(-30px) rotate(90deg);
  }
}
@keyframes bounce {
  0%,
  100% {
    -moz-transform: translateY(0) rotate(90deg);
    -ms-transform: translateY(0) rotate(90deg);
    -webkit-transform: translateY(0) rotate(90deg);
    transform: translateY(0) rotate(90deg);
  }
  50% {
    -moz-transform: translateY(-30px) rotate(90deg);
    -ms-transform: translateY(-30px) rotate(90deg);
    -webkit-transform: translateY(-30px) rotate(90deg);
    transform: translateY(-30px) rotate(90deg);
  }
}