/* ===============================
   Galerie sekce
   =============================== */
.galerie {
	color: #fff;
	background-color: rgba(19, 19, 19, 1.0);
	background-image:


	background-size: contain;
	background-position: top center;
	background-repeat: no-repeat;
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 100px;
	padding-left: 0;
	margin: 0;

}

.galerie h2 {
  font-weight: 700;
  font-size: 4rem;
  margin-bottom: 2rem;
  text-align: left;
  text-shadow: 0 0 5px rgba(0,0,0,0.1);
  letter-spacing: -1px;
}

/* ===============================
   Masonry layout
   =============================== */
.masonry-grid {
	column-count: 4;
	column-gap: 20px;
	padding: 50px;
}

.masonry-grid .grid-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 0px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.masonry-grid .grid-item img {
  width: 100%;
  display: block;
  border-radius: 0px;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}


.masonry-grid .grid-item img:hover {
  filter: grayscale(0%);
}

.masonry-grid .grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* Responsivní úpravy pro tablet/mobil */
@media (max-width: 1024px) {
  .masonry-grid {
    padding: 20px;
	 column-count: 3;
  }
  .masonry-grid .grid-item {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    padding: 10px;
	 column-count: 2;
  }
  .masonry-grid .grid-item {
    margin-bottom: 10px;
  }
}

.galerie h2 {
  font-weight: 700;
  font-size: 4rem;
  margin-bottom: 2rem;
  text-align: left;
  text-shadow: 0 0 5px rgba(0,0,0,0.1);
  letter-spacing: -1px;
}

.content-with-offer {
  display: flex;
  gap: 30px;
  margin: 0 auto;
  align-items: flex-start;
}

/* ===============================
   Masonry layout
   =============================== */
.masonry-grid {
  /* odstraněno column-count a column-gap */
  padding: 50px;
}

.masonry-grid .grid-item {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 0px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-grid .grid-item img {
  width: 100%;
  display: block;
  border-radius: 0px;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.masonry-grid .grid-item img:hover {
  filter: grayscale(0%);
}

.masonry-grid .grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===============================
   Poslední články z fotoblogu
   =============================== */
.latest-posts {
  margin-top: 50px;
}

.latest-posts h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	justify-content: center;
	margin: 0 auto;
	padding-bottom: 150px;
}

.post-item {
	background-color: rgba(240,240,240,0.6);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	padding: 20px;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.post-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.post-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  border-radius: 0px 0px 0 0;
}

.post-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.post-item h3 {
  margin: 15px;
  color: #fff;
  font-size: 1.3rem;
}

.post-item p {
  margin: 0 15px 15px 15px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.4;
}

/* --- RESPONSIVE TABLET / MOBILE --- */
@media (max-width: 1024px) {
  .galerie h2 {
    font-size: 3rem;
    text-align: left;
  }

  .masonry-grid {
    column-count: 3;
    column-gap: 15px;
    padding: 20px;
  }


  .masonry-grid .grid-item {
    break-inside: avoid;
    margin-bottom: 15px;
  }

  .posts-grid {
    gap: 20px;
  }

  .post-item img {
    height: 220px;
  }

  .post-item h3 {
    font-size: 1.1rem;
  }

  .post-item p {
    font-size: 0.95rem;
  }
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .posts-grid .post-item:nth-child(n+4) {
    display: none; /* skryj články od 4. dál */
  }
}

@media (max-width: 768px) {
.galerie {
	
	padding-top: 0px;
	padding-right: 0;
	padding-bottom: 0px;
	padding-left: 0;
	margin: 0;

}
  .galerie h2 {
    font-size: 3rem;
	text-align:left;
  }

  /* Tablet/mobil: zobraz jen první 2 články */
  .posts-grid .post-item {
    display: none;
  }
  .posts-grid .post-item:nth-child(-n+2) {
    display: block;
  }

  .post-item img {
    height: 200px;
  }

  .post-item h3 {
    font-size: 1rem;
  }

  .post-item p {
    font-size: 0.5rem;
  }
  .masonry-grid { column-count: 2; 
  	column-gap: 10px;
	padding: 10px;
	}
  
  .masonry-grid .grid-item {
    break-inside: avoid; /* aby se velký obrázek mohl natáhnout */
	margin-bottom: 10px;
  border-radius: 0px;
  }
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }

  .posts-grid .post-item:nth-child(n+3) {
    display: none; /* skryj články od 3. dál */
  }
}

