.gal_thumb {
    float: left;
    margin-right: 15px;
}

#gal_seznam article {
  cursor: pointer;
}

#fotky_date {
  margin-left: 15px;
  margin-bottom: 10px;
}

#fotky_odkazy_ul {
  margin-top: 5px;
}

#fotky_grid {
  margin-top: 40px;
}

#vue-gal {
  margin-top: 20px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
  }

  figure {
    margin: 0;
    overflow: hidden;
  }
  
  .grid figure {
    display: inline-block;
    margin-bottom: 8px;
    width: calc(50% - 4px);
    margin-right: 8px;
    text-decoration: none;
    color: black;
  }
  
  .grid figure:nth-of-type(2n) {
    margin-right: 0;
  }
  
  @media screen and (min-width: 50em) {
    .grid figure {
      width: calc(25% - 6px);
    }
    
    .grid figure:nth-of-type(2n) {
      margin-right: 8px;
    }
    
    .grid figure:nth-of-type(4n) {
      margin-right: 0;
    }
  }

  .grid figcaption {
    /* poznamky pod obrazkem v galerii */
    font-family: sans-serif;
    font-size: 0.6em;

    /* vpravo bude autor a vlevo zaskrtavatko */
    display: flex;
    justify-content: space-between;
  }
  

  
  figcaption {
    margin-top: 5px;
    margin-bottom: 5px;
  }
  
  .grid img {
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
    background: #ccc;

    margin-left: 0px;
  }

.gal-nahled {
  border: 0;
  border-radius: 10px;
  box-shadow: 5px 5px 5px gray;
  width: 250px;
  margin-bottom: 20px;

  color: black;
}

.gal-nahled > img {
  max-height: 350px;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.gal-nahled > figcaption {
  margin-left: 10px;
}

.gal-nahled > figcaption > strong {
  font-size: 1.2em;
}

.gal-nahled > figcaption > .gal-nahled-datum {
  font-size: 0.8em;
  display: block;
}

.gal-nahled > figcaption > .gal-nahled-datum img {
  height: 0.8em;
}


.sloupce-flex-container > main {
  display: grid;
  grid-template-columns: auto auto auto; /* tri sloupce o automaticke sirce */
  justify-content: space-evenly;
}

@media screen and (max-width:1600px) { 
  .sloupce-flex-container > main {
    grid-template-columns: auto auto;
  }
}

@media screen and (max-width:800px) { 
  .sloupce-flex-container > main {
    grid-template-columns: auto; /* na mobilech jeden sloupec */
  }
}

.sloupce-flex-container a:hover {
	text-decoration: none;
}


/*text on hover*/

.hvrbox,
.hvrbox * {
	box-sizing: border-box;
}
.hvrbox {
  cursor: pointer;
	position: relative;
	display: inline-block;
	overflow: hidden;
	max-width: 100%;
	height: auto;
}
.hvrbox img {
	max-width: 100%;
}
.hvrbox .hvrbox-layer_bottom {
	display: block;
}
.hvrbox .hvrbox-layer_top {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 15px;
	-moz-transition: all 0.4s ease-in-out 0s;
	-webkit-transition: all 0.4s ease-in-out 0s;
	-ms-transition: all 0.4s ease-in-out 0s;
	transition: all 0.4s ease-in-out 0s;
}
.hvrbox:hover .hvrbox-layer_top,
.hvrbox.active .hvrbox-layer_top {
	opacity: 1;
}
.hvrbox .hvrbox-text {
  font-family: sans-serif;
	text-align: center;
	font-size: 18px;
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 50%;
	-moz-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
.hvrbox .hvrbox-text_mobile {
	font-size: 15px;
	border-top: 1px solid rgb(179, 179, 179); /* for old browsers */
	border-top: 1px solid rgba(179, 179, 179, 0.7);
	margin-top: 5px;
	padding-top: 2px;
	display: none;
}
.hvrbox.active .hvrbox-text_mobile {
	display: block;
}

/* fullscreen zobrazeni obrazku */

#fotka_fullscreen {
  position: fixed;
  z-index: 1;
  /* padding-top: 100px; */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.75); /* Black w/ opacity */
  font-family: sans-serif; /* spravne zobrazovani znaku jako &times; atd */
}

#fotka_fullscreen img {
  margin: auto;
  display: block;
  max-height: 90vh;
  max-width: 95%;
  /* position: relative; */
  padding: 0;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

#fs_left, #fs_right {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10;
}

/* Position the "next button" to the right */
#fs_right {
  right: 0;
  border-radius: 3px 0 0 3px;
}

#fs_left:hover, #fs_right:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

#fs_note_container {
  text-align: left;
  /*background-color: black;*/
  padding: 2px 16px;
  color: white;

  position: absolute;
  bottom: 15px;
  left: 15px;
}

#fs_author {
  font-size: 0.7em;
}

/* SETTHUMB */
#fs_toolbar {
  font-size: 1em;
  color: white;

  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10; /* nad fotkou */
}

#fs_toolbar .akce {
  margin-right: 0.5rem;
}

#fs_toolbar .akce .tlacitko {
  text-decoration: underline;
  font-size: 0.7em;
  cursor: pointer;
  color: white;
}

#fs_toolbar .akce .tlacitko:hover/*, #fs_toolbar .akce .ikona:hover*/ {
  color: #999;
}

#fs_toolbar .akce .monitor {
  font-size: 0.7em;
  color: white;
}


/* POZNAMKA */
#fs_note {
  /* font-family: 'Jupis'; */
  font-size: 1.1em;
  display: inline;
}

#fs_close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index: 10; /* nad fotkou */
}

#fs_close:hover, #fs_close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}
