/*
Theme Name: LJportal Osmrtnice
Description: Podtema Poseidona za osmrtnice Ljubuški.
Template: poseidon
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ljportal-osmrtnice-tema
*/

:root {
	--lj-ink: #212725;
	--lj-muted: #505b56;
	--lj-accent: #62554a;
	--lj-hover: #4d4239;
	--lj-active-bg: #eee9e3;
	--lj-footer-link: #d8cabb;
	--link-color: var(--lj-accent);
	--link-hover-color: var(--lj-hover);
	--site-title-hover-color: var(--lj-hover);
	--navi-color: var(--lj-accent);
	--navi-hover-color: var(--lj-hover);
	--footer-link-color: var(--lj-footer-link);
	--footer-link-hover-color: #f1ebe5;
	--lj-line: #dddcd5;
	--lj-paper: #fbfaf6;
	--lj-photo: #efeee8;
}

.lj-obit-layout #content.site-content {
	padding-top: clamp(1rem, 3vw, 2.75rem);
}

.lj-obit-layout #primary.content-area {
	padding-inline-end: clamp(1.5rem, 3vw, 3rem);
	min-width: 0;
}

.lj-obit-layout.no-sidebar #primary.content-area {
	padding-inline-end: 0;
}

.lj-obit-list-heading {
	padding-bottom: 1.1rem;
}

.lj-obit-list-heading h1,
.lj-obit-single .entry-title {
	margin: 0 0 .8rem;
	color: var(--lj-ink);
	font-family: Georgia, serif;
	font-size: clamp(1.9rem, 3.7vw, 3.15rem);
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.lj-obit-search {
	display: flex;
	gap: .45rem;
	max-width: 33rem;
	margin: 0;
}

.lj-obit-search input[type="search"] {
	flex: 1 1 0;
	min-width: 0;
	min-height: 38px;
	margin: 0;
	padding: .32rem .72rem;
	border: 1px solid #a9ada5;
	border-radius: 4px;
	background: #fff;
	color: var(--lj-ink);
	font: inherit;
	font-size: 1rem;
}

.lj-obit-search button {
	min-height: 38px;
	padding: .3rem .85rem;
	border: 1px solid var(--lj-accent);
	border-radius: 4px;
	background: var(--lj-accent);
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	text-transform: none;
}

.lj-obit-search button:hover {
	background: var(--lj-hover);
}

.lj-obit-categories {
	--lj-obit-menu-gap: .4rem;
	display: flex;
	flex-wrap: wrap;
	gap: var(--lj-obit-menu-gap);
	margin: .8rem 0 0;
}

.lj-obit-categories .lj-obit-menu-list,
.lj-obit-categories .sub-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lj-obit-menu-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lj-obit-categories .sub-menu {
	margin-block-start: .35rem;
	padding-inline-start: .65rem;
}

.lj-obit-categories a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: .28rem .63rem;
	border: 1px solid var(--lj-line);
	border-radius: 4px;
	background: var(--lj-paper);
	color: var(--lj-accent);
	font-size: .83rem;
	text-decoration: none;
	white-space: nowrap;
}

.lj-obit-categories a[aria-current="page"],
.lj-obit-categories .current-menu-ancestor > a,
#masthead .main-navigation .current-menu-item > a,
#masthead .main-navigation .current-menu-ancestor > a {
	border-color: var(--lj-active-bg);
	border-radius: 4px;
	background: var(--lj-active-bg);
	color: var(--lj-accent);
}

.lj-obit-listing a,
.lj-obit-listing a:hover {
	text-decoration: none;
}

.lj-obit-categories a:hover,
.lj-obit-categories a:focus-visible {
	border-color: var(--lj-active-bg);
	background: var(--lj-active-bg);
	color: var(--lj-hover);
}

.lj-obit-layout :where(.lj-obit-categories, .lj-obit-grid, .lj-obit-search, .lj-obit-more) :focus-visible {
	outline: 2px solid var(--lj-accent);
	outline-offset: 2px;
}

