/*
 * Народно позориште Кикинда – glavni stilovi.
 *
 * Boje, fontovi i veličine dolaze iz theme.json (--wp--preset--*).
 * Prelomna tačka za višekolonski prikaz: 64rem (≈1024 px pri podrazumevanom fontu).
 * Rem jedinice poštuju korisnikovo uvećanje teksta (WCAG 1.4.4).
 */

/* ---------- Osnova ---------- */

:root {
	--pk-gutter: clamp(1rem, 3.5vw, 3.5rem);
	--pk-page-max: 100%;                 /* sadržaj preko cele širine ekrana (zaglavlje, sadržaj, podnožje) */
	--pk-radius: 0.375rem;
	--pk-focus: 3px solid var(--wp--preset--color--primary);
	--pk-promo-min: 300px;              /* Smernice 6.2: referentna min. širina zone za banere */
	--pk-promo-width: clamp(18.75rem, 22vw, 24rem);   /* raste sa ekranom, nikad ispod 300 px */
	--pk-cairon-h: 0px;                 /* postavlja assets/js/cairon-offset.js */
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	/* Rezervisan prostor za kajron (Smernice 6.1.1 i 6.3) – prati stvarnu visinu trake. */
	padding-bottom: var(--pk-cairon-h);
	overflow-wrap: break-word;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* ---------- Pristupačnost ---------- */

:focus-visible {
	outline: var(--pk-focus);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	transform: translateY(-120%);
}

.skip-link:focus {
	transform: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- Zaglavlje ---------- */

.site-header {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--pk-page-max);
	margin-inline: auto;
	padding: 1rem var(--pk-gutter);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.custom-logo {
	width: auto;
	max-height: 4rem;
}

.site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.2;
}

.site-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;               /* dovoljno velika meta za dodir */
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--pk-radius);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__icon::before { top: -6px; }
.menu-toggle__icon::after  { top: 6px; }

.primary-menu {
	flex-basis: 100%;
}

.js .primary-menu:not(.is-open) {
	display: none;
}

.menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu a {
	display: block;
	padding: 0.75rem 0;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu [aria-current="page"] {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.menu .sub-menu {
	padding-left: 1rem;
	list-style: none;
}

@media (min-width: 64rem) {
	.menu-toggle {
		display: none;
	}

	.primary-menu,
	.js .primary-menu:not(.is-open) {
		display: flex;
		flex-basis: auto;
		align-items: center;
		gap: 1.5rem;
	}

	.menu {
		display: flex;
		gap: 1.5rem;
	}

	.menu .sub-menu {
		display: none;                     /* padajući meni: TODO kad bude poznata struktura */
	}
}

/* ---------- Raspored: glavni sadržaj + desna promotivna zona (Smernice 6.1, 6.2) ---------- */

.site-layout {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	max-width: var(--pk-page-max);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--50) var(--pk-gutter);
}

.site-main {
	min-width: 0;                         /* sprečava da široki sadržaj „gura“ zonu banera */
}

.site-main:focus {
	outline: none;
}

.promo-zone {
	min-width: 0;
}

/* Iznad prelomne tačke: baneri desno od sadržaja, u istom rasporedu. */
@media (min-width: 64rem) {
	.site-layout:has(> .promo-zone) {
		grid-template-columns: minmax(0, 1fr) minmax(var(--pk-promo-min), var(--pk-promo-width));
		align-items: start;
	}
}

/* Ispod prelomne tačke: jedna kolona, zona banera ispod sadržaja (redosled iz HTML-a). */

/* ---------- Sadržaj ---------- */

.page-header,
.entry-header {
	margin-bottom: var(--wp--preset--spacing--40);
}

.page-title,
.entry-title {
	margin: 0 0 0.5rem;
}

.entry-meta,
.card__meta {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.entry-content > * {
	max-width: var(--wp--style--global--content-size);
}

.entry-content > .alignwide,
.entry-content > .alignfull {
	max-width: none;
}

.entry-thumbnail {
	margin: 0 0 var(--wp--preset--spacing--40);
}

/* ---------- Kartice (vesti, predstave) ---------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: var(--wp--preset--spacing--40);
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--pk-radius);
	background: var(--wp--preset--color--surface);
}

.card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.card__body {
	padding: 1rem 1.25rem 1.25rem;
}

.card__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--large);
}

.card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* Cela kartica je klikabilna preko linka u naslovu, bez dupliranja linkova za čitače ekrana. */
.card {
	position: relative;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card:focus-within {
	outline: var(--pk-focus);
	outline-offset: 2px;
}

.card__title a:focus-visible {
	outline: none;
}

/* ---------- Paginacija ---------- */

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--50);
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--pk-radius);
	text-align: center;
}

