ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

ul.off {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

ul.off li {
  float: none;
  display: inline-block;
}


ul li {
  float: left;
}

ul li a {
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: bold;
}

ul li a:hover {
  background-color: #111111 ;
  color: white;
  
}

ul li a.off  {
  background-color: black;
  color: white;
  border: 4px solid white;
  padding: 0.4em 0.8em;
}

ul li a.off:hover  {
  background-color: white;
  color: black;
}

header {
  background-color: white;
  color: black;
  /* justify-content: center; */
  /* text-align: center; */
}

main {
  background-color: white;
}
/* 
main.cfm {
  width:50%;
} */

div.cfm {
  margin:auto;
}

body {
    background-color: white;
    font-family:  "Comma Sans";
    color: black;
}

div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* margin-top: 80px; */
  /* margin-bottom: 50px; */
  background-color: white;

}

div.gallery-item {
  margin: 10px;
  /* border: 1px solid #ccc; */
  /* width: 180px; */
}

p {
    /* color: black;
    text-align: center;
    margin: 0 auto;
    padding: 1rem; */
    /* width: 20%; */
    max-width: 75ch;          /* ≈ 65–80 characters — ideal readable line length */
    margin: 1em auto;         /* top/bottom 1em, left/right auto → perfect centering */
    padding: 0 1rem;
    text-align: center;
}

/* p.cfm {
  width:50%;
} */

h1 {
    color: black;
    text-align: center;
}

h4 {
    color: black;
    text-align: center;
}

h5 {
    color: black;
    text-align: center;
}

h2 {
  margin-left: 2rem;
  text-decoration: underline;
}

.gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center; /* Centers the figures horizontally */
      padding: 20px;
    }

    figure {
      margin: 0;
      width: 300px;
      display: flex;
      flex-direction: column;
      align-items: center; /* Centers caption under the image */
      text-align: center; /* Ensures text inside figcaption is centered */
    }

    figure img {
      width: 300px;
      height: auto;
      display: block;
    }

    figcaption {
      margin-top: 8px;
      font-size: 0.9em;
      color: #333;
    }

table {
  border: solid black 1px;
  margin-left: auto;
  margin-right: auto;

}

td {
  padding: 20px;
  text-align: center;

}

h3 {
  text-align: center;
}

footer {
    font-size: small;
    padding: 30px;
}