ul.lj-obit-grid {
	display: grid;
	--lj-obit-columns: 4;
	grid-template-columns: repeat(var(--lj-obit-columns), minmax(0, 1fr));
	gap: .8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lj-obit-frame-black { --lj-frame: #333633; }

.lj-obit-card {
	min-width: 0;
	border: 2px solid var(--lj-frame);
	border-radius: 5px;
	background: var(--lj-paper);
}

.lj-obit-frame-blue { --lj-frame: #345b84; }
.lj-obit-frame-green { --lj-frame: #42704e; }
.lj-obit-frame-purple { --lj-frame: #724d8b; }
.lj-obit-frame-gold { --lj-frame: #976d28; }

.lj-obit-card .lj-obit-card-link {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .35rem;
	height: 100%;
	padding: .45rem .45rem .6rem;
	color: var(--lj-accent);
	text-align: center;
	text-decoration: none;
}

.lj-obit-card .lj-obit-card-link:hover h2,
.lj-obit-card .lj-obit-card-link:focus-visible h2 {
	color: var(--lj-hover);
}

.lj-obit-card-image {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 2px;
	background-color: var(--lj-photo);
}

.lj-obit-card .lj-obit-card-image > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	min-height: 0;
	object-fit: contain;
}

.lj-obit-card h2 {
	margin: 0;
	color: inherit;
	font-size: clamp(.96rem, 1.9vw, 1.12rem);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.lj-obit-card time,
.lj-obit-single time {
	color: var(--lj-muted);
	font-size: .83rem;
	line-height: 1.35;
}

.lj-obit-category-label,
.lj-obit-single-header a.lj-obit-category-label {
	align-self: center;
	display: inline-block;
	max-width: 100%;
	padding: .18rem .52rem;
	border-radius: .38rem;
	background: var(--lj-frame, #333633);
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.lj-obit-single-header a.lj-obit-category-label:hover,
.lj-obit-single-header a.lj-obit-category-label:focus-visible {
	box-shadow: 0 0 0 2px var(--lj-active-bg);
}

.lj-obit-dove {
	display: block;
	width: 60px;
	height: 60px;
	overflow: hidden;
}

.lj-obit-layout .lj-obit-dove img {
	display: block;
	width: 360px;
	max-width: none;
	height: 60px;
	filter: grayscale(1);
}

.lj-obit-listing #secondary .widget_search {
	display: none;
}

.lj-obit-more {
	margin: 1.35rem 0 1.7rem;
	text-align: center;
	overflow-anchor: none;
}

.lj-obit-more a:not([hidden]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .42rem 1.2rem;
	border-radius: 4px;
	background: var(--lj-accent);
	color: #fff;
	text-decoration: none;
}

.lj-obit-more a:hover,
.lj-obit-more a:focus-visible {
	background: var(--lj-hover);
	color: #fff;
}

.lj-obit-more a[aria-disabled="true"] {
	cursor: wait;
}

.lj-obit-more p:not(.screen-reader-text) {
	margin: .55rem 0 0;
	color: var(--lj-muted);
}

.lj-obit-home-ad {
	width: 100%;
	margin: 1.5rem 0 2rem;
}

.lj-obit-home-ad .widget {
	margin: 0;
}

.lj-obit-empty {
	padding: 1rem;
	background: var(--lj-paper);
}

.lj-obit-single {
	padding: clamp(.85rem, 3vw, 2rem);
	border: 1px solid var(--lj-frame, #333633);
	border-radius: 6px;
	background: var(--lj-paper);
	color: var(--lj-ink);
}

.lj-obit-single-header {
	display: grid;
	justify-items: center;
	gap: .35rem;
	margin: 0 0 1.2rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid var(--lj-line);
	text-align: center;
}

.lj-obit-single-header .entry-title {
	margin: 0;
}

.lj-obit-single-photo {
	margin: 0 0 1rem;
	text-align: center;
}

.lj-obit-single-photo img {
	width: auto;
	max-width: 100%;
	max-height: 30rem;
	height: auto;
	object-fit: contain;
}

.lj-obit-single-content {
	font-size: clamp(1rem, 2.3vw, 1.14rem);
	line-height: 1.68;
	overflow-wrap: anywhere;
}

.lj-obit-single-content,
.lj-obit-single-content :where(p, div, section, blockquote, li, td, th, figcaption, h1, h2, h3, h4, h5, h6) {
	text-align: center !important;
}

.lj-obit-single-content img {
	display: block;
	float: none !important;
	max-width: 100%;
	height: auto;
	margin-inline: auto !important;
}

.lj-obit-single-content :where(figure, .wp-caption) {
	float: none !important;
	max-width: 100%;
	margin-inline: auto !important;
}

.lj-obit-single-content table {
	margin-inline: auto;
}

.lj-obit-single-content .wpulike {
	margin-top: .8rem;
}

.lj-obit-single-content .wp_ulike_btn {
	min-height: 44px;
}

#masthead .main-navigation ul a {
	text-decoration: none;
}

#masthead .main-navigation ul a:hover,
#masthead .main-navigation ul a:focus-visible {
	border-radius: 4px;
	background: var(--lj-active-bg);
	color: var(--lj-hover);
}

#masthead .main-navigation ul a:hover > .icon,
#masthead .main-navigation ul a:focus-visible > .icon {
	fill: currentColor;
}

#masthead .primary-menu-toggle:hover,
#masthead .primary-menu-toggle:focus-visible,
#masthead .main-navigation .dropdown-toggle:hover,
#masthead .main-navigation .dropdown-toggle:focus-visible {
	border-radius: 4px;
	background: var(--lj-active-bg);
	color: var(--lj-hover);
}

#masthead .primary-menu-toggle:hover .icon,
#masthead .primary-menu-toggle:focus-visible .icon,
#masthead .main-navigation .dropdown-toggle:hover .icon,
#masthead .main-navigation .dropdown-toggle:focus-visible .icon {
	fill: currentColor;
}

#footer.lj-obit-footer {
	border-color: #2e2e2e;
	background: #191919;
	color: #e9e9e7;
}

.lj-obit-footer #colophon {
	padding-block: 1.5rem;
}

.lj-obit-footer-widgets {
	display: grid;
	gap: 1.5rem 2.5rem;
}

.lj-obit-footer-columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lj-obit-footer-column {
	min-width: 0;
	overflow-wrap: anywhere;
}

.lj-obit-footer-column .widget {
	margin: 0 0 1rem;
}

.lj-obit-footer-column .widget:last-child {
	margin-bottom: 0;
}

.lj-obit-footer-column .widget-title,
.lj-obit-footer-column .widget h2,
.lj-obit-footer-column .widget h3 {
	color: #f1f0ed;
}

#footer.lj-obit-footer a:link,
#footer.lj-obit-footer a:visited {
	color: var(--footer-link-color);
}

