/* 
    Created on : 8. 11. 2024, 19:27:31
    Author     : jelinjon
*/

.photo-presentation {

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100vh;
    gap: 1vw;
    overflow: visible;
    
    a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        
        &.prev-block {
            justify-content: flex-end;
        }
        &.next-block {
            justify-content: flex-start;
        }
        
        .neighbor {
            width: 8vw;
            opacity: 0.7;
            transition: all 0.3s ease;
            cursor: pointer;
            

            &:hover {
                opacity: 0.9;
                transform: scale(1.1);
            }
            &.previous {
                
            }
            &.next {
                
            }
        }
    }
    
    .shuffle-current {
        top: 0;
        left: 0;
        position: absolute;
        width: 600px;
    }
    
    .current {
        max-width: 82vw;
        width: auto;
        max-height: 95vh;
        height: auto;
        
        border: 5px solid #fff;
        box-shadow: 0 0 20px var(--shadow-primary-color);
        transition: transform 0.3s ease;
        z-index: 10;
        
        &:hover {
            transform: scale(1.05);
        }
    }
    
    a {
        text-decoration: none;
    }
}
:-webkit-full-screen .photo-presentation {
    
    .current:hover {
        transform: none !important;
    }
    .neighbor {
        width: 6vw;
        
        &:hover {
            opacity: 0.7 !important;
            width: 7vw;
            /*transform: none !important;*/
        }
    }
}

:-moz-full-screen .photo-presentation {
    
    .current:hover {
        transform: none !important;
    }
    .neighbor {
        width: 6vw;

        &:hover {
            opacity: 0.7 !important;
            width: 7vw;
            /*transform: none !important;*/
        }
    }
}

.album-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.album-info {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.album-name {
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 10px;
}

.album-description {
    font-size: 1em;
    color: var(--gray);
    margin-bottom: 20px;
}

.album-details {
    font-size: 1em;
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
}


.importance-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    
    .low-importance-wrapper {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: 330px;
        width: auto;
        gap: 5px;
        
        a {
            width: 100%;
            height: 100%;
            
            img {
                height: 106px;
                z-index: 1;
                transition: transform 0.6s;
                transition-delay: 0.2s;
            }
        }
    }
    .photo-wrapper {
        width: fit-content;
        position: relative;
        z-index: 1;
        transition: z-index 0.8s;
        
        .photo-details {
            visibility: hidden;
            position: absolute;
            min-width: 200px;
            background: var(--albumphoto-details-background);
            color: var(--text-accent-color);
            padding: 10px;
            box-shadow: 0 4px 8px var(--shadow-primary-color);
            z-index: 20;
            white-space: normal;
            transition: all 1s;
            opacity: 0;
        }
        
        &:hover {
            z-index: 10;
            .photo-details {
                visibility: visible;
                display: block;
                opacity: 1;
                transform: translateX(0);
                transition-delay: 0.6s;
            }
            
        }
        
        &.low-importance {
            .photo-details {
                top: -50%;
                left: 150%;
                /*top: -100%;*/
                /*left: 0;*/
            }

            &:hover {
                img {
                    z-index: 10;
                    transform: scale(2);
                }
            }
        }
        
        &.high-importance {
            .photo-details {
                top: 0;
                left: 100%;
            }
        }
    }
    
    img {
        width: auto;
        height: 330px;
    }
}

.album-view-form {

    .placeholder {
        text-align: center;
        padding: 12px;
    }

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;

    .carousel-controls-wrapper {
        display: flex;
        justify-content: center;
    }
}