@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');

body {
  margin: 0;
  font-family: 'Georgia', serif;
  background-color: #fdfdfd;
  color: #333;
  text-align: center;
}

header {
  text-align: center;
  padding: 20px;
  /*background: url('/images/header-bg.jpg') no-repeat center/cover;*/
}

/* === FONT SIZE TUNING === */
h1 {
  font-size: 2.2em;   /* large title */
  margin-bottom: 0.4em;
}

h2 {
  font-size: 1.7em;   /* subheading */
  margin-bottom: 0.3em;
}

h3 {
  font-size: 1.3em;
  margin-bottom: 0.2em;
}


p {
  font-size: 1.05em;  /* regular text */
  max-width: 1000px;     /* or whatever width you like */
  margin: 0 auto;       /* centers the block itself */
  text-align: justify;  /* justifies the inner text */
  padding: 0 20px;      /* optional: adds breathing room on mobile */
  line-height: 1.6;
}

.site-title h1 {
  font-family: 'UnifrakturCook', serif;
  font-size: 3em;
  color: darkgreen;
  margin: 0;
  text-align: center;
}

.site-title .subtitle {
  font-size: 1.1em;
  color: #555;
  margin-top: 5px;
  text-align: center;
}

.main {
    text-align: center;
    line-height: 1.6;
}

footer {
  line-height: 1.6em; /* nice spacing */
  text-align: center;
  font-size: 3.2em;  /* regular text */
}

/* === NAVIGATION BAR === */

:root {
  --menu-bg: #2f3e1d;
  --menu-shadow: rgba(0, 0, 0, 0.35);
}

/* Ensure dropdown is above slideshow */
.slideshow-container,
.slideshow img {
  z-index: 1 !important;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  background: none;
  text-align: center;
}

/* Rounded background for the menu bar */
nav ul.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 8px 28px;
  background-color: #2f3e1d;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

nav ul.menu > li {
  position: relative;
}

nav ul.menu > li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  display: inline-block;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

nav ul.menu > li a:hover {
  background: #3c5226;
  color: #ffd700;
}

/* === DROPDOWN MENU === */
/* Fading dropdown animation */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;

  background: #2f3e1d;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 999;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.gallery-columns {
  display: flex;
  gap: 5px;
  padding: 5px;
}

.gallery-columns .year-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 50px; /* controls column width */
}


.gallery-columns a {
  color: #fff;
  display: block;
  padding: 4px 0;
}

.gallery-columns a:hover {
  color: #ffd700;
}

/* === MOBILE MENU TOGGLE === */
.menu-toggle {
  display: none;
  background: #2f3e1d, linear-gradient(var(--menu-bg), var(--menu-bg));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.8em;
  cursor: pointer;
  padding: 6px 14px;
  margin: 10px auto;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* === RESPONSIVE BEHAVIOR === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    background: none;
  }

  nav ul.menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background-color: #313e1d;
    border-radius: 25px;
    width: 90%;
    max-width: 300px;
    animation: fadeIn 0.4s ease;
  }

  nav ul.menu.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
    isolation: isolate;
    background-color: #2f3e1d !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 1.8em;
    cursor: pointer;
    padding: 6px 14px;
    margin: 10px auto;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  }

  .menu-toggle .menu-text {
    font-family: "Georgia", serif;
    font-size: 1.5rem;
    margin-left: 8px;
    color: inherit;
    display: inline-block;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: rgba(60, 82, 38, 0.95);
    border-radius: 10px;
    padding: 8px;
  }

  .gallery-columns {
    flex-direction: column;
    gap: 6px;
  }
}

/* === Fade-in animation === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  text-align: center;
  padding: 2px;
  background: #2f3e1d;
  color: white;
  font-size: 0.9em;
}

.pdf-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.pdf-links a {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f2f2f2;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.pdf-links a:hover {
    background-color: #d0d0d0;
}

/* === MOBILE + TABLET RESPONSIVE DESIGN === */

/* Tablets and smaller laptops */
@media (max-width: 992px) {
  header {
    padding: 15px;
    background-size: cover;
  }

  .site-title h1 {
    font-size: 2.4em;
  }

  .site-title .subtitle {
    font-size: 1em;
  }

  .pdf-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pdf-links a {
    font-size: 0.95em;
    padding: 8px 12px;
  }

  footer {
    font-size: 0.85em;
    padding: 6px;
  }
}

/* Phones (portrait orientation) */
@media (max-width: 768px) {
  body {
    text-align: center;
    font-size: 1em;
  }

  header {
    padding: 12px;
  }

  .site-title h1 {
    font-size: 2em;
    line-height: 1.1em;
  }

  .site-title .subtitle {
    font-size: 0.95em;
  }

  p {
    font-size: 1em;
    line-height: 1.5em;
    padding: 0 10px;
  }

  /* Links section */
  .pdf-links {
    flex-direction: column;
    gap: 12px;
  }

  .pdf-links a {
    width: 80%;
    margin: 0 auto;
  }

  /* Footer */
  footer {
    padding: 8px;
    font-size: 0.9em;
  }
}

/* Very small screens (e.g. old phones) */
@media (max-width: 480px) {
  .site-title h1 {
    font-size: 1.7em;
  }

  p {
    font-size: 0.95em;
  }

  footer {
    font-size: 0.85em;
  }
}

/* === GRID LAYOUT (3 per row on desktop) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* === CARD / HOVER POP-OUT === */
.card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 2;
  }
}

/* === GALLERY ITEM STYLING === */
.fade-element {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Images */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Titles */
.gallery-item h4 {
  text-align: center;
  font-family: "Georgia", serif;
  margin-top: 10px;

  /* readable backdrop */
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border-radius: 10px;
}

/* Links fill card */
.gallery-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* === MOBILE === */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


/* YEAR NAV */

.year-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #2f3e1d;
  text-decoration: none;
  background: rgba(255,255,255,0.85);
  padding: 2px 18px 6px 20px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: background 0.2s ease, transform 0.2s ease;
}

.year-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.12);
}

.prev-year {
  left: 18px;
}

.next-year {
  right: 18px;
}

/* Hide floating arrows on mobile */
@media (max-width: 768px) {
  .year-nav {
    display: none;
  }
}


.home-feature-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature-box {
    width: 240px;
    text-align: center;
    text-decoration: none;
    color: #147719fd;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .2s ease, opacity .2s ease;
}

.feature-box img {
    width: 140px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 12px;
}

.feature-box:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Mobile fixes */
@media (max-width: 600px) {
    .home-feature-row {
        gap: 20px;
    }

    .feature-box {
        width: 80%;
    }

    .feature-box img {
        width: 110px;
    }
}
