/**
 * The Asian Art Gallery — glue CSS for the free rebuild (hand-written).
 * The original look itself lives in legacy-elementor.css / vendor-subset.css (generated).
 */

/* ---------- sticky header (was Elementor Pro "Sticky") ---------- */
.w052-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
}

/* ---------- carousels ---------- */
.w052-swiper { position: relative; overflow: hidden; }
.jet-listing-grid__slider { position: relative; }
.jet-listing-grid__items.swiper-wrapper { flex-wrap: nowrap; margin: 0; }
.jet-listing-grid__items.swiper-wrapper > .jet-listing-grid__item { flex-shrink: 0; max-width: none; }
.jet-listing-grid__slider-icon {
	position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
	width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
	cursor: pointer; color: #fff; background: #111; font-size: 30px; line-height: 1;
}
.jet-listing-grid__slider-icon.prev-arrow { left: 0; }
.jet-listing-grid__slider-icon.next-arrow { right: 0; }
.jet-listing-grid__slider-icon.swiper-button-disabled { opacity: .3; }

.w052-dots { display: flex; justify-content: center; margin: 10px 0; position: static; line-height: 0; }
.w052-dots .swiper-pagination-bullet {
	width: 8px; height: 8px; margin: 3px; border-radius: 50%; background: rgba(0, 0, 0, .125); opacity: 1; cursor: pointer; display: inline-block;
}
.w052-dots .swiper-pagination-bullet-active { background: #000; }

/* Artists carousel (was Ultimate Addons posts carousel) */
.w052-uael-carousel { position: relative; }
.w052-uael-carousel .uael-post-grid__inner { margin: 0; flex-wrap: nowrap; }
.w052-uael-carousel .uael-post-wrapper { flex-shrink: 0; }
.w052-uael-carousel .slick-arrow {
	position: absolute; top: 40%; z-index: 5; transform: translateY(-50%);
	width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	background: #fff; color: #000; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.w052-uael-carousel .slick-prev { left: 15px; }
.w052-uael-carousel .slick-next { right: 15px; }
.w052-uael-carousel .uael-post__thumbnail img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

/* ---------- masonry ---------- */
.w052-masonry > * { box-sizing: border-box; }

/* ---------- header menu: mobile/tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
	.elementor-widget-uael-nav-menu .uael-nav-menu__toggle { display: flex; justify-content: flex-end; cursor: pointer; }
	.elementor-widget-uael-nav-menu .uael-nav-menu-icon svg { width: 30px; height: 18px; fill: currentColor; }
	.elementor-widget-uael-nav-menu nav { display: none; position: absolute; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
	.elementor-widget-uael-nav-menu nav.w052-open { display: block; }
	.elementor-widget-uael-nav-menu nav ul.uael-nav-menu { display: block; margin: 0; padding: 10px 0; }
	.elementor-widget-uael-nav-menu nav li { display: block; }
	.elementor-widget-uael-nav-menu nav a { display: flex; justify-content: space-between; padding: 12px 24px; }
	.elementor-widget-uael-nav-menu nav .sub-menu { display: none; position: static; box-shadow: none; padding-left: 15px; }
	.elementor-widget-uael-nav-menu nav li.w052-sub-open > .sub-menu { display: block; }
	.elementor-widget-uael-nav-menu .elementor-widget-container { position: static; }
	.w052-site-header .elementor-section, .w052-site-header .elementor-container { position: relative; }
}
@media (min-width: 1025px) {
	.elementor-widget-uael-nav-menu .uael-nav-menu__toggle { display: none; }
	.elementor-widget-uael-nav-menu .sub-arrow i.fa:before { content: "\f107"; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- forms ---------- */
.w052-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.w052-form .elementor-message { margin-top: 12px; font-size: 14px; }
.w052-form .elementor-message-success { color: #2b2b2b; }
.w052-form .elementor-message-danger { color: #b00020; }
.w052-form .w052-busy { opacity: .6; cursor: wait; }

/* "Become a member" (was Convert Pro inline form; same field style) */
.w052-member { max-width: 330px; margin: 0 auto; }
.w052-member .cpro-form { display: flex; flex-direction: column; gap: 14px; }
.w052-member .cp-form-input-field {
	font-family: inherit; font-size: 13px; color: #000; background: transparent;
	border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 6px 0 6px 10px; width: 100%;
}
.w052-member .cp-form-input-field::placeholder { color: #000; opacity: 1; }
.w052-member .cp-form-input-field:focus { outline: none; border-bottom-color: #000; }
.w052-member .cp-button {
	align-self: center; font-family: inherit; font-size: 13px; letter-spacing: .5px; text-transform: uppercase;
	color: #fff; background: var(--e-global-color-primary, #000); border: 0; border-radius: 0; padding: 10px 28px; cursor: pointer;
}
.w052-member .cp-button:hover { opacity: .85; }

/* ---------- small fixes ---------- */
.w052-layout { width: 100%; }
.jet-listing-dynamic-field__content small b { font-weight: 700; }

/* ---------- replaced Elementor Pro media widgets ---------- */
/* Media carousel (Pro) → free Image Carousel: fixed slide height, image covers the slide (Pro default 230px). */
.w052-media-carousel .swiper-slide-image { width: 100%; height: var(--w052-slide-h, 230px); object-fit: cover; display: block; }
/* Gallery (Pro, grid, 3:2) → free Image Gallery */
.w052-pro-gallery .gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.w052-pro-gallery .gallery { margin: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.w052-pro-gallery .gallery-item { padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; }
.w052-pro-gallery .gallery-item .gallery-icon { margin: 0; }
.w052-pro-gallery br { display: none; }
@media (max-width: 1024px) { .w052-pro-gallery .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .w052-pro-gallery .gallery { grid-template-columns: 1fr; } }

/* Newer Astra forces its heading line-height onto Elementor headings; the original (older Astra) left
   Elementor's own line-height:1. Same specificity, so any line-height set in Elementor still wins. */
.elementor-widget-heading :is(h1, h2, h3, h4, h5, h6).elementor-heading-title { line-height: 1; }

/* Original (older Astra) spacing around "plain container" pages: newer Astra zeroes it. */
.ast-plain-container.ast-no-sidebar #primary { margin-top: 4em; margin-bottom: 4em; }
@media (max-width: 921px) {
	.ast-plain-container.ast-no-sidebar #primary { margin-top: 1.5em; margin-bottom: 1.5em; }
}

/* Same box as the original Convert Pro widget (230x170, 328x130 on phones) so the footer keeps its height. */
.w052-member { min-height: 170px; }
@media (max-width: 767px) { .w052-member { min-height: 130px; } }

/* Original (older Astra) base typography: root font size stays 100% on tablets/phones,
   and content lists use the classic 3em indent instead of newer Astra's 20px padding. */
html { font-size: 100%; }
@media (max-width: 921px) { html { font-size: 100%; } }
@media (max-width: 544px) { html { font-size: 100%; } }
.entry-content :is(ol, ul):not([class]) { margin: 0 0 1.5em 3em; padding-left: 0; }
.entry-content li > :is(ol, ul):not([class]) { margin-bottom: 0; }

/* 404: newer Astra prints the subtitle as an <h3>; the original was a bold sentence-case line. */
.error-404 .page-sub-title { text-transform: none; font-weight: 700; color: #2b2b2b; font-size: 24px; }
.error-404 .page-title { color: #000; }

/* Form result messages (own styling: Elementor's message icon font is not loaded on these pages) */
.w052-message { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.w052-message--error { color: #b00020; }
.w052-message--success { color: #2b2b2b; font-weight: 600; padding: 14px 16px; border: 1px solid currentColor; text-align: center; }
.w052-form.w052-busy [type=submit] { opacity: .6; cursor: wait; }
/* after a successful send only the thank-you message stays */
.w052-form.w052-form-done > :not(.w052-form-message),
.w052-form.w052-form-done .elementor-form-fields-wrapper { display: none !important; }
.w052-form.w052-form-done .w052-message--success { margin-top: 0; }
.w052-member .w052-message--success { font-size: 14px; }
