/* Arise Knox Square: Community Layout (replaces the Genially embed) */
.aks-layout,
.aks-modal {
	--aks-navy: #07374e;
	--aks-gold: #a9802f;
}
.aks-layout {
	container-type: inline-size;
	width: 100%; /* required: inline-size containment collapses to 0 when shrink-wrapped (e.g. theme grid) */
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}
.aks-layout__stage {
	position: relative;
	aspect-ratio: 1198 / 809;
	line-height: 0;
}
.aks-layout__plan {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hotspots: transparent until hovered/focused */
.aks-hs {
	position: absolute;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 2px;
	transition: background-color .15s, box-shadow .15s;
}
.aks-hs:hover,
.aks-hs:focus-visible {
	background: rgba(169, 128, 47, .35);
	box-shadow: inset 0 0 0 2px var(--aks-gold);
	outline: none;
}

/* Eye icons (360 tours) */
.aks-hs--eye {
	z-index: 3;
	border-radius: 50%;
	background: var(--aks-navy);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
	transition: transform .15s;
}
.aks-hs--eye:hover,
.aks-hs--eye:focus-visible {
	background: var(--aks-navy);
	box-shadow: 0 0 0 .25cqw #fff, 0 1px 4px rgba(0, 0, 0, .35);
	transform: scale(1.12);
}
.aks-hs--eye svg {
	width: 62%;
	height: 62%;
	margin: 19%;
	display: block;
}

/* Aerial view button */
.aks-hs--button {
	z-index: 3;
	border-radius: 0;
	background: var(--aks-navy);
	color: #fff;
	font-family: inherit;
	font-size: 1.32cqw;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.aks-hs--button:hover,
.aks-hs--button:focus-visible {
	background: var(--aks-gold);
	box-shadow: none;
}

/* Clubhouse legend: sits in the empty box baked into the site plan */
.aks-legend {
	position: absolute;
	left: 17.25%;
	top: 86%;
	width: 44.62%;
	height: 8.31%;
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-auto-flow: column;
	column-gap: 1.2%;
	row-gap: 12%;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}
.aks-legend li { margin: 0; padding: 0; min-width: 0; }
.aks-legend__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 .2cqw;
	border: 0;
	border-radius: 0;
	background: var(--aks-navy);
	color: #fff;
	font-family: inherit;
	font-size: .6cqw;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: .02em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .15s, background-color .15s;
}
.aks-legend__item:hover,
.aks-legend__item:focus-visible,
.aks-legend__item.is-active {
	transform: scale(1.08);
	background: var(--aks-gold);
	outline: none;
}

/* Hover-reveal map labels (from the original), also lit by the legend */
.aks-ml {
	position: absolute;
	z-index: 4;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	white-space: pre-line;
	text-shadow: 0 0 .3cqw rgba(0, 0, 0, .6);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s;
}
.aks-ml--dark { color: var(--aks-navy); text-shadow: 0 0 .3cqw #fff; }
.aks-ml.is-hover,
.aks-ml.is-lit { opacity: 1; }
.aks-hs--eye.is-lit {
	transform: scale(1.25);
	box-shadow: 0 0 0 .35cqw var(--aks-gold), 0 1px 4px rgba(0, 0, 0, .35);
}
.aks-ring {
	position: absolute;
	z-index: 4;
	width: 6cqw;
	height: 6cqw;
	margin: -3cqw 0 0 -3cqw;
	border: .3cqw solid var(--aks-gold);
	border-radius: 50%;
	box-shadow: 0 0 0 .2cqw #fff;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.aks-ring.is-lit { opacity: 1; }

/* Readable legend under the plan on small screens (tap to point at the spot) */
.aks-legend-list {
	display: none;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(2, 1fr);
	gap: .3rem;
}
.aks-legend-list li { margin: 0; padding: 0; list-style: none; }
.aks-legend-list__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 2.6rem;
	margin: 0;
	padding: .35rem .3rem;
	border: 0;
	border-radius: 0;
	background: var(--aks-navy);
	color: #fff;
	font-family: inherit;
	font-size: .68rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .03em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}
.aks-legend-list__item.is-active,
.aks-legend-list__item:focus-visible { background: var(--aks-gold); outline: none; }
@media (hover: hover) { .aks-legend-list__item:hover { background: var(--aks-gold); } }
.aks-legend-list__title {
	grid-column: 1 / -1;
	color: var(--aks-navy);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-align: center;
	text-transform: uppercase;
}
/* Label rings only on small maps, where the label text itself is too small */
.aks-ring--label { display: none; }
@container (max-width: 560px) {
	.aks-legend-list { display: grid; }
	.aks-ring--label { display: block; }
	.aks-ring { width: 8cqw; height: 8cqw; margin: -4cqw 0 0 -4cqw; border-width: .6cqw; }
}

/* Hover label */
.aks-tip {
	position: absolute;
	z-index: 5;
	transform: translate(-50%, calc(-100% - 8px));
	padding: .35em .6em;
	background: var(--aks-navy);
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.aks-tip[hidden] { display: none; }
@media (hover: none) { .aks-tip { display: none; } }

/* Popup. Inline mode sits over the site plan inside the block (stage height = 67.53cqw). */
.aks-pop {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(7, 55, 78, .55);
	line-height: normal;
}
.aks-pop[hidden] { display: none; }
.aks-modal {
	display: flex;
	flex-direction: column;
	width: 62%;
	max-height: calc(67.53cqw * .94);
	background: #fff;
	color: var(--aks-navy);
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
	overflow: hidden;
}
.aks-modal--tour {
	width: 80%;
	height: calc(67.53cqw * .92);
}
.aks-modal__bar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .6rem 1rem;
	border-bottom: 3px solid var(--aks-gold);
}
.aks-modal__title {
	margin: 0;
	font-family: inherit;
	color: var(--aks-navy);
	line-height: 1.3;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.aks-modal__close {
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aks-navy);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}
.aks-modal__close:hover,
.aks-modal__close:focus-visible { background: var(--aks-gold); }
.aks-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 1rem;
}
.aks-modal__body figure { margin: 0 0 1.5rem; }
.aks-modal__body figure:last-child { margin-bottom: 0; }
.aks-modal__body figcaption {
	margin: 0 0 .5rem;
	font-size: .95rem;
	font-weight: 600;
}
.aks-modal__body img {
	display: block;
	max-width: 100%;
	max-height: calc(67.53cqw * .94 - 6rem);
	height: auto;
	margin: 0 auto;
}
.aks-modal--tour .aks-modal__body { padding: 0; overflow: hidden; display: flex; }
.aks-modal--tour iframe {
	display: block;
	flex: 1;
	width: 100%;
	height: auto;
	border: 0;
}

/* Fixed mode: small screens, popup covers the viewport */
.aks-pop--fixed {
	position: fixed;
	z-index: 100000;
	background: rgba(7, 55, 78, .8);
}
.aks-pop--fixed .aks-modal {
	width: 94vw;
	max-height: 90vh;
}
.aks-pop--fixed .aks-modal--tour { height: 80vh; }
.aks-pop--fixed .aks-modal__body img { max-height: 70vh; }

/* Gallery */
.aks-gallery { position: relative; }
.aks-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	padding: 0;
	background: rgba(7, 55, 78, .85);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.aks-gallery__nav:hover,
.aks-gallery__nav:focus-visible { background: var(--aks-gold); }
.aks-gallery__nav--prev { left: .5rem; }
.aks-gallery__nav--next { right: .5rem; }
.aks-gallery__count {
	margin: .5rem 0 0;
	text-align: center;
	font-size: .85rem;
}
