/**
 * Amy Kann Sculptor — Design Fixes
 * -------------------------------------------------------------
 * Consolidated stylesheet for the "Design Fixes" round.
 * Loaded after Elementor's CSS (see functions.php, priority 100)
 * so these rules reliably win without !important where possible.
 *
 * Scope rule: only changes explicitly described by the client.
 * Each block is labelled with its spec item.
 */

/* =============================================================
 * [Realism & Torsos] Title Casing
 * All sculpture names render in a uniform UPPERCASE format
 * (incl. "COURAGE", which the Julius Sans One font otherwise
 * shows as a large "C" + small-caps "ourage").
 * ============================================================= */
.js-realism-card .elementor-heading-title,   /* Realism grid labels   */
.e-loop-item.torso .elementor-heading-title, /* Torsos grid labels    */
.realism-modal__title,                       /* Realism lightbox title */
.torso-gallery__title {                      /* Torsos gallery title   */
	text-transform: uppercase;
}

/* =============================================================
 * [Mobile Navigation] (п.2.1)
 * On mobile, show the navigation links open (inline row) instead
 * of the collapsed "MENU" toggle, per client Reference 2.
 * Desktop nav is left untouched.
 * ============================================================= */
@media (max-width: 767px) {
	.elementor-widget-nav-menu .elementor-menu-toggle {
		display: none !important;
	}
	.elementor-widget-nav-menu nav.elementor-nav-menu--main {
		display: block !important;
	}
	.elementor-widget-nav-menu nav.elementor-nav-menu--main .elementor-nav-menu {
	/*	display: flex !important; */
		flex-wrap: wrap;
		justify-content: center;
	}
	/* tighten items so all links fit a single centered row (Reference 2) */
	.elementor-widget-nav-menu nav.elementor-nav-menu--main .elementor-nav-menu > li > a.elementor-item {
		padding: 6px 7px !important;
		/*font-size: 13px !important; */
		letter-spacing: 0.5px !important;
	}
	.elementor-widget-nav-menu .elementor-nav-menu--dropdown {
		display: none !important;
	}
}

/* =============================================================
 * [Torsos / Mobile] White space below site title (п.3.2)
 * The Torsos grid container carries a 80px top margin on all
 * devices; trim it on mobile so the first row of sculptures
 * sits compactly under "AMY KANN / SCULPTOR" (Reference 2).
 * ============================================================= */
@media (max-width: 767px) {
	.page-id-84 .elementor-element-0802919 {
		margin-top: 24px !important;
	}
}

/* =============================================================
 * [Realism & Torsos / Mobile] "AMY KANN" title size (п.3.3)
 * The mobile "AMY KANN" logo (image widget, hidden on desktop)
 * is trimmed to read more compactly per Reference 2.
 * NOTE: exact size not given in the mockup — 195px is tuned to
 * the reference and can be adjusted if the client specifies.
 * ============================================================= */
@media (max-width: 767px) {
	.elementor-element-f673aa0 img {
		width: 195px !important;
		max-width: 100% !important;
		margin-left: auto;
		margin-right: auto;
	}
}

/* =============================================================
 * [Mobile Lightbox] (п.4.2)  — applies to BOTH the Realism and
 * Torsos lightboxes (they share the .realism-modal markup/CSS).
 * References 3 & 4:
 *  - minimise excess grey gaps (top + around the image);
 *  - when thumbnails are present, pull the image up so the
 *    thumbnails stay inside the viewport;
 *  - when thumbnails are absent, keep a small balanced top gap;
 *  - slightly smaller title / material / dimensions;
 *  - the material + measurements wrap as a whole block, no crop;
 *  - equal spacing above the title and after the dimensions.
 * ============================================================= */
@media (max-width: 767px) {
	.realism-modal__dialog {
		padding: 1.25rem 1.1rem !important;
	}
	.realism-modal__content {
		gap: 0.85rem !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* image sizing — no forced min-height, cap height so info + thumbs fit */
	.realism-modal__main {
		min-height: 0 !important;
	}
	.realism-modal__main-img {
		width: auto !important;
		max-width: 100% !important;
		max-height: 56vh !important;
	}

	/* Thumbnails present → pull everything up (minimise top grey gap) */
	.realism-modal__dialog:has(.realism-modal__thumbs) {
		align-items: flex-start !important;
	}
	/* Thumbnails absent → keep a small balanced top gap (e.g. "SELF") */
	.realism-modal__dialog:not(:has(.realism-modal__thumbs)) {
		align-items: center !important;
	}

	/* Metadata: smaller type, tight & balanced spacing, full wrapping */
	.realism-modal__info {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 auto !important;
	}
	.realism-modal__title {
		font-size: 1.25rem !important;
		margin: 0 0 0.4rem !important;
	}
	.realism-modal__description {
		margin: 0 !important;
	}
	.realism-modal__description p {
		font-size: 14px !important;
		margin: 0 !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}
	.realism-modal__material,
	.realism-modal__dim {
		font-size: 13px !important;
	}
	/* gap after dimensions == gap above title (balanced) */
	.realism-modal__thumbs {
		margin-top: 0.4rem !important;
	}
}
