body {
	background-color: #E0FFFF;
	color: #000;
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, Verdana, sans-serif;
	font-size: 15px;
}

#top {
	width: 780px;
	padding: 10px;
	margin: 0 auto;
}

#NAGLOWEK {
	background-color: #777;
}

#TRESC {
	padding: 4px 0.5cm;
	width: 740px;
	float: left;
	overflow: hidden;
	background-color: #DDDDDD;
	border-style: inset;
	outline-color: #000080;
	font-size: 15px;
	color: #000000;
	line-height: 18px;
	text-align: justify;
}

#TRESC h1 {
	padding: 10px 0 6px 0;
	font-size: 24px;
	color: #3b4113;
	margin: 0;
	font-weight: bold;
	line-height: 1.3;
}

#TRESC p {
	padding: 4px 0;
	line-height: 28px;
	text-indent: 35px;
	margin: 0;
	text-align: justify;
	font-size: 16px;
}

#TRESC p a {
	font-weight: bold;
	color: #6a7330;
}

#STOPKA {
	clear: both;
	width: 100%;
	background-color: #888;
	font-size: 13px;
	font-weight: bold;
	color: #000000;
	border-style: inset;
	text-align: center;
}

td {
	font-size: 12px;
}


/* Styl obrazka w nagłówku */
.obrazek-naglowek {
	width: 100%;
	height: auto;
	max-width: 780px;
	border: 1px solid #000;
	display: block;
	margin: 0 auto;
}



/* Styl iframe Power BI */
.powerbi-wrapper iframe {
	width: 630px;
	height: 500px;
	max-width: 100%;
}



.table-container {
	width: 100%;
	overflow-x: auto;
	margin: 10px 0;
}

.table-container table {
	width: 100%;
	border-collapse: collapse;
}

.table-container th,
.table-container td {
	padding: 8px;
	text-align: left;
	border: 1px solid #aaa;
	font-size: 14px;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* zawsze 3 kolumny */
  gap: 16px;
  padding: 10px;
  justify-items: center;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  border-color: #666;
}

.gallery figcaption {
  margin-top: 6px;
  font-size: 14px;
  color: #333;
}





/* ===== TYLKO DLA LAPTOPÓW I WIĘKSZYCH EKRANÓW ===== */
@media only screen and (min-width: 769px) {
	.obrazek-naglowek {
		max-height: 230px; /* np. zmniejszamy z 210px do 160px */
		object-fit: cover;
	}
}

/* ===== RESPONSYWNOŚĆ NA SMARTFONY ===== */
@media only screen and (max-width: 768px) {

	#top,
	#TRESC {
		width: 100%;
		padding: 10px;
		box-sizing: border-box;
	}

	#TRESC {
		font-size: 14px;
		line-height: 1.5;
	}

	#TRESC p {
		font-size: 15px;
		line-height: 1.6;
		text-indent: 20px;
	}

	body {
		font-size: 14px;
	}

	td {
		font-size: 11px;
	}

	.obrazek-naglowek {
		width: 100%;
		max-width: 100%;
	}


.powerbi-wrapper iframe {
	width: 100%;
	height: 350px; /* Zmień na 800px lub 900px jeśli potrzeba */
	max-width: 100%;
	border: none;
	display: block;
	margin: 0 auto;
}


.table-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.table-container table {
		font-size: 13px;
	}

  .gallery {
    gap: 8px;
    padding: 5px;
  }

  .gallery figcaption {
    font-size: 12px;
  }

}