/*
 * Sai Lux Sunrise Living — photo gallery
 * Brand navy/gold/cream. Mosaic grid mixing portrait and landscape shots.
 */

.sls-gl {
	box-sizing: border-box;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px 20px;
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--b-ink);
	-webkit-font-smoothing: antialiased;
}

.sls-gl *, .sls-gl *::before, .sls-gl *::after { box-sizing: border-box; }

:where(.sls-gl) :where(ul, li) { list-style: none; margin: 0; padding: 0; }
:where(.sls-gl) :where(p) { margin: 0; }
:where(.sls-gl) :where(h1, h2, h3) { margin: 0; line-height: 1.18; color: var(--b-ink); }
.sls-gl ul, .sls-gl li { list-style: none !important; }

/* --- Hero ----------------------------------------------------------------- */
.sls-gl__hero { text-align: center; padding: 64px 16px 44px; }

.sls-gl__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--b-gold-d);
	background: var(--b-cream-l);
	border: 1px solid var(--b-cream-d);
	border-radius: 999px;
	padding: 8px 17px 8px 13px;
	margin-bottom: 20px !important;
}

.sls-gl__eyebrow svg { width: 16px; height: 16px; }

.sls-gl__hero h1 {
	font-size: clamp(34px, 5.4vw, 58px);
	font-weight: 800;
	letter-spacing: -.034em;
}

.sls-gl__lede {
	margin: 18px auto 0 !important;
	font-size: clamp(15.5px, 1.5vw, 17.5px);
	line-height: 1.72;
	color: var(--b-ink-soft);
}

/* --- Filters -------------------------------------------------------------- */
.sls-gl__filters {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
	padding: 16px 0 18px;
	background: linear-gradient(#fff 62%, rgba(255, 255, 255, 0));
}

.sls-gl__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--b-ink-soft);
	background: #fff;
	border: 1px solid var(--b-line);
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sls-gl__chip:hover {
	color: var(--b-ink);
	border-color: var(--b-cream-d);
	transform: translateY(-1px);
}

.sls-gl__chip.is-active {
	color: #fff;
	background: var(--b-navy);
	border-color: var(--b-navy);
	box-shadow: 0 6px 18px rgba(var(--b-navy-rgb), .28);
}

.sls-gl__chip span {
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 7px;
	border-radius: 999px;
	background: var(--b-cream);
	color: var(--b-gold-d);
}

.sls-gl__chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* --- Mosaic --------------------------------------------------------------- */
/* Fixed row height + row spans is what lets portraits and landscapes sit in
   one grid without letterboxing anything. */
.sls-gl__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 128px;
	gap: 16px;
}

.sls-gl__item { grid-row: span 2; }
.sls-gl__item--tall { grid-row: span 3; }
.sls-gl__item--wide { grid-column: span 2; grid-row: span 3; }
.sls-gl__item[hidden] { display: none; }

.sls-gl__open {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	cursor: zoom-in;
	background: var(--b-cream);
	box-shadow: 0 1px 2px rgba(var(--b-navy-rgb), .05), 0 10px 26px rgba(var(--b-navy-rgb), .07);
	transition: transform .32s cubic-bezier(.22, 1, .36, 1), box-shadow .32s ease;
}

.sls-gl__open:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 8px rgba(var(--b-navy-rgb), .07), 0 22px 46px rgba(var(--b-navy-rgb), .18);
}

.sls-gl__open:focus-visible {
	outline: 3px solid var(--b-gold);
	outline-offset: 3px;
}

.sls-gl__open img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.sls-gl__open:hover img { transform: scale(1.06); }

.sls-gl__cap {
	position: absolute;
	inset: auto 0 0 0;
	display: block;
	padding: 44px 18px 16px;
	text-align: left;
	background: linear-gradient(to top, rgba(13, 27, 43, .92) 0%, rgba(13, 27, 43, .62) 46%, transparent 100%);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s ease, transform .3s ease;
}