.pagination .current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--primary);
}

/* ---------- Podnožje ---------- */

.site-footer {
	margin-top: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

.site-footer a {
	color: var(--wp--preset--color--base);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--wp--preset--spacing--40);
	max-width: var(--pk-page-max);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--50) var(--pk-gutter);
}

.site-footer__name {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
}

.site-footer address {
	font-style: normal;
}

.footer-menu,
.social-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a,
.social-menu a {
	display: inline-block;
	padding: 0.375rem 0;
}

/* ---------- Visoki kontrast (Smernice 5) – klasu postavlja budući prekidač ---------- */

html.has-high-contrast {
	--wp--preset--color--base: #FFFFFF;
	--wp--preset--color--surface: #FFFFFF;
	--wp--preset--color--ink: #000000;
	--wp--preset--color--muted: #000000;
	--wp--preset--color--primary: #5A0010;
	--wp--preset--color--line: #000000;
}

/* ---------- Predstava ---------- */

.predstava__autor {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
}

.predstava__podaci,
.predstava__podela {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.375rem 1.5rem;
	margin: 0 0 var(--wp--preset--spacing--40);
}

.predstava__podaci dt,
.predstava__podela dt {
	color: var(--wp--preset--color--muted);
}

.predstava__podaci dd,
.predstava__podela dd {
	margin: 0;
}

@media (max-width: 30rem) {
	.predstava__podela {
		grid-template-columns: 1fr;
	}

	.predstava__podela dd {
		margin-bottom: 0.5rem;
	}
}

/* ---------- Izvođenja ---------- */

.izvodjenja__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.izvodjenje {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.izvodjenje__datum {
	min-width: 14rem;
	font-weight: 600;
}

.izvodjenje__naslov {
	flex: 1 1 12rem;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--large);
}

.izvodjenje__mesto {
	color: var(--wp--preset--color--muted);
}

.wp-element-button {
	display: inline-block;
	padding: 0.625rem 1.125rem;
	border-radius: var(--pk-radius);
	text-decoration: none;
}

/* ---------- Dokumenti ---------- */

.dokumenti__lista {
	padding-left: 1.25rem;
}

.dokumenti__lista li {
	margin-bottom: 0.5rem;
}

.dokumenti__format,
.dokumenti__vrsta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Početna: istaknuta predstava ---------- */

.hero {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--pk-radius);
	border-top: 4px solid var(--wp--preset--color--accent);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
}

@media (min-width: 40rem) {
	.hero {
		grid-template-columns: minmax(10rem, 16rem) 1fr;
		align-items: center;
		padding: var(--wp--preset--spacing--50);
	}
}

.hero__poster {
	display: block;
	max-width: 11rem;
}

@media (min-width: 40rem) {
	.hero__poster {
		max-width: 16rem;
	}
}

.hero__poster img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: calc(var(--pk-radius) / 2);
	box-shadow: 0 1rem 2rem rgb(0 0 0 / 0.4);
}

.hero__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--xx-large);
}

.hero__title a {
	color: inherit;
	text-decoration: none;
}

.hero__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hero__autor {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.hero__meta {
	margin: 0.25rem 0 0;
	opacity: 0.85;
}

.hero__date {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: var(--wp--preset--spacing--40) 0 0;
}

.hero :focus-visible {
	outline-color: var(--wp--preset--color--accent);
}

/* Široki ekrani: veći plakat u istaknutoj predstavi */
@media (min-width: 90rem) {
	.hero {
		grid-template-columns: minmax(12rem, 22rem) 1fr;
	}

	.hero__poster {
		max-width: 22rem;
	}
}

/* ---------- Dugmad ---------- */

.button {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.25rem;
	border: 2px solid transparent;
	border-radius: var(--pk-radius);
	font-weight: 600;
	text-decoration: none;
}

.button--light {
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--base);
}

