/* Project page, card corner box and the closing band — after the reference
   design's project page (konstruktion.vamtam.com/2022/10/31/one-thousand-museum). */

.ec-shell--narrow {
	max-width: 1080px;
}

/* ------------------------------------------------------------------
   Card corner box: "+" that opens out into "View project"
   ------------------------------------------------------------------ */

.ec-more {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 56px;
	background: var(--ec-white);
	color: var(--ec-ink);
}

.ec-more__label {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: var(--ec-fs-sm);
	font-weight: 500;
	opacity: 0;
	transition-property: max-width, padding, opacity;
	transition-duration: var(--duration-fast);
	transition-timing-function: var(--ease-smooth-out);
}

.ec-more__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	transition: color var(--duration-fast) var(--ease-smooth-out),
		transform var(--duration-fast) var(--ease-smooth-out);
}

.ec-more:hover .ec-more__label,
.ec-card:focus-visible .ec-more__label {
	max-width: 10rem;
	padding-left: var(--ec-sp-3);
	opacity: 1;
}

.ec-more:hover .ec-more__icon,
.ec-card:focus-visible .ec-more__icon {
	color: var(--ec-green-dark);
	transform: rotate(90deg);
}

/* ------------------------------------------------------------------
   Split hero
   ------------------------------------------------------------------ */

.ec-phero {
	padding-top: calc(var(--ec-header-h) + clamp(2.5rem, 1rem + 5vw, 5rem));
}

.ec-phero__inner {
	display: grid;
	gap: var(--ec-sp-5);
	grid-template-columns: 1fr;
}

@media (min-width: 820px) {
	.ec-phero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		align-items: start;
		gap: clamp(2rem, 1rem + 5vw, 6rem);
	}
}

.ec-phero__title {
	margin: 0 0 var(--ec-sp-2);
	font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
	line-height: 1.12;
}

.ec-phero__date {
	margin: 0 0 var(--ec-sp-4);
	color: var(--ec-ink-faint);
	font-size: var(--ec-fs-sm);
	font-variant-numeric: tabular-nums;
}

.ec-phero__media {
	overflow: hidden;
}

.ec-phero__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.ec-share {
	display: flex;
	gap: var(--ec-sp-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ec-share li {
	margin: 0;
}

.ec-share a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-left: -11px;
	color: var(--ec-ink);
}

.ec-share li + li a {
	margin-left: 0;
}

.ec-share a:hover {
	color: var(--ec-green-dark);
}

/* Full-bleed photograph under the hero */
.ec-pwide {
	position: relative;
	margin-top: clamp(3rem, 1.5rem + 5vw, 6rem);
	overflow: hidden;
}

.ec-pwide img {
	width: 100%;
	aspect-ratio: 16 / 7;
	max-height: 82vh;
	object-fit: cover;
}

/* ------------------------------------------------------------------
   Facts + intro, then the staggered story
   ------------------------------------------------------------------ */

.ec-story__row {
	display: grid;
	gap: var(--ec-sp-5);
	grid-template-columns: 1fr;
	margin-bottom: clamp(3rem, 2rem + 4vw, 7rem);
}

@media (min-width: 820px) {
	.ec-story__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: clamp(2rem, 1rem + 5vw, 6rem);
	}

	.ec-story__row--intro {
		grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	}

	.ec-story__row--wide {
		grid-template-columns: 1fr;
	}

	/* The second column sits lower, as on the reference, so the page reads
	   as an editorial spread instead of a grid. */
	/* Scoped under the row: the base .ec-story__figure { margin: 0 } rule comes
	   later in this file and would otherwise cancel the drop. */
	.ec-story__row .ec-story__figure--drop,
	.ec-story__row .ec-story__text--drop {
		margin-top: clamp(4rem, 2rem + 6vw, 9rem);
	}
}

.ec-pfacts {
	margin: 0;
}

