/*
Theme Name: D'Angelo
Theme URI: https://d-angeloclothing.com
Author: D'Angelo Clothing
Description: A WooCommerce block theme for D'Angelo Clothing, in the clean black-and-white style of Shopify's Horizon: the logo centred over an uppercase menu, a full-width slideshow, photo tiles, a lookbook and store cards. Every section is a block pattern, and Appearance > D'Angelo Demo imports the complete demo (pages, photos, logo and settings) in one click.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dangelo
Tags: e-commerce, block-patterns, full-site-editing, wide-blocks, block-styles, custom-logo, one-column, editor-style
WC requires at least: 9.0
WC tested up to: 11.2
*/

/* ==========================================================================
   Base
   ========================================================================== */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* Sections manage their own spacing. */
.dangelo-sections > * + *,
.dangelo-main > * + * {
	margin-block-start: 0;
}

.dangelo-section {
	padding-block: var(--wp--preset--spacing--50);
}

.dangelo-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.75rem;
}

.dangelo-page-intro {
	padding-bottom: var(--wp--preset--spacing--30);
}

.dangelo-page-intro h1 {
	text-wrap: balance;
}

/* Headings inside photos and dark bands take the band's colour. */
.wp-block-cover :where(h1, h2, h3, h4, p, a),
.has-contrast-background-color :where(h1, h2, h3, h4) {
	color: inherit;
}

/* ==========================================================================
   Buttons (Horizon: 14px corners, sentence case)
   ========================================================================== */

.wp-block-button__link {
	transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.wp-block-button.is-style-secondary .wp-block-button__link {
	background: rgba(0, 0, 0, 0.06);
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background: rgba(0, 0, 0, 0.1);
}

.wp-block-button.is-style-inverse .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-inverse .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.has-contrast-background-color .wp-block-button.is-style-secondary .wp-block-button__link {
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.dangelo-arrow-link a {
	font-weight: 500;
	text-underline-offset: 0.3em;
}

.dangelo-arrow-link a::after {
	content: " →";
}

/* ==========================================================================
   Header: announcement, logo centred on top, menu underneath
   ========================================================================== */

.dangelo-announcement {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: 0.5rem;
}

.dangelo-announcement p {
	margin: 0;
	color: var(--wp--preset--color--contrast);
}

.dangelo-header {
	position: relative;
	z-index: 50;
	background: var(--wp--preset--color--base);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
	padding-inline: var(--wp--custom--gutter);
}

.dangelo-header__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-block: 1.75rem 1.25rem;
}

.dangelo-header__top > * {
	margin: 0 !important;
}

.dangelo-header__logo {
	justify-self: center;
}

.dangelo-header__logo img {
	width: 175px;
	height: auto;
}

.dangelo-header__end {
	justify-content: flex-end;
	gap: 0.5rem;
}

.dangelo-header__search .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.6rem;
	border-radius: 999px;
}

.dangelo-header__search .wp-block-search__button:hover {
	background: rgba(0, 0, 0, 0.06);
}

.dangelo-header__nav {
	justify-content: center;
	padding-bottom: 1rem;
	gap: 0.25rem 2.25rem;
}

.dangelo-header__nav .wp-block-navigation-item__content {
	padding-block: 0.5rem;
	text-decoration: none;
	text-underline-offset: 0.5em;
}

.dangelo-header__nav .wp-block-navigation-item__content:hover,
.dangelo-header__nav .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
}

@media (max-width: 781px) {
	.dangelo-header__top {
		padding-block: 0.75rem;
	}

	.dangelo-header__logo img {
		width: 92px;
	}

	.dangelo-header__nav {
		padding-bottom: 0.75rem;
		gap: 0.25rem 1.25rem;
	}
}

/* Phones: the menu collapses to a button, placed on the logo row beside the search icon. */
@media (max-width: 599px) {
	.dangelo-header {
		display: grid;
	}

	.dangelo-header > .dangelo-header__top,
	.dangelo-header > .dangelo-header__nav {
		grid-area: 1 / 1;
		margin: 0 !important;
	}

	.dangelo-header > .dangelo-header__nav {
		justify-self: start;
		align-self: center;
		padding: 0;
		z-index: 2;
	}

	.dangelo-header__start {
		padding-left: 2.5rem;
	}
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem var(--wp--custom--gutter);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	gap: 1.25rem;
	padding-top: 3.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.125rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.dangelo-section-heading {
	margin-bottom: 2rem;
	align-items: flex-end;
}

.dangelo-section-heading > * {
	margin: 0;
}

.dangelo-section-heading h2 {
	font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.dangelo-section-heading p {
	margin: 0.5rem 0 0;
}

/* Photo overlays: a gradient from the bottom instead of a flat tint. */
.dangelo-tile .wp-block-cover__background {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.25)) !important;
	opacity: 1 !important;
}