#footer.lj-obit-footer a:hover,
#footer.lj-obit-footer a:focus-visible {
	color: var(--footer-link-hover-color);
}

@media (min-width: 60em) {
	#masthead .main-navigation > ul.menu {
		gap: .3rem;
	}

	#masthead .main-navigation > ul > li > a {
		padding: .55rem .68rem;
	}
}

@media (max-width: 59.99em) {
	#masthead .site-branding {
		max-width: calc(100% - 54px);
	}

	#masthead .site-branding .custom-logo {
		margin-inline-end: 0;
	}

	#masthead .primary-menu-toggle {
		min-width: 44px;
		min-height: 44px;
		padding: .5rem;
		justify-content: center;
	}

	#masthead .main-navigation ul a {
		min-height: 44px;
	}
}

@media (max-width: 68em) {
	ul.lj-obit-grid {
		--lj-obit-columns: 3;
	}
}

@media (max-width: 55em) {
	.lj-obit-layout #primary.content-area {
		padding-inline: 0;
	}

	.lj-obit-layout #secondary.sidebar {
		margin-top: 1.4rem;
	}
}

@media (max-width: 38em) {
	.lj-obit-layout #content.container {
		padding-inline: .85rem;
	}

	.lj-obit-search {
		max-width: none;
	}

	.lj-obit-search :is(input[type="search"], button) {
		min-height: 44px;
	}

	.lj-obit-footer-columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.lj-obit-categories {
		--lj-obit-menu-gap: .3rem;
	}

	.lj-obit-categories a {
		min-height: 40px;
		padding-inline: .52rem;
		font-size: .78rem;
	}

	ul.lj-obit-grid {
		--lj-obit-columns: 2;
		gap: .55rem;
	}

	.lj-obit-card .lj-obit-card-link {
		padding: .3rem .3rem .5rem;
	}
}
