@font-face {
    font-family: 'MioFont';
    src: url('Font/NeueHaasGrotText-55Roman.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: 120px;
    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: rgb(97, 97, 97);
    cursor: pointer;
    color: rgb(11, 255, 96);
}
.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: white;
    cursor: pointer;
    color: rgb(52, 21, 252);
    text-decoration: underline;
}

.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: rgb(52, 21, 252);
    color: rgb(255, 43, 43);
}

.activetwo{
    opacity: 30%;
}

.footer:hover{
    background-color: rgb(52, 21, 252);
    color: rgb(255, 43, 43);
    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;
}

/* Layout speciale per i due video The North Face */
.video-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0; /* nessuno spazio tra i due */
}

.video-row .video-container {
    flex: 1;          /* ciascun video prende metà larghezza */
    width: 50%;
}

.video-row video,
.video-row .video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}
