*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  background-color: #e6ffff;
  font-family: 'Montserrat', sans-serif;
}
nav{
  background-color: #009999;
  height: 55px;
  width: 100%;
}
footer{
  background-color: #009999;
  height: 55px;
  width: 100%;
}
label.wojtekname{
  color: white;
  font-size: 20px;
  line-height: 55px;
  padding: 14px 15px;
  font-weight: 500;
  margin-left: 5%;
}
label.rights{
  color: white;
  font-size: 15px;
  line-height: 55px;
  padding: 14px 15px;
  font-weight: 400;
  margin-left: 5%;
}
.socialtop {
  font-size: 20px;
  float: right;
  margin-right: 5%;
}

.socialicon {
  padding: 14px 15px;
}
.socialicon a {
  padding: 13px;
  color: #ffffff;
}
.socialicon a:hover{
  color: #003333;
}
@media (max-width: 952px){
  label.wojtekname{
    font-size: 18px;
  }
}
.container{
  width: 100%;
  text-align: center;
}
h1{
  font-weight: 400;
  font-size: 30px;
  position: relative;
  margin: 40px 0;
}
h1::before{
  content: '';
  position: absolute;
  width: 100px;
  height: 3px;
  background-color: #006666;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation: animate 7s linear infinite;
}
@keyframes animate {
  0%{width: 100px}
  50%{width: 150px}
  100%{width: 100px}
}
p{
  font-size: 14px;
  padding: 0 10%;
}
section{
  background-color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: 10px;
}
.wrapper{
  max-width: 1100px;
}
.wrapper .gallery{
  display: flex;
  flex-wrap: wrap;
}
.gallery span{
  display: flex;
  width: 100%;
  overflow: hidden;
}
.gallery .image{
  padding: 10px;
  width: calc(100% / 3);
}
.gallery .image img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover img{
  transform: scale(1.05);
}
@media (max-width: 1000px) {
  .gallery .image{
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .gallery .image{
    padding: 4px;
    width: 100%;
  }
}
.preview-box {
  position: fixed;
  max-width: 800px;
  width: 100%;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  padding: 0 5px 5px 5px;
  opacity: 0;
  pointer-events: none;
  border-radius: 3px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}
.preview-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}
.preview-box .details {
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 10px;
  justify-content: space-between;
}
.preview-box .details .icon {
  color: #009999;
  cursor: pointer;
  font-size: 20px;
}
.details .title {
  display: flex;
  font-size: 20px;
  font-weight: 400;
}
.details .title p {
  font-size: 20px;
  margin: 0 3px;
}
.details .title p.currentimg {
  font-weight: 500;
}
.preview-box .imgbox {
  display: flex;
  width: 100%;
}
.imgbox .slide {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  font-size: 32px;
  cursor: pointer;
  color: black;
  text-shadow: 0px 0px 15px rgba(0,0,0,0.2);
  width: 60px;
  height: 50px;
  line-height: 50px;
  text-align: center;
}
.imgbox .slide.prev {
  font-size: 40px;
  left: 0px;
}
.imgbox .slide.next {
  font-size: 40px;
  right: 0;
}
.preview-box .imgbox img {
  width: 100%;
}
.shadow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: none;
  background: rgba(0,0,0,0.7);
}
