:root {
	--bg-color: hsl(50, 60%, 90%);
	--transparency: hsla(50, 60%, 90%, 60%);
	--column-width: calc(33.33vw - 1rem);
	--corner-radius: 30px;
	--level-one-top: 1rem;
	--level-two-top: calc(3rem + 10px);
	--shadow-color: hsla(0,0%,0%,40%);
	--item-color-1: hsl(0, 60%, 90%);
	--item-color-2: hsl(144, 60%, 90%);
	--item-color-3: hsl(186, 60%, 90%);
	--item-color-4: hsl(258, 60%, 90%);
  }
  
  html{
	font-family: Helvetica, sans-serif;
	background: var(--bg-color);
	padding: 0px;
	transition: background 1s ease-in-out;
	text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
	margin:auto;
	max-width: 1500px;
	color: black;
	transition: color 1s ease-in-out;
	text-wrap: balance;
  }
  
  img {
	object-fit: cover;
  }
  
  video {
	object-fit: cover;
  }

  a {
	color: unset;
  }
  
  h1 {
	font-weight: bold;
	font-size: 2rem;
	line-height: 100%;
	padding: 0%;
	margin: 0%;
  }

  h1:not(:first-child){
	margin-top: 2rem;
  }
  
  h2 {
	font-weight: normal;
	font-size: 2rem;
	line-height: 100%; 
	padding: 0%;
	margin: 0%;
  }

  h2:not(:first-child){
	margin-top: 2rem;
  }
  
  h3 {
	font-weight: bold;
	font-size: 1.5rem;
	line-height: 100%; 
	padding: 0%;
	margin: 0%;
  }

  h3:not(:first-child){
	margin-top: 1.5rem;
  }
  
  h4 {
	font-weight: normal;
	font-size: 1.5rem;
	line-height: 100%; 
	padding: 0%;
	margin: 0%;
  }

  h4:not(:first-child){
	margin-top: 1.5rem;
  }
  
  p {
	font-size: 1rem;
	margin: 0px;
  }

  p + p:not(:first-child){
	margin-top: 1rem;
  }
  
  *[charm]::before{
	display: flex;
	flex: 1 1 auto;
	content: attr(charm) "\2006";
  }
  
  section {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1rem 2rem; margin: 0%;
	padding-bottom: 3rem;
	width: 100%; height: fit-content;
	max-width: 1500px;
	box-sizing: border-box;
	contain: content;
	background: var(--bg-color)
  }
  
  section > .title{
	position: sticky;
	z-index: 3;
	top: var(--level-one-top);
  }

  #s-custom-greeting > .title, #s-greeting > .title {
	top: 1rem !important;
  }
  
  .title {
	width: fit-content;
	border-radius: var(--corner-radius);
	padding: 5px 8px;
	margin-top: -5px;
	margin-left: -8px;
	background: var(--transparency);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 1s ease-in-out;
  }

  .badge {
	border-radius: 800px;
	padding: 1rem;
	/* margin-left: -1.2rem;  */
	background: var(--item-color-3);
	display:flex;flex-direction:row;width:fit-content;flex: 1 1 auto;
	align-items: center;
	gap:0.6rem;
	float:right;
  }
  
  .badge::before {
	content:"\1F511";
	line-height: 1rem;
	/* position: absolute;
	left: -1.4rem; */
  }
  
  .group {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	gap: 2rem;
	width: 100%;
	padding: 0%;
	padding-bottom: 3rem;
	margin: 0%;
	contain: layout;
  }
  
  .group > .copy {
	padding: 0%;
	margin: 0%;
	width: var(--column-width);
	flex: 0 0 auto;
  }
  
  .group .title.row,.title.column{
	z-index: 2;
	position: sticky;
	top: var(--level-two-top);
  }
  
  .title > * {
	width: min-content !important;
  }
  
  .group .column {
	display: none;
  }
  
  .group > .content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width:calc(100% - var(--column-width) - 2rem);
  }
  
  .item {
	position: relative;
	box-sizing: border-box;
	padding: 0px;
	margin: 0%;
	max-width: 100% !important;
	width: fit-content;
	display: flex;
	flex-direction: column;
	align-content: space-between;
	gap: 1rem;
	border-radius: var(--corner-radius);
	transition: padding .5s ease-in-out, border-radius .5s ease-in-out, box-shadow .5s ease-in-out, transform .5s ease-in-out;
	contain: layout;
  }
  
  .item.preload {
	width: 100%;
	height: 80vh;
  }
  
  .item:has(.gallery):hover {
	padding: 10px;
	border-radius: calc(var(--corner-radius) + 10px);
	box-shadow: 0px 0px 1rem var(--shadow-color);
  }

  .item:has(.bento,.scroll-pan){
	width:100%
  }

  .nav, .mini-nav {
	position: sticky;
  }
  
  .nav {
	top: 1rem; 
	float:right; 
	padding: 5px 15px;
	margin-bottom: 6rem;
	margin-right: calc(2rem - 15px);
	min-width: 0;
	display: inline-flex;
	flex-direction: row;
	border-radius: 100px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	background: var(--transparency);
	z-index: 10;
	gap: 0;
	transition: background 1s ease-in-out;
  }

  .nav.pre-appear, section > .title.pre-appear {
	transform: translate3d(0px,-1rem,0px);
	transform-origin: top;
	filter:opacity(0);
	transition: filter .25s ease-in-out, transform .25s ease-in-out;
  }

  .nav:not(.pre-appear), section > .title:not(.pre-appear) {
	filter:opacity(1);
	transition: filter .25s ease-in-out, transform .25s ease-in-out;
  }
  
  .nav > div,.mini-nav {
	display: inline-flex;
	flex-direction: row;
	align-items: flex-end;
	justify-content: flex-end;
  }
  
  .nav h2, .nav > div > a, .mini-nav * {
	white-space: nowrap;
	padding: 0%;
	margin: 0%;
	pointer-events: all;
	overflow: hidden;
	transition: max-width .5s ease-in-out, filter .5s ease-in-out;
  }
  
  .nav h2::after, .mini-nav h2::after{
	content: attr(name) "\2006/\2006";
	margin: 0px;
	transition: opacity 1s ease-in-out;
  }

  .nav a, .mini-nav a {
	display: inline-flex;
  }
  
  .nav a, .mini-nav a, a.mini-nav {
	/* display: inline-flex; */
	text-decoration: none;
	color: unset;
  }
  
  .nav h1::after, .mini-nav h1::after{
	content:attr(name)
  }
  
  .nav h1::before,
  .nav h2::before,
  .mini-nav h1::before, 
  .mini-nav h2::before {
	content: attr(symbol) "\2006";
	display: none;
	margin: 0px;
	transition: opacity 1s ease-in-out;
	opacity: 0%;
  }
  
  .nav h1:hover::before, 
  .nav h2:hover::before,
  .mini-nav h1:hover::before, 
  .mini-nav h2:hover::before {
	display: inline;
	opacity: 100%;
  }
  
  .fullscreen {
	background: black !important;
	height: 100vh !important; width: 100vw !important;
	object-fit: contain !important;
	border-radius: 0px !important;
  }

  .fullscreen video {
	height: 100vh !important; width: 100vw !important;
	object-fit: contain !important;
  }
  
  .button {
	position: absolute;
	display: inline;
	top: 1rem; right: 1rem;
	border-radius: var(--corner-radius);
	padding: 5px; margin: 0px !important;
	width: fit-content;
	background: var(--transparency);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0px 0px 1rem var(--shadow-color);
	transition: transform .5s ease, background 1s ease-in-out;
	cursor: pointer;
	z-index: 2;
  }
  
  .button:hover {
	transform: scale(1.25);
  }
  
  .small-col {
	max-width: var(--column-width);
  }
  
  .enclosed {
	position: relative;
	display: flex;
	max-width: 100%; 
	max-height: 100%;
	/* width: fit-content;
	height: fit-content; */
	overflow: hidden;
	border-radius: var(--corner-radius);
	contain: content;
  }
  
  .enclosed > img,video {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--corner-radius);
  }
  
  .enclosed:has(.scroll-play), .scroll-pan {
	max-height: 80vh;
  }
  
  .scroll-pan {
	align-items: flex-start !important;
	width: 100%;
	overflow: hidden;
	border-radius: var(--corner-radius);
  }
  
  .scroll-pan img {
	width: 100%; height: auto;
	max-height: unset;
  }
  
  .overlay {
	content:'';
	box-sizing: border-box;
	position: absolute;
	display: flex;
	padding: 1rem;
	  top:0;left:0;
	width: 100%; height: 100%;
	flex: 0 0 auto;
	transition: backdrop-filter 2s ease, -webkit-backdrop-filter 2s ease, background 1s ease-in-out;
	pointer-events: none;
  }
  
  .controls {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	transition: filter .5s ease;
	pointer-events: none;
	filter: opacity(0);
  }
  
  .fs-modal .controls {
	display: flex;
	pointer-events: all;
	filter: opacity(1)
  }

  .fs-modal .enclosed:not(.scroll-pan) {
	max-height: calc(100vh - 6rem)
  }

  body[mouse-not-moving] .fs-modal .controls {
	filter: opacity(0);
  }
  
  .controls > .bottom {
	display: flex;
	width: 100%;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	pointer-events: none;
  }
  
  .controls > .top {
	display: flex;
	width: 100%;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	pointer-events: none;
  }
  
  .spacer {
	white-space: pre;
	padding: 1rem;
  }
  
  .controls :not(.spacer)  h2 {
	flex: 0 0 auto;
	margin: 0px !important;
	width: fit-content; height: fit-content;
	box-sizing: content-box;
	border-radius: var(--corner-radius);
	padding: .5rem;
	background: var(--transparency);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0px 0px 1rem var(--shadow-color);
	pointer-events: all !important;
	transition: transform .5s ease;
	cursor: pointer;
  }
  
  .controls :not(.spacer)  h2:hover {
	transform: scale(1.1);
  }
  
  .play-pause {
	padding: 1rem !important;
  }
  
  .play-pause[paused='true']::before,
  .mute[muted='true']::before{
	content: attr(activeIcon);
  }
  
  .play-pause[paused='false']::before,
  .mute[muted='false']::before{
	content: attr(inactiveIcon);
  }
  
  .enclosed:has(.blur) > .overlay {
	content:'';
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
  }
  
  .item.preload:nth-child(4n), .enclosed:nth-child(4n) {
	background: var(--item-color-1)
  }
  
  .item.preload:nth-child(4n + 1), .enclosed:nth-child(4n + 1) {
	background: var(--item-color-2)
  }
  
  .item.preload:nth-child(4n + 2), .enclosed:nth-child(4n + 2) {
	background: var(--item-color-3)
  }
  
  .item.preload:nth-child(4n + 3), .enclosed:nth-child(4n + 3) {
	background: var(--item-color-4)
  }
  
  .bento {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 1rem;
	padding: 0%;
	width: 100%;
  }
  
  .bento > * {
	flex: 1 1 30%;
	/* height: unset;
	width: unset; */
	transition: all .5s ease-in-out;
  }
  
  .bento > .enclosed {
	transition: transform .5s ease-in-out, box-shadow .5s ease-in-out
  }
  
  .bento > .enclosed:hover, .item:not(:has(.bento,.gallery)):hover {
	transform: scale(1.02);
	box-shadow: 0px 0px 1rem var(--shadow-color);
  }
  
  .gallery {
	display: flex;
	box-sizing: content-box;
	gap: 1rem; padding:0px;
	overflow-x: scroll;
	overflow-y: hidden;
	max-width: 100%; 
	width: fit-content; height: fit-content;
	min-height: 0;
	max-height: 75vh;
	border-radius: calc(var(--corner-radius));
	z-index: 1;
	contain: content;
  }
  
  .gallery > * {
	max-width: calc(100% - 4rem); max-height: 100%;
	flex: 0 0 auto;
  }
  
  .fs-modal {
	position: fixed;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: stretch;
	box-sizing: border-box;
	top: 0px; left: 0px;
	width: 100vw; height: 100vh;
	transition: top .5s ease-in-out;
	background: transparent;
	overflow: scroll;
	z-index: 11;
  }
  
  .fs-modal.hidden + .content {
	filter: blur(0px);
	transform: scale3d(1,1,1);
	transform-origin: top;
	background-color: transparent;
  }
  
  .fs-modal + .content {
	position: relative;
	box-sizing: border-box;
	filter: blur(6px) opacity(20%);
	transform: scale3d(.95,.95,.95);
	transition: filter 1s ease-in-out, transform 1s ease-in-out;
	margin: 0px;
	background-color: transparent;
  }
  
  .fs-modal.hidden{
	top: 150vh;
  }
  
  .fs-modal > .content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin: 2rem auto;
	max-width: calc(100% - 8rem); 
	width: fit-content; height: fit-content;
	flex: 0 0 auto;
	padding: 0px;
	border-radius: calc(var(--corner-radius));
	background: var(--bg-color);
	box-shadow: 0px 0px 3rem var(--shadow-color);
	z-index: 1;
	contain: content;
  }
  
  .fs-modal > .content:has(.gallery) {
	padding: 1rem;
	border-radius: calc(var(--corner-radius) + 1rem);
  }
  
  .fs-modal > .content > .scroll-pan {
	overflow:visible !important;
	max-height: unset;
  }
  
  .fs-modal > .button {
	position: sticky;
  }
  
  .fs-modal.preload > .content::before, .item.preload::before {
	position: absolute;
	top: 0; left:0;
	width: 100%; height: 100%;
	content:"";
	background:url("../Images/Loading.gif");
	filter: blur(3rem);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: 50%, 50%;
  }

  .mini-nav {
	display: none;
  }
  
  @media (max-width: 1100px) {
	.nav h2::after, .mini-nav h2::after {
	  display: none;
	  opacity: 0%;
	}
  
	.nav h2:hover::after, .mini-nav h2:hover::after{
	  display: inline-flex;
	  opacity: 100%;
	}
  
	.nav h2::before, .mini-nav h2::before {
	  content: attr(symbol) "\2006/\2006";
	  display: inline-flex;
	  opacity: 100%;
	}
  
	.nav h2:hover::before, .mini-nav h2:hover::before {
	  content: attr(symbol) "\2006"
	}
  }
  
  @media (max-width: 800px) {
	:root {
	  --column-width: 100vw;
	}
	.group {
	  flex-direction: column;
	}
  
	.group .row {
	  display: none;
	}
  
	.group .copy, .group .content {
	  width: 100%
	}
  
	.group .column {
	  display: unset;
	}
  
	.nav h1::after, .mini-nav h1::after {
	  content: attr(short-name) 
	}
  
	.gallery > * {
	  max-width: calc(100% - 3rem);
	}
  
	.fs-modal > .content {
	  max-width: 100%;
	}
  }
  
  @media (max-width: 500px) {
	:root {
	  --level-one-top: calc(1rem + 30px);
	  --level-two-top: calc(2rem + 55px);
	  --corner-radius: 24px;
	}

	.nav h1::after{
	  content: attr(symbol);
	}

	.nav h1::before{
	  content: attr(short-name) "\2006";
	}

	.nav > div::before{
		content: "\2006/\2006";
		font-weight: normal;
		font-size: 2rem;
		line-height: 100%; 
		padding: 0%;
		margin: 0%;
		font-weight: normal;
	}

	.nav > div > *:last-child > h2::after{
		content: "\2006" attr(name); 
	}
  
	.nav {
	  top: 5px;
	  padding-left: 8px; padding-right: 12px;
	  margin-left: calc(2rem - 8px);
	  float: unset;
	  flex-direction: row-reverse;
	}
  
	/* .nav > div > *:last-child > h2::after {
	  content: attr(name)
	} */
  
	.nav > div > *:last-child > h2::before{
	  content: attr(symbol)
	}
  
	/* .nav > * {
	  border-radius: var(--corner-radius);
	  backdrop-filter: blur(6px);
	  -webkit-backdrop-filter: blur(6px);
	  background: var(--transparency);
	  width: fit-content;
	  padding: 10px 10px;
	} */
  }
  
  @media (prefers-color-scheme: dark) {
	:root {
	  --bg-color: hsl(250, 10%, 10%);
	  --transparency: hsla(250, 10%, 10%, 40%);
	  --shadow-color: hsla(50,60%,90%,40%);
	  --item-color-1: hsl(0, 60%, 20%);
	  --item-color-2: hsl(144, 60%, 20%);
	  --item-color-3: hsl(186, 60%, 20%);
	  --item-color-4: hsl(258, 60%, 20%);
	}
  
	body {
	  color: hsl(50, 60%, 90%);
	}
  
	.fs-modal.hidden + .content::after {
	  background-color: transparent
	}
  
  }

  @media (hover: hover) {
	.fs-modal .controls {
		display: flex;
		pointer-events: all;
		filter: opacity(0);
	  }
	  
	  .fs-modal .controls:hover {
		filter: opacity(1);
	  }
  }