/*
Theme Name: The Agency v2
Description: Block theme for The Agency.
Version: 0.3.0
Requires at least: 7.1
Requires PHP: 8.4
Text Domain: the-agency-v2
Domain Path: /languages
*/

/* Base ---------------------------------------------------------------- */

:root {
	--ta-radius: 1.25rem;
	--ta-shadow: 0 1px 2px rgb(36 27 29 / 0.05), 0 8px 24px rgb(36 27 29 / 0.06);
}

html {
	scroll-behavior: smooth;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--teal-dark);
	outline-offset: 3px;
	border-radius: 4px;
}

.ta-main {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

.ta-main > * + * {
	margin-block-start: var(--wp--preset--spacing--60);
}

.ta-main.ta-prose > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.ta-post-date {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.ta-pagination {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Header: the blossom band and its translucent panel ------------------- */

.ta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(1.25rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
	background-color: var(--wp--preset--color--surface);
	background-image: url("assets/images/blossom-960.webp");
	background-position: center 40%;
	background-size: cover;
}

@media (min-width: 768px) {
	.ta-band {
		background-image: url("assets/images/blossom-1920.webp");
	}
}

.ta-panel {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding: 0.5rem clamp(0.75rem, 2.5vw, 1.75rem);
	align-items: center;
	position: relative;
	isolation: isolate;
}

/*
 * The blur sits on a pseudo-element because backdrop-filter on the panel itself would
 * trap the full-screen mobile menu inside the panel.
 */
.ta-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: var(--ta-radius);
	background: rgb(255 255 255 / 0.8);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/*
 * Lifts the open mobile menu above the rest of the page. iOS Safari also clips the fixed
 * full-screen menu to the band's overflow: hidden, and the blur's compositing layer makes
 * that worse, so both are off while the menu is open. The menu hides them anyway.
 */
.ta-band:has(.is-menu-open) {
	z-index: 100000;
	overflow: visible;
}

.ta-band:has(.is-menu-open) .ta-panel::before {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.ta-logo {
	display: block;
	flex: none;
}

.ta-logo img {
	display: block;
	width: auto;
	height: clamp(5rem, 11vw, 8rem);
}

/* Navigation ----------------------------------------------------------- */

.ta-nav {
	font-weight: 500;
	letter-spacing: 0.03em;
}

.ta-nav .wp-block-navigation__container {
	gap: clamp(0.75rem, 2.5vw, 2rem);
}

.ta-nav .wp-block-navigation-item__content {
	padding-block: 0.4rem;
	text-decoration: none;
	text-transform: uppercase;
	border-block-end: 3px solid transparent;
}

.ta-nav .wp-block-navigation-item__content:hover {
	border-block-end-color: var(--wp--preset--color--teal);
}

.ta-nav .current-menu-item > .wp-block-navigation-item__content {
	border-block-end-color: var(--wp--preset--color--primary);
}

.ta-nav .wp-block-navigation__responsive-container-open {
	display: flex;
	padding: 0.6rem;
	border-radius: 0.75rem;
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--primary);
}

@media (min-width: 600px) {
	.ta-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}
}

.ta-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
}

.ta-nav .is-menu-open .wp-block-navigation__container {
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
}

/* Language switcher: an SV | EN pill after the nav ------------------- */

.ta-lang {
	display: flex;
	flex: none;
	margin-inline-start: clamp(0.75rem, 2.5vw, 2rem);
	padding: 3px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1;
}

.ta-lang a {
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ta-lang a:hover {
	color: var(--wp--preset--color--teal-dark);
	background: var(--wp--preset--color--teal-soft);
}

.ta-lang a.is-current {
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--primary);
}

/* On phones the pill sits between the logo and the menu button. */
@media (max-width: 599px) {
	.ta-lang {
		order: 1;
		margin-inline: auto 0.75rem;
	}

	.ta-panel > .ta-nav {
		order: 2;
	}
}

/* The full-screen menu covers the panel, so the pill has nothing to show there. */
.ta-band:has(.is-menu-open) .ta-lang {
	visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.ta-lang a {
		transition: none;
	}
}

/* Petals: decoration only, off when motion is reduced ------------------ */

/* In front of the panel, since it would hide them. They can't block clicks. */
.ta-petals {
	/* About the height of the band, so petals don't spend time out of sight below it. */
	--ta-petal-fall: clamp(11rem, 24vw, 19rem);

	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

/* The petals would otherwise fall across the open full-screen mobile menu. */
.ta-band:has(.is-menu-open) .ta-petals {
	display: none;
}

.ta-petals span,
.ta-side-petals span {
	position: absolute;
	top: -1.5rem;
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 70% 0;
	background: var(--ta-petal-color, #f08fab);
	opacity: 0;
	animation:
		ta-petal-fall var(--ta-petal-time) linear var(--ta-petal-delay) infinite,
		ta-petal-sway calc(var(--ta-petal-time) / 3) ease-in-out var(--ta-petal-delay) infinite alternate;
}

.ta-petals span:nth-child(1) { left: 4%; scale: 1; --ta-petal-time: 14s; --ta-petal-delay: 0s; }
.ta-petals span:nth-child(2) { left: 11%; scale: 0.7; --ta-petal-time: 16s; --ta-petal-delay: -6s; --ta-petal-color: #f7b8c9; }
.ta-petals span:nth-child(3) { left: 19%; scale: 0.85; --ta-petal-time: 12s; --ta-petal-delay: -9s; }
.ta-petals span:nth-child(4) { left: 26%; scale: 0.6; --ta-petal-time: 17s; --ta-petal-delay: -3s; }
.ta-petals span:nth-child(5) { left: 33%; scale: 1; --ta-petal-time: 13s; --ta-petal-delay: -11s; --ta-petal-color: #f7b8c9; }
.ta-petals span:nth-child(6) { left: 41%; scale: 0.75; --ta-petal-time: 15s; --ta-petal-delay: -1s; }
.ta-petals span:nth-child(7) { left: 48%; scale: 0.9; --ta-petal-time: 11s; --ta-petal-delay: -7s; }
.ta-petals span:nth-child(8) { left: 55%; scale: 0.65; --ta-petal-time: 16s; --ta-petal-delay: -13s; --ta-petal-color: #f7b8c9; }
.ta-petals span:nth-child(9) { left: 62%; scale: 1; --ta-petal-time: 14s; --ta-petal-delay: -4s; }
.ta-petals span:nth-child(10) { left: 69%; scale: 0.7; --ta-petal-time: 12s; --ta-petal-delay: -10s; }
.ta-petals span:nth-child(11) { left: 76%; scale: 0.85; --ta-petal-time: 17s; --ta-petal-delay: -15s; --ta-petal-color: #f7b8c9; }
.ta-petals span:nth-child(12) { left: 83%; scale: 0.6; --ta-petal-time: 13s; --ta-petal-delay: -2s; }
.ta-petals span:nth-child(13) { left: 90%; scale: 0.95; --ta-petal-time: 15s; --ta-petal-delay: -8s; }
.ta-petals span:nth-child(14) { left: 96%; scale: 0.7; --ta-petal-time: 11s; --ta-petal-delay: -5s; --ta-petal-color: #f7b8c9; }

@media (max-width: 767px) {
	.ta-petals span:nth-child(even) {
		display: none;
	}
}

/*
 * The same petals keep falling down the page margins, over the first screen height, and
 * scroll away with the page. Use position: fixed and inset: 0 to pin them to the window
 * instead. Each strip
 * fills the space beside the wide content and clips its petals, so none reach the content.
 * Narrower windows have no room for them.
 */
.ta-side-petals {
	--ta-petal-fall: calc(100vh + 1.5rem);

	display: none;
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 100vh;
	z-index: 1;
	pointer-events: none;
}

@media screen and (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
	.ta-side-petals {
		display: block;
	}
}

/* On paper the header petals would only cover the logo and menu. */
@media print {
	.ta-petals {
		display: none;
	}
}

.ta-side-petals > div {
	position: absolute;
	top: 0;
	bottom: 0;
	width: calc((100% - var(--wp--style--global--wide-size)) / 2 - 1rem);
	overflow: hidden;
}

.ta-side-petals > div:first-child { left: 0; }
.ta-side-petals > div:last-child { right: 0; }

.ta-side-petals > div:first-child span:nth-child(1) { left: 18%; scale: 0.9; --ta-petal-time: 34s; --ta-petal-delay: -4s; }
.ta-side-petals > div:first-child span:nth-child(2) { left: 62%; scale: 0.7; --ta-petal-time: 29s; --ta-petal-delay: -17s; --ta-petal-color: #f7b8c9; }
.ta-side-petals > div:first-child span:nth-child(3) { left: 35%; scale: 1; --ta-petal-time: 38s; --ta-petal-delay: -26s; }
.ta-side-petals > div:first-child span:nth-child(4) { left: 78%; scale: 0.6; --ta-petal-time: 31s; --ta-petal-delay: -9s; }
.ta-side-petals > div:first-child span:nth-child(5) { left: 48%; scale: 0.8; --ta-petal-time: 40s; --ta-petal-delay: -33s; --ta-petal-color: #f7b8c9; }
.ta-side-petals > div:last-child span:nth-child(1) { left: 70%; scale: 0.8; --ta-petal-time: 32s; --ta-petal-delay: -12s; --ta-petal-color: #f7b8c9; }
.ta-side-petals > div:last-child span:nth-child(2) { left: 25%; scale: 1; --ta-petal-time: 37s; --ta-petal-delay: -2s; }
.ta-side-petals > div:last-child span:nth-child(3) { left: 52%; scale: 0.65; --ta-petal-time: 28s; --ta-petal-delay: -21s; }
.ta-side-petals > div:last-child span:nth-child(4) { left: 15%; scale: 0.75; --ta-petal-time: 39s; --ta-petal-delay: -30s; --ta-petal-color: #f7b8c9; }
.ta-side-petals > div:last-child span:nth-child(5) { left: 82%; scale: 0.9; --ta-petal-time: 33s; --ta-petal-delay: -7s; }

@keyframes ta-petal-fall {
	0% { opacity: 0; transform: translateY(0) rotate(0); }
	8% { opacity: 0.75; }
	92% { opacity: 0.75; }
	100% { opacity: 0; transform: translateY(var(--ta-petal-fall)) rotate(320deg); }
}

@keyframes ta-petal-sway {
	from { translate: -0.9rem 0; }
	to { translate: 0.9rem 0; }
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.ta-petals {
		display: none;
	}
}

/* Home ----------------------------------------------------------------- */

.ta-intro.ta-intro {
	max-width: 46rem;
	margin-inline: auto;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
	text-align: center;
	text-wrap: balance;
}

.ta-focus > h2,
.ta-more-events > h2,
.ta-past-events > h2 {
	margin-block: 0 var(--wp--preset--spacing--40);
}

/* Without upcoming events the section would be a heading and nothing else. */
.ta-more-events:not(:has(.wp-block-post)) {
	display: none;
}

.ta-page-text {
	font-size: var(--wp--preset--font-size--medium);
}

.ta-all-events {
	margin-block-start: var(--wp--preset--spacing--40);
	font-weight: 600;
}

.ta-all-events a::after {
	content: " →";
}

/* "Bildspel" gallery style. A sideways strip that works without JavaScript;
   assets/js/slideshow.js adds an endless loop, arrows and autoplay on top. Every photo has
   the same height and keeps its own shape, so nobody's head gets cropped. */

.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow {
	--ta-slide-gap: var(--wp--style--unstable-gallery-gap, 16px);
	flex-wrap: nowrap;
	gap: var(--ta-slide-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--line) transparent;
	padding-block-end: 0.5rem;
}

.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow {
	--ta-slide-height: clamp(14rem, 55vw, 30rem);
	--ta-slide-max: 88%;
}

@media (min-width: 900px) {
	.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow {
		--ta-slide-max: 80%;
	}
}

.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow figure.wp-block-image:not(#individual-image) {
	flex: 0 0 auto;
	width: auto;
	height: var(--ta-slide-height);
	max-width: var(--ta-slide-max);
	margin: 0;
	scroll-snap-align: center;
	border-radius: var(--ta-radius);
	overflow: hidden;
	transition: opacity 0.3s ease;
}

/* The width and height attributes give each photo its shape before it loads. Only a photo
   wider than --ta-slide-max is trimmed, keeping the upper part where faces usually are. */
.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow figure.wp-block-image:not(#individual-image) img {
	flex: none;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	cursor: zoom-in;
}

/* Only dimmed once the script marks the middle photo, so without it every photo stays clear. */
.ta-slideshow.has-controls .wp-block-gallery figure.wp-block-image:not(.is-current):not(:hover):not(:focus-within) {
	opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow figure.wp-block-image:not(#individual-image) {
		transition: none;
	}
}

.ta-slideshow {
	position: relative;
}

/* With the arrows in place the scrollbar is only clutter. Swiping still works. */
.ta-slideshow.has-controls .wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow {
	scrollbar-width: none;
	padding-block-end: 0;
}

.ta-slideshow.has-controls .wp-block-gallery::-webkit-scrollbar {
	display: none;
}

.ta-slideshow__button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--wp--preset--color--primary-dark);
	background: var(--wp--preset--color--pink-soft);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--ta-shadow);
	cursor: pointer;
}

.ta-slideshow__button:hover {
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--primary-dark);
}

.ta-slideshow__prev,
.ta-slideshow__next {
	top: 50%;
	translate: 0 -50%;
}

.ta-slideshow__prev { left: 0.75rem; }
.ta-slideshow__next { right: 0.75rem; }

.ta-slideshow__toggle {
	right: 0.75rem;
	bottom: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
}

/* Pause bars, or a play triangle while paused. */
.ta-slideshow__toggle span {
	width: 0.75rem;
	height: 0.8rem;
	border-inline: 0.25rem solid currentcolor;
}

.ta-slideshow__toggle.is-paused span {
	width: 0;
	height: 0;
	margin-inline-start: 0.2rem;
	border-block: 0.45rem solid transparent;
	border-inline: 0.7rem solid currentcolor;
	border-inline-end: 0;
}

/* Core's lightbox, which only slideshow photos open in. Core sets the scrim to the page
   background and the buttons to the text colour inline; a dark scrim tones the page down. */
.wp-lightbox-overlay .scrim {
	background-color: var(--wp--preset--color--contrast) !important;
}

.wp-lightbox-overlay .wp-lightbox-close-button,
.wp-lightbox-overlay .wp-lightbox-navigation-button {
	color: var(--wp--preset--color--surface);
	fill: var(--wp--preset--color--surface) !important;
}

.wp-lightbox-overlay button:focus-visible {
	outline-color: var(--wp--preset--color--pink-soft);
}

.wp-lightbox-overlay .lightbox-image-container img {
	border-radius: var(--ta-radius);
}

@media print {
	.ta-slideshow__button {
		display: none;
	}

	.wp-block-gallery.wp-block-gallery.has-nested-images.is-style-slideshow {
		flex-wrap: wrap;
		overflow: visible;
	}
}

.ta-join {
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--ta-radius);
	text-align: center;
	background: var(--wp--preset--color--pink-soft);
}

.ta-join > h2 {
	margin-block-start: 0;
}

.ta-join .wp-block-buttons {
	justify-content: center;
}

.ta-join .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--primary-dark);
	background: transparent;
	border: 2px solid currentcolor;
}

.ta-join .is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
}

/* Event cards ---------------------------------------------------------- */

.wp-block-query .wp-block-post-template {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-post {
	container-type: inline-size;
}

.ta-card {
	display: grid;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ta-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--ta-shadow);
}

.ta-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: var(--wp--preset--spacing--40);
}

.ta-card__body > * {
	margin-block: 0;
}

.ta-card__image {
	order: -1;
	margin: 0;
}

/* The crop keeps the upper part, where faces usually are. */
.ta-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 15%;
}

@container (min-width: 46rem) {
	.ta-card:has(.ta-card__image) {
		grid-template-columns: 1fr minmax(0, 24rem);
	}

	.ta-card__image {
		order: 0;
	}
}

.ta-card__title a {
	text-decoration: none;
}

.ta-card__title a:hover {
	text-decoration: underline;
}

.ta-card__excerpt p {
	margin: 0;
}

.ta-button.ta-button,
.wp-block-read-more.ta-button {
	display: inline-block;
	padding: 0.6rem 1.3rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--primary);
}

.ta-button.ta-button:hover,
.wp-block-read-more.ta-button:hover {
	color: var(--wp--preset--color--surface);
	background: var(--wp--preset--color--primary-dark);
}

.ta-empty {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--ta-radius);
	background: var(--wp--preset--color--sand);
}

