/* PORTFOLIO */
body {
    font-family: 'Arial Narrow', sans-serif;
    font-size: 16px;
    margin: 0;
    overflow: hidden;
}

#image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 85px auto;
    margin-bottom: 0px;;
}

.footer {
    margin-top: 20px; 
    z-index: 1000;
}

.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 */
}

.image-container {
    position: relative;
}

.grid-item {
    position: relative;
}

.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;
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    #image-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 160px;
        margin-bottom: 20px;
    }

    .grid-item {
        width: 90%;
        margin-bottom: 20px;
        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-small {
            margin-top: 0px; 
            z-index: 1000;
        }
    }

    .w3-show {
        display: block !important;
    }
}

/* 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 */
    }
}

#snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    width: 20px; /* Adjust the width as needed */
    height: 20px; /* Adjust the height as needed */
    animation: fall linear infinite;
    z-index: 9999;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}
