#container {
	width: min(540px, calc(100vw - 28px));
	margin-right: auto;
	margin-left: auto;
}

#container .tekst-glavni img { max-width: 100%; height: auto; }
#disqus_thread { box-sizing: border-box; width: 100%; max-width: 500px; margin: 0 auto; }

.home-av-gallery {
	width: 100%;
	max-width: 540px;
	margin: 0 auto 18px;
	background: #0e0e0e;
	color: #d9d9d9;
}

.home-av-gallery figure { margin: 0; }

.home-av-gallery-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #000;
}

.home-av-gallery-image img {
	display: block;
	width: 100%;
	height: clamp(160px, 64vw, 345px);
	object-fit: contain;
}

.home-av-gallery button:focus-visible {
	outline: 2px solid #f90;
	outline-offset: 3px;
}

.home-av-gallery figcaption {
	min-height: 60px;
	padding: 9px 14px;
	font-size: 13px;
	line-height: 1.45;
}

.home-av-gallery-title {
	margin: 0 0 3px;
	color: #f90;
	font-size: 14px;
	font-weight: 400;
}

.home-av-gallery-description { margin: 0; }

.home-av-gallery-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 42px;
	border-top: 1px solid #333;
}

.home-av-gallery-controls button {
	border: 0;
	padding: 8px;
	background: transparent;
	color: #d9d9d9;
	font: inherit;
	cursor: pointer;
}

.home-av-gallery-controls button:hover { color: #f90; }
.home-av-gallery-count { min-width: 50px; color: #9b9b9b; text-align: center; font-size: 12px; }
.home-av-gallery-status { padding: 18px; color: #9b9b9b; text-align: center; }

@media (max-width: 640px) {
	body > table { table-layout: fixed; }
	body > table > tbody > tr > td:first-child,
	body > table > tbody > tr > td:last-child { width: 0 !important; padding: 0 !important; }
	body > table > tbody > tr > td:nth-child(2) { width: auto !important; }
	#container { width: calc(100vw - 28px); }
	.home-av-gallery { margin-bottom: 14px; }
	.home-av-gallery figcaption { min-height: 0; padding: 8px 10px; }
}
