body {
	background-color: #ffd;
	font-family: Georgia, Times, serif;
	}

.container {
	width: 90%;
	max-width: 1000px;
	margin: 0 auto;
	}

p {
	font-family: Georgia, Times, serif;
	font-size: small;
	color: black;
	
	}

p.vprasanje {
	font-family: Georgia, Times, serif;
	font-size: small;
	color: black;
	font-weight: bold;
	}

p.vprasanje2 {
	font-family: Georgia, Times, serif;
	font-size: small;
	color: gray;
	font-weight: normal;
	}


p.naslov {
	font-family: verdana, arial, sans-serif;
	font-size: large;
	color: black;
	font-weight: bold;
	}

h1 {
	font-family: Georgia, Times, serif;
	font-size: x-large;
	font-weight: bold;
	color: #333300;
	margin: 0; /* Remove default margins */
    padding-top: 10px; /* Remove any default padding */
	}

h2 {
	font-family: Georgia, Times, serif;
	font-size: large;
	font-weight: bold;
	color: #000;
	}

h6 { /* naslov za blogposte */
	all: unset;
	font-family: Georgia, Times, serif;
	font-size: small;
	font-weight: bold;
	color: #555522;
}



hr {
	color: #000000;
	height: 1px;
	background: transparent;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
	border-bottom-color: #000000;
	border-top-width: 0px;
	}

hr.okras {
	color: #666600;
	height: 2px;
	background: transparent;
	border-bottom-width: 2px;
	border-bottom-style: solid;
	border-bottom-color: #666600;
	border-top-width: 0px;
	}

.topnav a.icon {
display: none;
}

ul {
	font-family: Georgia, Times, serif;
	font-size: small;
	}

ul.ulkazalo {
	list-style: none;
	margin: 0;
	padding: 2px;
	}

li.kazalo {

	font-family: Georgia, Times, serif;
	font-weight: bold;
	text-align: left;
	}


li.kazalo a:link {

	line-height: 150%;
	display: block;
	color: #ccbf99;
	background-color: #330;
	font-size: small;
	text-indent: 5px;
	text-decoration: none;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	width: 100%;
	}

li.kazalo a:visited {

	line-height: 150%;
	display: block;
	color: #ccbf99;
	background-color: #330;
	font-size: small;
	text-indent: 5px;
	text-decoration: none;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	width: 100%;
	}

li.kazalo a:hover {

	line-height: 150%;
	display: block;
	color: #ffc;
	background-color: #220;
	font-size: small;
	text-indent: 5px;
	text-decoration: none;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	width: 100%;
	}

li.kazalo a:active {
	line-height: 150%;
	display: block;
	color: rgb(171, 181, 146);
	background-color: #330;
	font-size: small;
	text-indent: 5px;
	text-decoration: none;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	width: 100%;
	}

li.kazalo a.active {
	line-height: 150%;
	display: block;
	color: #ffc;
	background-color: #330;
	font-size: small;
	text-indent: 5px;
	text-decoration: none;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	width: 100%;
	
}

li.vmes {
	display: block;
	background-color: #ccbf99;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	width: 100%;
	height: 5px;
	}


li.kazspodaj {
	padding: 5px 5px 5px 5px;
	color: #220;
	font-size: small;
	text-align: left;
	text-indent: 5px;
	font-family: "Georgia", Times, serif;
	display: block;
	background-color: #ccbf99;
	border-left: 0px solid #ffc;
	border-right: 0px solid #ffc;
	border-top: 0px solid #ffc;
	border-bottom: 1px solid #ffc;
	}


.okvirkazala {
	border: 1px solid #330;
	width: 200px;
	background-color: #ebdbb2;
	}

.copyr {
	color: #666666;
	}

.malecrke {
	font-family: verdana, arial, sans-serif;
	font-size: x-small;
	}

.vsebina {
	width: 100%;
	padding-left: 20px;
	}

.zamikvsebine {
	padding-left: 0px;
	}

/* css-ji zaradi avtomati�ne konverzije arhiva */
.odgovor {
	font-weight: normal;
	}

