/* PGD FB Novice – naslovnica, seznam (postavitev B) in posamezna novica (N1). Barve spremeniš s spremenljivkami spodaj. */
.pgdn {
	--pgdn-accent: #C63E22;
	--pgdn-link: #B8371C;
	--pgdn-link-dark: #FF8A70;
	--pgdn-dark: #1E1A1B;
	--pgdn-dark-2: #2A2426;
	--pgdn-text: #3D3638;
	--pgdn-muted: #6B6264;
	--pgdn-soft: #D8D0D2;
	--pgdn-line: #DDD8D3;
	--pgdn-head: "Barlow Condensed", "Arial Narrow", sans-serif;
	color: var(--pgdn-text);
}
.pgdn *, .pgdn *::before, .pgdn *::after { box-sizing: border-box; }
.pgdn a { text-decoration: none; }

/* Slike zapolnijo okvir. Dva razreda + element premagata Elementorjev ".elementor img { height: auto }". */
.pgdn .pgdn-feat-img img, .pgdn .pgdn-side-img img, .pgdn .pgdn-row-img img, .pgdn .pgdn-tile img {
	display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%;
}

/* Tema in Elementor (h1–h4, .elementor-kit-N h3) vsilita velike črke – dva razreda imata višjo prioriteto. */
.pgdn .pgdn-feat-title, .pgdn .pgdn-row-title, .pgdn .pgdn-side-title, .pgdn .pgdn-single-title,
.pgdn .pgdn-feat-title a, .pgdn .pgdn-row-title a { text-transform: none; letter-spacing: normal; }

.pgdn-date { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pgdn-muted); }
.pgdn-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pgdn-badge { background: var(--pgdn-accent); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.pgdn-excerpt { margin: 0; font-size: 17px; line-height: 1.55; }
.pgdn-more { font-weight: 600; color: var(--pgdn-link); }
.pgdn-more:hover, .pgdn-more:focus { text-decoration: underline; }
.pgdn-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 3px 7px; border-radius: 2px; }

/* Izpostavljena novica – ležeča slika: slika čez celo širino, besedilo pod njo */
.pgdn-feat { display: flex; flex-direction: column; gap: 18px; }
.pgdn-feat > a { display: block; }
.pgdn-feat-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--pgdn-dark-2); }
.pgdn-feat-body { display: flex; flex-direction: column; gap: 14px; }
.pgdn-feat-title { margin: 0; font-family: var(--pgdn-head); font-weight: 700; font-size: 38px; line-height: 1.05; }
.pgdn-feat-title a { color: var(--pgdn-dark); }
.pgdn-feat-title a:hover { color: var(--pgdn-link); }

/* Izpostavljena novica – pokončna slika: slika 4:5 levo, besedilo desno */
.pgdn-feat.pgdn-portrait { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.pgdn-portrait .pgdn-feat-img { aspect-ratio: 4 / 5; }
.pgdn-portrait .pgdn-feat-body { padding-top: 8px; }
.pgdn-portrait .pgdn-feat-title { font-size: 34px; }

.pgdn-feat--dark { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; align-items: stretch; background: var(--pgdn-dark-2); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.pgdn-feat--dark.pgdn-portrait { grid-template-columns: 340px minmax(0, 1fr); gap: 0; align-items: stretch; }
.pgdn-feat--dark .pgdn-feat-img { border-radius: 0; }
.pgdn-feat--dark > a { height: 100%; }
.pgdn-feat--dark .pgdn-feat-img { height: 100%; min-height: 260px; }
.pgdn-feat--dark .pgdn-feat-body { padding: 32px 40px; }
.pgdn-feat--dark .pgdn-feat-body { align-self: center; }
.pgdn-feat--dark .pgdn-feat-title { font-size: 36px; }
.pgdn-feat--dark .pgdn-feat-title a { color: #fff; }
.pgdn-feat--dark .pgdn-date { color: var(--pgdn-soft); }
.pgdn-feat--dark .pgdn-excerpt { color: var(--pgdn-soft); }
.pgdn-feat--dark .pgdn-more, .pgdn-feat--dark .pgdn-feat-title a:hover { color: var(--pgdn-link-dark); }
.pgdn-feat--dark.pgdn-noimg { grid-template-columns: 1fr; }

/* Naslovnica: izpostavljena + dve ob strani (kvadratna sličica levo, besedilo desno) */
.pgdn-home { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.pgdn-side { display: flex; flex-direction: column; }
.pgdn-side-item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--pgdn-line); color: var(--pgdn-text); }
.pgdn-side-item:last-child { margin-bottom: 0; }
.pgdn-side-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: var(--pgdn-dark-2); }
.pgdn-side-img .pgdn-count { display: none; }
.pgdn-side-body { display: flex; flex-direction: column; gap: 6px; }
.pgdn-side-title { font-family: var(--pgdn-head); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--pgdn-dark); }
.pgdn-side-item:hover .pgdn-side-title, .pgdn-side-item:focus .pgdn-side-title { color: var(--pgdn-link); }