/* Business / Casual / Weddings tiles */
.dangelo-tiles {
	gap: 0.75rem;
}

.dangelo-tile {
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
}

.dangelo-tile .wp-block-cover__image-background {
	transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dangelo-tile:hover .wp-block-cover__image-background {
	transform: scale(1.04);
}

.dangelo-tile h3 {
	margin-bottom: 0.75rem;
}

/* Photos in rows and cards */
.dangelo-photo-row,
.dangelo-services {
	gap: 0.75rem 1.25rem;
}

.dangelo-photo-row .wp-block-image,
.dangelo-services .wp-block-image {
	margin-bottom: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

.dangelo-services h3 {
	margin: 0.9rem 0 0.25rem;
}

.dangelo-services h3 a {
	text-decoration: none;
}

.dangelo-services h3 a:hover {
	text-decoration: underline;
}

.dangelo-services .wp-block-image img {
	transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dangelo-services .wp-block-column:hover .wp-block-image img {
	transform: scale(1.03);
}

/* Perfect Combo */
.dangelo-perfect-combo p {
	max-width: 38rem;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.8);
}

/* Marquee */
.dangelo-marquee {
	overflow: hidden;
	padding-block: 0.9rem;
}

.dangelo-marquee__text {
	margin: 0;
	white-space: nowrap;
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	font-weight: 600;
	letter-spacing: -0.01em;
}

.dangelo-marquee__dot {
	display: inline-block;
	margin-inline: 1.75rem;
	opacity: 0.6;
}

.dangelo-marquee.is-ready .dangelo-marquee__track {
	display: flex;
	width: max-content;
	animation: dangelo-marquee 40s linear infinite;
}

.dangelo-marquee.is-ready .dangelo-marquee__text {
	padding-right: 1.75rem;
}

@keyframes dangelo-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Lookbook: photos in columns, each at its own proportions */
.dangelo-lookbook {
	columns: 2;
	column-gap: 0.75rem;
}

.dangelo-lookbook > .wp-block-image {
	break-inside: avoid;
	margin: 0 0 0.75rem !important;
}

@media (min-width: 782px) {
	.dangelo-lookbook {
		columns: 3;
	}
}

@media (min-width: 1100px) {
	.dangelo-lookbook {
		columns: 4;
	}
}

/* Service pages */
.dangelo-service {
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center !important;
}

.dangelo-service .wp-block-image {
	margin: 0;
}

.dangelo-service__eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.dangelo-service__title {
	margin: 1rem 0 0;
	font-size: clamp(2.5rem, 5vw, 4.25rem) !important;
	font-weight: 400 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.035em !important;
	text-wrap: balance;
}

/* A short rule under the title. */
.dangelo-service__title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 1px;
	margin: 2rem 0;
	background: var(--wp--preset--color--contrast);
}

.dangelo-service__intro {
	max-width: 34rem;
	margin: 0;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--contrast);
}

.dangelo-service__body {
	max-width: 34rem;
	margin: 1.1rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

.dangelo-service__text .wp-block-buttons,
.dgl-split__text .dgl-actions {
	margin-top: 2.25rem;
}

/* Store cards */
.dangelo-store-cards,
.is-layout-constrained > .dangelo-store-cards.alignwide {
	max-width: 56rem;
	margin-inline: auto !important;
	margin-top: 2.5rem !important;
	gap: 1.5rem;
}

.dangelo-store-card {
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--card);
}

.dangelo-stores-page .dangelo-store-card {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
}

.dangelo-store-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
}

.dangelo-store-card p {
	margin: 0.35rem 0;
}

