/* --------------------------------------------------------------------------
   EVENT page
   -------------------------------------------------------------------------- */
.p-eventPage {
	--kg-event-info-max: 880px;
	--kg-event-maker-gap: 14px;
	--kg-event-maker-media: 96px;
}

.p-eventPage {
	overflow-x: clip;
}

.p-eventPage,
.kg-prototype--event {
	--kg-event-subsection-gap: 60px;
}

.p-eventPage__event {
	display: flow-root;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto var(--kg-event-subsection-gap);
}

.p-eventPage__banner {
	width: 100%;
	margin: 0;
}

.p-eventPage__bannerImage {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

.p-eventPage__summary {
	max-width: var(--kg-event-info-max);
	margin: 0 auto;
	color: var(--kg-color-navy);
	text-align: center;
}

.p-eventPage__banner + .p-eventPage__summary {
	margin-top: var(--kg-content-media-gap);
}

.c-postContent .p-eventPage__summaryName,
.c-postContent .p-eventPage__summaryDate,
.c-postContent .p-eventPage__summaryCaption {
	margin: 0;
}

.c-postContent .p-eventPage__summaryName {
	font-size: clamp(25px, 1.7vw, 30px);
	font-weight: var(--kg-font-weight-heading);
	line-height: 1.55;
	letter-spacing: 0.02em;
}

.p-eventPage__summaryDates {
	margin-top: 14px;
}

.c-postContent .p-eventPage__summaryDate {
	font-size: 18px;
	font-weight: var(--kg-font-weight-base);
	line-height: 1.75;
}

.c-postContent .p-eventPage__summaryCaption {
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.8;
}

.c-postContent .p-eventPage__summary > :first-child {
	margin-top: 0;
}

.p-eventPage__intro {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--kg-event-info-max);
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid var(--kg-color-navy);
	background: #fff;
}

.p-eventPage__cityLogo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 112px;
	background: var(--kg-color-navy);
}

.c-postContent .event-fallback-info .p-eventPage__place {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 112px;
	margin: 0;
	padding: 20px 32px;
	background: var(--kg-color-navy);
	color: #fff;
	font-family: var(--kg-font-serif);
	font-size: 40px;
	font-weight: var(--kg-font-weight-heading);
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-align: center;
}

.p-eventPage__cityWordmark {
	--kg-event-city-glyph-width: 104px;
	--kg-event-city-glyph-height: 84px;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.p-eventPage__cityGlyph {
	position: relative;
	display: block;
	width: var(--kg-event-city-glyph-width);
	height: var(--kg-event-city-glyph-height);
	overflow: hidden;
}

.p-eventPage__cityGlyph img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: var(--kg-event-city-glyph-width);
	max-width: none;
	height: auto;
}

.p-eventPage__cityGlyph--saka img {
	transform: translateY(-50%);
}

.p-eventPage__eventDetails {
	padding: 28px 48px 32px;
	text-align: center;
}

.c-postContent .p-eventPage__eventName,
.c-postContent .p-eventPage__dateTime,
.c-postContent .p-eventPage__venueName,
.c-postContent .event-fallback-info .p-eventPage__eventDetails > * {
	margin: 0;
	color: var(--kg-color-navy);
	text-align: center;
}

.c-postContent .event-fallback-info :is(h2, h3, h4, h5, h6) {
	margin-block: 0;
	padding: 0;
	background: none;
	font-family: inherit;
	font-weight: var(--kg-font-weight-heading);
	letter-spacing: 0.02em;
}

.c-postContent .event-fallback-info :is(h2, h3, h4, h5, h6)::before,
.c-postContent .event-fallback-info :is(h2, h3, h4, h5, h6)::after {
	content: none;
}