.sls-gl__open:hover .sls-gl__cap,
.sls-gl__open:focus-visible .sls-gl__cap { opacity: 1; transform: none; }

.sls-gl__cap em {
	display: block;
	font-size: 10.5px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--b-gold-l);
	margin-bottom: 4px;
}

.sls-gl__cap strong {
	display: block;
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
	line-height: 1.32;
}

/* A small "+" badge so the tile reads as clickable. */
.sls-gl__zoom {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(13, 27, 43, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .3);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .28s ease, transform .28s ease;
}

.sls-gl__zoom::before,
.sls-gl__zoom::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	border-radius: 2px;
	transform: translate(-50%, -50%);
}

.sls-gl__zoom::before { width: 13px; height: 2px; }
.sls-gl__zoom::after  { width: 2px; height: 13px; }

.sls-gl__open:hover .sls-gl__zoom,
.sls-gl__open:focus-visible .sls-gl__zoom { opacity: 1; transform: none; }

.sls-gl__empty {
	padding: 60px 0;
	text-align: center;
	font-size: 16px;
	color: var(--b-ink-soft);
}

/* --- Lightbox ------------------------------------------------------------- */
.sls-gl__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vh 6vw;
	background: rgba(9, 18, 30, .93);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: sls-gl-fade .22s ease both;
}

.sls-gl__lightbox[hidden] { display: none; }

@keyframes sls-gl-fade { from { opacity: 0; } to { opacity: 1; } }

.sls-gl__lightbox figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.sls-gl__lightbox img {
	max-width: 100%;
	max-height: 78vh;
	width: auto;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	animation: sls-gl-pop .28s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes sls-gl-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

.sls-gl__lightbox figcaption {
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, .9);
	text-align: center;
}

.sls-gl__lb-close,
.sls-gl__lb-prev,
.sls-gl__lb-next {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	color: #fff;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .28);
	transition: background .2s ease, transform .2s ease;
}

.sls-gl__lb-close:hover,
.sls-gl__lb-prev:hover,
.sls-gl__lb-next:hover { background: rgba(var(--b-gold-rgb), .35); }

.sls-gl__lb-close { top: 22px; right: 22px; }
.sls-gl__lb-prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.sls-gl__lb-next  { right: 22px; top: 50%; transform: translateY(-50%); }

.sls-gl__lb-close::before, .sls-gl__lb-close::after {
	content: ""; position: absolute; width: 17px; height: 2px; border-radius: 2px; background: currentColor;
}
.sls-gl__lb-close::before { transform: rotate(45deg); }
.sls-gl__lb-close::after  { transform: rotate(-45deg); }

.sls-gl__lb-prev::before, .sls-gl__lb-next::before {
	content: ""; width: 13px; height: 13px;
	border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.sls-gl__lb-prev::before { transform: rotate(-135deg); margin-left: 4px; }
.sls-gl__lb-next::before { transform: rotate(45deg); margin-right: 4px; }

/* --- CTA ------------------------------------------------------------------ */
.sls-gl__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: 64px 0 20px;
	padding: 40px 44px;
	border-radius: 26px;
	color: #fff;
	background:
		radial-gradient(70% 130% at 6% 0%, rgba(var(--b-gold-rgb), .45), transparent 62%),
		var(--b-navy);
	box-shadow: 0 20px 50px rgba(var(--b-navy-rgb), .24);
}