.ec-pfacts__item {
	margin-bottom: var(--ec-sp-3);
}

.ec-pfacts dt {
	color: var(--ec-ink-faint);
	font-size: var(--ec-fs-sm);
}

.ec-pfacts dd {
	margin: 0.15em 0 0;
	font-size: 1.25rem;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.ec-story__title {
	margin-bottom: var(--ec-sp-4);
	font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.75rem);
	line-height: 1.04;
}

.ec-story__lead,
.ec-story__text p {
	font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--ec-ink);
}

.ec-story__frame {
	position: relative;
	overflow: hidden;
}

.ec-story__frame img {
	width: 100%;
	object-fit: cover;
}

.ec-story__figure {
	margin: 0;
}

.ec-story__figure--land img {
	aspect-ratio: 4 / 3;
}

.ec-story__figure--port img {
	aspect-ratio: 3 / 4;
}

.ec-story__figure--wide img {
	aspect-ratio: 16 / 9;
}

.ec-story__caption {
	max-width: 40ch;
	margin-top: var(--ec-sp-1);
	color: var(--ec-ink-soft);
	font-size: var(--ec-fs-sm);
	line-height: 1.5;
}

/* Small landscape thumbnails for the photographs the story did not use */
.ec-thumbs {
	margin-bottom: var(--ec-sp-6);
}

.ec-thumbs__title {
	margin-bottom: var(--ec-sp-4);
	font-size: var(--ec-fs-h4);
}

.ec-thumbs__grid {
	display: grid;
	gap: var(--ec-sp-2);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 700px) {
	.ec-thumbs__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ec-thumbs__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ec-thumbs__grid li {
	margin: 0;
}

.ec-thumbs__grid a {
	display: block;
	overflow: hidden;
	cursor: zoom-in;
}

.ec-thumbs__grid img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.9s var(--ec-ease), opacity var(--duration-fast) var(--ease-smooth-out);
}

.ec-thumbs__grid a:hover img {
	transform: scale(1.05);
}

.ec-tags {
	display: flex;
	gap: var(--ec-sp-2);
	justify-content: center;
	padding-top: var(--ec-sp-4);
	border-top: 1px solid var(--ec-line);
	font-size: var(--ec-fs-sm);
}

.ec-tags__label {
	font-weight: 500;
}

/* ------------------------------------------------------------------
   Closing band: "Ready to work together?"
   ------------------------------------------------------------------ */

.ec-band {
	position: relative;
	padding-block: clamp(5rem, 3rem + 7vw, 10rem);
	overflow: hidden;
	background: #161616;
	color: var(--ec-white);
	border-bottom: 3px solid var(--ec-green);
}

.ec-band__media {
	position: absolute;
	inset: 0 0 0 30%;
	overflow: hidden;
}

.ec-band__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.1);
	opacity: 0.55;
}

/* The photograph fades into the black on the left, where the type sits. */
.ec-band__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #161616 0%, rgba(22, 22, 22, 0.6) 40%, rgba(22, 22, 22, 0.2) 100%);
}

.ec-band__inner {
	position: relative;
	z-index: 2;
}

.ec-band__title {
	margin: 0;
	font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.75rem);
	line-height: 1.08;
}

.ec-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ec-sp-1);
	margin-top: var(--ec-sp-5);
}

.ec-btn--dark {
	background: #262626;
	border-color: #262626;
	color: var(--ec-white);
}

.ec-btn--dark:hover {
	background: var(--ec-green-dark);
	border-color: var(--ec-green-dark);
}

/* ------------------------------------------------------------------
   Header: "Get in touch"
   ------------------------------------------------------------------ */

.ec-getintouch {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	font-size: var(--ec-fs-sm);
	font-weight: 500;
}

.ec-getintouch svg {
	transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.ec-getintouch:hover svg {
	transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
	.ec-more__label,
	.ec-more__icon,
	.ec-getintouch svg {
		transition: none;
	}
}
