/*
Theme Name: Zino Child - CIW Redesign
Description: Museum/exhibition-style visual redesign built on top of Zino.
Template: zino
Version: 1.0.0
Text Domain: zino-child
*/

/* ---------- Hero banner ---------- */
.home-banner .wp-block-cover {
	min-height: 40vh !important;
	align-items: flex-start !important;
}

.home-banner .wp-block-cover__image-background {
	object-position: center 20% !important;
}

.home-banner .wp-block-cover__background.has-black-background-color {
	background: linear-gradient(160deg, rgba(21, 19, 15, 0.78) 0%, rgba(85, 22, 33, 0.62) 55%, rgba(21, 19, 15, 0.82) 100%) !important;
	opacity: 1 !important;
}

.home-banner .wp-block-site-title a {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.home-banner .wp-block-site-title {
	position: relative;
	padding-bottom: 1.25rem;
}

.home-banner .wp-block-site-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 64px;
	height: 3px;
	background: #a9834f;
}

.home-banner .wp-block-navigation-item__label {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.home-banner .wp-block-navigation-item__content {
	position: relative;
}

.home-banner .wp-block-navigation__submenu-container,
.home-banner .wp-block-navigation__responsive-container {
	z-index: 20 !important;
}

.home-banner .wp-block-navigation__submenu-container {
	background-color: #15130f !important;
}

.home-banner .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #f4f0e8 !important;
}

.home-banner .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: #a9834f !important;
}


.home-banner .wp-block-navigation-item:not(.has-child) > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: #a9834f;
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.home-banner .wp-block-navigation-item:not(.has-child) > .wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

/* ---------- Main content ---------- */
main.wp-block-group {
	padding-top: 1.5rem !important;
}

main .entry-content.wp-block-post-content {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0 !important;
	position: relative;
}

main .entry-content.wp-block-post-content > * {
	max-width: 100% !important;
	margin-top: 0 !important;
}

main .entry-content.wp-block-post-content > h1:empty {
	display: none;
}

main .entry-content.wp-block-post-content > h1:has(img):not(:has(:not(img))) {
	position: static;
	transform: none;
	color: inherit;
	mix-blend-mode: normal;
}

main .entry-content.wp-block-post-content > h1:has(img):not(:has(:not(img)))::after {
	content: none;
}

body.single main .entry-content.wp-block-post-content {
	position: static !important;
}

main .entry-content.wp-block-post-content > h1 {
	max-width: 1100px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.25;
	padding-bottom: 0.5rem;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(calc(-100% - 1.5rem));
	z-index: 5;
	color: #ffffff;
	mix-blend-mode: difference;
}

/* Page title (used on non-homepage pages via the post-title block) mirrors the homepage h1 treatment */
main.wp-block-group > .wp-block-group:first-child {
	position: relative;
	margin-top: 0 !important;
	padding-top: 1px;
}

main:has(.entry-content.wp-block-post-content > h1) .wp-block-post-title {
	max-width: 1100px !important;
	margin: 0 auto !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase;
	line-height: 1.4 !important;
	padding-bottom: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(calc(-100% - 6rem));
	text-align: left !important;
	z-index: 5;
	color: #ffffff;
	mix-blend-mode: difference;
}

.wp-block-post-title {
	max-width: 1100px !important;
	margin: 0 auto !important;
	font-size: clamp(2rem, 4vw, 2.75rem) !important;
	line-height: 1.25 !important;
	padding-bottom: 0.5rem;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(calc(-100% - 1.5rem));
	text-align: left !important;
	z-index: 5;
	color: #ffffff;
	mix-blend-mode: difference;
}

.wp-block-post-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 3px;
	background: #ffffff;
	mix-blend-mode: difference;
}

main .entry-content.wp-block-post-content > h1::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 3px;
	background: #ffffff;
	mix-blend-mode: difference;
}

main .entry-content.wp-block-post-content > p:first-of-type {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.6;
	color: #55524c;
	margin-bottom: 0.75rem;
}

main .entry-content.wp-block-post-content > p:nth-of-type(2) {
	display: inline-block;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #a9834f;
	font-weight: 600;
	border-top: 1px solid #e7e2d6;
	border-bottom: 1px solid #e7e2d6;
	padding: 0.5rem 0;
	margin-bottom: 2rem;
}