.sls-gl__cta > div { flex: 1 1 380px; }
.sls-gl__cta h2 { color: #fff; font-size: clamp(21px, 2.5vw, 29px); font-weight: 800; letter-spacing: -.025em; }
.sls-gl__cta p { margin-top: 10px; font-size: 15.5px; line-height: 1.68; color: rgba(255, 255, 255, .8); }
.sls-gl__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sls-gl__btn {
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 700;
	text-decoration: none !important;
	border-radius: 999px; padding: 14px 28px;
	transition: transform .2s ease, background .2s ease;
}

.sls-gl__btn--solid { color: var(--b-navy) !important; background: #fff; }
.sls-gl__btn--solid:hover { transform: translateY(-2px); color: var(--b-navy) !important; }
.sls-gl__btn--ghost {
	color: #fff !important;
	background: rgba(255, 255, 255, .10);
	border: 1px solid rgba(255, 255, 255, .42);
}
.sls-gl__btn--ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .2); color: #fff !important; }

/* --- Photo strip (other pages) -------------------------------------------- */
.sls-strip {
	max-width: 1240px;
	width: 100%;
	margin: 34px auto 0;
	padding: 0 24px;
}

/* The spacing controls emit a margin shorthand, which would wipe out the
   auto side-margins above and un-centre the strip. Centre from the parent
   instead so the editor sliders stay free to set any margin they like. */
.elementor-widget-sls-photo-strip > .elementor-widget-container {
	display: flex;
	justify-content: center;
}

.sls-strip__title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
	margin-bottom: 14px !important;
	color: var(--b-ink);
}

.sls-strip__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.sls-strip__row li {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(var(--b-navy-rgb), .05), 0 10px 24px rgba(var(--b-navy-rgb), .08);
	list-style: none !important;
}

.sls-strip__row img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	min-height: 200px;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.sls-strip__row li:hover img { transform: scale(1.06); }

.sls-strip__row span {
	position: absolute;
	inset: auto 0 0 0;
	padding: 30px 14px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(to top, rgba(13, 27, 43, .9), transparent);
}

.sls-strip__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px !important;
}

.sls-strip__more a {
	font-weight: 700;
	font-size: 15px;
	color: var(--b-gold-d) !important;
	text-decoration: none !important;
	border-bottom: 2px solid rgba(var(--b-gold-rgb), .34);
}

.sls-strip__more svg { width: 17px; height: 17px; color: var(--b-gold-d); transition: transform .22s ease; }
.sls-strip__more:hover svg { transform: translateX(4px); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1024px) {
	.sls-gl__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 120px; }
}

@media (max-width: 782px) {
	.sls-gl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 110px; gap: 12px; }
	.sls-gl__item--wide { grid-column: span 2; grid-row: span 2; }
	.sls-gl__hero { padding: 44px 12px 32px; }
	.sls-gl__cta { padding: 30px 24px; }
	.sls-strip__row { grid-template-columns: 1fr 1fr; }
	.sls-strip__row li:nth-child(3) { display: none; }
}

@media (max-width: 520px) {
	.sls-gl { padding: 0 14px 14px; }
	.sls-strip { padding: 0 14px; }
	.sls-gl__grid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
	.sls-gl__item, .sls-gl__item--tall, .sls-gl__item--wide { grid-column: span 1; grid-row: span 1; }
	.sls-gl__filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
	.sls-gl__filters::-webkit-scrollbar { display: none; }
	.sls-gl__chip { flex: 0 0 auto; }
	/* Caption always visible on touch — there is no hover to reveal it. */
	.sls-gl__cap { opacity: 1; transform: none; }
	.sls-gl__lb-prev, .sls-gl__lb-next { width: 42px; height: 42px; }
	.sls-gl__lb-prev { left: 10px; } .sls-gl__lb-next { right: 10px; }
	.sls-gl__cta-actions { width: 100%; flex-direction: column; }
	.sls-gl__btn { width: 100%; }
}

@media (hover: none) {
	.sls-gl__cap { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sls-gl *, .sls-gl *::before, .sls-gl *::after { transition: none !important; animation: none !important; }
	.sls-gl__open:hover { transform: none; }
	.sls-gl__open:hover img { transform: none; }
}

@media print {
	.sls-gl__filters, .sls-gl__cta, .sls-gl__lightbox, .sls-gl__zoom { display: none !important; }
	.sls-gl__grid { display: block; }
	.sls-gl__item { break-inside: avoid; margin-bottom: 12px; }
	.sls-gl__open { box-shadow: none; }
}
