/* Body with full-page background */
body {
  margin-top: 50px;
  padding-top: 50px;
  background-image: url('backgroundwebsite.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  color: white;
  text-align: center;
}

/* Header image */
.header-img {
  width: 80%;             /* smaller than full width, adjust as needed */
  max-width: 600px;       /* prevents it from being too large on big screens */
  height: auto;           /* keeps aspect ratio */
  opacity: 1;           /* 0 = fully transparent, 1 = fully opaque */
  display: block;
  margin: 0 auto;         /* center the image */
}


/* Navigation images */
nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 150px; /* extra space below header */
}

/* Navigation images */
nav img {
  height: 195px;  /* increased from 60px to 100px */
  width: auto;    /* keeps aspect ratio */
  transition: transform 0.2s;
}

nav img:hover {
  transform: scale(1.1);  /* optional hover effect */
}

/* Bio section further down with distinct box color */
.bio {
  padding-top: 400px;   /* adds extra space inside the section */
  margin: 0 auto 50px;  /* center horizontally */
  width: 90%;
  max-width: 700px;
  background-color: rgba(128,0,128,0.5);
  border-radius: 8px;
  color: #fff;
  line-height: 1.6;
  font-family: "JimmyScript-Regular", cursive;
}

.bio h2 {
  margin-top: 0;
  font-size: 1.5em;
}

.bio p {
  font-size: 1em;
  line-height: 1.5;
}

/* Import your uploaded font */
@font-face {
  font-family: "JimmyScript-Regular";
  src: url("fonts/JimmyScript-Regular.woff2") format("woff2"),
       url("fonts/JimmyScript-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
/* Apple Garamond Regular */
@font-face {
  font-family: "Apple Garamond";
  src: url("fonts/AppleGaramond.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Apple Garamond Light */
@font-face {
  font-family: "Apple Garamond Light";
  src: url("fonts/AppleGaramond-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Apple Garamond Italic */
@font-face {
  font-family: "Apple Garamond Italic";
  src: url("fonts/AppleGaramond-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

/* Apply it to your poster captions */
.poster-item .caption {
  font-family: "Apple Garamond Light", "Apple Garamond", Garamond, serif;
  font-size: 1.2em;
  color: #fff;
  text-align: center;
  opacity: 0.9;
}

/* Bio section styling */
.bio {
  margin: 200px auto 50px;          
  padding: 20px;                     
  width: 90%;
  max-width: 500px;                  
  background-color: rgba(128, 0, 128, 0.5);  /* semi-transparent purple */          
  border-radius: 8px;
  color: #fff;                        
  font-size: 1.3em;
  line-height: 1.6;
  font-family: "JimmyScript-Regular", cursive; /* use your custom font */
}

/* Optional: heading style */
.bio h2 {
  margin-top: 0;
  font-size: 2em;
  font-family: "JimmyScript-Regular", cursive;
}

/* Heading */
.bio h2 {
  margin-top: 0;
  font-size: 2em;    /* keep heading large */
}

/* Paragraphs */
.bio p {
  font-size: 1.9em;  /* increase paragraph size */
  margin: 20px 0;
}

.under-bio-img {
  display: block;        
  margin: 40px auto 0;   
  max-width: 300px;      /* makes the image smaller */
  width: 100%;            /* scales down proportionally if needed */
  height: auto;          
  border-radius: 8px;    
}

/* Year section */
.archive-year {
  margin: 80px auto;
  width: 90%;
  max-width: 1200px;
}

.archive-year h2 {
  font-family: "JimmyScript-Regular", cursive;
  font-size: 2em;
  color: #fff;
  margin-bottom: 30px;
  text-align: center;
}

/* Poster grid for each year */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

/* Individual poster item */

.poster-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

.poster-item .caption {
  font-family: "Apple Garamond Light", "Apple Garamond", Garamond, serif;
  font-size: 1.2em;
  color: #fff;
  text-align: center;
  opacity: 0.9;
}

/* Grid container */
.poster-grid {
  display: grid;
  /* auto‑fit as many columns as will fit, each at least 200px wide */
  grid-template-columns: repeat(auto‑fit, minmax(200px, 1fr));
  gap: 30px;            /* space between items */
  align-items: start;   /* make sure items align at top */
  margin: 0 auto;       /* centre the grid container */
}

/* Poster item styling */
.poster-item {
  border-radius: 8px;                /* rounded corners */
  padding: 10px;                     /* spacing inside each card */
}

.poster-item img {
  width: 100%;     /* responsive full width image */
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 0 auto;  /* centre if needed */
}

.poster-item .caption {
  margin-top: 8px;
  font-family: "Apple Garamond Light", "Apple Garamond", Garamond, serif;
  font‑size: 1.1em;
  color: #fff;
  text-align: center;
}

@media (max-width: 600px) {
  .poster-grid {
    grid-template-columns: repeat(auto‑fit, minmax(150px, 1fr));
    gap: 15px;
  }
  .poster-item .caption {
    font-size: 1em;
  }
}

h1 {
    text-align: center;
}

.gallery-section {
    margin-bottom: 40px;
}

.gallery-section h2 {
    margin-bottom: 10px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* Grid layout */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.photo-grid img {
    width: 100%;
    border-radius: 0px;
    object-fit: cover;
}

