#content {
	align-items: flex-start;
}

#header-banner {
	z-index: 0 !important;
}

.profile .top {
	@media screen and ((aspect-ratio < .51) or (aspect-ratio >= 2.70) or ((width < 1000px) and (height < 500px))) {
		text-align: center;
	}
}

.profile .top header {
	--color-dark: var(--color);
}

.profile .details {
	color: var(--text-color);
	font-size: max(1rem, min(4vw, 3vh));
	display: flex; flex-direction: column;
	justify-content: center;
	min-height: 5em;
	@media screen and (aspect-ratio >= .51) {
		width: 70%;
		margin-left: auto;
	}
	@media screen and ((aspect-ratio < .51) or (aspect-ratio >= 2.70) or ((width < 1000px) and (height < 500px))) {
		width: 100%;
		text-align: center;
		flex-grow: 1;
	}
	
	@media screen and ((aspect-ratio >= 2.70) or ((width < 1000px) and (height < 500px))) {
		font-size: max(.8rem, min(vw,5vh));
	}
}
.profile .details a, .profile .details a:link, .profile .details a:visited { color: inherit; font-weight: bold; }

.profile .website {
	font-size: .8em;
}

.profile .not-found {
	text-align: center;
	min-height: 3em;
	padding-top: 1em;
}

.gallery {
	min-height: 150px;
	gap: 1em; padding: 1em; padding-top: 0;
}
.full-image-view {
	--accent: var(--white);
	--text: var(--blue);
	--background: var(--white);
	--border: 1px var(--accent) dashed;
}

.info-box.profile { 
	 @media screen and (width < 1000px) { width: min(700px, 90%); }
	 @media screen and (width >= 1000px) { width: min(700px, 78%); }
}
.profile {
	z-index: 2;
	
	/* allow clicking through to banner links */
	:has(> .main-image) { pointer-events: none; }
	:has(> .main-image) * { pointer-events: initial; }
	
	.main-image {
		z-index: 2;
		pointer-events: none;
		user-select: none;
		aspect-ratio: 1;
		
		@media screen and ((aspect-ratio >= 2.70) or ((width < 1000px) and (height < 500px))) {
			max-width: 50vh;
			margin-bottom: .25em;
		}
		@media screen and (
			(aspect-ratio >= .51)
			and (
				((aspect-ratio < 2.70) and (width >= 1000px))
				or ((height >= 500px) and (width < 1000px))
			)
		){
			width: 45%;
			position: relative;
			margin: -10% 0 -40% -15%;
		}
		@media screen and (aspect-ratio < .51) { width: min(60%,30vh); margin: 0 auto 2% auto; }
		@media screen and (aspect-ratio < 1) and (aspect-ratio >= .51) { margin: -8% 0 -40% -13%; }
		@media screen and (aspect-ratio >= 1.3) and (width < 1000px) and (height >= 500px) {
			margin: 0% 0% -40% -15%;
			max-width: 70vh;
		}
		/* heights where banner is hidden (minus extra wide view) */
		@media screen and (
			((aspect-ratio < .51) and (aspect-ratio >= .5))
			or ((width < 1000px) and (aspect-ratio >= 1) and (aspect-ratio < 2.70))
		){
			margin-top: -3%;
		}
		/* fit image in container */
		img {
			max-width: 100%; max-height: 100%;
			@media screen and (aspect-ratio < 1) and (width < 1000px) { max-height: 25vh; }
		}
	}
	header h2, header h3 {
		@media screen and (aspect-ratio >= .51)
			and (((width < 1000px) and (height >= 500px)) or ((width > 1000px) and (aspect-ratio < 2.70)))
		{
			width: 75%;
			margin-left: auto !important;
			text-wrap: nowrap;
		}
	}
	
	> footer {
		@media screen and (
			(aspect-ratio >= 2.70)
			or ((width < 1000px) and (height < 500px))
			or (width < 500px)
		){
			padding: 0px;
			> * {
				background: var(--dd-blue);
				padding: min(.5em,1.5vw) 1em;
				border-radius: var(--border-radius);
				min-width: 30%;
				text-align: center;
			}
			.wrapper { width: min(8em, 100%); }
		}
		
		@media screen and ((aspect-ratio >= 2.7 / 1) or ((width < 1000px) and (height < 500px))) {
			> * { width: 100%; }
		}
		@media screen and (width < 500px) {
			> * { flex-grow: 1; }
		}
		@media screen and (width < 300px) {
			background: none;
			gap: .5em;
			> .wrapper a {
				width: 100%;
				text-align: center !important;
			}
		}
	}
}