/* =========================================
   GP VISUAL ARTS - PLAYER PHOTOBOOKS
   ========================================= */

#three .gp-photobook-player {
    margin-top: 2em;
    padding: 1.5em;
    background: #191919;
    border: 1px solid #404040;
    border-radius: 8px;
    color: #ffffff;
    text-align: left;
}

/* Presentazione selezionata */

#three .gp-photobook-current {
    margin-bottom: 1.5em;
}

#three .gp-photobook-label {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaaaaa;
}

#three .gp-photobook-current h3 {
    margin: 0.4em 0 0;
    color: #ffffff;
    font-size: 1em;
}

/* Player video */

#three .gp-photobook-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid #404040;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1.5em;
}

#three .gp-photobook-screen video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

/* Playlist */

#three .gp-photobook-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666666 #191919;
}

#three button.gp-photobook-track {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
    height: auto;
    min-height: 3em;
    padding: 0.6em;
    background: #292929;
    color: #ffffff;
    border: 1px solid #404040;
    border-radius: 5px;
    box-shadow: none;
    text-align: left;
    font-size: 0.85em;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
    flex-shrink: 0;
}

#three button.gp-photobook-track:hover {
    background: #404040;
}

/* Photobook selezionato */

#three button.gp-photobook-track.is-active {
    background: #eeeeee;
    border-color: #eeeeee;
    color: #242424 !important;
    -webkit-text-fill-color: #242424;
}

/* Miniature */

#three .gp-photobook-thumbnail {
    display: block;
    width: 100px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111111;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Titolo nella playlist */

#three .gp-photobook-track-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
}

/* Nota dimostrativa */

#three p.gp-photobook-disclaimer {
    margin: 1.5em 0 0;
    font-size: 0.75em;
    color: #aaaaaa;
}

/* Accessibilità */

#three button.gp-photobook-track:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -3px;
}

/* Smartphone */

@media screen and (max-width: 736px) {

    #three .gp-photobook-player {
        padding: 1em;
        margin-bottom: 2em;
    }

    #three .gp-photobook-thumbnail {
        width: 80px;
    }

    #three .gp-photobook-track {
        gap: 0.8em;
    }

    #three .gp-photobook-playlist {
        max-height: 280px;
    }

}