.letnikstevilka {
	font-family: Georgia, Times, serif;
	font-size: small;
	color: black;
	font-weight: bold;
	}

.url {
	font-family: "Courier New", Courier, monospace;
	font-size: x-small;
	font-weight: normal;
	}

.avtor {
	font-family: verdana, arial, sans-serif;
	font-size: x-small;
	font-weight: normal;
	}

.primer {
	font-family: "Courier New", Courier, monospace;
	font-size: small;
	font-weight: normal;
	}

.referenca {
	font-style: italic;
	font-size: small;
	}

.lezece {
	font-style: italic;
	}

.krepko {
	font-weight: bold;
	}
/* css-ji zaradi avtomati�ne konverzije arhiva - konec */


.logo {
	font-family: Georgia, Times, serif;
	color: #8e8e54;
	font-size: 37px;
	padding-left: 5px;
	}

.logomali {
	font-family: Georgia, Times, serif;
	color: #555522;
	font-size: 12px;
	padding-left: 10px;
	}

a:link {
	color: #222200;
	font-family: verdana, arial, sans-serif;
	text-decoration: underline;
	}

a:visited {
	color: #222200;
	font-family: verdana, arial, sans-serif;
	text-decoration: underline;
	}

a:hover {
	color: #ff0000;
	font-family: verdana, arial, sans-serif;
	text-decoration: underline;
	}

a:active {
	color: #222200;
	font-family: verdana, arial, sans-serif;
	text-decoration: underline;
}