/* Past events are quieter than upcoming ones. */
.ta-past-events {
	margin-block-start: var(--wp--preset--spacing--60);
}

.ta-past-events:not(:has(.wp-block-post)) {
	display: none;
}

.ta-past-events .ta-card {
	box-shadow: none;
	background: transparent;
}

.ta-past-events .ta-card__image {
	display: none;
}

.ta-past-events .ta-button {
	display: none;
}

/* Date and place line -------------------------------------------------- */

.ta-event-meta p {
	margin: 0;
}

.ta-event-meta__time {
	font-weight: 600;
}

.ta-event-meta__place {
	color: var(--wp--preset--color--muted);
}

.ta-event-meta__place.is-online {
	display: inline-block;
	margin-block-start: 0.35rem;
	padding: 0.1rem 0.7rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--teal-dark);
	background: var(--wp--preset--color--teal-soft);
}

.ta-event-meta__past {
	margin-block-start: 0.75rem !important;
	padding: 0.5rem 0.9rem;
	border-radius: 0.75rem;
	background: var(--wp--preset--color--sand);
}

/* Event page ----------------------------------------------------------- */

.ta-event > * {
	margin-block: 0;
}

.ta-event > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.ta-event__header h1 {
	margin-block: 0 0.75rem;
}

.ta-event__image {
	display: flex;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	border-radius: var(--ta-radius);
	background: var(--wp--preset--color--sand);
}

