body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.logo-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12; 
    width: 500px;
    z-index: 20;
}

.info-container {
    margin-top: 10px;  
    display: flex;    
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
    font-size: x-large;
}

#readMoreBtn:hover {
    background-color: red;
}

#readMoreBtn:active, 
#readMoreBtn:focus {
    outline: none;
}

#readMoreBtn {
    background-color: transparent;
    color: #000;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: x-large;
    align-self: flex-start;
}

#toggleGridBtn {
    background-color: transparent;
    color: #000;
    border: none;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: x-large;
    align-self: flex-start;
}

#toggleGridBtn:hover {
    background-color: red;
}

#toggleGridBtn:active, 
#toggleGridBtn:focus {
    outline: none;
}

.vita-container {
    display: none;
    position: relative;
    z-index: 20;
    color: #000;
    background-color: white;
    margin-top: 0;
    height: auto;
    max-height: calc(100vh - 200px);
}

.vita-content {
    padding: 0 20px 0 10px;
    max-width: 600px;
    font-size: clamp(12px, 1.5vw, 16px);
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    .vita-container {
        max-height: calc(100vh - 150px);
    }

    .vita-content {
        padding: 0 15px 0 10px;
        font-size: clamp(11px, 1.2vw, 14px);
        line-height: 1.2;
    }
}

@media screen and (max-height: 600px) {
    .vita-container {
        max-height: calc(100vh - 100px);
    }
    
    .vita-content {
        font-size: clamp(10px, 1vw, 12px);
        line-height: 1.1;
    }
}

.contact-link{
    margin-left: 5px;
}

#portrait {
    max-width: 500px;
    max-height: 200px;
}

.contact-link {
    display: inline-block;
    color: #000;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

#logoSVG {
    width: 200;
    height: auto;
}

#threeDModel {
    position: absolute;
    width: 100%; 
    height: 100%;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; 
}

#currentImage {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#prevSvg, #nextSvg, #logoSVG {
    fill: #000; 
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15; 
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.gallery-btn img {
    width: 400px;  
}

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

#prevBtn { left: 10px; }
#nextBtn { right: 10px; }

@media (max-width: 768px) {
    .logo-container {
        width: 60%; 
        max-width: 300px; 
    }

    .info-container {
        font-size: large;
    }

    .contact-link{
        padding-left: 0;
        margin-left: 0;
    }

    .vita-container {
        font-size: small; 
    }

    .portrait-container img {
        display: none;
    }

    .gallery-btn svg {
        width: 55%; 
        height: auto;
    }

    .gallery-btn {
        top: auto;
        bottom: 10px;
        transform: none;
    }

    #prevBtn:focus, #prevBtn:active, 
    #nextBtn:focus, #nextBtn:active {
        outline: 0 !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    #prevBtn {
        left: calc(0% - 80px);
        bottom: 35%;
        transform: rotate(-90deg);
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        outline: none;
        border: none;
        box-shadow: none;
    }
    
    #nextBtn {
        right: calc(0% - 80px);
        bottom: 37%;
        transform: rotate(90deg);
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        outline: none;
        border: none;
        box-shadow: none;
    }

    #readMoreBtn, #toggleGridBtn {
        padding-left: 0;
        margin-left: 0;
        text-align: left;
        border: none;
        background: transparent;
        display: block;
        font-size: large;
    }

    button::-moz-focus-inner,
    button:-moz-focus-inner {
        border: 0;
        margin: 0;
        padding: 0;
    }   
}

#reseauOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: block;
}

.cross {
    position: absolute;
}

.cross::before,
.cross::after {
    content: "";
    position: absolute;
    background: black;
}

.cross::before {
    width: 250%;
    height: 1px;
    top: 125%;
    left: 0;
    transform: translateY(-50%);
}

.cross::after {
    width: 1px;
    height: 250%;
    top: 0;
    left: 125%;
    transform: translateX(-50%);
}

.cross.center {
}

.cross::before,
.cross::after {
    background: rgba(0, 0, 0, 0.6);
}
