/* =========================================================================
   Inner pages, ported from Theme B v2 (heroes, news, gallery, albums,
   article type, and the straight-edge overrides). Logical properties only.
   Loaded on every view except the front page, and in the editor.
   ========================================================================= */

:root {
	--section-y: clamp(4rem, 8.1vw, 7.2rem);
	--cut: 0px;
	--fs-h1-inner: clamp(1.9rem, 3.42vw, 2.925rem);
	--grad-end: 90deg;
}

[dir="rtl"] {
	--grad-end: 270deg;
}

/* Section rhythm is 10% tighter from 768px. Phones keep the previous clamp. */
@media (max-width: 767px) {
	:root {
		--section-y: clamp(4rem, 9vw, 8rem);
	}
}

.site-main > *,
.site-main.is-layout-flow > * + * {
	margin-block-start: 0;
}

.h2 {
	font-size: var(--fs-h2);
	line-height: 1.2;
	font-weight: 800;
}

.h3 {
	font-size: var(--fs-h3);
	line-height: 1.4;
	font-weight: 800;
}

.h4 {
	font-size: var(--fs-h4);
	line-height: 1.4;
	font-weight: 800;
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.container--article {
	max-width: 1000px;
}

.icon--flip {
	transform: scaleX(-1);
}

[dir="rtl"] .icon--dir {
	transform: scaleX(-1);
}

[dir="rtl"] .icon--dir.icon--flip {
	transform: none;
}

.btn--light {
	background: var(--white);
	color: var(--hya-green-ink);
}

.btn--light:hover {
	background: var(--mist);
	color: var(--hya-green-deep);
}

.feature-album .btn--light {
	background: var(--white);
	color: var(--hya-green-ink);
	border: 2px solid transparent;
	text-decoration: none;
}

.feature-album .btn--light:hover {
	background: var(--mist);
	color: var(--hya-green-deep);
}

/* The join band is white, so its light button is filled dark green. */
.join-band .btn--light .wp-block-button__link {
	background: var(--night);
	color: var(--white);
	border: 2px solid transparent;
	text-decoration: none;
}

.join-band .btn--light .wp-block-button__link:hover {
	background: var(--night-2);
	color: var(--white);
}

.join-band .btn--lg .wp-block-button__link {
	min-height: 56px;
	padding: 0.9rem 2rem;
	font-size: 1.0625rem;
}

@media (min-width: 768px) {
	.join-band .btn--lg .wp-block-button__link {
		min-height: 50px;
		padding: 0.8rem 1.8rem;
		font-size: 0.95625rem;
	}
}

.join-band .wp-block-button {
	width: auto;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	border-radius: var(--r-pill);
	font: 600 0.9rem / 1.4 var(--font-body);
	text-decoration: none;
	margin: 0;
}

.chip--glass {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--white);
	backdrop-filter: blur(6px);
}

.chip--solid {
	background: var(--white);
	color: var(--ink);
}

.chip--outline {
	background: var(--white);
	border: 1.5px solid var(--line);
	color: var(--ink);
}

a.chip--outline:hover {
	border-color: var(--hya-green-ink);
	color: var(--hya-green-ink);
}

.chip--filter {
	background: var(--white);
	border: 1.5px solid var(--line);
	color: var(--ink);
	min-height: 44px;
	padding-inline: 1.25rem;
}

.chip--filter:hover,
a.chip--filter:hover {
	border-color: var(--hya-green-ink);
	color: var(--ink);
}

.chip--filter[aria-current="page"] {
	background: var(--hya-green-ink);
	border-color: var(--hya-green-ink);
	color: var(--white);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--hya-green-ink);
	white-space: nowrap;
}

