ul {
  font-size: 13px;
  list-style: none;
  background: #3399ff;
  margin-left: 20px;
  margin-right: 450px;
  padding: 5px 5px 5px 20px;
}
ul li {
  background: #cce5ff;
  margin: 5px;
  padding: 5px 5px 5px 10px;
  position: relative;
}
ul li:after {
  content: '';
  height: .5em;
  width: .5em;
  background: #D2153A;
  display: block;
  position: absolute;
  transform: rotate(45deg);
  top: .5em;
  left: -10px;
}


.gallery-container {
    display: inline-flex;
    flex-wrap: wrap; /* Allows items to wrap onto a new line */
    justify-content: left; /* Centers the items in the container */
    gap: 20px; /* Adds space between gallery items */
    max-width: 1200px; /* Optional: Sets a maximum width for the gallery */
    margin: auto; /* Centers the container on the page */
}

.gallery-item {
    /* Sets a base width for each item; allows them to grow or shrink */
    flex-basis: 150px;
    text-align: center; /* Centers the image and text within the item */
    box-sizing: border-box; /* Ensures padding/margin are included in the width calculation */
}

.gallery-item img {
    width: auto; /* Makes the image responsive within its container */
    height: auto; /* Maintains aspect ratio */
 //   display: block; /* Removes extra space below images sometimes added by inline elements */
    border-radius: 5px; /* Optional: Rounds the corners of the images */
    padding:0;
    margin:0;
    border: 2px outset blue;
    cursor:pointer;
}

.gallery-item p {
    margin-top: 5px; /* Adds a little space between the image and the caption */
    font-size: 0.9em;
    color: #333;
}

.gallery-item a {
    margin-top: 5px; /* Adds a little space between the image and the caption */
   // font-size: 1.2em;
    text-decoration: none;
    color: #900;
    font-weight:bold;
}


/* Overlay */
.image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;              /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-overlay .overlay-content {
  position: relative;
  width: 80%;
  height: 80%;
  max-width: 90vw;
  max-height: 90vh;
}

.image-overlay img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border: 4px solid #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

/* Close button */
.overlay-close {
  position: absolute;
  top: -5px;
  left: 5px;
  font-size: 48px;
  color: #f00;
  cursor: pointer;
  text-shadow: 0 0 5px #000;
}


.gallfoot {
  font-style:italic;
  color:#06adbc;
  font-size: 0.8em;
}


.prtime {
  font-size: 0.9em;
  color: #ff4444;
  text-shadow: 1px 1px 2px #000000;
}


.thumb-click {
    border: 2px outset blue;
}

sup {
  color:red;
  font-size:0.8em;
}
#det {
  display:none;
}

form h2 {
    color:#009;
}


.slideshow-wrapper {
  width: 608px;           /* 4 images × 150px */
  overflow: hidden;
  border: 1px solid #ccc;
  margin: 20px 0;
}

#slideshow-track {
  display: flex;
  transition: transform 0.6s ease;
}

#slideshow-track img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}




.slideshow {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}



.categorytitles {
  font-weight:bold;
  color:#584216;
  font-size:22px;
}


#responseMessage {
  font-size:16px;
  width:fit-content;
}




.gallery_title {
  font-size: 1.2em;
  margin: 15px 0 5px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
}

.gallery_title::before {
  content: "►";               /* closed arrow */
  font-size: 1.1em;
  margin-right: 8px;
  transition: transform 0.3s;
}

.gallery_title.open::before {
  transform: rotate(90deg);   /* open arrow */
}

.gallery_title + div img {
  max-width: 180px;
  margin: 5px;
}


#toggleAll {
  margin: 6px 10px;
  padding: 4px 7px;
  font-size: 0.95em;
  cursor: pointer;
}


#printpage {
    font-size:1.5em;
}


.request-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.5em;
}

.request-btn {
  padding: 0.4em 0.8em;
  cursor: pointer;
}

.rainbow-text span:nth-child(6n+1) { color: #e53935; }
.rainbow-text span:nth-child(6n+2) { color: #eb8100; }
.rainbow-text span:nth-child(6n+3) { color: #e8c030; }
.rainbow-text span:nth-child(6n+4) { color: #43a047; }
.rainbow-text span:nth-child(6n+5) { color: #1e88e5; }
.rainbow-text span:nth-child(6n+6) { color: #8e24aa; }
.rainbow-text span {
  display: inline-block;
}
.rainbow-text {
  font-size:18px;
  font-weight:bold;
  font-family:
    "Comic Sans MS",
    "Arial Rounded MT Bold",
    "Trebuchet MS",
    Verdana,
    sans-serif;
}