.dangelo-store-card__phone a {
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.dangelo-store-card__directions a {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-underline-offset: 0.25em;
}

/* Footer */
.dangelo-footer {
	border-top: 1px solid var(--wp--preset--color--line);
}

.dangelo-footer__title {
	font-size: var(--wp--preset--font-size--small) !important;
	letter-spacing: 0;
	margin-bottom: 0.5rem;
}

.dangelo-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.dangelo-footer__links li {
	padding-block: 0.3rem;
}

.dangelo-footer__links a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.dangelo-footer__links a:hover {
	color: var(--wp--preset--color--contrast);
}

.dangelo-footer__logo img {
	width: 140px;
	height: auto;
}

.dangelo-footer__copyright {
	max-width: var(--wp--style--global--wide-size) !important;
	margin-top: 3.5rem !important;
	padding-top: 2rem;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ==========================================================================
   WooCommerce
   ========================================================================== */

/* Shortcode product grids span the wide width, not the narrow text column. */
.dangelo-products > .wp-block-shortcode,
.dangelo-products > .woocommerce {
	max-width: var(--wp--style--global--wide-size);
}

.woocommerce ul.products li.product {
	text-align: left;
}

/* Hide the "New in" section while the shop has no products. */
.dangelo-new-in:not(:has(.product)) {
	display: none;
}

/* Product cards: square photos, name and price, as in Horizon. */
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	aspect-ratio: 1;
	object-fit: cover;
	object-position: 50% 30%;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name,
.wp-block-post-title a {
	font-size: 0.9375rem !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.woocommerce ul.products li.product .price,
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 500;
	font-size: 0.9375rem;
}

.woocommerce ul.products li.product .price del,
.wc-block-components-product-price del {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	min-height: 0;
	min-width: 0;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	line-height: 1.5;
	border: 0;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	border-radius: var(--wp--custom--radius--button) !important;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-weight: 500;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: #333;
	color: var(--wp--preset--color--base);
}

.single-product .wp-block-post-title,
.woocommerce div.product .product_title {
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--contrast);
	font-size: 1.25rem;
	font-weight: 500;
}

.woocommerce-store-notice,
p.demo_store {
	background: var(--wp--preset--color--contrast);
}

.wc-block-mini-cart__button,
.wc-block-customer-account a {
	color: var(--wp--preset--color--contrast);
	padding: 0.5rem;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.wp-block-woocommerce-breadcrumbs,
.woocommerce .woocommerce-breadcrumb {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.dangelo-slideshow .wp-block-cover__image-background,
	.dangelo-tile .wp-block-cover__image-background,
	.dangelo-services .wp-block-image img {
		transition: none;
		transform: none;
	}

	.dangelo-marquee.is-ready .dangelo-marquee__track {
		animation: none;
	}
}

/* Visually hidden text, for screen readers. */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   Elementor widgets (inc/elementor). Same design as the block patterns.
   Image rules use two classes so Elementor's own `.elementor img` rule can't win.
   ========================================================================== */

.dgl-container {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter);
}

.dgl-container--narrow {
	max-width: 48rem;
	text-align: center;
}

.dgl-section {
	padding-block: var(--wp--preset--spacing--50);
}

.dgl-lead {
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

.dgl-section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}

.dgl-section-heading h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.dgl-section-heading .dangelo-arrow-link {
	margin: 0;
}

.dgl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.dgl-actions--center {
	justify-content: center;
}

.dgl-tiles,
.dgl-cards,
.dgl-photos,
.dgl-store-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Tiles */
.dgl-tiles {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 782px) {
	.dgl-tiles {
		grid-template-columns: repeat(var(--dgl-columns, 3), minmax(0, 1fr));
	}
}

.dgl-tile {
	position: relative;
	isolation: isolate;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--soft);
	color: #fff;
	text-decoration: none;
}

.dgl-tile .dgl-tile__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
	transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dgl-tile:hover .dgl-tile__image {
	transform: scale(1.05);
}

.dgl-tile__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.1) 55%, transparent);
}

.dgl-tile__content {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 2rem 1.5rem;
	text-align: center;
}

.dgl-tile__label {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.dgl-tile__button {
	padding: 0.6rem 1.25rem;
	border-radius: var(--wp--custom--radius--button);
	background: #fff;
	color: #000;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	transition: background-color 200ms, color 200ms;
}

.dgl-tile:hover .dgl-tile__button {
	background: #000;
	color: #fff;
}

/* Cards */
.dgl-cards {
	display: grid;
	gap: 2.5rem 1.25rem;
}

@media (min-width: 782px) {
	.dgl-cards {
		grid-template-columns: repeat(var(--dgl-columns, 3), minmax(0, 1fr));
	}
}

.dgl-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.dgl-card__media {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--soft);
}