.link-arrow .icon {
	transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon--dir:not(.icon--flip) {
	transform: translateX(4px);
}

[dir="rtl"] .link-arrow:hover .icon--dir:not(.icon--flip) {
	transform: scaleX(-1) translateX(4px);
}

.page-hero .link-arrow {
	color: var(--white);
	margin-block-end: 1rem;
}

.round-btn {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--hya-green-ink);
	background: var(--white);
	color: var(--hya-green-ink);
	padding: 0;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.round-btn:hover {
	background: var(--hya-green-ink);
	color: var(--white);
}

.round-btn--light {
	border-color: rgba(255, 255, 255, 0.8);
	background: transparent;
	color: var(--white);
}

.round-btn--light:hover {
	background: var(--white);
	color: var(--hya-green-ink);
}

.round-btn--ghost {
	border-color: var(--line);
	color: var(--ink);
	width: 46px;
	height: 46px;
	background: var(--white);
}

.star {
	width: 1em;
	height: 1em;
	fill: var(--hya-gold);
	flex: none;
}

.page-hero,
.feature-album,
.section--night {
	--focus: var(--white);
}

/* ---------- Page hero (straight bottom edge) ---------- */
.page-hero {
	position: relative;
	z-index: 2;
	background: var(--night);
	color: var(--white);
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding-block: 8.5rem 1.5rem;
}

.page-hero__inner {
	position: relative;
	z-index: 1;
}

.page-hero__media {
	order: 2;
	margin-inline: var(--gutter);
	height: clamp(240px, 68vw, 480px);
	border-radius: var(--r-lg);
	overflow: hidden;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lower part of the frame. Group photos were pinned to the sky. hya_hero_focus overrides this per page. */
.page-hero__media--news img,
.page-hero__media--page img,
.page-hero__media--featured img,
.page-hero__media--about img,
.page-hero__media--join img,
.page-hero__media--contact img {
	object-position: 50% 70%;
}

.page-hero__media--gallery img {
	object-position: 50% 36%;
}

.page-hero__title {
	margin: 0;
	font: 900 var(--fs-h1-inner) / 1.15 var(--font-display);
	max-width: 15em;
	color: var(--white);
	text-wrap: balance;
}

.page-hero__sub {
	margin-block-start: 1rem;
	margin-block-end: 0;
	color: rgba(255, 255, 255, 0.92);
	max-width: 36rem;
}

.page-hero__title--article {
	font-size: clamp(1.45rem, 2.61vw, 2.115rem);
	font-weight: 800;
	line-height: 1.5;
	max-width: 26em;
}

.page-hero--plain {
	padding-block-end: 6rem;
	min-height: 0;
}

.page-hero--compact {
	padding-block-end: 1.5rem;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.88);
}

.crumbs li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.crumbs li:last-child {
	min-width: 0;
}

/* The last crumb is the item's own title: one line, cut with an ellipsis. */
.crumbs li:last-child [aria-current] {
	display: block;
	max-width: min(42ch, 70vw);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.crumbs li + li::before {
	content: "›";
	opacity: 0.75;
}

.crumbs a {
	color: var(--white);
	text-decoration: none;
}

.crumbs a:hover {
	text-decoration: underline;
}

.crumbs [aria-current] {
	color: var(--white);
	font-weight: 600;
}

.meta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1024px) {
	.page-hero {
		display: block;
		/* Tall enough to show the people in the photo whole (client edit 1). */
		min-height: clamp(560px, 78vh, 780px);
		padding-block: 8.75rem 0;
	}

	.page-hero--plain {
		min-height: 0;
		padding-block: 9rem 7.2rem;
	}

	.page-hero--compact {
		padding-block-end: 1.8rem;
	}

	.page-hero__media {
		position: absolute;
		inset-block: 4.5rem 0;
		inset-inline: 0;
		z-index: -2;
		margin: 0;
		height: auto;
		border-radius: 0;
		order: 0;
	}

	/* The title block sits in the vertical middle of the photo (below the header bar). */
	.page-hero:not(.page-hero--plain) {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-block: 4.5rem 0;
	}

}

/* ---------- Photo hero (client edits v4) ----------
   The photo carries no text and no shade. A green band under the header holds the
   logos (the DofE lockup down to «في الأردن»), and the title and the line under it
   sit in a white strip below the photo. The band ends in a straight line with no
   fade into the photo (v5), so heads at the top of a photo stay clear. */
.page-hero.page-hero--photo {
	--focus: var(--hya-green-ink);
	--hero-top: 6.25rem;
	gap: 0;
	padding-block: var(--hero-top) 0;
	background: linear-gradient(var(--night) 0 var(--hero-top), var(--white) var(--hero-top));
	color: var(--ink);
}

.page-hero--photo .page-hero__media {
	position: relative;
	order: 0;
	margin: 0;
	height: clamp(260px, 62vw, 480px);
	border-radius: 0;
}

.page-hero--photo .page-hero__inner {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem) 0.25rem;
}

.page-hero--photo .page-hero__title {
	color: var(--night);
}

.page-hero--photo .page-hero__sub {
	color: var(--ink-soft);
}

@media (min-width: 1024px) {
	.page-hero.page-hero--photo {
		--hero-top: 6.5rem;
		justify-content: flex-start;
		min-height: 0;
	}

	.page-hero--photo .page-hero__media {
		position: relative;
		inset: auto;
		z-index: auto;
		height: clamp(440px, 64vh, 680px);
	}
}

