body {
    font-family: Ariel, sans-serif;
    font-size: 1em;
    margin: 0;
    padding: 0;
    background-color: #f1f1f1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 400px; /* Width set for small device viewing */
  line-height: 1.4;
}

.image-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.image-table td {
    text-align: center; /* Center images in the table cells */
    padding: 10px;
}

.image-table img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures images are block elements */
    margin: 0 auto; /* Center images within the table cell */
}

.image-formatting {
    object-fit: cover; /* Crop image nicely if aspect ratio differs */
    border-radius: 4px; /* Slightly rounded corners for image */
    border: 1px solid #ddd; /* Light border for the image */
    flex-shrink: 0; /* Prevent image from shrinking */
}

div.desc {
  padding: 5px;
  text-align: center;
}

h1 {
  font-size: 50px;
  word-break: break-word;
  text-align: center;
}

h1 img {
    max-width: 450px;
    width:100%; /* Width constrained to container size */
    height: auto; /* This maintains the aspect ratio */
}

h2 {
  word-break: break-word;
  text-align: center;
}

h3 {
  word-break: break-word;
  text-align: center;
}

/* Thumbnail statements */
.thumbnail-container {
    display: flex; /* Arrange items in a row */
    flex-direction: column; /* Stack items vertically */
    gap: 5px; /* Space between gallery items */
    max-width: 400px; /* Limit overall width */
    margin: 0 auto; /* Center the container */
}

.thumbnail-item {
    display: flex; /* Arrange image and description in a row */
    align-items: flex-start; /* Align items at the top */
    gap: 15px; /* Space between thumbnail and description */
    padding-bottom: 15px; /* Space below each item */
    border-bottom: 1px solid #eee; /* Separator line */
}

.thumbnail-item:last-child { 
    border-bottom: none; /*Remove border from the last item */
    padding-bottom: 0;
}

.thumbnail {
    width: 100px;  /* Fixed width for thumbnail */
    height: 100px; /* Fixed height for thumbnail */
    object-fit: cover; /* Crop image nicely if aspect ratio differs */
    border-radius: 4px; /* Slightly rounded corners for image */
    border: 1px solid #ddd; /* Light border for the image */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.description {
    flex-grow: 1; /* Allow description to take remaining space */
}

.description p {
    margin: 0; /* Remove default paragraph margin */
    font-size: 0.9em;
    line-height: 1.4;
    
    height:100px;
    display: table-cell;
    vertical-align: middle;
}

/* hide linking */
p a {
    color: inherit; 
    text-decoration: none;   
}


/* end thumbnails */

/* --- Footer --- */
.nav2 {
    font-size: 14px;
    background: #4A5D4E;
    margin: 40px 0 0 0;
    padding: 15px 0;
}

.nav2 p {
    text-align: center;
    color: #f2f2f2;
    margin: 0;
}

.footer {
    display: table;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: #777777;
    font-size: 0.9em;
}

/* --- Back to Top Button --- */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3D5A80;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    z-index: 99;
}

/* Responsive styles */
@media (max-width: 600px) {
    .image-table {
        display: block; /* Stack images on small screens */
    }
    .image-table td {
        display: block;
        width: 100%; /* Full width for each image */
    }
}