.c-postContent .p-eventPage__eventName,
.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child {
	font-family: inherit;
	font-size: clamp(36px, 2.1vw, 40px);
	font-weight: var(--kg-font-weight-heading);
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.p-eventPage__dateTimes {
	margin-top: 14px;
}

.c-postContent .p-eventPage__dateTimes .p-eventPage__dateTime,
.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child ~ :not(:last-child) {
	font-size: 22px;
	font-weight: var(--kg-font-weight-base);
	line-height: 1.7;
}

.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child + :not(:last-child) {
	margin-top: 14px;
}

.c-postContent .p-eventPage__venueName,
.c-postContent .event-fallback-info .p-eventPage__eventDetails > :last-child:not(:first-child) {
	margin-top: 12px;
	font-size: 17px;
	font-weight: var(--kg-font-weight-base);
	line-height: 1.8;
}

.p-eventPage__content > .wp-block-image {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.p-eventPage__content > .event-fallback-info {
	margin-block: 0;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}

.p-eventPage__content > .event-fallback-info .wp-block-group__inner-container {
	max-width: none;
	margin: 0;
	padding: 0;
}

.p-eventPage__content > .event-fallback-info:not(:has(:is(p, h1, h2, h3, h4, h5, h6, li, figure))) {
	display: none;
}

.p-eventPage__content > :is(.wp-block-image:not(.kg-event-material--legacy-hidden), .event-fallback-info) + h2,
.p-eventPage__content > :is(#event-makers, #event-venue) + p + :is(#event-venue, #event-access) {
	margin-block-start: var(--kg-event-subsection-gap);
}

@media (min-width: 1080px) {
	.p-eventPage--post .p-eventPage__content > .wp-block-image:not(.kg-event-material--legacy-hidden):has(+ #event-makers) {
		max-width: 920px;
	}
}

.p-eventPage__content > h2 + p {
	margin-block-end: 0;
}

.p-eventPage__content .wp-block-table :is(th, td:first-child) {
	vertical-align: middle;
}

.p-eventPage__content.c-postContent .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

/* 会場案内・ブースマップ。正方形枠は中央のまま、中の縦長画像だけ中央方向へ寄せる。 */
.p-eventPage__content > .wp-block-gallery.has-nested-images.is-cropped {
	--kg-event-map-preview-pad: var(--kg-common-content-gutter);
	--kg-event-map-preview-gap: 16px;
	justify-content: center;
	gap: var(--kg-event-map-preview-gap);
}

.p-eventPage__content > .wp-block-gallery.has-nested-images.columns-default.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
.p-eventPage__content > .wp-block-gallery.has-nested-images.columns-default.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) {
	flex: 0 0 auto;
	width: calc((100% - var(--kg-event-map-preview-gap)) / 2 * 0.875);
}

.p-eventPage__content > .wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image:not(#individual-image) {
	position: relative;
	display: block;
	align-self: flex-start;
	box-sizing: border-box;
	aspect-ratio: 1 / 1;
	height: auto;
	padding: 0;
	overflow: hidden;
	background: #fff;
}

.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img {
	position: absolute;
	top: var(--kg-event-map-preview-pad);
	display: block;
	width: auto;
	height: calc(100% - (var(--kg-event-map-preview-pad) * 2));
	max-width: calc(100% - (var(--kg-event-map-preview-pad) * 2));
	max-height: calc(100% - (var(--kg-event-map-preview-pad) * 2));
	min-width: 0;
	min-height: 0;
	border-radius: 0;
	aspect-ratio: 3 / 4 !important;
	aspect-ratio: attr(width type(<number>)) / attr(height type(<number>)) !important;
	object-fit: contain;
	object-position: center;
}

.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) img {
	right: var(--kg-event-map-preview-pad);
	left: auto;
	object-position: right center;
}

.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) img {
	left: var(--kg-event-map-preview-pad);
	right: auto;
	object-position: left center;
}

/* 旧固定ページのみ。CPTでは本文に追加したボタンをそのまま表示する。 */
.p-eventPage:not(.p-eventPage--post) .p-eventPage__content > .wp-block-gallery.has-nested-images.is-cropped + .wp-block-buttons {
	display: none;
}

.p-eventPage__content.c-postContent > .kg-event-venue + .wp-block-buttons:is(.is-style-kakugoten-download, :has(> .wp-block-button.is-style-kakugoten-download)) {
	margin-block-start: var(--kg-event-cta-gap);
}

.p-eventPage__content.c-postContent :is(.wp-block-button.is-style-kakugoten-download, .wp-block-buttons.is-style-kakugoten-download > .wp-block-button):not([class*="wp-block-button__width-"]) {
	width: min(var(--kg-cta-width), 100%);
}

