/*
 * Split from components.css. Selectors unchanged.
 * Path of the Panther Photography: map + page + impact band.
 */

/* ---------- Map ---------- */

.wpx-map {
	height: var(--wpx-map-height, 32rem);
	background: var(--c-lt-blue);
}

.wpx-map__fallback {
	margin: var(--sp-5) 0 0;
	padding-left: var(--sp-5);
}

.wpx-map-section__header {
	margin-bottom: var(--sp-6);
	max-width: var(--w-prose);
}

.wpx-map-section__actions {
	margin-top: var(--sp-6);
}

.wpx-map-section--split {
	color: var(--c-white);
	background: var(--wpx-map-section-bg, #736f53);
}

.wpx-map-section--split .wpx-map-section__grid {
	display: grid;
	gap: var(--sp-7);
	align-items: center;
}

.wpx-map-section--split .wpx-map-section__copy .wpx-prose {
	max-width: none;
	color: inherit;
}

.wpx-map-section--split .wpx-map-section__copy .wpx-prose p {
	margin: 0;
	font-weight: 400;
	line-height: var(--lh-body);
}

.wpx-map-section--split .wpx-map-section__copy .wpx-prose p + p {
	margin-top: var(--sp-5);
}

.wpx-map-section--split .wpx-map-section__media {
	position: relative;
	min-width: 0;
}

.wpx-map-section--split .wpx-map {
	border: 1px solid rgb(255 255 255 / 28%);
}

.wpx-map-section--split .wpx-map__fallback {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

@media (width >= 56rem) {
	.wpx-map-section--split .wpx-map-section__grid {
		grid-template-columns: 1fr 1fr;
		column-gap: clamp(2rem, 5vw, 5rem);
	}
}

/* ---------- PoP Photography page ---------- */

.wpx-page--pop-photo .wpx-hero--pop {
	min-height: calc(100svh - 4.5rem);
	overflow: hidden;
	padding-block: var(--sp-10) var(--sp-8);
	color: var(--c-white);
	background: #736f53;
}

.wpx-page--pop-photo .wpx-hero--pop-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: 100%;
	padding: 0;
}

.wpx-page--pop-photo .wpx-hero--pop-slides .wpx-carousel,
.wpx-page--pop-photo .wpx-hero--pop-slides .wpx-carousel__track,
.wpx-page--pop-photo .wpx-hero--pop-slides .wpx-carousel__slide,
.wpx-page--pop-photo .wpx-hero--pop-slides .wpx-figure,
.wpx-page--pop-photo .wpx-hero--pop-slides img {
	height: 100%;
}

.wpx-page--pop-photo .wpx-hero--pop-slides img {
	aspect-ratio: auto;
	width: 100%;
	max-height: none;
	object-fit: cover;
}

.wpx-page--pop-photo .wpx-hero--pop .wpx-hero__fade {
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgb(0 0 0 / 18%) 0%,
			rgb(0 0 0 / 0%) 28%,
			rgb(115 111 83 / 0%) 58%,
			rgb(115 111 83 / 100%) 100%
		),
		linear-gradient(90deg, rgb(0 0 0 / 48%) 0%, rgb(0 0 0 / 0%) 55%);
}

.wpx-page--pop-photo .wpx-hero--pop .wpx-hero__body {
	z-index: 2;
	max-width: var(--w-wide);
}

.wpx-page--pop-photo .wpx-hero--pop .wpx-eyebrow {
	color: rgb(255 255 255 / 82%);
}

.wpx-page--pop-photo .wpx-hero--pop .wpx-hero__title {
	max-width: 22ch;
	margin: 0;
	font-weight: 300;
	line-height: var(--lh-tight);
}

.wpx-page--pop-photo .wpx-hero--pop + .wpx-map-section--split {
	padding-top: var(--sp-4);
}

.wpx-gallery-carousel--pop {
	padding: 0;
	background: #0b0f12;
}

.wpx-gallery-carousel--pop .wpx-carousel__slide,
.wpx-gallery-carousel--pop .wpx-figure,
.wpx-gallery-carousel--pop .wpx-figure__link,
.wpx-gallery-carousel--pop img {
	height: 100vh;
}

.wpx-gallery-carousel--pop.wpx-gallery-carousel--feature img {
	aspect-ratio: auto;
	width: 100%;
	max-height: none;
	object-fit: cover;
}

.wpx-pop-video-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--c-white);
	background: var(--wpx-pop-band-bg, #736f53);
}

.wpx-pop-video-band.has-mark::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--wpx-pop-mark);
	background-position: left center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0.22;
	content: '';
	pointer-events: none;
}

.wpx-pop-video-band > * {
	position: relative;
	z-index: 1;
}

.wpx-pop-video-band .wpx-section {
	background: transparent;
}

.wpx-pop-video-band__player {
	padding-bottom: 0;
}

.wpx-pop-video-band .wpx-media-text {
	color: inherit;
}

.wpx-pop-video-band .wpx-prose {
	max-width: 36rem;
	color: inherit;
}

.wpx-pop-video-band .wpx-video--file {
	border: 1px solid #000;
}

