/* Animations for Gallery */

/* Fullscreen Animations */
.fullscreen-overlay {
    animation: fadeIn 0.7s ease;
}

.fullscreen-image {
    animation: enlargeImage 0.7s ease;
    transform-origin: center;
}

.fullscreen-overlay.closing {
    animation: fadeOut 0.7s ease;
}

.fullscreen-image.closing {
    animation: shrinkImage 0.7s ease;
    transform-origin: center;
}

@keyframes enlargeImage {
    from {
        transform: scale(0.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shrinkImage {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.2);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Tooltip Animation */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Button Pulse Animation for Active States */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.nav-controls button.active {
    animation: pulse 2s infinite;
}

/* Gallery Item Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item.loading {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Settings Panel Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.settings-panel.animated {
    animation: slideIn 0.3s ease-out forwards;
}