.dgl-cards .dgl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dgl-card:hover .dgl-card__media img {
	transform: scale(1.04);
}

.dgl-card__title {
	display: block;
	margin-top: 0.9rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast);
}

.dgl-card:hover .dgl-card__title {
	text-decoration: underline;
}

.dgl-card__line {
	display: block;
	margin-top: 0.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* Black band */
.dgl-band {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.dgl-band h2 {
	margin: 0;
	color: inherit;
}

.dgl-band p {
	max-width: 38rem;
	margin: 1.25rem auto 0;
	font-size: var(--wp--preset--font-size--large);
	color: rgba(255, 255, 255, 0.8);
}

.dgl-band .dgl-actions {
	margin-top: 2rem;
}

/* Photos */
.dgl-photos--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 1024px) {
	.dgl-photos--grid {
		grid-template-columns: repeat(var(--dgl-columns, 4), minmax(0, 1fr));
	}
}

.dgl-photos--grid li {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--soft);
}

.dgl-photos--grid li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
}

.dgl-photos--masonry {
	columns: 2;
	column-gap: 0.75rem;
}

@media (min-width: 782px) {
	.dgl-photos--masonry {
		columns: 3;
	}
}

@media (min-width: 1100px) {
	.dgl-photos--masonry {
		columns: var(--dgl-columns, 4);
	}
}

.dgl-photos--masonry li {
	break-inside: avoid;
	margin-bottom: 0.75rem;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
}

.dgl-photos--masonry li img {
	display: block;
	width: 100%;
	height: auto;
}

.dgl-photos--banner li {
	aspect-ratio: 21 / 9;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--soft);
}

.dgl-photos--banner li + li {
	margin-top: 0.75rem;
}

.dgl-photos--banner li img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Stores */
.dgl-tone-sage {
	background: var(--wp--preset--color--sage);
}

.dgl-stores__intro {
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.dgl-stores__intro h2 {
	margin: 0;
}

.dgl-store-grid {
	display: grid;
	gap: 1.5rem;
	max-width: 56rem;
	margin-inline: auto;
}

@media (min-width: 600px) {
	.dgl-store-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.dgl-tone-white .dangelo-store-card {
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--line);
}

/* Photo beside text */
.dgl-split__grid {
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

@media (min-width: 782px) {
	.dgl-split__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dgl-split--image-right .dgl-split__media {
		order: 2;
	}
}

.dgl-split__media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--soft);
}

.dgl-split .dgl-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
}

/* Page title */
.dgl-page-title {
	padding-bottom: var(--wp--preset--spacing--30);
}

.dgl-page-title h1 {
	margin: 0;
	text-wrap: balance;
}

/* Elementor pages span the full width of the page template (edge to edge, like the
   block sections); each D'Angelo widget adds its own side gutter. */
.dangelo-sections > .elementor,
.dangelo-sections > [data-elementor-type] {
	max-width: none !important;
	width: auto;
	margin-left: calc(var(--wp--style--root--padding-left, 0px) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right, 0px) * -1) !important;
}

.elementor .dgl-section h2,
.elementor .dgl-section h3 {
	color: var(--wp--preset--color--contrast);
}

.elementor .dgl-band h2,
.elementor .dgl-hero h1,
.elementor .dgl-hero h2 {
	color: #fff;
}

/* ==========================================================================
   Scroll motion (assets/js/theme.js). Hidden only until the script brings them in;
   html.dgl-motion is set by a small inline script and removed again if the motion
   script doesn't start.
   ========================================================================== */

html.dgl-motion:not(.dgl-motion-ready) :is(.dgl-reveal, .dangelo-section-heading, .dangelo-store-card, .dangelo-service__text, .dangelo-perfect-combo h2) {
	opacity: 0;
}

html.dgl-motion:not(.dgl-motion-ready) :is(.dgl-reveal-image, .dangelo-tile, .dangelo-services .wp-block-image, .dangelo-photo-row .wp-block-image, .dangelo-lookbook > .wp-block-image, .dangelo-service .wp-block-image) {
	clip-path: inset(100% 0 0 0);
}

/* Lenis smooth scrolling. */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
	overflow: clip;
}

.lenis [data-lenis-prevent] {
	overscroll-behavior: contain;
}
