/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.footer-meniu-padding .widget-title {
	padding: 0 0 10px 0 !important;
}

.whb-sticked .whb-row {
    background-color: #ffffff !important;
}
.whb-sticked .whb-row .wd-nav>li>a {
	color: #333;
}
.whb-sticked .whb-row .wd-header-mobile-nav a{
	color: #333;
}
.single-post .wd-page-title .wd-post-meta {
	display: none;
}

/* Single project posts: readable text + full image grid (not a 1-up carousel) */
.single-post .wd-post-image:empty,
.single-post .wd-post-image:not(:has(img)),
.single-portfolio .wd-post-image:empty,
.single-portfolio .wd-post-image:not(:has(img)) {
	display: none;
}
.single-post #comments:not(:has(.comment-list, form.comment-respond, .comment-form)),
.single-post .comments-area:empty {
	display: none;
}
.single-post .wd-entry-content,
.single-portfolio .wd-entry-content {
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
.bunkis-project-lead {
	font-size: 1.15em;
	line-height: 1.65;
	margin: 0 0 1.25em;
}
.bunkis-project-meta {
	background: #f5f5f5;
	padding: 22px 24px;
	border-radius: 8px;
}
.bunkis-project-meta h3,
.bunkis-project-body h3,
.bunkis-project-gallery-row h3 {
	margin-top: 0;
}
.bunkis-project-meta ul {
	margin: 0;
	padding-left: 1.1em;
}
.bunkis-project-body p,
.bunkis-project-cta p {
	line-height: 1.7;
}
.bunkis-project-gallery-row {
	margin-top: 12px;
}
.single-post .gallery,
.single-portfolio .gallery,
.bunkis-project-gallery-row .gallery {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 1.5em;
	width: 100%;
}
.single-post .gallery br,
.single-portfolio .gallery br,
.bunkis-project-gallery-row .gallery br {
	display: none !important;
}
.single-post .gallery .gallery-item,
.single-portfolio .gallery .gallery-item,
.bunkis-project-gallery-row .gallery-item {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
	min-width: 0;
}
.single-post .gallery .gallery-icon,
.single-portfolio .gallery .gallery-icon,
.bunkis-project-gallery-row .gallery-icon,
.single-post .gallery .gallery-icon a,
.single-portfolio .gallery .gallery-icon a,
.bunkis-project-gallery-row .gallery-icon a {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}
.single-post .gallery .gallery-item img,
.single-portfolio .gallery .gallery-item img,
.bunkis-project-gallery-row .gallery-item img,
.single-post .gallery img,
.single-portfolio .gallery img,
.bunkis-project-gallery-row .gallery img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: unset;
	object-fit: cover;
	object-position: center center;
	display: block;
	border: 0 !important;
	background: #f0f0f0;
}
.single-post .gallery-caption,
.single-portfolio .gallery-caption {
	display: none;
}
.bunkis-project-gallery-row .wp-video {
	width: 100% !important;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	margin: 0 0 12px;
}
@media (min-width: 769px) {
	.bunkis-project-gallery-row .wp-video {
		display: inline-block;
		width: calc(50% - 6px) !important;
		vertical-align: top;
		margin: 0 12px 12px 0;
	}
	.bunkis-project-gallery-row .wp-video:nth-of-type(even) {
		margin-right: 0;
	}
}
.bunkis-project-cta {
	margin: 8px 0 24px;
}
@media (max-width: 768px) {
	.single-post .gallery,
	.single-portfolio .gallery,
	.bunkis-project-gallery-row .gallery {
		grid-template-columns: 1fr;
	}
}


/* Projektai archive: equal cards, cropped photos */
body.blog .wd-post-img,
body.category .wd-post-img,
body.blog .post-img-wrapp,
body.category .post-img-wrapp {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #1a1a1a;
}

body.blog .wd-post-img img,
body.category .wd-post-img img,
body.blog .post-img-wrapp img,
body.category .post-img-wrapp img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

body.blog .wd-post-date,
body.category .wd-post-date {
	display: none;
}

body.blog .wd-post-inner,
body.category .wd-post-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
}

body.blog .wd-post-content,
body.category .wd-post-content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

body.blog .wd-post-read-more,
body.category .wd-post-read-more {
	margin-top: auto;
}


/* Footer social icons: neutral by default, brand colour on hover */
.bunkis-footer-social a.bunkis-social-fb,
.bunkis-footer-social a.bunkis-social-ig {
	background: #e6e6e6 !important;
	color: #6f6f6f !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bunkis-footer-social a.bunkis-social-fb:hover,
.bunkis-footer-social a.bunkis-social-fb:focus-visible {
	background: #1877F2 !important;
	color: #fff !important;
}

.bunkis-footer-social a.bunkis-social-ig:hover,
.bunkis-footer-social a.bunkis-social-ig:focus-visible {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
	color: #fff !important;
}

/* Replace WoodMart cookie bar with the Bunkis consent modal */
.wd-cookies-popup {
	display: none !important;
}
body.bunkis-consent-open {
	overflow: hidden;
}
.bunkis-consent {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bunkis-consent[hidden] {
	display: none !important;
}
.bunkis-consent__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.55);
}
.bunkis-consent__dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	border-radius: 28px;
	padding: 40px 36px 28px;
	text-align: center;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}
