body {
      margin: 0;
      font-family: 'League Spartan', Arial, sans-serif;
      color: #222;
      line-height: 1.5;
      background-color: #ffd9d9;
    }

    .container {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 20px;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0 5px 0;
    }

    header h1 {
      margin: 0;
      font-family: 'Vollkorn';
      font-weight: 400;
      font-size: 1.5rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      transform: scaleY(0.9);
      color: #9e3167;             /* originally was #222 for a medium black */
    }
    
    .special-letter {             /* this is the 'M' */
      font-size: 1.75rem;
      line-height: 1;
      display: inline-block;
      margin-right: 2px;
    }

    .line {                       /* line at top below title and top menu */
      width: 105%;
      height: 2px;
      background: #ddd;
      position: relative;
      left: 50%;
      transform: translateX(-50%);
    }

    nav {                         /* this styles the upper menu bar */
      display: flex;
      gap: 20px;
    }

    nav a {
      text-decoration: none;
      color: #9e3167;             /* originally was #444 for a medium black-gray */
      font-size: 14px;
    }
    
    nav a:visited {
      color: #9e3167;
    }
    
    nav a:hover {
      color: black;
    }
    
    .navmiddle {
      color: #f38fc0;
    }

    .navmiddle a {
      text-decoration: none;
      color: inherit;
    }
    
    .navmiddle a:visited {
        color: inherit;  
    }
    
    .navmiddle a:hover {
      color: white;
    }

    .navmiddle a.current {
      color: #9e3167;        /* originally #cf679a */
    }
    

    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
    }

    .hamburger span {
      display: block;
      width: 25px;
      height: 2px;
      background: #444;
    }

    @media (max-width: 700px) {
      nav {
        display: none;
        flex-direction: column;
        margin-top: 10px;
      }
      nav.open {
        display: flex;
      }
      .hamburger {
        display: flex;
      }
    }

    main {
      padding: 40px 0;
    }

    .gallery {
      margin-top: 30px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, 72px);
      gap: 15px;
      justify-content: center; /* optional */
    }

    .grid img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 0px;
  transition: transform 0.2s;
}

    .grid img:hover {
      transform: scale(1.05);
    }
    
    .thumb {
        width: 72px;
        height: 72px;
}

.thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff; /* or any color */
  display: block;
  cursor: default;
}


    /* start MODAL LIGHTBOX css ('Modal' = mode, in this case that temporarily disables interaction with the rest of the webpage while it is active.) */

    .modal {                              /* This targets any element that is given the class 'modal'. */
      display: none; 
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    /* Make modal center its contents vertically */
    .modal.open {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    /* Keep image centered and sized properly */
    .modal img {
      max-width: 50vw;      /* The image is allowed to grow only until it hits 50% of the viewport width (50vw) or 50% of the viewport height (50vh), whichever limit it reaches first. */
      max-height: 50vh;                             
      width: auto;          /* 'Auto' tells the browser to scale the image according to its original proportions of width and height. */
      height: auto;
      border-radius: 0px;                         /* This can be used to round the corners. */
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);     /* 1st#: horizontal offset, 2nd#: vertical offset, 3rd#: blur radius, 4th# : RGB color + opacity */  
      display: block;
    }
    
    /* Caption styling */
    #modal-caption {
  color: white;
  text-align: center;
  margin-top: 12px;
  font-family: 'Vollkorn', serif;
  font-size: 0.95rem;
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  
}

    /* Keep arrows floating beside the image */
    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 3rem;
      color: gray;
      cursor: pointer;
      user-select: none;
      padding: 10px;
    }

    .arrow.left { left: 20px; }
    .arrow.right { right: 20px; }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 2.5rem;
      color: gray;
      cursor: pointer;
      user-select: none;
    }

  