﻿/* W3.CSS 4.12 Novemberr 2018 by Jan Egil and Borge Refsnes */
html{box-sizing:border-box; font-family: helvetica, arial, sans-serif;}*,*:before,*:after{box-sizing:inherit; margin: 0;}

h1,h2{font-size:25px} h3{font-size:24px}h4{font-size:20px}h5{font-size:18px}h6{font-size:16px}.w3-serif{font-family:serif} /*rożnego rodzaju opisy */
h1,h2,h3,h4,h5,h6{font-family:Patua One, "Segoe UI",Arial,sans-serif;font-weight:400;margin:10px 0}.w3-wide{letter-spacing:4px}
h1 {text-align: center}
body { background-color: #d0d0d0;}
body {font-family:Patua One, Arial, Helvetica, sans-serif;}

.w3-content{margin-left:auto;margin-right:auto;max-width:98%;} /* główny div do całej zawartości strony */
.w3-details{margin-left:auto;margin-right:auto;
	max-width:950px; 
	margin-top:15px; 
	background-color: #f1f1f1 ;
	border-radius: 6px;
	border: 1px solid #aaa; 
	padding-bottom: 15px; 
	padding-left: 15px; 
	padding-right: 15px; 
	padding-top: 15px;"
}
/*.w3-container{padding:0.01em 16px; } /*zoasoby footer'a */
/*.w3-margin-bottom{margin-bottom:16px!important} /*odstęp header od galerii */
/*.w3-margin-top{margin-top:4px!important}*/

body {
	font-size: 2rem;
	background-color: #f7f7f7 ;
}


.wrapper {
    width: 80%;
    margin: 0 auto;
    /* display: flex; */
    padding: 10px;
    position: relative;
    /* background-color: #f2f1ef; */
}

.container {
	margin: 2vh auto;
	max-width: 90%;
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	grid-auto-rows: 150px;
	grid-auto-flow: dense;
}


.images {
  position: relative;
  border-radius: 4px;
}

.images:hover .overlay, .images:hover .overlay2, .images:hover .overlay3, .images:hover .overlay4 {
  opacity: 0.9;
}

.image {border-style: solid;}

img {	padding: 0px;
border-radius: 0px;

		}

.image, .image2 {
  display: block;
  width: 100%;
  height: auto;
  border-color: #bfbfbf;
 
  border-width: 0px;
}

div {
	text-align: center;
	padding: 1rem 0;
	color: white;
	font-size: 2rem;
	overflow: hidden;
	padding: 0;
	display: flex;
	align-items: stretch;
	justify-content: left;
	
}

div img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: all .5s;
}

.overlay {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #e6e6e6d4;
  border-radius: 4px;
  
  border-color: white;
  border-width: 0px;
  border-style: solid;
}


.ct-wrapper {
    padding: 0px 10%;
    position: relative;
    max-width: 80%;
    margin: 0 auto;
}



a {
    color: #555;
    outline: none;
    text-decoration: none;
}

#header img {
    border: 0 none;
    background: none;
    width: auto;
    height: auto;
    margin: 0 auto;
    max-height: 190px;
}

.text_hover {
  color: #646464;
  font-size: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: "Patua One", Times, serif;
}


.horizontal {
	grid-column: span 2;
	border-radius: 4px;
}

.vertical {
	grid-row: span 2;
	border-radius: 4px;
}

.big {
	grid-column: span 2;
	grid-row: span 2;
	border-radius: 4px;
}

.active div:not(.show) img {
	filter: blur(3px);
}





/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  border-radius: 5px;
  margin: auto;
  padding: 0;
  border: 0px solid #939393;
  width: fit-content;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

@media screen and (max-width: 720px)

.modal-content {
  position: relative;
  background-color: #fefefe;
  border-radius: 5px;
  margin: auto;
  padding: 0;
  border: 0px solid #939393;
  width: fit-content;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: #000;
  float: right;
  font-size: 40px;
  }

.close:hover,
.close:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  overflow: hidden;
  background-color: #f4f4f4;
  padding: 2px 16px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  color: #646464;
  border-color: #bbbbbb;
  display:block;
}

.modal-body {padding: 10px 10px;}

.modal-footer {
  overflow: hidden;
  background-color: #f4f4f4;
  padding: 2px 16px;
  border-top-width: 1px;
  border-top-style: solid;
  color: #646464;
  border-color: #bbbbbb;
  display:block;
}

.collapsible {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

 /* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
  padding-left: 5%;
  padding-right: 5%;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
} 