/* ---------- Sections ---------- */
.section {
	padding-block: var(--section-y);
	overflow-x: clip;
}

.section--white {
	background: var(--white);
}

.section--mist {
	background: var(--mist);
}

.section--night {
	background: var(--night);
	color: var(--white);
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-block-end: clamp(2rem, 3.6vw, 3.15rem);
}

.section-head .h2,
.on-dark {
	color: inherit;
}

.section--night .h2,
.feature-album .h2,
.feature-album .h2 a {
	color: var(--white);
	text-decoration: none;
}

.empty {
	padding: 2rem;
	text-align: center;
	color: var(--ink-soft);
}

.page-content .prose {
	max-width: 46rem;
}

/* ---------- News cards ---------- */
.news-grid,
.grid-3,
.grid-4,
.album-grid-list {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.news-grid > *,
.grid-3 > *,
.grid-4 > *,
.album-grid-list > * {
	margin: 0;
	min-width: 0;
	list-style: none;
}

.ncard,
.acard {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--white);
	border-radius: var(--r-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.ncard:hover,
.acard:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.ncard__media,
.acard__media {
	position: relative;
	overflow: hidden;
	background: var(--mist);
	margin: 0;
}

.acard__media .wp-block-post-featured-image,
.article__hero.wp-block-post-featured-image {
	margin: 0;
}

.acard__media .wp-block-post-featured-image {
	height: 100%;
}

.ncard__media {
	aspect-ratio: 16 / 10;
}

.acard__media {
	aspect-ratio: 4 / 3;
}

.ncard__media img,
.acard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}

.ncard:hover .ncard__media img,
.acard:hover .acard__media img {
	transform: scale(1.05);
}

.ncard__body,
.acard__body {
	padding: 1.25rem 1.4rem 1.5rem;
}

.acard__body {
	padding: 1.1rem 1.25rem 1.4rem;
}

.ncard__title,
.acard__title {
	margin: 0;
	font: 600 1.15rem / 1.65 var(--font-display);
}

.acard__title {
	font-size: 1.05rem;
}

.ncard__title a,
.acard__title a {
	color: inherit;
	text-decoration: none;
}

.ncard__title a::after,
.acard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.acard__media .chip {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 2;
	padding: 0.2rem 0.8rem;
	font-size: var(--fs-xs);
}

.ncard__date {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.15rem 0.8rem;
	border-radius: var(--r-pill);
	background: var(--mist);
	color: var(--hya-green-ink);
	font: 600 var(--fs-xs) / 1.7 var(--font-body);
}

.ncard__date time {
	font: inherit;
	color: inherit;
}

.ncard__date--light {
	background: rgba(255, 255, 255, 0.16);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.ncard__ex {
	margin-block-start: 0.6rem;
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.ncard__ex p,
.wp-block-post-excerpt__excerpt {
	margin: 0;
	color: inherit;
	font-size: inherit;
	text-align: justify;
	text-justify: inter-word;
}

.ncard__ex .wp-block-post-excerpt__more-link,
.ncard__ex .wp-block-post-excerpt__more-text {
	display: none;
}

.ncard__ex:not(:has(.wp-block-post-excerpt__excerpt)),
.ncard__ex:has(p:empty) {
	display: none;
}

.news-grid > .wp-block-post:first-child {
	grid-column: 1 / -1;
}

.news-grid > .wp-block-post:first-child .ncard {
	justify-content: flex-end;
	min-height: clamp(440px, 45vw, 558px);
	color: var(--white);
	background: var(--night);
	border: 0;
	isolation: isolate;
}

.news-grid > .wp-block-post:first-child .ncard__media {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	width: 100%;
	height: 66%;
	aspect-ratio: auto;
	z-index: -2;
}

.news-grid > .wp-block-post:first-child .ncard__media img {
	object-position: 50% 80%;
}

.news-grid > .wp-block-post:first-child .ncard::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, var(--night) 0%, var(--night) 30%, rgba(10, 61, 2, 0) 48%);
	pointer-events: none;
}

.news-grid > .wp-block-post:first-child .ncard__body {
	position: relative;
	z-index: 1;
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.news-grid > .wp-block-post:first-child .ncard__ex {
	display: none;
}

.news-grid > .wp-block-post:first-child .ncard__date {
	background: rgba(255, 255, 255, 0.16);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.news-grid > .wp-block-post:first-child .ncard__title,
.news-grid > .wp-block-post:first-child .ncard__title a {
	color: var(--white);
	font: 800 clamp(1.15rem, 1.71vw, 1.44rem) / 1.5 var(--font-display);
}

.news-grid > .wp-block-post:first-child .ncard:hover .ncard__media img {
	transform: scale(1.04);
}

@media (min-width: 640px) {
	.news-grid,
	.grid-3,
	.grid-4,
	.album-grid-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.grid-4,
	.album-grid-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 2rem;
}

.filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination,
.wp-block-query-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
	margin-block-start: 3rem;
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.wp-block-query-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding-inline: 0.4rem;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	text-decoration: none;
	font-weight: 600;
	color: var(--ink);
	background: var(--white);
}

.wp-block-query-pagination .page-numbers:hover {
	border-color: var(--hya-green-ink);
	color: var(--ink);
}

.wp-block-query-pagination .page-numbers.current,
.wp-block-query-pagination .page-numbers[aria-current="page"] {
	background: var(--hya-green-ink);
	border-color: var(--hya-green-ink);
	color: var(--white);
}

.search-band {
	padding-block: 2rem 0;
	background: var(--white);
}

.search-band .wp-block-search {
	max-width: 40rem;
	margin-inline: auto;
}

/* ---------- Article ---------- */
/* The featured image overlaps the bottom of the green hero, as in the static design.
   flow-root stops the image's negative margin from collapsing through the section:
   otherwise the white section itself moves up and covers the end of the hero. */
.article-sec {
	position: relative;
	z-index: 3;
	display: flow-root;
	padding-block: 0 var(--section-y);
}

.article__hero,
.article__hero.wp-block-post-featured-image {
	margin-block-start: -5rem;
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	background: var(--mist);
}

.article__hero img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	height: auto;
}

.article__layout {
	display: grid;
	gap: 2rem;
	margin-block-start: 3rem;
}

.prose--article {
	max-width: 46rem;
	min-width: 0;
}

.prose p,
.prose--article p {
	margin-block-end: 1.1em;
}

.prose--article p {
	font-size: 1.075rem;
	line-height: 2.05;
	color: var(--ink);
	margin-block-end: 1.3em;
	text-align: justify;
	text-justify: inter-word;
}

.prose--article > p:first-child {
	font-size: 1.2rem;
	font-weight: 500;
}

.prose h2,
.prose h3,
.prose h4,
.prose--article h2,
.prose--article h3,
.prose--article h4 {
	margin-block: 2rem 1rem;
	color: var(--ink);
	text-align: start;
}

.prose ul,
.prose ol,
.prose--article ul,
.prose--article ol {
	margin-block: 0 1.2em;
	padding-inline-start: 1.25rem;
}

.prose li + li,
.prose--article li + li {
	margin-block-start: 0.35em;
}

.prose .wp-block-table,
.prose--article .wp-block-table {
	overflow-x: auto;
	margin-block: 1.5rem;
}

.prose table,
.prose--article table {
	width: 100%;
	border-collapse: collapse;
}

.prose th,
.prose td,
.prose--article th,
.prose--article td {
	border: 1px solid var(--line);
	padding: 0.6rem 0.8rem;
	text-align: start;
	vertical-align: top;
}

.prose th,
.prose--article th {
	background: var(--mist);
	font-weight: 600;
}

.prose .wp-block-image,
.prose--article .wp-block-image {
	margin-block: 1.5rem;
}

.prose .wp-block-image img,
.prose--article .wp-block-image img {
	border-radius: var(--r-md);
	width: 100%;
	height: auto;
}

.prose--article .wp-block-gallery.has-nested-images {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr);
	margin-block: 1.5rem;
}

