footer {
	color: rgb(var(--color-white));
	margin: auto auto 0;
	padding: 2rem;
	width: var(--layout-full);
	max-width: calc(100% - 4rem);
	display: grid;
	gap: 1rem;
	grid-template-areas:
	"logo"
	"address"
	"nav"
	"legal";	
	position: relative;
}

footer::before {
	content: ' ';
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	background: rgb(var(--color-purple));
	z-index: -2;
}

footer a {
	color: inherit;
}

footer :focus-visible {
	outline: solid 0.25rem rgba(var(--color-white), 0.8);
}

footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

@media(min-width: 50rem) {
	footer {
		grid-template-areas:
		"logo logo"
		"address nav"
		"legal legal";
		grid-template-columns: 28em 1fr;
	}
}

#footer-logo {
	grid-area: logo;
	max-width: 14em;
}

#footer-logo img {
	display: block;
}

#footer-address {
	grid-area: address;
	font-size: 0.8rem;
}

#nav-foot {
	grid-area: nav;
}

#nav-foot ul {
	margin: 0;
	padding: 0 0 0 1em;
	border-left: solid thin rgb(var(--color-white));
}

#nav-foot li {
	padding: 0;
	margin: 0.5em 0;
}

#nav-foot a {
	text-decoration: none;
	font-size: 1.2rem;
}

#nav-foot a:hover,
#nav-foot a:focus-visible {
	text-decoration: underline;
}

#footer-legal {
	grid-area: legal;
	font-size: 0.8em;
}


/* WP admin adjust */
body.admin-bar {
	min-height: calc(100vh - 32px);
}

.admin-bar header {
	top: 32px;
}

@media (max-width:782px) {
	body.admin-bar {
		min-height: calc(100vh - 46px);
	}

	.admin-bar header {
		top: 46px;
	}
}


/* ============== */
/* Dialog */

::backdrop {
	background-color: rgba(0,0,0,0.5);
}

dialog {
	padding: 0;
	border: 0;
	box-shadow: 0.25rem 0.25rem 0.5rem rgba(0,0,0,0.3);
	margin: auto;
}

dialog > button.close {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1000;
}

#video_dialog_content {
	padding: 0.5rem;
	background-color: #000;
	box-sizing: border-box;
	max-width: 100%;
	width: 60em;
	aspect-ratio: 16/9;
}

dialog iframe {
	display: block;
	width: 100%;
	height: 100%;
}

#lightbox_dialog_content {
	padding: 1rem;
	box-sizing: border-box;
	max-width: 100%;
	width: 60em;
}

/* ============== */
/* Pagination */

.pagination {
	margin: 2rem auto;
	max-width: calc(100% - 2rem);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	text-align: center;
	text-wrap: balance;
	line-height: 2;
}

.pagination .page-numbers {
	padding: 0 0.4em;
	margin: 0 0.25rem
}

.pagination .current {
	font-weight: 700;
}

.pagination .next, 
.pagination .prev {
	text-decoration: none;
}
