body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.album {
    position: relative;
    width: 400px;
    height: 400px;
    perspective: 1000px;
}

.photo {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 1s, opacity 1s;
    transform-style: preserve-3d;
    border: 2px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
}

.photo.visible {
    opacity: 1;
    z-index: 1;
}

#loading {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#loading-text {
    font-size: 20px;
    margin-bottom: 20px;
}

#loading-bar {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    position: relative;
}

#loading-bar>div {
    height: 100%;
    width: 0;
    background-color: #3498db;
    transition: width 0.2s;
}