.prose--article .wp-block-gallery.has-nested-images > .wp-block-image {
	width: 100% !important;
	margin: 0;
}

.prose--article .wp-block-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	height: auto;
	border-radius: var(--r-md);
	transition: transform 0.6s var(--ease);
}

.prose--article .wp-block-gallery a:hover img {
	transform: scale(1.05);
}

.article__aside {
	display: grid;
	gap: 0.75rem;
	align-content: start;
	min-width: 0;
}

.article__aside .h4 {
	margin: 0;
}

.share {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.prose--article .wp-block-gallery.has-nested-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.article__layout {
		grid-template-columns: minmax(0, 1fr) 230px;
		gap: 4rem;
	}

	.article__aside {
		position: sticky;
		inset-block-start: 8rem;
		align-self: start;
	}
}

/* ---------- Gallery feature + album ---------- */
.feature-album {
	position: relative;
	background: var(--night);
	color: var(--white);
	padding-block: 3rem var(--section-y);
}

.feature-album::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	height: 4px;
	background: var(--hya-gold);
	pointer-events: none;
}

.feature-album__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}

/* A taller frame pinned to the upper part of the photo, so group photos keep
   their heads whatever the album's cover is (client edits v4). */
.feature-album__media {
	display: block;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.feature-album__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	transition: transform 0.8s var(--ease);
}