/* Seznam */
.pgdn-list { display: flex; flex-direction: column; }
.pgdn-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--pgdn-line); }
.pgdn-row > a { display: block; }
.pgdn-row.pgdn-noimg { grid-template-columns: 1fr; }
.pgdn-row-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--pgdn-dark-2); }
.pgdn-row-body { display: flex; flex-direction: column; gap: 10px; }
.pgdn-row-title { margin: 0; font-family: var(--pgdn-head); font-weight: 700; font-size: 28px; line-height: 1.1; }
.pgdn-row-title a { color: var(--pgdn-dark); }
.pgdn-row-title a:hover { color: var(--pgdn-link); }
.pgdn-row .pgdn-excerpt { max-width: 720px; }

.pgdn-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 36px; }
.pgdn-pager-info { color: var(--pgdn-muted); font-size: 15px; }
.pgdn-btn { display: inline-block; min-height: 44px; padding: 12px 22px; border-radius: 3px; font-weight: 600; }
.pgdn-btn--ghost { border: 1px solid var(--pgdn-dark); color: var(--pgdn-dark); }
.pgdn-btn--ghost:hover { background: var(--pgdn-dark); color: #fff; }

/* ===== Posamezna novica (N1) ===== */
.pgdn-single { background: #F4F3F1; width: 100%; }
.pgdn-single-wrap { max-width: 820px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pgdn-single-head { background: var(--pgdn-dark); padding: 48px 0 56px; }
.pgdn-single-head .pgdn-single-wrap { display: flex; flex-direction: column; gap: 18px; }
.pgdn .pgdn-back { color: var(--pgdn-soft); font-size: 15px; font-weight: 600; align-self: flex-start; padding: 4px 0; }
.pgdn .pgdn-back:hover { color: #fff; }
.pgdn .pgdn-single-title { margin: 0; font-family: var(--pgdn-head); font-weight: 700; font-size: 56px; line-height: 1.02; color: #fff; }
.pgdn-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--pgdn-soft); font-size: 15px; }
.pgdn .pgdn-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; }
.pgdn-author { font-weight: 600; color: #fff; }

.pgdn-single-body { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 64px; }
.pgdn-text { font-size: 19px; line-height: 1.65; }
.pgdn-text p { margin: 0 0 16px; }
.pgdn-text p:last-child { margin-bottom: 0; }
.pgdn-text a { color: var(--pgdn-link); text-decoration: underline; word-break: break-word; }
.pgdn-share-link { margin: 0; }
.pgdn-share-link a { font-weight: 600; color: var(--pgdn-link); }

/* Mozaik: ena velika + do štiri manjše, zadnja "+N" */
.pgdn-mosaic { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; }
.pgdn-tile { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--pgdn-dark-2); }
.pgdn-tile--hidden, .pgdn-tile[hidden] { display: none; }
.pgdn-tile:focus-visible { outline: 3px solid var(--pgdn-accent); outline-offset: 2px; }
.pgdn-tile img { transition: transform .3s ease; }
.pgdn-tile:hover img { transform: scale(1.03); }
.pgdn-mosaic > .pgdn-tile:first-child { grid-row: span 2; }
.pgdn-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: auto; }
.pgdn-mosaic--1 > .pgdn-tile:first-child { grid-row: auto; }
.pgdn-mosaic--1 .pgdn-tile img { height: auto; max-height: 640px; object-fit: contain; background: var(--pgdn-dark-2); }
.pgdn-mosaic--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 360px; }
.pgdn-mosaic--2 > .pgdn-tile:first-child { grid-row: auto; }
.pgdn-mosaic--3 { grid-template-columns: 2fr 1fr; }
.pgdn-mosaic--4 { grid-template-columns: 2fr 1fr 1fr; }
.pgdn-mosaic--4 > .pgdn-tile:nth-child(4) { grid-column: 2 / span 2; }
.pgdn-tile-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(30,26,27,.62); color: #fff; font-family: var(--pgdn-head); font-weight: 700; font-size: 34px; }
.pgdn-tile-more--mobile { display: none; }
.pgdn-hint { margin: -20px 0 0; font-size: 14px; color: var(--pgdn-muted); }

.pgdn-fb-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0; border-top: 1px solid var(--pgdn-line); border-bottom: 1px solid var(--pgdn-line); font-size: 15px; color: #5A5153; }
.pgdn-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pgdn-adj { display: flex; flex-direction: column; gap: 6px; color: var(--pgdn-text); }
.pgdn-adj--newer { text-align: right; grid-column: 2; }
.pgdn-adj-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pgdn-muted); }
.pgdn-adj-title { font-family: var(--pgdn-head); font-weight: 700; font-size: 22px; line-height: 1.15; color: var(--pgdn-dark); }
.pgdn-adj:hover .pgdn-adj-title { color: var(--pgdn-link); }

