/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: White;
  color: Black;
  font-family: Verdana;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

figcaption{
    color: gray;
    font-style: italic;
    padding: 2px;
    text-align: center;}
            


ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333333;
  display: flex;
  justify-content: center;
}

ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px; /* makes all images the same height */
    object-fit: cover; /* crops nicely instead of stretching */
    border-radius: 8px; /* soft corners */
    transition: transform 0.2s; /* smooth hover effect */
}

.gallery-grid img:hover {
    transform: scale(1.05); /* grows slightly when hovered */
}

details {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

summary {
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
    list-style: none; /* removes default triangle */
}

summary::-webkit-details-marker {
    display: none; /* removes default triangle in Chrome/Safari */
}

summary::before {
    content: "▶ "; /* custom arrow */
    display: inline-block;
    transition: transform 0.2s;
}

details[open] summary::before {
    transform: rotate(90deg); /* rotates arrow when open */
}

.details-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}