/**
 * Hero Block — the first layout type in the "Page Content" Flexible
 * Content field on Pages (inc/page-content.php). Two variants, chosen by
 * which layout row the editor adds in wp-admin:
 *
 *   .hero-block--basic    → identical treatment to .room-header-bar on
 *                            the Single Room template (single-room.css),
 *                            duplicated here under its own class names on
 *                            purpose rather than shared/imported, so the
 *                            two components can drift independently and
 *                            this file doesn't depend on that one.
 *
 *   .hero-block--advanced → full-bleed photo + heading/body, built from
 *                            the "Products" (mobile) and "Make It
 *                            Inspired" (desktop) mockups: stacked photo
 *                            then a solid black panel below it on mobile,
 *                            switching to a full-bleed photo with an
 *                            overlaid gradient side-panel on desktop.
 */

/* ---- Basic ---- */

.hero-block--basic {
	background: #f0f0f0;
	padding: 2.5rem 1.5rem;
	text-align: center;
}

@media (min-width: 900px) {
	.hero-block--basic {
		padding: 3.5rem 1.5rem;
	}
}

.hero-basic-title {
	margin: 0;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 1.4rem;
	letter-spacing: 0.2375rem;
	text-transform: uppercase;
	color: #000000;
}

@media (min-width: 900px) {
	.hero-basic-title {
		font-size: 2.375rem;
	}
}

/* ---- Advanced ---- */

.hero-block--advanced {
	position: relative;
	overflow: hidden;
	background: #000000; /* also the mobile panel color; shows briefly if the image is slow to load */
  margin-bottom: 100px;
}

.hero-advanced-media {
	width: 100%;
	aspect-ratio: 4 / 3;
}

.hero-advanced-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero-advanced-panel {
	background: #000000;
	color: #ffffff;
	padding: 2.5rem 1.75rem 3rem;
}

.hero-advanced-heading {
	margin: 0 0 1.25rem;
	font-family: var(--font-primary);
	font-weight: var(--font-weight-regular);
	font-style: normal;
	font-size: 1.5rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.hero-advanced-body {
	margin: 0;
	max-width: 40ch;
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 900px) {
	/* Photo becomes a full-bleed hero band; the panel lifts off the bottom
	   and overlays the left side of it instead, gradient-fading into the
	   photo rather than sitting on a solid black block. */
	.hero-block--advanced {
		min-height: 460px;
		display: flex;
		align-items: stretch;
	}
  .hero-block--large {
    min-height: 600px;
    height: 35vw;
  }

	.hero-advanced-media {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
	}

	.hero-advanced-panel {
		position: relative;
		z-index: 1;
		/*width: min(46%, 620px);*/
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 3rem 3.5rem;
		background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12.5px);
	}

	.hero-advanced-heading {
		font-size: 2rem;
		max-width: 12ch;
	}
  
  .hero-block--large .hero-advanced-heading {
    max-width: none;
  }
  .hero-block--large .hero-advanced-panel {
    width: 30%;
  }
  
}

.hero-block {
  display: relative;
  z-index: 999999999;
}