.wpx-pop-story {
	position: relative;
	display: grid;
	align-items: center;
	isolation: isolate;
	overflow: hidden;
	min-height: max(650px, 76vh);
	color: var(--c-white);
	background: #1a1a14;
}

.wpx-pop-story__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	height: 100%;
	padding: 0;
}

.wpx-pop-story__media .wpx-carousel,
.wpx-pop-story__media .wpx-carousel__track,
.wpx-pop-story__media .wpx-carousel__slide,
.wpx-pop-story__media .wpx-figure,
.wpx-pop-story__media img {
	height: 100%;
}

.wpx-pop-story__media .wpx-figure {
	position: relative;
	overflow: hidden;
	background: #1a1a14;
}

.wpx-pop-story__media .wpx-figure__bleed {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
	filter: blur(32px);
	transform: scale(1.12);
	opacity: 0.7;
}

.wpx-pop-story__media img:not(.wpx-figure__bleed) {
	position: relative;
	z-index: 1;
	aspect-ratio: auto;
	width: 100%;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

.wpx-pop-story::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgb(61 68 35 / 88%) 0%, rgb(61 68 35 / 58%) 34%, rgb(61 68 35 / 0%) 62%);
	content: '';
	pointer-events: none;
}

.wpx-pop-story > .wpx-container {
	position: relative;
	z-index: 2;
}

.wpx-pop-story__copy {
	max-width: 36rem;
	color: inherit;
}

.wpx-pop-story__copy p {
	margin: 0;
	font-weight: 400;
	line-height: var(--lh-body);
}

.wpx-pop-story__copy p + p {
	margin-top: var(--sp-5);
}

/* ---------- PoP Photography impact band ---------- */

.wpx-impact-band {
	--c-gold: #eece3f;
	color: var(--c-white);
	background: linear-gradient(180deg, var(--c-nav) 0%, var(--c-pine) 100%);
}

.wpx-impact-band__title {
	margin: 0 0 var(--sp-7);
	font-weight: 400;
}

.wpx-impact-band__row,
.wpx-impact-band__split {
	display: grid;
	gap: var(--sp-6);
	padding-block: var(--sp-7);
	border-top: 1px solid rgb(255 255 255 / 55%);
}

.wpx-impact-band__row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.wpx-impact-band__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.wpx-impact-band__body {
	display: grid;
	gap: var(--sp-3);
	align-content: start;
}

.wpx-impact-band__body h3,
.wpx-impact-band__split > h3 {
	margin: 0;
	font-weight: 400;
}

.wpx-impact-band__subtitle,
.wpx-impact-band__body p,
.wpx-impact-band__split .wpx-prose,
.wpx-impact-band__split .wpx-prose p {
	margin: 0;
	color: inherit;
}

.wpx-impact-band__meta {
	font-weight: 700;
}

.wpx-impact-band__actions {
	margin: var(--sp-3) 0 0;
}

.wpx-impact-band__more {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	color: var(--c-gold);
	font-family: var(--font-display);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: var(--tracking-wide);
	text-decoration: none;
	text-transform: uppercase;
}

.wpx-impact-band__more:hover,
.wpx-impact-band__more:focus-visible {
	color: var(--c-white);
}

.wpx-impact-band__more-arrow {
	transition: transform var(--dur) var(--ease);
}

.wpx-impact-band__more:hover .wpx-impact-band__more-arrow {
	transform: translateX(0.2em);
}

.wpx-impact-band__news {
	padding-block: var(--sp-7);
	border-top: 1px solid rgb(255 255 255 / 55%);
}

.wpx-impact-band__news > h3 {
	margin: 0 0 var(--sp-6);
	font-size: calc(var(--fs-h3) * 1.4);
	font-weight: 400;
}

.wpx-impact-band__news-item {
	display: grid;
	gap: var(--sp-6);
	align-items: start;
}

.wpx-impact-band__news-copy {
	display: grid;
	gap: var(--sp-4);
	align-content: start;
}

.wpx-impact-band__news-date {
	margin: 0;
	color: var(--c-white);
	font-size: var(--fs-sm);
}

.wpx-impact-band__news-title {
	margin: 0;
	max-width: 12em;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
	font-weight: 400;
	line-height: var(--lh-tight);
}

.wpx-impact-band__news-copy .wpx-impact-band__actions {
	margin: 0;
}

.wpx-impact-band__news-media img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--c-white);
	border-radius: 0.5rem;
	object-fit: cover;
}

@media (width >= 56rem) {
	.wpx-impact-band__row {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: var(--sp-8);
		align-items: center;
	}

	.wpx-impact-band__split {
		grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
		gap: var(--sp-8);
		align-items: start;
	}

	.wpx-impact-band__news-item {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: var(--sp-8);
	}
}

.wpx-page--pop-photo ~ .wpx-card-carousel--films-related.wpx-card-carousel--photos-related,
.has-post-palette .wpx-page--pop-photo ~ .wpx-card-carousel--films-related.wpx-card-carousel--photos-related {
	color: var(--c-white);
	background: var(--c-pine);
}
