body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: url(elements/screen.jpg) center center / cover no-repeat;
	z-index: -1;
}

* {
	box-sizing: border-box;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-template-rows: repeat(5, auto);
	gap: 4px;
	max-width: 1020px;
	margin: 0 auto;
}

.thumb {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	background: #ddd;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.thumb:hover img {
	transform: scale(1.05);
}

.autor {
	color: black;
	max-width: 960px;
	width: 100%;
	font-size: 16px;
	font-style: italic;
	font-family: arial;
	text-align: right;
	margin: 0 auto;
}

.styl10 {
	color: black;
	background-color: gainsboro;
	max-width: 960px;
	width: 100%;
	font-size: 28pt;
	font-weight: bold;
	font-family: arial;
	text-align: center;
	margin: 0 auto;
}

.styl17 {
	color: #000000;
	font-size: 26px;
	font-weight: bold;
	font-family: arial;
	text-align: center;
	margin: 0 auto;
}

.delete {
	color: darkslategray;
	text-decoration: line-through;
	text-decoration-style: double;
	text-decoration-color: red;
}

.comment {
	display: inline;
	background-color: #d5ddef;
	color: black;
	font-family: arial;
	font-size: 20px;
	font-weight: 376px;
	font-style: italic;
	border: 0;
	border-radius: 7px;
}

.mytext {
	max-width: 960px;
	width: 100%;
	color: #000000;
	margin-left: auto;
	margin-right: auto;
}

p {
	text-indent: 50px;
	color: darkslategrey;
	font-family: arial;
	font-size: 20px;
	text-align: left;
}

h1 {
	text-indent: 50px;
	font-family: arial;
	font-size: 20px;
	text-align: left;
	background-color: #ffffff;
}

h2 {
	text-indent: 50px;
	font-family: arial;
	font-size: 18px;
	text-align: left;
	background-color: #ffffff;
}

h3 {
	text-indent: 50px;
	font-family: arial;
	font-size: 20px;
	text-align: left;
	background-color: #ffffff;
}

.kontener {
	background-color: whitesmoke;
	max-width: 1030px;
	width: 100%;
	border: 4px solid darkgray;
	border-color: grey;
	border-radius: 15px;
	margin: 0 auto;
	height: auto;
}

.center {
	background-color: whitesmoke;
	max-width: 960px;
	width: 100%;
	border-color: red;
	margin: 0 auto;
	height: auto;
}

article {
	max-width: 1020px;
	width: 100%;
	margin: 0 auto;
	height: auto;
	padding: 15px;
	border: 5px solid darkgray;
	border-radius: 25px;
	box-sizing: border-box;
	background-color: white;
}

img {
	display: block;
	max-width: 960px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	height: auto;
	border: 5px;
	box-sizing: border-box;
	border-color: grey;
	border-style: solid;
	border-radius: 15px;
}

figure {
	display: block;
	max-width: 960px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

figcaption {
	display: block;
	max-width: 960px;
	width: 100%;
	height: auto;
	color: midnightblue;
	background-color: gainsboro;
	font-size: 18px;
	font-family: arial;
	font-style: italic;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	border-color: grey;
	border-style: solid;
	border-radius: 10px;
	box-sizing: border-box;
}

a:link {
	color: blue;
	background-color: white;
}

a:hover {
	color: red;
	background-color: white;
}

a:visited {
	color: blue;
	background-color: white;
}

a:active {
	color: blue;
	background-color: yellow;
}

a.navi:link {
	color: white;
	background-color: #003300;
}

a.navi:visited {
	color: white;
	background-color: #003300;
}

a.navi:hover {
	color: red;
	background-color: black;
}

a.navi:active {
	color: #003300;
	background-color: white;
}

a.navi_yr:link {
	color: white;
	background-color: #003300;
}

a.navi_yr:visited {
	color: white;
	background-color: #003300;
}

a.navi_yr:hover {
	color: silver;
	background-color: #003300;
}

a.navi_yr:active {
	color: #003300;
	background-color: white;
}

a.specjal:link {
	color: white;
	background-color: #003300;
}

a.specjal:hover {
	color: red;
	background-color: #003300;
}

a.specjal:visited {
	color: white;
	background-color: #003300;
}

a.specjal:active {
	color: mediumvioletred;
	background-color: white;
}

/* Responsywność */

@media (max-width: 1200px) {
	.gallery-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media (max-width: 900px) {
	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 600px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
