
.section-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%; /* Adjusts to container width */
    max-width: 150px; /* Limits the maximum size */
    height: auto;
    z-index: 10; /* Ensures it stays above other content */
}

.logo {
    width: 100%; /* Adjusts to container width */
    max-width: 450px; /* Limits the maximum size */
    height: auto; /* Maintains aspect ratio */
}

#global-footer {
    font-size: smaller;
    background-color: rgba(51, 51, 51, 0.3); /* Dark gray with 80% opacity */
    color: #909090; /* Light yellow font color */
    padding: 15px;
    text-align: center;
    position: fixed; /* Ensure it stays at the bottom */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Ensure it stays on top of other content */
}



#project-popup {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Hide by default */
    justify-content: center;
    align-items: center;
}

#project-iframe {
    width: 80%;
    height: 80%;
    border: none;
    background: #fff;
}

.popup-dialog {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}



.popup-dialog .content {
    position: absolute; /* Changed from relative to absolute */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the content */
    padding: 0; /* Remove padding */
    background: #fff; /* White background for content */
    border-radius: 8px;
    max-width: 90%; /* Max width of popup */
    max-height: 90%; /* Max height of popup */
    overflow: hidden; /* Hide overflow */
}

.popup-dialog .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* General styles for the images */
img.wide {
    width: 100%; /* Make images responsive */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensures images cover the box without distortion */
    border-radius: 8px; /* Optional: adds rounded corners */
    margin-bottom: 1rem; /* Space below each image */
}

/* Adjustments for the overlay to position correctly */
.overlay {
    position: absolute; /* Position overlay over the image */
    bottom: 10%; /* Align to the bottom of the image */
    left: 0; /* Align to the left */
    right: 0; /* Align to the right */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white; /* Text color */
    text-align: center; /* Center the text */
    padding: 5px; /* Padding for the text */
    opacity: 0; /* Hide the overlay by default */
    transition: opacity 0.3s ease; /* Smooth transition for overlay visibility */
}

/* Always apply hover effect */
.grid img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.grid img:hover {
    transform: scale(1.1); /* Add hover effect */
    opacity: 0.9; /* Slightly dim */
}

/* Overlay visibility on hover */
li:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

/* Ensure the overlay stays active even after a click */
li.clicked .overlay {
    opacity: 1; /* Keeps overlay visible after click */
}
