/*
========= Robert Kamiński =============
=============== 2020 ==================

Responsywna galeria z efektem lightbox 
Korzysta z css i JS 
Elementy nawigacyjne nie wykorzystuja obrazków, układają się po bokach ekranu

*/
/*  wyświetlanie minigalerii */
.rk-gallery1{
	margin-top: 30px;
	margin-bottom: 30px;
}

.rk-gallery1:after {
  content: "";
  display: table;
  clear: both;
}
.rk-gallery1-row{
	margin: auto;
	display: flex;
	flex-wrap: wrap;
   justify-content: center;
}
.rk-gallery1-row img{
	display: block;
	padding: 10px;
}
.rk-height-pion{
	width: 250px;
}
.rk-height-poziom{
	width: 200px;
}

.img-description{
	margin-bottom: 30px;
}
/* powiększenie- kontener rozciągnięty na cały ekran, czarne tło */
.rk-gallery1-big {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 10%;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-animation-name: rk-gallery1-fade;
  -webkit-animation-duration: 0.5s;
  animation-name: rk-gallery1-fade;
  animation-duration: 0.5s;
  background-color: black;
}

/* 
kontener, w którym wyświetlane jest zdjęcie 
Tu można ustawić szerokość i wysokość obszaru, w którym wyświetlane jest zdjęcie
Zdjęcie automatycznie dopasuje wysokość i szerokość do konternera, zostanie ustawione na jego środku
height określa wysokość kontenera, a tym samym pozycję podpisu pod zdjęciem
*/
.rk-gallery1-big-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 100%;
  height: 80%;
  max-width: 1200px;
}
/* domyślnie te kontenery są ukrywane, skrypt JS pobiera je po klasie i wyświetla tylko jeden */
.rk-gallery1-slide{
	display: none;
	width: 100%;
	height: 100%;
}
/* fotka dopasowuje się do kontenera i ustawia na środku max-width i max-height zapobiegają rozciągnięciu obrazków */
.rk-gallery1-big-content img{
	display: block;
	margin: auto;
	height: auto;
	width: auto;
	max-height: 100%;
	max-width: 100%;
}

/* przyciski nawigacji */
.rk-gallery1-close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 45px;
  font-weight: bold;
}
.rk-gallery1-close:hover,.rk-gallery1-close:focus {
  color: #999;
  transition: color 0.4s;
  text-decoration: none;
  cursor: pointer;
}
.rk-gallery1-prev,.rk-gallery1-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  background-color: #494949;
  font-weight: bold;
  font-size: 40px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  transition-timing-function: ease;
  transition: background-color 0.4s;
}

.rk-gallery1-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* kolor nawigacji po najechaniu kursorem */
.rk-gallery1-prev:hover,
.rk-gallery1-next:hover {
  background-color: #a4a4a4;
}

/* licznik zdjęc */
.rk-gallery1-counter {
  padding: 8px 12px;
  position: absolute;
  top: 0;
  color: #ff6600;
  display: none;
}
/* opis zdjęcia */
.rk-gallery1-caption {
  text-align: center;
  background-color: black;
  padding-top: 15px;
  color: white;
  font-size: 16px;
}
.rk-gallery1 img.rk-hover-shadow {
  transition: 0.3s;
  cursor: pointer;
}
.rk-gallery1-img:hover{
	cursor: pointer;
}

.rk-gallery1 .rk-hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* animacja- efekt fade przy przełączaniu kolejnych slajdów */
.rk-gallery1-fade {
  -webkit-animation-name: rk-gallery1-fade;
  -webkit-animation-duration: 1.6s;
  animation-name: rk-gallery1-fade;
  animation-duration: 1.6s;
}

@-webkit-keyframes rk-gallery1-fade {
  from {opacity: 0.4} 
  to {opacity: 1}
}

@keyframes rk-gallery1-fade {
  from {opacity: 0.4} 
  to {opacity: 1}
}

/* ------------------MEDIA QUERIES--------------------------- */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
   .rk-gallery1-big-content{
   	margin-top: 10%;
   }
   .rk-gallery1-prev, .rk-gallery1-next{
   	margin-top: 30%;
   }
   .rk-gallery1-counter{
   	display: block;
   	margin-top: 0px;
   }
	.rk-gallery1-prev,.rk-gallery1-next {
  		padding: 36px;
	}
}


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}


/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
}