/* Povečava (<dialog>) */
.pgdn-lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(12,10,11,.96); color: #fff; }
.pgdn-lightbox::backdrop { background: rgba(12,10,11,.96); }
.pgdn-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.pgdn .pgdn-lb-img { display: block; max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); width: auto; height: auto; object-fit: contain; }
.pgdn-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.pgdn-lb-btn:hover, .pgdn-lb-btn:focus-visible { background: rgba(255,255,255,.28); }
.pgdn-lb-close { top: 16px; right: 16px; }
.pgdn-lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.pgdn-lb-next { right: 16px; top: 50%; margin-top: -24px; }
.pgdn-lb-single .pgdn-lb-prev, .pgdn-lb-single .pgdn-lb-next, .pgdn-lb-single .pgdn-lb-count { display: none; }
.pgdn-lb-count { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; color: var(--pgdn-soft); }

/* Telefon */
/* Ozek stolpec (npr. ozka vsebina teme ali stranski stolpec v Elementorju): odloča širina okvirja, ne zaslona. */
.pgdn-cq, .pgdn-list-wrap { container-type: inline-size; }
@container (max-width: 860px) {
	.pgdn-home { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.pgdn-side { border-top: 1px solid var(--pgdn-line); margin-top: 24px; }
	.pgdn-side-item { padding: 16px 0; margin: 0; grid-template-columns: 120px minmax(0, 1fr); }
	.pgdn-feat--dark, .pgdn-feat--dark.pgdn-portrait { grid-template-columns: minmax(0, 1fr); }
	.pgdn-feat--dark .pgdn-feat-img { height: auto; min-height: 0; }
	.pgdn-feat--dark .pgdn-feat-body { padding: 24px 28px 28px; }
}
@container (max-width: 560px) {
	.pgdn-feat.pgdn-portrait { display: flex; }
	.pgdn-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 767px) {
	.pgdn-home { grid-template-columns: 1fr; gap: 8px; }
	.pgdn-feat-img { aspect-ratio: 4 / 3; }
	.pgdn-feat.pgdn-portrait { display: flex; }
	.pgdn-portrait .pgdn-feat-img { aspect-ratio: 4 / 5; }
	.pgdn-feat-title, .pgdn-portrait .pgdn-feat-title { font-size: 28px; }
	.pgdn-excerpt { font-size: 16px; }
	.pgdn-side { border-top: 1px solid var(--pgdn-line); margin-top: 16px; }
	.pgdn-side-item { display: flex; flex-direction: row-reverse; justify-content: space-between; gap: 14px; padding: 16px 0; margin: 0; }
	.pgdn-side-item:last-child { margin-bottom: 0; }
	.pgdn-side-img { flex: 0 0 84px; height: 84px; aspect-ratio: auto; border-radius: 3px; }
	.pgdn-side-title { font-size: 20px; }

	.pgdn-feat--dark, .pgdn-feat--dark.pgdn-portrait { grid-template-columns: 1fr; }
	.pgdn-feat--dark.pgdn-portrait .pgdn-feat-img { aspect-ratio: 4 / 5; height: auto; }
	.pgdn-feat--dark .pgdn-feat-body { padding: 20px 18px 24px; }
	.pgdn-feat--dark .pgdn-feat-title { font-size: 28px; }

	.pgdn-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
	.pgdn-row-img { aspect-ratio: 16 / 9; }
	.pgdn-row-title { font-size: 24px; }
	.pgdn-pager { flex-direction: column; align-items: stretch; text-align: center; }

	.pgdn-single-wrap { padding-left: 16px; padding-right: 16px; }
	.pgdn-single-head { padding: 28px 0 32px; }
	.pgdn .pgdn-single-title { font-size: 38px; }
	.pgdn-single-body { padding-top: 28px; gap: 24px; }
	.pgdn-text { font-size: 17px; }
	.pgdn-mosaic, .pgdn-mosaic--4, .pgdn-mosaic--5 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px; gap: 6px; }
	.pgdn-mosaic > .pgdn-tile:first-child { grid-row: auto; grid-column: span 2; }
	.pgdn-mosaic--4 > .pgdn-tile:nth-child(4) { grid-column: auto; }
	/* Na telefonu: velika + dve, na tretji "+N"; 4. in 5. ploščica se skrijeta (v povečavi so vse). */
	.pgdn-tile-more--mobile { display: flex; }
	.pgdn-tile .pgdn-tile-more:not(.pgdn-tile-more--mobile) { display: none; }
	.pgdn-mosaic--4 > .pgdn-tile:nth-child(n+4), .pgdn-mosaic--5 > .pgdn-tile:nth-child(n+4) { display: none; }
	.pgdn-mosaic--3 { grid-template-columns: 1fr 1fr; }
	.pgdn-mosaic--2 { grid-template-rows: 240px; }
	.pgdn-adjacent { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--pgdn-line); }
	.pgdn-adj, .pgdn-adj--newer { text-align: left; grid-column: auto; padding: 16px 0; border-bottom: 1px solid var(--pgdn-line); }
	.pgdn .pgdn-lb-img { max-width: 100vw; max-height: calc(100vh - 120px); }
	.pgdn-lb-prev, .pgdn-lb-next { top: auto; bottom: 8px; margin-top: 0; }
	.pgdn-lb-count { bottom: 22px; }
}
