﻿/* ---------------------------------------------------------
   Shared Gallery components (used by GalleryView & others
   --------------------------------------------------------- */
/* Breadcrumbs */
.breadcrumbs {
    text-align: center;
    margin: 20px 0;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    color: #555;
}

    .breadcrumbs a {
        color: var(--color-button);
        text-decoration: none;
        font-weight: 500;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
        }

    .breadcrumbs span {
        font-weight: 600;
        color: #333;
    }

/* Back button (shared between Galleries / GalleryView) */
.back-button {
    text-align: center;
    margin: 30px 0;
}

    .back-button a {
        display: inline-block;
        padding: 8px 16px;
        background-color: var(--color-button);
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
        font-family: 'Lato', sans-serif;
        transition: background-color 0.3s ease;
    }

        .back-button a:hover {
            background-color: var(--color-button-hover);
        }

/* ---------------------------------------------------------
   Shared component: Password form (used in public + admin
   --------------------------------------------------------- */
.password-form {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    max-width: 300px;
    margin: 40px auto;
    text-align: center;
    color: #ccc;
}

    .password-form input[type="password"] {
        width: 100%;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid #444;
        background: #222;
        color: #eee;
        box-sizing: border-box;
    }

    .password-form button {
        margin-top: 12px;
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        background: #555;
        color: #fff;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .password-form button:hover {
            background: #777;
        }

/* ---------------------------------------------------------
   12) Animations
   --------------------------------------------------------- */
.error-shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}