.button--light:hover {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

.button--accent {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.button--accent:hover {
	background: var(--wp--preset--color--base);
}

/* ---------- Početna: sekcije ---------- */

.front-section,
.izvodjenja {
	margin-bottom: var(--wp--preset--spacing--60);
}

.front-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.front-section__head h2 {
	margin: 0 0 0.5rem;
}

.front-section__more {
	font-weight: 600;
}

/* ---------- Mreža plakata ---------- */

.card-grid--posters {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 40rem) {
	.card-grid--posters {
		grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
		gap: var(--wp--preset--spacing--40);
	}
}

.card-grid--posters .card__media img {
	aspect-ratio: 2 / 3;
	object-position: top;
}

.card-grid--posters .card__body {
	padding: 0.75rem 0.875rem 1rem;
}

.card-grid--posters .card__title {
	font-size: var(--wp--preset--font-size--medium);
}

.card-grid--posters .card__meta {
	font-size: var(--wp--preset--font-size--small);
}

.card--predstava:hover .card__media img {
	opacity: 0.9;
}

/* ---------- Galerija predstave (core Gallery + lightbox) ---------- */

.predstava__galerija {
	margin: var(--wp--preset--spacing--50) 0;
}

.predstava__galerija .wp-block-gallery {
	--wp--style--unstable-gallery-gap: 0.5rem;
	gap: 0.5rem;
}

.predstava__galerija .wp-block-image img {
	border-radius: calc(var(--pk-radius) / 2);
}

/* ---------- Početna: „Са сцене“ ---------- */

.sa-scene__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.sa-scene__grid {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 9rem;
	}

	.sa-scene__item--large {
		grid-column: span 2;
		grid-row: span 2;
	}
}

.sa-scene__item {
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--pk-radius) / 2);
	background: var(--wp--preset--color--ink);
}

.sa-scene__item--large {
	grid-column: span 2;
}

.sa-scene__item a {
	display: block;
	height: 100%;
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.sa-scene__item img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.4s ease, opacity 0.2s;
}

@media (min-width: 40rem) {
	.sa-scene__item img {
		aspect-ratio: auto;
	}
}

.sa-scene__item a:hover img,
.sa-scene__item a:focus-visible img {
	transform: scale(1.03);
	opacity: 0.85;
}

.sa-scene__caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.5rem 0.75rem 0.5rem;
	background: linear-gradient(transparent, rgb(27 26 31 / 0.85));
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	line-height: 1.25;
}

.sa-scene__item--large .sa-scene__caption {
	font-size: var(--wp--preset--font-size--large);
}

.sa-scene__item a:focus-visible {
	outline: var(--pk-focus);
	outline-offset: -3px;
}

/* ---------- Repertoar ---------- */

.repertoar__mesec {
	margin-bottom: var(--wp--preset--spacing--50);
}

.repertoar__mesec h2 {
	margin-bottom: 0.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.izvodjenje__naslov {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.izvodjenje__oznaka {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
}

.repertoar__ekultura,
.repertoar__prazno {
	margin-top: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--muted);
}

/* ---------- Traka za pristupačnost ---------- */

.a11y-bar {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
}

.a11y-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;     /* sve desno */
	gap: 0.25rem 1rem;
	max-width: var(--pk-page-max);
	margin-inline: auto;
	padding: 0.125rem var(--pk-gutter);
}

.a11y-bar__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

.a11y-bar__label {
	margin-right: 0.25rem;
	opacity: 0.85;
}

.a11y-bar__btn {
	min-width: 2.25rem;
	min-height: 2.25rem;              /* WCAG 2.5.8: meta za dodir najmanje 24 px */
	padding: 0.125rem 0.5rem;
	border: 1px solid transparent;
	border-radius: var(--pk-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.a11y-bar__btn--wide {
	padding-inline: 0.75rem;
}

.a11y-bar__btn:hover {
	border-color: currentColor;
}

.a11y-bar__btn[aria-pressed="true"] {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}

.a11y-bar__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.a11y-bar :focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.a11y-bar__link {
	color: inherit;
}

/* ---------- Visok kontrast: dopune (boje su definisane gore u html.has-high-contrast) ---------- */

html.has-high-contrast a {
	text-decoration: underline;
}

html.has-high-contrast .hero,
html.has-high-contrast .site-footer,
html.has-high-contrast .a11y-bar {
	background: #000;
	color: #fff;
}

html.has-high-contrast .hero .button--accent {
	background: #ffd400;
	color: #000;
}

html.has-high-contrast .card,
html.has-high-contrast .izvodjenje {
	border-color: #000;
}

html.has-high-contrast :focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
	box-shadow: 0 0 0 6px #ffd400;
}

html.has-high-contrast .sa-scene__caption {
	background: #000;
}

/* ---------- Posеta i kontakt ---------- */

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

.info-block h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--large);
}

.info-list {
	margin: 0;
	padding-left: 1.25rem;
}

.info-list li + li {
	margin-top: 0.375rem;
}