.bunkis-consent__title {
	margin: 0 0 18px;
	font-size: 1.65rem;
	line-height: 1.25;
	font-weight: 600;
	color: #111;
}
.bunkis-consent__text {
	margin: 0 0 26px;
	font-size: 1rem;
	line-height: 1.55;
	color: #222;
}
.bunkis-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 18px;
}
.bunkis-consent__btn {
	min-width: 150px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	border: 1px solid #d5d5d5;
	background: #fff;
	color: #111;
}
.bunkis-consent__btn--primary {
	background: #4f46e5;
	border-color: #4f46e5;
	color: #fff;
}
.bunkis-consent__btn--ghost:hover,
.bunkis-consent__btn--ghost:focus-visible {
	border-color: #111;
}
.bunkis-consent__btn--primary:hover,
.bunkis-consent__btn--primary:focus-visible {
	background: #4338ca;
}
.bunkis-consent__settings {
	text-align: left;
	margin: 8px 0 20px;
	padding: 8px 4px 0;
	border-top: 1px solid #eee;
}
.bunkis-consent__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
}
.bunkis-consent__row small {
	display: block;
	margin-top: 4px;
	color: #666;
	font-size: 0.85em;
	font-weight: 400;
}
.bunkis-consent__row input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}
.bunkis-consent__save {
	width: 100%;
	margin-top: 16px;
}
.bunkis-consent__links {
	margin: 8px 0 0;
	display: flex;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
}
.bunkis-consent__links a {
	color: #4f46e5;
	text-decoration: none;
	font-size: 0.98rem;
}
.bunkis-consent__links a:hover,
.bunkis-consent__links a:focus-visible {
	text-decoration: underline;
}
.bunkis-consent-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	padding: 6px 8px;
}
.bunkis-consent-reopen[hidden] {
	display: none !important;
}
@media (max-width: 640px) {
	.bunkis-consent {
		padding: 12px;
		align-items: flex-end;
	}
	.bunkis-consent__dialog {
		padding: 28px 18px 20px;
		border-radius: 22px 22px 16px 16px;
		max-height: calc(100vh - 24px);
	}
	.bunkis-consent__title {
		font-size: 1.35rem;
	}
	.bunkis-consent__actions {
		flex-direction: column;
	}
	.bunkis-consent__btn {
		width: 100%;
		min-width: 0;
	}
}

.bunkis-sr-h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.bunkis-home-intro {
	display: none !important;
}
.bunkis-home-after {
	position: relative;
	z-index: 2;
	background: #fff;
	padding: 48px 0 32px;
	clear: both;
	color: #111;
}
.bunkis-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
}
.bunkis-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none !important;
}
.bunkis-btn--primary {
	background: #fbbc34;
	color: #111 !important;
}
.bunkis-btn--ghost {
	background: transparent;
	color: inherit !important;
	border: 1px solid currentColor;
}
.bunkis-home-intro .bunkis-btn--ghost {
	color: #fff !important;
	border-color: rgba(255,255,255,.45);
}
.bunkis-project-cta-bar {
	margin: 24px 0;
	padding: 20px 22px;
	background: #f5f5f5;
	border-radius: 12px;
}
.bunkis-home-block {
	max-width: 1100px;
	margin: 0 auto 28px;
	padding: 0 16px;
}
.bunkis-home-block h2 {
	margin: 0 0 12px;
}
.bunkis-guides__grid,
.bunkis-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.bunkis-guides__card,
.bunkis-reviews__card {
	display: block;
	padding: 18px 18px 16px;
	border-radius: 12px;
	background: #f7f7f7;
	color: inherit;
	text-decoration: none !important;
	min-height: 140px;
}
.bunkis-guides__card h3 {
	margin: 0 0 8px;
	font-size: 1.15rem;
}
.bunkis-reviews__card--empty {
	border: 1px dashed #bbb;
	background: #fafafa;
	color: #666;
}
.bunkis-reviews__card--empty span {
	display: block;
	margin-top: 8px;
	font-size: 0.9em;
}
.bunkis-reviews__slot {
	margin: 0;
	max-width: 640px;
	padding: 16px 18px;
	border: 1px dashed #c8c8c8;
	border-radius: 10px;
	background: #fff;
	color: #555;
	line-height: 1.55;
}
.bunkis-guide {
	max-width: 760px;
	margin: 0 auto;
	line-height: 1.7;
}
.bunkis-guide h1 {
	margin-top: 0;
}
.bunkis-sticky-cta {
	display: none;
}
@media (max-width: 768px) {
	.bunkis-consent-reopen {
		bottom: 64px;
		background: rgba(255, 255, 255, 0.88);
		border-radius: 6px;
	}
	.bunkis-guides__grid,
	.bunkis-reviews__grid {
		grid-template-columns: 1fr;
	}
	.bunkis-sticky-cta {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99980;
		background: #111;
		box-shadow: 0 -6px 24px rgba(0,0,0,.18);
	}
	.bunkis-sticky-cta a {
		flex: 1;
		text-align: center;
		padding: 13px 6px;
		color: #fff !important;
		text-decoration: none !important;
		font-weight: 600;
		font-size: 14px;
	}
	.bunkis-sticky-cta a + a {
		border-left: 1px solid rgba(255,255,255,.15);
	}
	.bunkis-sticky-cta a:first-child {
		background: #fbbc34;
		color: #111 !important;
	}
	body {
		padding-bottom: 58px;
	}
	.bunkis-home-after {
		padding-bottom: 88px;
	}
}