/* The whole photo is shown, whatever its shape. On phones tall photos are capped and centred,
   so the description isn't pushed far down. */
.ta-event__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 45vh;
}

.ta-event__columns {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

/* The grid gap spaces the items, so the flow layout's margins would only knock them out of line. */
.ta-event__columns > * {
	margin-block: 0;
}

/* Side by side the description starts at the top with the photo beside it. The map is for
   people who have already decided to come, so the location card follows across the full width. */
@media (min-width: 860px) {
	.ta-event__columns {
		grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
		grid-template-areas: "text image" "place place";
	}

	.ta-event__columns:not(:has(.ta-event__image)) {
		grid-template-areas: "text text" "place place";
	}

	.ta-event__description {
		grid-area: text;
	}

	.ta-event__image {
		grid-area: image;
	}

	.ta-event__image img {
		max-height: none;
	}

	.ta-location {
		grid-area: place;
	}

	/* Map on the left, address and directions beside it. */
	.ta-location:has(.ta-location__map) {
		display: grid;
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	}

	/* Doubled class: the base map rule comes later in this file. */
	.ta-location__map.ta-location__map {
		height: 100%;
		min-height: 18rem;
		aspect-ratio: auto;
	}

	.ta-location__text {
		align-self: center;
	}
}

.ta-event__description > :first-child {
	margin-block-start: 0;
}

.ta-location {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--ta-radius);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--ta-shadow);
}

