@charset "utf-8";
/* CSS Document */
.blog-items{
  display: flex;
  justify-content: space-between;
  flex-wrap:wrap;
  margin-top: 10px;
}

.blog-items .blog-item{
  margin-bottom: 30px;
  position: relative;
}

.blog-item{
  position: relative;
  overflow: hidden;
} 
.blog-item .item-image{
  margin: 0;
 position: relative;
      overflow: hidden;
}
.item-image .caption{
    display: none;
}

/* Styl obrazka – przygotowanie do animacji */
.blog-item .item-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover: powiększenie i przyciemnienie obrazka */
.blog-item:hover .item-image img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Styl przycisku */
.blog-item .readmore {
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; /* Przyciski nie będą klikalne, gdy nie widoczne */
      margin-top:0px; 
}

/* Pokazanie przycisku po najechaniu */
.blog-item:hover .readmore {
  opacity: 1;
  transform: scale(1.05);
  pointer-events: auto;
}
@media screen and (max-width: 600px) {
	.blog-items{
		flex-direction: row;
  }

  .blog-item{
		width: 100%
  }
	.item-image{
			width: 100%;
  }
}/* KONIEC  (max-width: 600px)*/
@media screen and (min-width:601px) and (max-width: 900px) {
  .blog-item{
   width: 48%;
  }
}/* KONIEC (min-width:601px) and (max-width: 900px)*/
@media screen and (min-width:901px) and (max-width: 1400px) {
  .blog-item{
    width: 31%;
  }
}/* KONIEC (min-width:901px) and (max-width: 1400px) */
@media screen and (min-width: 1401px) {
  .blog-item{
    width: 32%;
  }

}
