/**
 * Galustar Collection Showcase — frontend styles.
 */

.elementor-widget-shortcode:has(.gcs-collection) .elementor-widget-container,
.elementor-widget-shortcode:has(.gcs-collection) .elementor-shortcode {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}

.elementor-section:has(.gcs-collection),
.elementor-section:has(.gcs-collection) > .elementor-container,
.elementor-element:has(.gcs-collection),
.elementor-element:has(.gcs-collection) > .e-con,
.elementor-element:has(.gcs-collection) > .e-con-inner,
.elementor-element:has(.gcs-collection) > .elementor-widget-wrap {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.gcs-collection {
	--gcs-ink: #111111;
	--gcs-muted: rgba(17, 17, 17, 0.68);
	--gcs-gold: #c6a56a;
	--gcs-white: #ffffff;
	--gcs-shadow: 0 24px 60px rgba(17, 17, 17, 0.1);
	--gcs-shadow-soft: 0 16px 40px rgba(17, 17, 17, 0.08);

	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding-top: var(--gcs-pt, 72px);
	padding-bottom: var(--gcs-pb, 88px);
	background: var(--gcs-bg, #fff);
	font-family: "Jost", system-ui, -apple-system, sans-serif;
	color: var(--gcs-ink);
	overflow-x: clip;
}

.gcs-collection.gcs-theme-dark {
	--gcs-ink: #ffffff;
	--gcs-muted: rgba(255, 255, 255, 0.72);
}

.gcs-inner {
	width: min(100% - clamp(24px, 5vw, 40px), 1140px);
	max-width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
}

/* Elementor / theme container compatibility */
.elementor-widget-shortcode .gcs-collection,
.elementor-element .gcs-collection,
.woocommerce .gcs-collection {
	width: 100%;
	max-width: 100%;
}

/* Intro text */
.gcs-intro {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.gcs-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2vw, 16px);
	margin: 0 0 16px;
}

.gcs-eyebrow__text {
	font-family: "Jost", system-ui, sans-serif;
	font-size: clamp(12px, 1.5vw, 14px);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gcs-gold);
}

.gcs-eyebrow__line {
	display: block;
	width: clamp(32px, 5vw, 56px);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gcs-gold), transparent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: 0.15s;
}

.gcs-intro.is-visible .gcs-eyebrow__line {
	transform: scaleX(1);
}

.gcs-heading {
	margin: 0 0 18px;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(2rem, 4.2vw, 3.1rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--gcs-ink);
}

.gcs-description {
	margin: 0 auto;
	max-width: 560px;
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	line-height: 1.75;
	color: var(--gcs-muted);
}

.gcs-action {
	margin-top: 28px;
}

