:root {
  --background: #dfdfdf;
  --text: #181808;
  --primary: #0000ff;
  --secondary: #00000024;
}

/* FONTS */

body {
  font-size: 18px;
  font-family: 'AzeretMono-ExtraLight', monospace;
  font-weight: 200;
  background-color: #dfdfdf;
  color: #181808;
  width: 100vw;
  max-width: 1750px;
  margin: 0 auto;
  padding: 0;
}

h1, h2, h3, nav a {
  font-weight: normal;
  text-transform: uppercase;
}

h4 {
  font-weight: bold;
}

h5 {
  font-weight: thin;
  text-transform: uppercase;
  text-decoration: lightsalmon wavy underline overline;
}

nav .title {
  font-size: 14px;
  text-transform: uppercase;
  font-style: italic;
}

/* HEADER, MAIN, FOOTER */

header {
  top: 0;
  background-color: #dfdfdf;
  padding: 1rem;
}

header a {
  margin: 0;
  margin-bottom: 1rem;
  color: black;
}

header a:hover {
  color: white;
}

main {
  padding: 1rem;
  overflow-y: auto;
}

main a {
  color: black;
}

main a:hover {
  color: white;
}



.highlight {
  background-color: 	rgba(0, 139, 139, 0.3);
  padding: 0 6px;
}

footer {
  padding: 1rem;
  margin-bottom: 100px;
}

footer a {
  color: black;
  text-decoration: none;
  display: inline;
}

footer a:hover {
  color: lightsalmon;
}

fotter a:visited {
  color: darkcyan;
}
  

hr {
  color: #dfdfdf;
  border: none;
  border-bottom: 1px solid;
}

.image-container {
  text-align: center;
}

.image-container img {
  width: 100%;
  max-width: 1700px;
}

/* NAVIGATION */

nav {
  display: flex;
  gap: 2rem;
}

.navsection {
  display: inline-block;
  padding: 2px 0;
}

nav a {
  display: inline;
  text-decoration: none;
  padding: 1px 7px 0;
  color: black;
  font-size: 20px;
  font-weight: lighter;
}

nav a:visited {
  color: black;
}

nav a:hover {
  color: lightsalmon;
}

nav .active, nav a.active {
  text-decoration: none;
  color: Darkcyan;
  padding: 1px 5px 0px;
  border-radius: 12px;
  border: 1px solid;
}

.headerlink {
  color: var(--text) !important;
  text-decoration: none;
}

.start-image {
  width: 100%;
  max-width: unset;
}

.nav-image {
  margin: 50px auto;
  display: block;
}

p, a {
  line-height: 1.2;
}

ul {
  list-style: none;
  padding-left: 16px;
}

.hidden {
  display: none;
}

/* GRID LAYOUT */

.grid-2, .grid-4 {
  display: grid;
  grid-gap: 1rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* TERMINAL STYLING */
.terminal {
  color: red;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 800px) {
  header, main, footer {
    padding: 0.5rem;
  }

  .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hide-on-small {
    display: none;
  }

  .show-on-small {
    display: block;
  }
}

/*.section {
  margin-top: 3rem;
}*/

.overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 0px;
  column-gap: 5px;
}

.overview a {
  margin: auto;
}

.overview img {
	max-width: 100%;
	margin: 0px;
	padding: 0px;
}

.overview img {
	image-rendering: auto;
	object-fit: cover;
}

  
.gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gallery a {
	margin-top: 5vh;
	margin-bottom: 5vh;
	display: flex;
	justify-content: center;
}

.gallery img {
	width: 90%;
	max-height: 95vh;
	max-width: 1200px;
	padding-bottom: 2.5vh;
	padding-left: 1vh;
	padding-right: 1vh;
}

.gallery h3 {
  padding-left: 1rem;
}

.content {
  padding: 1rem;
}


img.pixelated {
  image-rendering: pixelated;
}

@media screen and (min-width: 600px){
  .overview {
    grid-template-columns: repeat(8, 1fr);
    row-gap: 5px;
    column-gap: 10px;
  }
}

/* 1) Make only the “overview-crop” box a fixed-aspect window */
.overview-crop {
  position: relative;
  width: 100%;             
  overflow: hidden;        
  display: block;
}

/* 2) Zoom‐in & center the single image inside .overview-crop */
.overview-crop img {
  position: absolute;
  top: 50%;
  left: 50%;           
  transform: translate(-50%, -50%) scale(2.3);
  transform-origin: center center;
}

.cropping {
  width: 1000px;      /* the visible “window” size */
  height: 1000px;
  overflow: hidden;  /* hide everything outside this box */
  position: relative;
}

.cropping #postcardness {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2.4);
  transform-origin: center center;
}
