/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global styles */
body {
  /*background-image: url('assets/Offwhitepaper.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;*/
  background-color: #f7f3e9;
  color: #1e1e1e;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accent color */
:root {
  --accent: #111;
  --grid-square: 220px;
  --grid-gap: 16px;
  --grid-width: calc(var(--grid-square) * 3 + var(--grid-gap) * 2);
}

@font-face {
  font-family: "Derailed";
  src: url("fonts/Derailed.otf") format("woff2"),
       url("fonts/Derailed.woff") format("woff"),
       url("fonts/Derailed.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Economica-Bold-OTF";
  src: url("fonts/Economica-Bold-OTF.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "BrideofTOOM";
  src: url("fonts/BrideofTOOM.woff") format("woff"), 
       url("fonts/BrideofTOOM.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

header {
  padding: 1em 1em;
  text-align: center;
}

header h1 {
  font-family: "Derailed", sans-serif;
  font-size: 2.6em;
  font-weight: 700;
  letter-spacing: 3px;
  display: inline-block;
}

.subpages {
  font-family: "Poppins", sans-serif;
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 1em;
}

.subpages a {
  color: #333;
  text-decoration: none;
  margin: 0 0.4rem;
  font-weight: 700;
  transition: color 0.2 ease;
}

.subpages a:hover {
  color: #1ba861;
}
/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, var(--grid-square));
  grid-template-rows: repeat(3, var(--grid-square));
  gap: var(--grid-gap);
  justify-content: center;
  margin: 0 auto 2em auto;
}

/* Figures fill grid cells */
.gallery figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.gallery figure img:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Remove captions */
figcaption {
  display: none;
}

.retro-footer {
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  text-align: center;
  color: #222;
  letter-spacing: 1px;
  padding: 0.75em;
}

.retro-footer a {
  color: #1ba861; /* green accent */
  text-decoration: none;
  font-weight: bold;
}

.retro-footer a:hover {
  color: #148a4f; /* darker green on hover */
  text-decoration: underline;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top:0; left:0; right:0; bottom:0;
  background-color: #f7f3e9;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  background: #fff;
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #111;
  font-size: 2em;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.lightbox .close:hover {
  opacity: 0.6;
}

/* Arrows */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #111;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s;
}

/* Left/Prev */
.lightbox .prev {
  left: 10%;
  width: 80px;
  height: 100px;
}

/* Right/Next */
.lightbox .next {
  right: 10%;
  width: 80px;
  height: 100px;
}

/* Arrow symbols */
.lightbox .nav::before {
  content: attr(data-symbol);
  font-size: 3em;
  pointer-events: none;
}

.lightbox .nav:hover {
  opacity: 0.6;
}

.lightbox .nav.disabled {
  opacity: 0.3;
  cursor: default;
}