.info-cene {
	width: 100%;
	border-collapse: collapse;
}

.info-cene th,
.info-cene td {
	padding: 0.5rem 0.25rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
}

.info-cene thead th {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.info-cene thead th:last-child {
	text-align: right;
}

.info-cene tbody th {
	font-weight: 400;
}

.info-cene td {
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

.info-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.info-adresa {
	font-style: normal;
	font-weight: 600;
}

.info-mapa {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 16rem;
	margin-top: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--40);
	border: 1px dashed var(--wp--preset--color--line);
	border-radius: var(--pk-radius);
	background: var(--wp--preset--color--surface);
}

.info-mapa__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-bottom: 0;
}

.info-mapa:has(.info-mapa__frame) {
	padding: 0;
	border: 0;
}

.info-mapa__frame {
	width: 100%;
	height: 22rem;
	border: 0;
	border-radius: var(--pk-radius);
}

.button--primary {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}

.button--primary:hover {
	background: var(--wp--preset--color--primary-dark);
}

.info-kontakt {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.5rem 1.25rem;
	margin: 0;
}

.info-kontakt dt {
	color: var(--wp--preset--color--muted);
}

.info-kontakt dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* ---------- Istaknuta predstava sa fotografijom preko cele kolone ----------
   Kad predstava ima galeriju, prva fotografija je pozadina bloka (hero--foto).
   Selektori su dvostruki (.hero.hero--foto) da važe u svim dizajnima. */

.hero.hero--foto {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr;
	align-items: end;
	min-height: clamp(26rem, 68vh, 46rem);
	padding: clamp(1.5rem, 4vw, 4rem);
	border: 0;
	border-radius: var(--pk-radius);
	box-shadow: none;
	background: #111;
	color: #fff;
}

.hero.hero--foto::before {
	content: none;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

/* Zatamnjenje: tekst je dole levo, tu je pozadina najtamnija (kontrast teksta) */
.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgb(0 0 0 / 0.92) 0%, rgb(0 0 0 / 0.7) 40%, rgb(0 0 0 / 0.25) 75%, rgb(0 0 0 / 0.1) 100%),
		linear-gradient(to right, rgb(0 0 0 / 0.55) 0%, transparent 65%);
}

.hero--foto .hero__body {
	max-width: 44rem;
}

.hero--foto .hero__title {
	font-size: clamp(2.25rem, 5vw, 4.5rem);
	line-height: 1.02;
	text-wrap: balance;
}

.hero--foto .hero__title,
.hero--foto .hero__title a,
.hero--foto .hero__autor,
.hero--foto .hero__date {
	color: #fff;
}

.hero--foto .hero__meta {
	color: rgb(255 255 255 / 0.85);
	opacity: 1;
}

.hero--foto .hero__eyebrow {
	padding: 0;
	background: none;
	color: #fff;
	letter-spacing: 0.14em;
}

.hero--foto .button--light {
	border-color: #fff;
	background: transparent;
	color: #fff;
}

.hero--foto .button--light:hover {
	background: #fff;
	color: #111;
}

.hero--foto .hero__date {
	border-color: rgb(255 255 255 / 0.3);
}

.hero--foto :focus-visible {
	outline-color: #fff;
}

/* Plakat: mali, desno dole – samo na širim ekranima */
.hero--foto .hero__poster {
	display: none;
}

@media (min-width: 64rem) {
	.hero.hero--foto {
		grid-template-columns: 1fr auto;
		gap: var(--wp--preset--spacing--50);
	}

	.hero--foto .hero__poster {
		display: block;
		order: 2;
		width: clamp(9rem, 12vw, 14rem);
		max-width: none;
		align-self: end;
	}

	.hero--foto .hero__poster img {
		box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.6);
	}
}

/* Bez galerije: zamućen plakat kao pozadina, plakat vidljiv i na mobilnom */
.hero--plakat .hero__bg img {
	transform: scale(1.25);
	filter: blur(28px) saturate(1.2) brightness(0.8);
}

@media (max-width: 63.99rem) {
	.hero--plakat.hero--foto .hero__poster {
		display: block;
		width: min(55%, 13rem);
		margin-bottom: var(--wp--preset--spacing--30);
	}

	.hero--plakat.hero--foto {
		align-content: end;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.hero--plakat .hero__bg img {
		filter: brightness(0.35);
	}
}

html.has-high-contrast .hero.hero--foto {
	background: #000;
}

html.has-high-contrast .hero--foto .hero__bg {
	display: none;
}