.p-eventPage__content.c-postContent :is(.wp-block-button.is-style-kakugoten-download, .wp-block-buttons.is-style-kakugoten-download > .wp-block-button) > .wp-block-button__link {
	min-height: var(--kg-cta-height);
}

@supports (anchor-name: --kg-zoom-image) {
	.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped .wp-lightbox-container .lightbox-trigger {
		top: anchor(--kg-zoom-image top) !important;
		left: anchor(--kg-zoom-image right) !important;
	}
}

/* WordPressが選択中のサムネイルに付けるクラスで、会場案内の拡大表示を限定する。 */
.p-eventPage__content .kg-event-venue .wp-lightbox-container > img.hide {
	visibility: hidden;
}

body:has(.p-eventPage__content .kg-event-venue .wp-lightbox-container > img:is(.hide, .show)) .c-menuButton {
	visibility: hidden;
}

body:has(.p-eventPage__content .kg-event-venue .wp-lightbox-container > img:is(.hide, .show)) .wp-lightbox-overlay {
	--kg-event-lightbox-close-size: 44px;
	--kg-event-lightbox-control-opacity: 60%;
	--kg-event-lightbox-side-offset: clamp(0px, calc(6.25vw - 30px), 24px);
	--kg-event-lightbox-close-top: calc(env(safe-area-inset-top) + var(--ark-adminbar_height, 0px) + 12px);
	--kg-event-lightbox-image-inset: calc(var(--kg-event-lightbox-side-offset) + 36px + max(env(safe-area-inset-left), env(safe-area-inset-right)));
	--kg-event-lightbox-image-top: calc(var(--kg-event-lightbox-close-top) + var(--kg-event-lightbox-close-size) + 20px);
	touch-action: none;

	& :is(.lightbox-image-container, .lightbox-image-container > .wp-block-image, .lightbox-image-container img) {
		max-width: min(90vw, calc(100vw - 2 * var(--kg-event-lightbox-image-inset)));
		max-height: min(90vh, calc(100vh - 2 * var(--kg-event-lightbox-image-top)));
	}

	& .lightbox-image-container img {
		translate: var(--kg-event-lightbox-pan, 0 0);
		scale: var(--kg-event-lightbox-scale, 1);
	}

	& .wp-lightbox-close-button {
		top: var(--kg-event-lightbox-close-top);
		right: max(var(--kg-menu-button-right), env(safe-area-inset-right));
		width: var(--kg-menu-button-width);
		height: var(--kg-event-lightbox-close-size);
		min-height: var(--kg-event-lightbox-close-size);
		padding: 0;
	}

	&.kg-event-lightbox-is-zoomed .wp-lightbox-close-button {
		--kg-event-lightbox-close-background: color-mix(in srgb, var(--kg-color-navy) var(--kg-event-lightbox-control-opacity), transparent);
		border-radius: 4px;
		background: var(--kg-event-lightbox-close-background);
		box-shadow: 0 0 0 4px var(--kg-event-lightbox-close-background);
	}

	& .wp-lightbox-close-icon svg {
		display: none;
	}

	& .wp-lightbox-close-button::before,
	& .wp-lightbox-close-button::after {
		position: absolute;
		top: 50%;
		left: 50%;
		width: calc(var(--kg-menu-button-width) * 1.06418);
		height: 1px;
		background: currentColor;
		transform: translate(-50%, -50%) rotate(var(--kg-event-lightbox-close-angle));
		content: "";
		pointer-events: none;
	}

	& .wp-lightbox-close-button::before {
		--kg-event-lightbox-close-angle: 20deg;
	}

	& .wp-lightbox-close-button::after {
		--kg-event-lightbox-close-angle: -20deg;
	}

	& .wp-lightbox-navigation-button {
		top: 50%;
		bottom: auto;
		width: 48px;
		height: 48px;
		min-width: 0;
		min-height: 0;
		padding: 0;
		border-radius: 50%;
		background: transparent;
		transform: translateY(-50%);
	}

	& .wp-lightbox-navigation-button-prev {
		left: calc(env(safe-area-inset-left) + var(--kg-event-lightbox-side-offset));
	}

	& .wp-lightbox-navigation-button-next {
		right: calc(env(safe-area-inset-right) + var(--kg-event-lightbox-side-offset));
	}

	& .wp-lightbox-navigation-icon {
		display: none;
	}

	& .wp-lightbox-navigation-text {
		position: absolute;
		clip-path: inset(50%);
	}

	/* TOPの「これまでの歩み」と同じ赤い丸と白い山形。 */
	& .wp-lightbox-navigation-button::before {
		position: absolute;
		inset: 0;
		width: clamp(40px, 4vw, 48px);
		aspect-ratio: 1;
		margin: auto;
		border-radius: 50%;
		background: color-mix(in srgb, var(--kg-color-red) var(--kg-event-lightbox-control-opacity), transparent);
		content: "";
	}

	& .wp-lightbox-navigation-button::after {
		position: relative;
		width: clamp(12px, 1.25vw, 16px);
		aspect-ratio: 1;
		border-bottom: 1px solid currentColor;
		border-left: 1px solid currentColor;
		transform: translateX(2px) rotate(45deg);
		content: "";
	}

	& .wp-lightbox-navigation-button-next::after {
		transform: translateX(-2px) rotate(225deg);
	}

	@media (prefers-reduced-motion: no-preference) {
		/* 拡大画像とサムネイルの表示寸法が異なるため、同じ位置と倍率で閉じる。 */
		&.zoom.show-closing-animation:not(.active) .lightbox-image-container {
			animation: lightbox-zoom-in 0.4s ease both paused, kg-event-lightbox-image-out 0.4s ease both;
		}

		&.active .wp-lightbox-close-button::before,
		&.active .wp-lightbox-close-button::after {
			animation: kg-event-lightbox-close-in 0.3s ease both;
		}

		&.show-closing-animation:not(.active) .wp-lightbox-close-button::before,
		&.show-closing-animation:not(.active) .wp-lightbox-close-button::after {
			visibility: visible;
			animation: kg-event-lightbox-close-out 0.3s ease both;
		}
	}
}

