
@font-face {
    font-family: 'MioFont';
    src: url('Font/AUTHENTICSans-90.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    padding: 0;
    margin: 0;
    font-family:'MioFont';
    font-size: 10pt;
    height: 100%;
    overflow: hidden; /* Prevent body scrolling */
}

.projects {
    position: fixed;
    padding: 10px;
    width: 50%;
    height: 100%; /* Ensure full height */
    overflow-y: none; /* Allow scrolling */
    height: fit-content;
}
.down {
    position: fixed;
    bottom: 0;
    padding: 10px;
    width: 50%;
}
.info-container {
    position: fixed;
    top: 240px;
    padding: 10px;
    width: 50%;
    overflow: hidden; /* Prevent overflow */
}
.num {
    width: 5%;
}
.words {
    width: 74%;
}
.projects01, .projects02, .projects03, .projects04, .projects05, .projects06, .projects07, .projects08, .projects09, .projects10 {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14%;
    width: 100%;
    height: auto;
}

.projects01:hover, .projects02:hover, .projects03:hover, .projects04:hover, .projects05:hover, .projects06:hover, .projects07:hover, .projects08:hover, .projects09:hover, .projects10:hover{
    background-color: black;
    cursor: pointer;
    color: white;
}
.gallery {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%; /* Set height for scrolling */
    overflow-y: auto; /* Allow scrolling */
    z-index: 1;
}
.gallery-item.active {
    display: block; /* Show only the active gallery item */
    z-index: 0;
}
img{
    width: 100%;
}

video{
 width: 100%;
}


.text, .team, .links, .year, .type {
/* Auto layout */
padding-bottom: 20px;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
padding-left: 8%;
gap: 6%;
width: 100%;
}

.footer{
padding-bottom: 0;
/* Auto layout */
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-start;
gap: 14%;
width: 100%;
z-index: 0;
}

.selector-container{
    position: absolute;
    top: 170px;
    left: 50%; /* Posizione orizzontale */
    transform: translateX(-50%); /* Centra l'elemento */
    width: 50px;
    z-index: 2;
}
a{
    text-decoration: none; /* Rimuove la sottolineatura */
    color: inherit; /* Mantiene il colore del testo circostante */
    cursor: default; /* Cambia il cursore a default, invece di "mano" */
}
a:hover{
    background-color: black;
    cursor: pointer;
    color: white;
}

.selector img:hover{
    cursor: pointer;
    filter: invert(100%);
}

.aboutopen{
    padding-bottom: 20px;
    padding-left: 19%;
    width: 74%;
    display: none;
    z-index: 1;
    background-color: white;
}

.active{
    background-color: black;
    color: white;
}

.activetwo{
    opacity: 30%;
}

.footer:hover{
    background-color: black;
    color: white;
    cursor: pointer;
}

.projectsresp-container{
    position: absolute;
    z-index: 3;
    padding-left: 6%;
    padding-top:10px;
    width: 100%;
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
}
.projectsresp span{
    background-color: white;
}

.text-overlay {
    position: absolute;
    top: 0; /* Posiziona al centro verticalmente */
    left: 0; /* Posiziona al centro orizzontalmente */
    background-color: white;
    text-decoration: none; /* Rimuove la sottolineatura dal link */
    z-index: 10;
    padding-top: 10px;
    overflow-x: visible;
    margin: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: fit-content;
}

.video-thumbnail {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

.lazy-video{
    display: none;
}

/* ===== MODALITÀ FOCUS GALLERY (versione centrata) ===== */

body.gallery-focus .projects,
body.gallery-focus .down,
body.gallery-focus .info-container,
body.gallery-focus .selector-container,
body.gallery-focus .projectsresp-container,
body.gallery-focus .aboutopen {
    display: none !important;
}

/* La gallery prende tutto lo schermo e scrolla in verticale */
body.gallery-focus .gallery {
    position: fixed;
    inset: 0;              /* top/right/bottom/left: 0 */
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    z-index: 999;
    background-color: black;
    padding: 3vh 0;
    display: block;        /* niente flex qui */
}

/* Contenitore principale dei contenuti */
body.gallery-focus .gallery .image-container {
    width: 100%;
}

/* Ogni "blocco progetto" diventa una colonna centrata */
body.gallery-focus .gallery .gallery-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;   /* centra orizzontalmente tutto il contenuto */
}

/* I contenitori dei video non forzano più il 100% */
body.gallery-focus .gallery .video-container {
    width: auto;
}

/* Immagini e video centrati, max 70% viewport */
body.gallery-focus .gallery img,
body.gallery-focus .gallery video {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0vh auto;      /* centra orizzontalmente */
}


/* Cursore: gallery chiusa → freccia verso l'alto */
body:not(.gallery-focus) .gallery {
    cursor: zoom-in; /* freccia verso l'alto / verticale */
}

/* Cursore: gallery aperta → freccia verso il basso */
body.gallery-focus .gallery {
    cursor: zoom-out; /* freccia verso il basso / verticale */
}

