.posts-grid-container {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: 1fr;
	grid-template-columns: 1fr;
	grid-auto-rows: minmax(18.75rem, 1fr);
	gap: 0.5rem;
}
.posts-grid-container img {
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}
.posts-grid-container a {
	display: -ms-grid;
	display: grid;
	height: 100%;
	text-decoration: none;
	min-height: 18.75rem;
}
.posts-grid-container a > div {
	-ms-grid-row: 1;
	-ms-grid-column: 1;
	grid-area: 1/1/1/1;
}

.posts-grid-container > li:first-of-type {
	-ms-grid-row: 1;
	-ms-grid-column: 1;
	grid-area: 1/1/1/1;
}
.post-details {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 0.75rem;
}

.post-category {
	text-align: right;
	position: relative;
	z-index: 1;
}

span.category {
	color: var(--text-primary-white, #fff);
	font-family: Lato;
	font-size: 0.6875rem;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
	padding: 0.125rem 0.3125rem;
	border-radius: 1.25rem;
	background: var(--background-accent-color, #0f14d2);
	display: inline-block;
}
span.category.highlight {
	background: var(--background-accent-alternative-color, #ae0f2e);
}
.post-thumbnail {
	position: relative;
}
.post-thumbnail img {
	position: absolute;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
}

.post-details {
	position: relative;
}

.post-title {
	font-family: Lato;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5em;
	letter-spacing: 0em;
	text-align: left;
	color: var(--text-primary-white, #fff);
}
.post-description .post-title,
.post-description .post-excerpt {
	width: 75%;
}
.post-description .read-more-icon {
	color: var(--text-primary-white, #fff);
	border-color: var(--text-primary-white, #fff);
	height: 2rem;
	position: absolute;
	bottom: 0;
	right: 0;
}
.post-description .read-more-icon svg {
	width: 2rem;
	height: 2rem;
}
.posts-grid-container > li:first-of-type .post-title {
	font-size: 1.0625rem;
}
.post-details {
	overflow: hidden;
}

.post-description {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
	box-shadow: 0 0 2.5rem 2.5rem rgb(0 0 0/ 60%);
	margin-top: auto;
	background: rgb(0 0 0 / 60%);
}

.post-excerpt {
	display: none;
	font-family: Lato;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5em;
	letter-spacing: 0em;
	text-align: left;
	color: var(--text-primary-white, #fff);
}
.posts-grid-container > li:first-of-type .post-excerpt {
	display: block;
}
@media screen and (min-width: 768px) {
	.posts-grid-container {
		-ms-grid-columns: 1fr 0.9375rem 1fr;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.9375rem;
	}
}

@media screen and (min-width: 966px) {
	.posts-grid-container {
		-ms-grid-columns: (1fr)[3];
		grid-template-columns: repeat(3, 1fr);
	}
}
@media screen and (min-width: 1366px) {
	#posts-grid {
		padding-inline: 3.875rem;
	}  
	.posts-grid-container > li:first-of-type {
		-ms-grid-row: 1;
		-ms-grid-row-span: 2;
		-ms-grid-column: 1;
		-ms-grid-column-span: 2;
		grid-area: 1/1/3/3;
		min-height: 18.75rem;
	}
	.post-excerpt {
		display: block;
		font-size: 1rem;
	}

	.post-title {
		font-size: 1.25rem;
	}
	.posts-grid-container > li:first-of-type .post-title {
		font-size: 1.625rem;
	}
	.post-details {
		padding: 1rem;
	}
	span.category {
		font-size: 0.875rem;
		padding: 0.375rem 0.75rem;
	}
}

/* Media queries dla zoom - lepsze skalowanie przy wysokim zoomie */
/* @media screen and (min-resolution: 1.5dppx) {
	.posts-grid-container {
		grid-auto-rows: minmax(25rem, 1fr);
	}
	.posts-grid-container a {
		min-height: 25rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 25rem;
	}
}

@media screen and (min-resolution: 2dppx) {
	.posts-grid-container {
		grid-auto-rows: minmax(31.25rem, 1fr);
	}
	.posts-grid-container a {
		min-height: 31.25rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 31.25rem;
	}
} */

/* Media queries dla zoom poniżej 100% (zoom out) */
@media screen and (max-resolution: 0.75dppx) {
	body {
		background: red !important;
	}
	/* .posts-grid-container {
		grid-auto-rows: minmax(12.5rem, 1fr);
	}
	.posts-grid-container a {
		min-height: 12.5rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 12.5rem;
	}
	.post-title {
		font-size: 0.75rem;
	}
	.posts-grid-container > li:first-of-type .post-title {
		font-size: 0.875rem;
	}
	.post-excerpt {
		font-size: 0.8125rem;
	}
	span.category {
		font-size: 0.625rem;
		padding: 0.1875rem 0.25rem;
	}
	.post-details {
		padding: 0.625rem;
	} */
}

@media screen and (max-resolution: 0.5dppx) {
	body {
		background: blue !important;
	}
	/* .posts-grid-container {
		grid-auto-rows: minmax(9.375rem, 1fr);
	}
	.posts-grid-container a {
		min-height: 9.375rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 9.375rem;
	}
	.post-title {
		font-size: 0.6875rem;
	}
	.posts-grid-container > li:first-of-type .post-title {
		font-size: 0.75rem;
	}
	.post-excerpt {
		font-size: 0.75rem;
	}
	span.category {
		font-size: 0.5625rem;
		padding: 0.125rem 0.1875rem;
	}
	.post-details {
		padding: 0.5rem;
	}
	.post-description .read-more-icon {
		height: 1.5rem;
	}
	.post-description .read-more-icon svg {
		width: 1.5rem;
		height: 1.5rem;
	} */
}

@media screen and (max-resolution: 0.33dppx) {
	body {
		background: green !important;
	}
	/* .posts-grid-container {
		grid-auto-rows: minmax(6.25rem, 1fr);
	}
	.posts-grid-container a {
		min-height: 6.25rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 6.25rem;
	}
	.post-title {
		font-size: 0.5625rem;
	}
	.posts-grid-container > li:first-of-type .post-title {
		font-size: 0.625rem;
	}
	.post-excerpt {
		font-size: 0.625rem;
		line-height: 1.3em;
	}
	span.category {
		font-size: 0.5rem;
		padding: 0.0625rem 0.125rem;
	}
	.post-details {
		padding: 0.375rem;
	}
	.post-description .read-more-icon {
		height: 1.25rem;
	}
	.post-description .read-more-icon svg {
		width: 1.25rem;
		height: 1.25rem;
	}
	.post-description {
		gap: 0.25rem;
		box-shadow: 0 0 1.5rem 1.5rem rgb(0 0 0/ 60%);
	} */
}

@media screen and (max-resolution: 0.25dppx) {
	/* .posts-grid-container {
		grid-auto-rows: minmax(4.6875rem, 1fr);
		gap: 0.3125rem;
	}
	.posts-grid-container a {
		min-height: 4.6875rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 4.6875rem;
	}
	.post-title {
		font-size: 0.5rem;
		line-height: 1.3em;
	}
	.posts-grid-container > li:first-of-type .post-title {
		font-size: 0.5625rem;
	}
	.post-excerpt {
		font-size: 0.5625rem;
		line-height: 1.25em;
	}
	span.category {
		font-size: 0.4375rem;
		padding: 0.0625rem 0.125rem;
		border-radius: 0.625rem;
	}
	.post-details {
		padding: 0.3125rem;
	}
	.post-description .read-more-icon {
		height: 1rem;
	}
	.post-description .read-more-icon svg {
		width: 1rem;
		height: 1rem;
	}
	.post-description {
		gap: 0.1875rem;
		box-shadow: 0 0 1.25rem 1.25rem rgb(0 0 0/ 60%);
	} */
}

/* Dodatkowe wsparcie dla bardzo wysokiego zoomu */
/* @media screen and (min-width: 2048px) {
	.posts-grid-container {
		grid-auto-rows: minmax(50.5rem, 1fr);
	}
	.posts-grid-container a {
		min-height: 50.5rem;
	}
	.posts-grid-container > li:first-of-type {
		min-height: 50.5rem;
	}
} */