.feature-album__media:hover img {
	transform: scale(1.04);
}

.feature-album__body {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
}

.feature-album__meta {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

.feature-album .btn--light .icon {
	color: inherit;
}

@media (min-width: 900px) {
	.feature-album__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 3rem;
	}
}

.acard__meta {
	margin: 0.4rem 0 0;
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.album-grid .wp-block-gallery.has-nested-images {
	display: block;
	column-count: 2;
	column-gap: 0.75rem;
	margin: 0;
}

.album-grid .wp-block-gallery.has-nested-images > .wp-block-image {
	break-inside: avoid;
	display: inline-block;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	flex: none !important;
	margin: 0 0 0.75rem;
}

.album-grid .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > a,
.album-grid .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a,
.album-grid .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	display: block;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	flex: none !important;
	object-fit: unset;
}

.album-grid .wp-block-gallery a {
	display: block;
	border-radius: var(--r-md);
	overflow: hidden;
}

.album-grid .wp-block-gallery img {
	width: 100%;
	height: auto;
	border-radius: 0;
	transition: transform 0.7s var(--ease);
}

.album-grid .wp-block-gallery a:hover img {
	transform: scale(1.04);
}

.album-grid .wp-element-caption,
.album-grid figcaption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.related-posts:not(:has(.wp-block-post)),
.related-albums:not(:has(.wp-block-post)) {
	display: none;
}

@media (min-width: 768px) {
	.album-grid .wp-block-gallery.has-nested-images {
		column-count: 3;
		column-gap: 1rem;
	}

	.album-grid .wp-block-gallery.has-nested-images > .wp-block-image {
		margin-block-end: 1rem;
	}
}

@media (min-width: 1200px) {
	.album-grid .wp-block-gallery.has-nested-images {
		column-count: 4;
	}
}

/* ---------- Video teaser ---------- */
.video {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--night);
	color: var(--white);
	text-decoration: none;
}

.video__poster,
.video__icon {
	pointer-events: none;
}

.video__poster {
	position: absolute;
	inset: 0;
	display: block;
}

.video__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.82;
}

.video__poster--plain {
	display: grid;
	place-items: end start;
	padding: 1.25rem;
	background: linear-gradient(135deg, var(--night) 0%, var(--hya-green-ink) 140%);
	color: rgba(255, 255, 255, 0.9);
	font-weight: 600;
}

.video__icon {
	position: absolute;
	inset: 0;
	margin: auto;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: var(--hya-green-ink);
	color: var(--white);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3);
}

.video__icon .icon {
	width: 30px;
	height: 30px;
}

.video__cap {
	margin-block-start: 0.75rem;
	font: 600 1rem / 1.6 var(--font-display);
	color: var(--ink);
}

/* ---------- Join band ---------- */
.join-band {
	position: relative;
	z-index: 2;
	overflow: hidden;
	background: var(--white);
	color: var(--night);
	border-block-start: 1px solid var(--line);
	padding-block: clamp(4rem, 7.2vw, 6.3rem);
}

.join-band__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.join-band h2,
.join-band p {
	margin-block: 0;
}

.join-band__text {
	font: 800 clamp(1.25rem, 2.07vw, 1.755rem) / 1.55 var(--font-display);
	max-width: 27em;
	color: var(--night);
}

.star--bg {
	position: absolute;
	inset-inline-end: -2rem;
	inset-block-start: -3rem;
	width: clamp(180px, 26vw, 380px);
	height: auto;
	aspect-ratio: 1;
	fill: rgba(10, 61, 2, 0.06);
	pointer-events: none;
}

@media (min-width: 900px) {
	.join-band__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ncard:hover,
	.acard:hover,
	.ncard:hover img,
	.acard:hover img,
	.feature-album__media:hover img,
	.prose--article .wp-block-gallery a:hover img,
	.album-grid .wp-block-gallery a:hover img,
	.link-arrow:hover .icon {
		transform: none;
	}
}