@keyframes kg-event-lightbox-image-out {
	from {
		opacity: 1;
		visibility: visible;
	}

	to {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes kg-event-lightbox-close-in {
	from {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(0);
	}
}

@keyframes kg-event-lightbox-close-out {
	to {
		opacity: 0;
		transform: translate(-50%, -50%) rotate(0);
	}
}

.p-eventPage__content > :first-child {
	margin-top: 0;
}

.p-eventPage__makersBlock {
	margin-top: var(--kg-content-page-section-gap);
}

.p-eventPage__content > .p-eventPage__makersBlock:first-child {
	margin-top: 0;
}

.p-eventPage__makersBlock > h2 {
	margin-block-start: 0;
}

.p-eventPage__content > h2:first-child,
.p-eventPage__content > .p-eventPage__event + h2,
.kg-prototype--event .c-postContent > .p-eventPage__event + h2 {
	margin-block-start: 0;
}

.p-eventPage__makers {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--kg-event-maker-gap);
	margin: var(--kg-content-heading-gap) 0 0;
	padding: 0;
	list-style: none;
}

.c-postContent .p-eventPage__maker {
	min-width: 0;
	margin: 0;
	line-height: 1.5;
}

.c-postContent .p-eventPage__makerLink,
.c-postContent a.p-eventPage__makerLink {
	display: grid;
	grid-template-columns: var(--kg-event-maker-media) minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	height: 100%;
	min-height: calc(var(--kg-event-maker-media) + 16px);
	padding: 7px 14px 7px 7px;
	border: 1px solid color-mix(in srgb, var(--kg-color-navy) 24%, transparent);
	background: #fff;
	color: var(--kg-color-navy);
	text-decoration: none;
	transition: border-color 180ms ease, background-color 180ms ease;
}

.p-eventPage__makerMedia {
	display: block;
	width: var(--kg-event-maker-media);
	height: var(--kg-event-maker-media);
	overflow: hidden;
	background: #e9eaea;
}

.p-eventPage__makerMedia--placeholder {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 58%),
		#e9eaea;
}

.p-eventPage__makerImage {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-eventPage__makerCopy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-family: var(--kg-font-serif);
	text-align: center;
}