.gcs-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: 1px solid var(--gcs-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--gcs-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.gcs-button:hover,
.gcs-button:focus-visible {
	background: var(--gcs-ink);
	color: var(--gcs-bg, #fff);
	transform: translateY(-2px);
	box-shadow: var(--gcs-shadow-soft);
}

.gcs-theme-dark .gcs-button {
	border-color: rgba(255, 255, 255, 0.35);
}

.gcs-theme-dark .gcs-button:hover,
.gcs-theme-dark .gcs-button:focus-visible {
	background: #fff;
	color: #111;
	border-color: #fff;
}

/* Collage — Razzi editorial overlap, clean photos (no color frames) */
.gcs-collage {
	--gcs-tall-w: clamp(250px, 31vw, 320px);
	--gcs-tall-h: clamp(460px, 54vw, 565px);

	position: relative;
	width: 100%;
	max-width: 920px;
	height: var(--gcs-tall-h);
	min-height: var(--gcs-tall-h);
	margin: 0 auto;
}

.gcs-photo {
	position: absolute;
	margin: 0;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	transition: transform 0.4s ease;
}

.gcs-photo__link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
}

.gcs-photo__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gcs-photo--right-tall .gcs-photo__img {
	object-position: center top;
}

.gcs-photo:hover {
	transform: translateY(-4px);
}

.gcs-photo:hover .gcs-photo__img {
	transform: scale(1.03);
}

/* 1 — small square, white frame only (screenshot style) */
.gcs-photo--top-left {
	left: 9%;
	top: 14%;
	width: clamp(132px, 17vw, 196px);
	height: clamp(132px, 17vw, 196px);
	z-index: 3;
	background: var(--gcs-white);
	border: clamp(10px, 1.4vw, 14px) solid var(--gcs-white);
	box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
}

/* 2 — large horizontal base on left */
.gcs-photo--bottom-left {
	left: 5%;
	top: 38%;
	width: clamp(220px, 36vw, 410px);
	height: clamp(168px, 26vw, 292px);
	z-index: 2;
}

/* 3 — tall portrait anchor on right (fixed portrait box) */
.gcs-photo--right-tall {
	right: 3%;
	top: 0;
	width: var(--gcs-tall-w);
	height: var(--gcs-tall-h);
	max-width: 320px;
	max-height: 565px;
	aspect-ratio: 4 / 7;
	z-index: 1;
}

.gcs-photo--right-tall .gcs-photo__link,
.gcs-photo--right-tall .gcs-photo__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* 4 — small square overlay, white frame (like top-left) */
.gcs-photo--bottom-right {
	left: 57%;
	bottom: 10%;
	width: clamp(96px, 12vw, 136px);
	height: clamp(96px, 12vw, 136px);
	z-index: 4;
	background: var(--gcs-white);
	border: clamp(8px, 1.1vw, 12px) solid var(--gcs-white);
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

/* Scroll reveal */
.gcs-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.gcs-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.gcs-collage.is-visible .gcs-photo {
	animation: gcs-float-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gcs-collage.is-visible .gcs-photo--top-left { animation-delay: 0.08s; }
.gcs-collage.is-visible .gcs-photo--bottom-left { animation-delay: 0.16s; }
.gcs-collage.is-visible .gcs-photo--right-tall { animation-delay: 0.24s; }
.gcs-collage.is-visible .gcs-photo--bottom-right { animation-delay: 0.32s; }

@keyframes gcs-float-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Large desktop */
@media (min-width: 1200px) {
	.gcs-collage {
		--gcs-tall-w: 320px;
		--gcs-tall-h: 565px;
		max-width: 920px;
	}

	.gcs-photo--top-left {
		left: 10%;
		top: 12%;
	}

	.gcs-photo--bottom-left {
		left: 6%;
		top: 36%;
		width: 410px;
		height: 292px;
	}

	.gcs-photo--right-tall {
		right: 4%;
		width: 320px;
		height: 565px;
	}

	.gcs-photo--bottom-right {
		left: 58%;
		bottom: 8%;
		width: 130px;
		height: 130px;
	}
}

/* Small laptop / large tablet */
@media (max-width: 1100px) {
	.gcs-collage {
		--gcs-tall-w: clamp(240px, 29vw, 300px);
		--gcs-tall-h: clamp(430px, 52vw, 530px);
	}

	.gcs-photo--right-tall {
		width: var(--gcs-tall-w);
		height: var(--gcs-tall-h);
	}

	.gcs-photo--bottom-right {
		left: 55%;
	}
}

/* Tablet landscape */
@media (max-width: 991px) {
	.gcs-intro {
		margin-bottom: 40px;
	}

	.gcs-collage {
		--gcs-tall-w: clamp(210px, 32vw, 270px);
		--gcs-tall-h: clamp(380px, 68vw, 480px);
		max-width: 100%;
	}

	.gcs-photo--top-left {
		left: 4%;
		top: 10%;
		width: clamp(118px, 20vw, 168px);
		height: clamp(118px, 20vw, 168px);
	}

	.gcs-photo--bottom-left {
		left: 2%;
		top: 34%;
		width: clamp(190px, 40vw, 340px);
		height: clamp(145px, 28vw, 240px);
	}

	.gcs-photo--right-tall {
		right: 0;
		width: var(--gcs-tall-w);
		height: var(--gcs-tall-h);
	}

	.gcs-photo--bottom-right {
		left: 52%;
		bottom: 8%;
		width: clamp(78px, 13vw, 112px);
		height: clamp(78px, 13vw, 112px);
	}
}

/* Tablet landscape — tighter collage, no horizontal scroll */
@media (max-width: 991px) and (min-width: 768px) {
	.gcs-inner {
		width: min(100% - 36px, 1140px);
	}

	.gcs-intro {
		margin-bottom: 36px;
	}

	.gcs-collage {
		max-width: 100%;
	}
}

/* Phone — single featured image, centered, object-fit cover */
@media (max-width: 767px) {
	.gcs-collection {
		padding-top: calc(var(--gcs-pt, 72px) * 0.55);
		padding-bottom: calc(var(--gcs-pb, 88px) * 0.55);
		overflow-x: clip;
	}

	.gcs-inner {
		width: 100%;
		max-width: 100%;
		padding-inline: 16px;
		box-sizing: border-box;
	}

	.gcs-intro {
		margin-bottom: 24px;
		max-width: 100%;
	}

	.gcs-heading {
		font-size: clamp(1.5rem, 5.8vw, 2rem);
	}

	.gcs-description {
		font-size: 0.92rem;
		line-height: 1.58;
	}

	.gcs-action {
		display: flex;
		justify-content: center;
		margin-top: 20px;
	}

	.gcs-button {
		width: 100%;
		max-width: min(78%, 280px);
		justify-content: center;
		min-height: 46px;
	}

	.gcs-collage {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0;
		width: 100%;
		max-width: min(78%, 280px);
		height: auto;
		min-height: 0;
		margin-inline: auto;
	}

	.gcs-photo--top-left,
	.gcs-photo--bottom-left,
	.gcs-photo--bottom-right {
		display: none;
	}

	.gcs-photo--right-tall {
		position: relative;
		inset: auto;
		left: auto;
		right: auto;
		top: auto;
		bottom: auto;
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: none;
		margin: 0;
		display: block;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.gcs-photo--right-tall .gcs-photo__link {
		position: relative;
		display: block;
		width: 100%;
		height: 0;
		padding-bottom: 125%;
		overflow: hidden;
		background: #f4f4f4;
		border-radius: 4px;
	}

	.gcs-photo--right-tall .gcs-photo__img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
	}
}

@media (max-width: 399px) {
	.gcs-inner {
		padding-inline: 12px;
	}

	.gcs-collage {
		max-width: min(84%, 260px);
	}

	.gcs-button {
		max-width: min(84%, 260px);
	}
}

/* Elementor — edge-to-edge on mobile */
@media (max-width: 767px) {
	.elementor-section.elementor-section-boxed > .elementor-container .gcs-collection,
	.elementor-widget-shortcode .gcs-collection,
	.elementor-element .gcs-collection {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.elementor-section.elementor-section-boxed > .elementor-container .gcs-collection .gcs-inner,
	.elementor-widget-shortcode .gcs-collection .gcs-inner,
	.elementor-element .gcs-collection .gcs-inner {
		width: 100%;
		max-width: 100%;
		padding-inline: 16px;
	}
}

/* Touch devices — no hover lift */
@media (hover: none) {
	.gcs-photo:hover {
		transform: none;
	}

	.gcs-photo:hover .gcs-photo__img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gcs-reveal,
	.gcs-photo,
	.gcs-photo__img,
	.gcs-button {
		transition: none;
		animation: none;
	}

	.gcs-reveal {
		opacity: 1;
		transform: none;
	}
}
