/* Custom CSS for the multi-page portfolio */

/* Custom styles for the hero section background, specific to the home page */
.hero {
    height: 100vh;
    background-image: url(https://raw.githubusercontent.com/Riccardoduerre/duerre/main/images/_RIK7376_HDR.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Custom styles to prevent horizontal scroll on mobile */
.container {
    max-width: 100%;
    padding: 0 1rem;
}

/* Lightbox styles for full-screen image gallery */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    padding: 1rem;
    z-index: 110;
}

.lightbox .prev {
    left: 1rem;
}

.lightbox .next {
    right: 1rem;
}

.lightbox .close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
}