.p-eventPage__makerPrefecture {
	width: 100%;
	margin-bottom: 3px;
	color: var(--kg-color-navy);
	font-weight: var(--kg-font-weight-emphasis);
	line-height: 1.5;
	letter-spacing: normal;
}

.p-eventPage__makerName {
	width: 100%;
	min-width: 0;
	color: var(--kg-color-text);
	font-weight: var(--kg-font-weight-emphasis);
	line-height: 1.6;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.p-eventPage__makerBrand {
	width: 100%;
	min-width: 0;
	color: var(--kg-color-muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.c-postContent a.p-eventPage__makerLink:hover,
.c-postContent a.p-eventPage__makerLink:focus-visible {
	border-color: var(--kg-color-navy);
	background: color-mix(in srgb, var(--kg-color-navy) 4%, #fff);
	color: var(--kg-color-navy);
}

.c-postContent a.p-eventPage__makerLink:focus-visible {
	outline: 2px solid var(--kg-color-red);
	outline-offset: 3px;
}

.p-eventPage__map,
.p-eventPage__content .wp-block-html:has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"]),
.p-eventPage__content .wp-block-embed:has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"]),
.p-eventPage__content > :is(p, div):has(> iframe[src*="google.com/maps"], > iframe[src*="maps.google.com"]),
.p-eventPage__content > iframe[src*="google.com/maps"],
.p-eventPage__content > iframe[src*="maps.google.com"] {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	height: 480px;
	margin: var(--kg-content-media-gap) 0 0 -50vw;
	padding: 0;
	overflow: hidden;
	background: var(--kg-color-paper-soft);
	font-size: 0;
	line-height: 0;
	text-align: left;
}

.p-eventPage__map > iframe,
.p-eventPage__content .wp-block-html:has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"]) > iframe,
.p-eventPage__content .wp-block-embed:has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"]) > iframe,
.p-eventPage__content > :is(p, div):has(> iframe[src*="google.com/maps"], > iframe[src*="maps.google.com"]) > iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.p-eventPage__content > iframe[src*="google.com/maps"],
.p-eventPage__content > iframe[src*="maps.google.com"] {
	display: block;
	border: 0;
}

.p-eventPage__content > .wp-block-table + :is(
	.p-eventPage__map,
	iframe[src*="google.com/maps"],
	iframe[src*="maps.google.com"],
	:is(p, div, .wp-block-embed):has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"])
) {
	margin-block-start: max(28px, calc(var(--kg-content-subsection-gap) / 2));
}

@media (max-width: 1079px) {
	.p-eventPage {
		--kg-event-info-max: 760px;
		--kg-event-maker-media: 90px;
	}

	.p-eventPage__cityLogo {
		min-height: 104px;
	}

	.c-postContent .event-fallback-info .p-eventPage__place {
		min-height: 104px;
		font-size: 36px;
	}

	.p-eventPage__cityWordmark {
		--kg-event-city-glyph-width: 94px;
		--kg-event-city-glyph-height: 76px;
	}

	.c-postContent .p-eventPage__eventName,
	.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child {
		font-size: 36px;
	}

	.c-postContent .p-eventPage__dateTimes .p-eventPage__dateTime,
	.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child ~ :not(:last-child) {
		font-size: 20px;
	}

	.p-eventPage__makers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.p-eventPage {
		--kg-event-maker-gap: 10px;
	}

	.p-eventPage__content > #event-access + .wp-block-table :is(th, td:first-child),
	.kg-prototype--event #kg-event-access-title + .wp-block-table :is(th, td:first-child) {
		font-weight: var(--kg-font-weight-emphasis);
	}

	.c-postContent .p-eventPage__summaryName {
		font-size: 22px;
		line-height: 1.55;
	}

	.p-eventPage__summaryDates {
		margin-top: 12px;
	}

	.c-postContent .p-eventPage__summaryDate {
		font-size: 15px;
		line-height: 1.75;
	}

	.c-postContent .p-eventPage__summaryCaption {
		margin-top: 8px;
		font-size: 14px;
	}

	.p-eventPage__cityLogo {
		min-height: 88px;
	}

	.c-postContent .event-fallback-info .p-eventPage__place {
		min-height: 88px;
		padding: 16px 20px;
		font-size: 30px;
		letter-spacing: 0.08em;
	}

	.p-eventPage__cityWordmark {
		--kg-event-city-glyph-width: 72px;
		--kg-event-city-glyph-height: 58px;

		gap: 6px;
	}

	.p-eventPage__eventDetails {
		padding: 24px 16px 28px;
	}

	.c-postContent .p-eventPage__eventName,
	.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child {
		font-size: clamp(25px, 7vw, 30px);
		line-height: 1.5;
	}

	.p-eventPage__dateTimes {
		margin-top: 14px;
	}

	.c-postContent .p-eventPage__dateTimes .p-eventPage__dateTime,
	.c-postContent .event-fallback-info .p-eventPage__eventDetails > :first-child ~ :not(:last-child) {
		font-size: clamp(14px, 3.8vw, 16px);
		line-height: 1.8;
		white-space: nowrap;
	}

	.c-postContent .p-eventPage__venueName,
	.c-postContent .event-fallback-info .p-eventPage__eventDetails > :last-child:not(:first-child) {
		margin-top: 10px;
		font-size: 15px;
	}

	.p-eventPage__makers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.p-eventPage__content > .wp-block-gallery.has-nested-images.is-cropped {
		--kg-event-map-preview-gap: 20px;
	}

	.p-eventPage__content > .wp-block-gallery.has-nested-images.is-cropped.kg-event-venue {
		--kg-event-map-preview-gap: 10px;
	}

	.p-eventPage__content > .wp-block-gallery.has-nested-images.columns-default.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
	.p-eventPage__content > .wp-block-gallery.has-nested-images.columns-default.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) {
		width: 100%;
	}

	.p-eventPage__content > .wp-block-gallery.has-nested-images.columns-default.is-cropped.kg-event-venue > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2),
	.p-eventPage__content > .wp-block-gallery.has-nested-images.columns-default.is-cropped.kg-event-venue > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) {
		width: calc((100% - var(--kg-event-map-preview-gap)) / 2);
		aspect-ratio: auto;
	}

	.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) img,
	.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) img {
		right: auto;
		left: 50%;
		object-position: center;
		transform: translateX(-50%);
	}

	.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped.kg-event-venue > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) img,
	.p-eventPage__content.c-postContent > .wp-block-gallery.has-nested-images.is-cropped.kg-event-venue > figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) img {
		position: static;
		width: 100%;
		height: auto;
		max-width: 100%;
		max-height: none;
		transform: none;
	}

	.c-postContent .p-eventPage__makerLink,
	.c-postContent a.p-eventPage__makerLink {
		grid-template-areas:
			"media"
			"copy";
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto minmax(64px, auto);
		align-items: stretch;
		gap: 0;
		min-height: 0;
		padding: 6px;
	}

	.p-eventPage__makerMedia {
		grid-area: media;
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.p-eventPage__makerCopy {
		grid-area: copy;
		justify-content: center;
		gap: 2px;
		padding: 6px 3px;
	}

	.p-eventPage__makerName {
		line-height: 1.55;
	}

	.p-eventPage__makerBrand {
		line-height: 1.5;
	}

	.p-eventPage__map,
	.p-eventPage__content .wp-block-html:has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"]),
	.p-eventPage__content .wp-block-embed:has(iframe[src*="google.com/maps"], iframe[src*="maps.google.com"]),
	.p-eventPage__content > :is(p, div):has(> iframe[src*="google.com/maps"], > iframe[src*="maps.google.com"]),
	.p-eventPage__content > iframe[src*="google.com/maps"],
	.p-eventPage__content > iframe[src*="maps.google.com"] {
		height: clamp(240px, 75vw, 320px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.c-postContent .p-eventPage__makerLink {
		transition: none;
	}
}

.kg-event-description,
.kg-event-preview-note { max-width: var(--kg-event-info-max); margin-inline: auto; }
.kg-event-description { margin-block: var(--kg-content-media-gap); }
.kg-event-preview-note { margin-block: var(--kg-content-media-gap) var(--kg-event-subsection-gap); text-align: center; }

/* 旧大阪ページで非表示だった関連資料。本文の画像ブロックでは編集可能にする。 */
.p-eventPage__content > .kg-event-material--legacy-hidden { display: none; }
