body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
}

header {
    width: 100%;
    height: 200px; /* Fixed height for the header */
    overflow: hidden;
    position: sticky; /* Make the header sticky */
    top: 0; /* Stick to the top of the viewport */
    z-index: 100; /* Ensure it stays above other content */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Add a background color to the header */
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire header area */
    position: absolute;
    top: 0;
    left: 0;
}

.title-overlay {
    position: absolute;
    top: 0; /* Position at the top of the header */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align title to the top */
    padding-top: 20px; /* Configurable top margin */
    pointer-events: none; /* Allows clicks to pass through to elements below */
}

.title-overlay h1 {
    font-size: 3em; /* Adjust the size as needed */
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds a shadow for better readability */
    margin: 0;
}


.nav-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;/*block*/
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    overflow-x: auto; /* Enable horizontal scrolling if content overflows */
    white-space: nowrap; /* Prevent nav items from wrapping */
}

.nav-overlay ul {
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
    text-align: center;
    /*display: flex;*/
    display: inline-flex; /* Make items stay in a single row */
    gap: 20px;
}

.nav-overlay ul li {
    display: inline-block; /*inline*/
}

.nav-overlay ul li a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: inline-block;
}

.nav-overlay ul li a.active {
    background-color: rgba(255, 255, 255, 0.3); /* Highlight for active link */
    border-radius: 5px;
}

.nav-overlay ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Lighter hover effect */
    border-radius: 5px;
}

.content-section {
    margin: 0px;    
    /*padding-top: 220px; /* Add padding to avoid content being hidden behind sticky header */
    
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5x5 grid */
    /*gap: 10px;*/
}

.image-grid img {
    width: 100%;
    height: auto;
    cursor: pointer;
 /*   border-radius: 8px;*/
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.1);
    border-radius: 8px;
}
/*
.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    cursor: pointer;
}
*/
.text-content {
    font-size: 1.2em;
    line-height: 1.6em;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Fullscreen Image Overlay */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 1; /* Initially visible */
    transition: opacity 0.5s ease-in-out; /* Fade transition */
    border-radius: 15px; /* Rounded corners */
}

.nav-button {
    position: absolute;
    top: 50%;
    font-size: 2em;
    color: white;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.nav-button.left {
    left: 20px;
}

.nav-button.right {
    right: 20px;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Slideshow Buttons */
#slideshow-button, #end-slideshow-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    z-index: 1010; /* Ensure it's on top of the image */
}


#slideshow-button:hover, #end-slideshow-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

#end-slideshow-button {
    display: none; /* Initially hide the End Slideshow button */
}


.grid-size-selector {
    margin: 20px;
    text-align: center;
    font-size: 12px;
}

.grid-size-selector button {
    /*background-color: #f0f0f0;*/
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    /*border: 1px solid #ccc;
    padding: 5px 10px;*/
    font-size: 12px;
    cursor: pointer;
}

.grid-size-selector button:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Lighter hover effect */
    /*background-color: #ddd;*/
}

.grid-size-selector span {
    margin: 0 10px;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    display: none;
    font-size: 16px;
  }
  