.ta-location__map {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
}

.ta-location__text {
	padding: var(--wp--preset--spacing--40);
}

.ta-location__text p,
.ta-location.is-online p {
	margin-block: 0.25rem 0;
}

.ta-location__title {
	margin-block: 0 0.25rem;
	font-size: var(--wp--preset--font-size--large);
}

.ta-location__action.ta-location__action {
	margin-block-start: 0.9rem;
	font-weight: 600;
}

.ta-location.is-online {
	padding: var(--wp--preset--spacing--40);
	border-color: var(--wp--preset--color--teal);
	background: var(--wp--preset--color--teal-soft);
}

.ta-location.is-online .ta-button {
	background: var(--wp--preset--color--teal-dark);
}

.ta-location.is-online .ta-button:hover {
	background: var(--wp--preset--color--contrast);
}

/* Footer --------------------------------------------------------------- */

.ta-footer {
	padding-block: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--sand);
}

.ta-footer__inner {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 700px) {
	.ta-footer__inner {
		grid-template-columns: 1fr auto;
		align-items: start;
	}

	.ta-footer__legal {
		grid-column: 1 / -1;
	}
}

.ta-footer__inner > *,
.ta-footer__brand > * {
	margin-block: 0;
}

.ta-footer__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
}

.ta-footer__brand .ta-logo img {
	height: 4.5rem;
}

.ta-social.ta-social {
	font-size: 1.5rem;
}

.ta-social .wp-social-link {
	color: var(--wp--preset--color--primary-dark);
}

.ta-more-links__title {
	margin-block: 0 0.5rem;
	font-size: var(--wp--preset--font-size--medium);
}

.ta-more-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ta-footer__legal {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}