.image-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.image-grid img {
	width: 100%;
	height: auto;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.image-grid img:hover {
	opacity: 0.85;
}

.image-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.image-grid-2 img {
	width: 100%;
	height: auto;
	object-fit: cover;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.image-grid-2 img:hover {
	opacity: 0.85;
}



.post-flex{
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.post-flex .besedilo-del {
	flex: 1 1 0;
	min-width: 0;
}

.post-flex .slika-del {
	flex: 0 0 25%;
	max-width: 25%;
}

.post-flex .slika-del img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.post-flex .slika-del img:hover {
	opacity: 0.85;
}



/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 9999;
}

.lightbox.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-frame {
	position: relative;
	border: 1px solid #000;
	background: #000;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-frame img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	cursor: default;
}

.lightbox-close {
	position: absolute;
	top: -13px;
	right: -13px;
	width: 26px;
	height: 26px;
	background: #000;
	border: 1px solid #000;
	color: #fff;
	font-family: Georgia, Times, serif;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	user-select: none;
	z-index: 10000;
}

.lightbox-close:hover {
	background: #333;
}


input.besedilo {
	font-family: verdana, arial, sans-serif;
	font-size: small;
	color: #000;
	border: 1px solid #222200;
	background-color: #fff;
	margin-top: 1px;
	margin-right: 0px;
	margin-bottom: 1px;
	margin-left: 0px;
	}

input.gumb {
	font-family: verdana, arial, sans-serif;
	font-size: small;
	color: #000;
	margin-top: 1px;
	margin-right: 0px;
	margin-bottom: 1px;
	margin-left: 0px;
	}

.post {
	border: 2px solid #555522;
	padding-left: 10px;
	font-family: Georgia, Times, serif;
	font-size: medium;
	color: #555522;
	margin-bottom: 10px;
	margin-left: 5px;
	padding-right: 7px;
}

.block-links {
	border: 1px solid #555522;
	padding-left: 10px;
	font-family: Georgia, Times, serif;
	font-size: medium;
	color: #555522;
	margin-bottom: 10px;
	margin-left: 5px;
	padding-right: 2px;
}

.block-links a:link,
.block-links a:visited,
.block-links a:hover,
.block-links a:active {
	font-family: Georgia, Times, serif;
	color: #222200;
	text-decoration: underline;
}

.block-links a:hover {
	color: #ff0000;
}



.pager {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: Georgia, Times, serif;
	font-size: small;
	margin: 15px 5px;
	padding-top: 10px;
	border-top: 1px dotted #000;
}

.album-list {
    column-count: 1;
    column-gap: 20px;
}



.post code {
  display: block;
  background-color: #ccbf99;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-family: monospace;
  white-space: pre-wrap; 
  color: #333;
}


/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

	/* 1. Nothing is allowed to be wider than the screen */
	*, *::before, *::after {
		box-sizing: border-box;
	}
	html, body {
		margin: 0;
		max-width: 100%;
		overflow-x: hidden;
		-webkit-text-size-adjust: 100%;
	}

	.container {
		width: 100%;
		max-width: 100%;
		padding: 0 12px;
	}

	/* 2. Collapse the layout table into a single stacked column */
	.container table,
	.container tbody,
	.container tr,
	.container td {
		display: block;
		width: 100% !important;
		max-width: 100%;
		padding: 0;
		text-align: left !important;
	}

	/* 3. The real culprit: cap every equation, add its own scroll */
	mjx-container {
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	/* 4. Wrap long text: raw URLs, code, everything */
	.post {
		margin-left: 0;
		overflow-wrap: break-word;
		word-break: break-word;
	}
	pre, .post code {
		white-space: pre-wrap;
		word-break: break-word;
	}

	/* 5. Media never overflows */
	img {
		max-width: 100%;
		height: auto;
	}
	.image-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* 6. Image-right posts stack */
	.post-flex {
		flex-direction: column;
	}
	.post-flex .slika-del {
		flex-basis: auto;
		max-width: 60%;
		margin: 0 auto;
	}

	/* 7. Nav + hamburger sit at the top, in normal flow */
	.okvirkazala {
		width: 100%;
	}
	.vsebina {
		padding-left: 0;
	}
	.topnav a.icon {
		display: block;
		position: static;
		padding: 8px 0;
	}
	.topnav a.icon img {
		width: 24px;
		height: 24px;
	}
	.topnav #links {
		display: none;
	}

	/* 8. Lightbox */
	.lightbox-frame img {
		max-width: 95vw;
		max-height: 85vh;
	}
	.lightbox-close {
		top: -15px; right: -15px;
		width: 30px; height: 30px;
		font-size: 16px; line-height: 28px;
	}
}



/* ---------- MEADOW (listki v stolpcih, kot Google Keep) ---------- */

/* Slika travnika cez celo sirino vsebine, napis "Meadow" na njej */
.meadow-glava {
	position: relative;
	margin: 0 0 14px 5px;
}

.meadow-glava h3 {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	font-size: x-large;
	color: #333300;
	text-shadow: 0 0 3px #ffd, 0 0 6px #ffd, 0 0 10px #ffd;
	z-index: 1;
}

/* width 100%: slika se prilagodi sirini in ne razsiri tabele s kazalom */
.meadow-slika img {
	display: block;
	width: 100%;
	height: auto;
}

/* Brez JS: navadni CSS stolpci */
.meadow {
	column-count: 3;
	column-gap: 12px;
	margin-left: 5px;
}

/* Z JS: meadow.js naredi stolpce in vsak listek da v najkrajsega */
.meadow.meadow-js {
	column-count: auto;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.meadow-stolpec {
	flex: 1 1 0;
	min-width: 0;
}

.note {
	break-inside: avoid;
	border: 2px solid #555522;
	background-color: #e6e8b8;
	color: #3d3d14;
	font-family: Georgia, Times, serif;
	margin-bottom: 12px;
	overflow: hidden;
	overflow-wrap: break-word;
}

.note img {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.note img:hover {
	opacity: 0.85;
}

.note h3 {
	font-size: medium;
	color: #333300;
	margin: 8px 10px 4px 10px;
}

.note p {
	margin: 6px 10px;
	color: #3d3d14;
}

.note h3:last-child,
.note p:last-child {
	margin-bottom: 10px;
}

@media (max-width: 768px) {
	.meadow-glava {
		margin-left: 0;
	}
	.meadow {
		column-count: 2;
		margin-left: 0;
	}
}

@media (max-width: 480px) {
	.meadow-glava h3 {
		font-size: large;
		left: 8px;
	}
	.meadow {
		column-count: 1;
	}
}
