@font-face {
  font-family: "Red Hat Display";
  src:
    url("../../fonts/redhatdisplay-regular.woff2") format("woff2"),
    url("../../fonts/redhatdisplay-regular.woff") format("woff");
  font-display: swap;
  font-weight: 400;
}

:root {
  --color-fg: #eee;
  --color-bg: #470038;
  --color-body-bg: #39002d;
  --color-secondary: #d1006a;
  --color-selection: var(--color-fg);
  --color-selection-bg: #000;
  --font: 1.15em/1.7 var(--font-family);
  --font-family: "Red Hat Display", Helvetica, Arial, sans-serif;
  scrollbar-color: var(--color-fg) var(--color-bg);
  scrollbar-width: thin;
  scroll-behavior: smooth;
  color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
  min-height: 100vh;
  width: 100vw;
  color: var(--color-fg);
  font: var(--font);
  overflow-x: hidden;
  background: var(--color-bg);
  letter-spacing: .3px;
}

body {
  background-color: var(--color-body-bg);
  border: 1px solid var(--color-secondary);
  box-shadow: 4px 6px 4px rgba(0, 0, 0, 0.5);
  max-width: 1024px;
  margin: 20px auto;
  padding: 1em;
  border-radius: 20px;
}

header {
  margin-bottom: 10px;
}

header * {
  margin: 0;
}

h1 {
	text-align: center;
	position: relative;
  font-weight: 300;
  margin-bottom: 0;
}

header .smolnote {
  margin-top: -10px;
  font-size: 85%;
}

main {
	margin: 0 auto;
	max-width: 1024px;
	height: fit-content;
	text-align: center;
	align-items: center;
}

.container {
	max-width: 1024px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	padding: 10px;
}

.gallery-container {
	margin-right: 5px;
	padding: auto;
}

.gallery .container {
	display: grid;
	justify-content: center;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-gap: 6px;
}

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

.gallery__item {
	width: 100%;
	height: 100%;
	object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 1/1;
  max-width: 400px !important;
  -webkit-user-select: none;
  user-select: none;
}

img {
	flex-basis: 29.7%;
	grid-gap: 5px;
	cursor: pointer;
}

#baguetteBox-overlay .full-image img {
  padding-bottom: 1.9rem !important;
  cursor: default !important;
}

.gallery img {
	max-width: 100%;
	height: auto;
}

.lb-nav a.lb-prev {
	color: tomato;
}

.smolnote {
  opacity: 60%;
  font-size: 75%;
}

header a, header a:visited, header a:active,
footer a, footer a:visited, footer a:active {
  color: var(--color-fg);
  text-decoration: underline;
  transition: .3s;
}

header a:hover, footer a:hover {
  color: var(--color-selection);
  background: var(--color-selection-bg);
  text-decoration: none;
  transition: .3s;
}

footer {
  text-align: center;
}

@media (max-width: 1060px) {
  html {
    background-color: var(--color-body-bg);
  }
  body {
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
  }
}

@media (max-width: 780px) {
	.gallery img {
		height: auto;
		width: 100%;
	}

	.lb-data .lb-close {
		position: fixed;
		left: 10px;
		top: 20px;
	}

	.lb-nav a.lb-next {
		position: fixed;
		right: 35px;
		top: 0;
	}

	.lb-nav a.lb-prev {
		position: fixed;
		left: 35px;
		top: 0;
	}
}