/* INDEX */
body {
    font-family: 'Arial Narrow', sans-serif;
    font-size: 16px;
    overflow: hidden;
}

.footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1920px; /* Set max-width to 1920px */
}

.footer {
    background-color: #333; /* Set background color for the footer */
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
    text-align: center;
    padding: 16px;
    margin: auto; /* Center the content horizontally */
}

.footer img {
    width: 200px;
    height: auto;
    margin-right: 10px;
    margin-bottom: 12px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.w3-top {
    position: fixed; /* Change from 'relative' to 'fixed' */
    top: 0; /* Ensure it's at the top of the viewport */
    color: white;
    width: 100%;
}

.w3-bar {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto; /* Center the navbar horizontally */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w3-bar img {
    width: 120px;
    height: auto;
}

.w3-bar-item {
    font-size: 16px;
    height: 100%;
    margin-left: 0px; /* Adjust the spacing between items */
}

#navLinks {
    display: flex;
    align-items: center;
}

#ToggleMenu {
    font-size: 20px;
    height: 100%;
}

#image-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 70px;
    margin-bottom: 0px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* Transparent background */
    pointer-events: none; /* Allow interaction with elements beneath the overlay */
    z-index: 2; /* Adjust the z-index to make sure it's above the image */
}

.grid-item {
    position: relative;
    max-width: 2000px;
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    pointer-events: none;
    border-radius: 0px;
    padding: 0px;
}

.overlay img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0px;
}

.grid-item:hover .overlay {
    visibility: visible;
    pointer-events: auto;
}

.more-link {
    position: absolute;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    top: 0;
    left: 0;
    margin: 10px;
    font-size: 12px;
}

.top-large {
    margin-top: 40px;
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    #image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 280px;
        margin-bottom: 0px;
    }

    .grid-item {
        rotate: 90deg;
        width: 200%;
        margin-bottom: 0px;
        align-items: center;
    }

    /* Add styles for the button and hide links by default on smaller screens */
    .w3-hide-medium,
    .w3-hide-large {
        display: none;
    }

    .w3-bar-item {
        padding: 14px 16px !important; /* Adjust padding for better appearance */
    }

    /* Move sidebar to the left side */
    @media (max-width: 767px) {
        /* Display the button and hide links on smaller screens */
        .w3-hide-small {
            display: none;
        }

        .w3-hide-medium,
        .w3-hide-large {
            display: block;
            width: 100%;
        }

        .w3-bar {
            display: flex; /* Use flexbox for the container */
            flex-direction: column; /* Align items vertically */
            align-items: flex-start; /* Align items to the left */
        }

        .w3-bar-item {
            width: 100%; /* Make sure each item takes the full width */
            box-sizing: border-box; /* Include padding and border in the width */
        }

        /* Position toggleMenu to the right */
        .w3-right {
            text-align: right;
        }

        .footer-wrapper {
            position: relative;
        }

        .footer-small {
            margin-top: 171px; 
            z-index: 1000;
            position: relative;
        }
    }

    .w3-show {
        display: block !important;
    }

    .top-small {
        margin-top: 80px;
    }
}

/* Media query to hide the button when screen width is larger than 767px */
@media screen and (min-width: 768px) {
    .hide-on-large {
        display: none !important; /* Add !important to ensure higher specificity */
    }
}