main .entry-content.wp-block-post-content > p {
	font-family: var(--wp--preset--font-family--montserrat) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.7;
	margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
	background-color: #15130f !important;
	color: #f4f0e8 !important;
}

.site-footer p,
.site-footer a {
	color: #cfc9bb !important;
	margin: 0 0 0.35rem;
}

.site-footer a:hover {
	color: #a9834f !important;
}

.site-footer .footer-title {
	color: #f4f0e8 !important;
	font-family: var(--wp--preset--font-family--montserrat);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 0.95rem;
	font-weight: 600;
}

.site-footer .footer-meta,
.site-footer .footer-copyright {
	font-size: 0.8rem;
	color: #9d978a !important;
}

/* ---------- Exhibition page: logo badge beside the text column ---------- */
body.page-id-101 main .entry-content.wp-block-post-content::before {
	content: "";
	position: absolute;
	top: 0;
	right: calc(100% + 24px);
	width: 76px;
	height: 88px;
	background-color: #f4f0e8;
	background-image: url("https://www.ciw.usd.cas.cz/wp-content/uploads/2024/11/logo_web.jpg");
	background-position: center;
	background-size: 64px 76px;
	background-repeat: no-repeat;
	border: 2px solid #a9834f;
	border-radius: 4px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Bannery category: no special lede/meta styling on paragraphs ---------- */
body.category-bannery main .entry-content.wp-block-post-content > p:first-of-type,
body.category-bannery main .entry-content.wp-block-post-content > p:nth-of-type(2) {
	font-family: var(--wp--preset--font-family--montserrat) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	color: #2c2a25 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	display: block !important;
	border-top: none !important;
	border-bottom: none !important;
	padding: 0 !important;
	margin-bottom: 1rem !important;
}

/* ---------- Bannery category: first image floats left, text wraps beside it ---------- */
body.category-bannery main .entry-content.wp-block-post-content > :is(p, figure):first-of-type:has(img) {
	float: left;
	margin: 0 24px 16px 0 !important;
	width: auto;
}

body.category-bannery main .entry-content.wp-block-post-content > :is(p, figure):first-of-type:has(img) img {
	margin: 0 !important;
	display: block;
}

body.postid-359 main .entry-content.wp-block-post-content > figure:nth-of-type(2) {
	float: left;
	clear: left;
	margin: 0 24px 16px 0 !important;
	width: auto;
}

body.postid-359 main .entry-content.wp-block-post-content > figure:nth-of-type(2) img {
	margin: 0 !important;
	display: block;
}

body.postid-359 main .entry-content.wp-block-post-content > .su-spoiler {
	clear: both;
}

body.category-bannery .su-spoiler-title {
	text-align: left !important;
	justify-content: flex-start !important;
}

/* Bannery category: images inside accordion (su-spoiler) content float left, text wraps beside them */
body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content figure.wp-caption,
body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content > p:has(img) {
	float: left;
	margin: 0 24px 16px 0 !important;
	width: auto;
}

body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content figure.wp-caption img,
body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content > p:has(img) img {
	margin: 0 !important;
	display: block;
}

body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content .gallery {
	float: left;
	clear: left;
	display: block !important;
	width: 280px !important;
	margin: 0 24px 16px 0 !important;
}

body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content .gallery .gallery-item {
	display: inline-block !important;
	float: none !important;
	width: 130px !important;
	max-width: 130px !important;
	margin: 0 8px 8px 0 !important;
	vertical-align: top;
}

body.category-bannery main .entry-content.wp-block-post-content .su-spoiler-content .gallery .gallery-item img {
	width: 100% !important;
	height: auto !important;
}

/* ---------- Lightbox (Simple Lightbox) caption typography ---------- */
.slb_template_tag_item_title {
	font-family: var(--wp--preset--font-family--montserrat) !important;
	font-weight: 600 !important;
}

.slb_template_tag_item_description {
	font-family: var(--wp--preset--font-family--montserrat) !important;
}

/* ---------- Buttons & misc ---------- */
.wp-block-button__link {
	transition: background-color 0.2s ease;
}
