/* GLOBAL RESET + BASE */
* {
  box-sizing: border-box;
}/*
@font-face {
  font-family: 'temporialist_standardregular';
  src: url('/fonts/temporialiststandard-regular-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
  */

body {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', serif;
  margin: 0;
  padding: 0;
  color: #333;
  /*background: #FEFEF3;*/
  cursor: default;
  background-image: url('../images/bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
 /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));*/
}

nav.main-nav {
  font-family: 'Palatino Linotype', Palatino, serif;
}
a {
  color: black;
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

/* === HEADER + NAVIGATION === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f9f9f9;
  padding: 1rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

/* === NAVIGATION BASE === */
nav.main-nav {
  font-family: 'temporialist_standardregular';
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 1rem 2rem; 
  height: auto;
  z-index: 0;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 2rem;
}

.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1200;
}

.nav-title a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

#nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  color: black;
  z-index: 1400;
  order: -1;
  margin-right: 1rem;
}

#nav-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  z-index: 1500;
}

#nav-menu.active {
  display: flex;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1099px) {
  .nav-left,
  .nav-right {
    display: none;
  }
  nav.main-nav {
    flex-direction: column; /* stack nav elements vertically */
    align-items: flex-start; /* align left but can be centered if you want */
    padding: 2rem 2rem;
  }
  .nav-title {
    Width: 100%;
    position: static;
    transform: none;
    text-align: center;
    margin: 1rem 0;
    padding: 0;
  }

  .nav-title a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .nav-title a span {
    display: block;
    width: 100%;
  }

  #nav-toggle {
    display: block;
  }
}

/* LAYOUT */
main {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

/* SIDEBAR (ASIDE) */
aside {
  flex: 0 0 35%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}
.archive-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: #fff;
  border: 1px solid #ccc;
}

.archive-page h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.archive-page h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.archive-date {
  font-weight: bold;
  margin-bottom: 1rem;
}

.archive-image {
  margin: 1.5rem 0;
}

.archive-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.archive-metadata {
  font-size: 0.9rem;
  background: #f0f0f0;
  padding: 1rem;
  border-left: 3px solid #333;
  margin-bottom: 2rem;
}

.archive-page a {
  display: inline-block;
  font-size: 0.9rem;
  color: black;
  text-decoration: underline;
}


aside h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid #000;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

/* SIDEBAR SCROLLBAR */
.field-updates-scroll {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.field-updates-scroll::-webkit-scrollbar {
  width: 6px;
}

.field-updates-scroll::-webkit-scrollbar-track {
  background: #f9f9f9;
}

.field-updates-scroll::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 3px;
}

/* SIDEBAR ENTRIES */
.update {
  margin-bottom: 1rem;
}

.update .date,
.update .title {
  font-weight: bold;
}

.update .title {
  text-transform: uppercase;
}

.update .desc {
  font-size: 0.9rem;
}

/* ARCHIVE GRID */
.archive-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.archive-item {
  border: 1px solid #ccc;
  padding: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.archive-item p {
  margin: 0.2rem 0;
}

.archive-item h3 {
  margin: 0.3rem 0;
  font-size: 1rem;
  text-transform: uppercase;
}

.archive-item .desc {
  font-size: 0.8rem;
}

.archive-metadata {
  font-size: 0.9rem;
  background: #f0f0f0;
  padding: 1rem;
  border-left: 3px solid #333;
  margin-bottom: 2rem;
}
.archive-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.archive-image img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #ccc;
}
.archive-image-wrapper {
  width: 100%;
  height: 180px;
  background: #e0e0e0; /* grey background */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0.5rem;
  padding: 12px 0; /* Top and bottom padding */
  border-radius: 4px;
}

.archive-image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); /* new drop shadow on the image */
}

.archive-id {
  font-size: 0.75rem;
  color: #666;
  margin: 0.2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.archive-date {
  font-size: 0.75rem;
  color: #888;
  margin: 0.2rem 0;
}
.about-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

.about-section h1,
.about-section h2 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  text-transform: uppercase;
}

.about-section a {
  text-decoration: underline;
}
.become-archivist {
  max-width: 500px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #ccc;
  font-family: inherit;
  text-align: center;
}

.become-archivist h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.become-archivist p {
  margin-bottom: 1.5rem;
}

.form-row {
  margin-bottom: 1rem;
  text-align: left;
}

.form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.form-row input[type="text"],
.form-row input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 1rem;
}

.form-row input[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
}

.form-row input[type="submit"]:hover {
  background: #333;
}

/* === ARCHIVE GRID BASE STYLE (4-up above 1300px) === */
.archive-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.archive-item {
  flex: 0 1 calc(25% - 1rem);
  box-sizing: border-box;
  max-width: calc(33.333% - 1rem);
}

/* === TABLET: 2-up between 1031px and 1100px === */
@media (max-width: 1299px) and (min-width: 1100px) {
  .archive-item {
    flex: 0 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}
/* === MOBILE: 1-up at 1099px and below === */
.archive-scroll-wrapper {
  max-height: 70vh;      /* adjust to roughly fit 9 cards */
  overflow-y: auto;
  padding-right: 0.5rem;   /* scrollbar space */
  border: 1px solid #ccc;  /* optional: same style as sidebar */
  background: white;
}
.archive-scroll-wrapper::-webkit-scrollbar {
  width: 6px;
}

.archive-scroll-wrapper::-webkit-scrollbar-track {
  background: #f9f9f9;
}

.archive-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 3px;
}
@media (max-width: 1099px) {
  nav.main-nav {
    flex-direction: column;
    align-items: center;  /* center all items horizontally */
  }

   main {
    flex-direction: column;  /* stack children vertically */
  }
  .archive-section {
    order: 0;  /* first */
    width: 100%;
  }

  aside.field-updates {
    order: 1;  /* second, below archive */
    width: 100%;
    margin-top: 2rem;  /* optional spacing */
  }
  #nav-toggle {
    margin-bottom: 0.75rem;  /* space below hamburger */
    order: 0;                /* make sure it comes first */
  }

  .nav-title {
    order: 1;                /* title below hamburger */
    margin: 0;
    text-align: center;
    width: 100%;
  }

  /* Hide the other nav links on mobile as you already do */
  .nav-left,
  .nav-right {
    display: none;
  }

  .archive-grid {
    justify-content: flex-start;
  }

  .archive-item {
    flex: 0 1 100%;
    max-width: 100%;
  }
}
.archive-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}