/* modul prawa dzieci */
#modul_prawy_dzieci { 
    overflow: hidden;
}

#modul_prawy_dzieci a { 
    display: block; 
	overflow:hidden;
    position: relative; 
    text-align: center; 
    width: 95%; 
    margin: auto; 
    margin-bottom: 10px; 
    transition: transform 0.3s ease-in-out;
}

#modul_prawy_dzieci img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    text-align: center; 
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

#modul_prawy_dzieci a:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

#modul_prawy_dzieci span { 
    font-size: 20px; 
    color: #fff;
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    margin: 0; 
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    text-align: center; 
    transition: background 0.3s ease-in-out;
}

#modul_prawy_dzieci div {
    position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 16/12;
}

/* Podstrona dzieci */
.dziecko > img { width:100%; }
.dziecko > p { text-align: justify; }
.dzieci { 
	display: flex;
	flex-wrap: wrap;
	--dzieci-item-count:2;
	--dzieci-item-margin:10px;
	align-items: flex-start;
}
.dzieci > a { 
	position: relative; display:block; 
	overflow: hidden;
	text-decoration: none;
	margin: var(--dzieci-item-margin);
	width: calc( 100% / var(--dzieci-item-count) - var(--dzieci-item-margin) * 2 ); 
	box-shadow: 0px 0px 10px #7777773b;
	transition: box-shadow 0.4s;
	
}
.dzieci > a > img { width:100%; }
.dzieci > a > h2 { color: #fff; 
    font-size: 20px; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    margin: 0; 
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
    text-align: center;
}

.dzieci > a:hover { text-decoration:none; box-shadow: 0px 0px 10px #777; }



@media (max-width: 920px) {
	.dzieci { 
		--dzieci-item-count:1;
		--dzieci-item-margin:5px; 
	}
}

@media (max-width: 610px) {
	.dzieci { 
		--dzieci-item-count:2;
		--dzieci-item-margin:10px;						
	}
	.dzieci h2 { font-size:20px; }
}

@media (max-width: 500px) {
	.dzieci { 
		--dzieci-item-count:1;
		--dzieci-item-margin:5px; 
	}
	.dzieci h2 { font-size:30px; }
}


/* modul strona główna dzieci */
	/* =========================
   Wschodzące Słoneczka – slider
   ========================= */

/* Sekcja: inne tło niż białe */
.kids-module{
  margin: 18px 0 22px;
  padding: 14px 14px 10px;
  border-radius: 7px;
  background: #f3f5f8;      /* inne tło */
  border: 1px solid rgba(0,0,0,.06);
}

.kids-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 10px;
}


.kids-title{
  margin:0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}

.kids-more-link{
  font-weight: 700;
  text-decoration: none;
  opacity:.85;
}
.kids-more-link:hover{ opacity:1; text-decoration: underline; }

/* Slider: swipe na mobile */
#modul_sg_mobile_dzieci{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}


/* ukryj pasek przewijania (opcjonalnie) */
#modul_sg_mobile_dzieci::-webkit-scrollbar{ height: 8px; }
#modul_sg_mobile_dzieci::-webkit-scrollbar-thumb{ border-radius: 99px; }
#modul_sg_mobile_dzieci{ scrollbar-width: thin; }

#modul_sg_mobile_dzieci > a{
  flex: 0 0 auto;
  width: 230px;
  text-decoration:none;
  color: inherit;
  scroll-snap-align: start;
}

#modul_sg_mobile_dzieci > a:not(.kid-card--more) > div{
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 16/12;
}




#modul_sg_mobile_dzieci > a:not(.kid-card--more) > div img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.001);
}


/* podpis na zdjęciu */
/* Podpis: NA DOLE, DO KRAŃCÓW (zero marginesów) */
#modul_sg_mobile_dzieci > a:not(.kid-card--more) > div > span{ 
  
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 10px 12px;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;

  /* gradient “od dołu”, bez „ramki” */
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.70) 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

/* kafelek "Zobacz więcej" */
.kid-card--more .kid-img{ background: transparent; }
.kid-more{
  height: 100%;
  min-height: 100%;
  border-radius: 14px;
  border: 2px dashed rgba(0,0,0,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  aspect-ratio: 16/12;
}
.kid-more-ico{
  font-size: 26px;
  font-weight: 900;
}
.kid-more-txt{
  font-weight: 900;
  letter-spacing: .2px;
}

/* Desktop: możesz zostawić jako slider albo zrobić „pół-grid” */
@media (min-width: 600px){
  .kid-card{ width: 240px; }
}
