/**
 * Kronfönster polish for Everest Gallery — does not replace masonry.
 *
 * Everest 1.0.4 is masonary + everest_lightbox. Item width/position stay
 * with the plugin (isotope). This file only fits Woodmart/WPBakery chrome.
 */

.entry-content .eg-filter-wrap ul,
.entry-content .eg-pagination-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content .eg-filter-wrap ul li,
.entry-content .eg-pagination-block ul li {
	list-style: none;
}

.eg-filter-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 10px;
	margin: 0 0 22px;
}

.eg-wrap .eg-overlay-wrapper {
	border-radius: 8px;
	overflow: hidden;
}

.eg-masonary-items-wrap {
	overflow: hidden;
}

.eg-wrap .eg-overlay-wrapper > a {
	display: block;
	line-height: 0;
}

.eg-masonary-wrap .eg-overlay-wrapper img,
.eg-grid-wrap .eg-overlay-wrapper img {
	max-width: 100%;
	height: auto;
	display: block;
}

.eg-wrap .eg-overlay-wrapper div.eg-mask {
	pointer-events: none;
}

.eg-wrap .eg-overlay-wrapper .eg-zoom,
.eg-wrap .eg-overlay-wrapper .eg-button-holder a {
	pointer-events: auto;
}

/* Woodmart custom CSS hides the overlay site-wide. Show it when Everest opens it. */
html body .eg-everest-lightbox-overlay.eg-overlay-active {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 1000001;
}

body.page-id-27727 .eg-wrap .eg-overlay-wrapper {
	overflow: visible;
}

body.page-id-27727 .kf-eg-note {
	padding: 8px 2px 16px;
	line-height: 1.4;
}

body.page-id-27727 .kf-eg-caption {
	margin: 0 0 4px;
	font-size: 14px;
	color: #163A55;
}

body.page-id-27727 .kf-eg-model {
	display: inline-block;
	margin: 0 12px 4px 0;
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 782px) {
	body.page-id-27727 .eg-masonary-wrap.eg-column-4 .eg-each-item {
		width: 50%;
	}
}

html body .eg-everest-lightbox-overlay.eg-overlay-active .eg-everest-lightbox-source-holder img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}
