* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0f1115;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

.password-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.password-form {
    display: grid;
    gap: 16px;
    width: min(100%, 360px);
    padding: 28px;
    background: #1a1d24;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.password-form h1 {
    text-align: center;
}

.password-form input,
.password-form button {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #444a56;
    border-radius: 4px;
    font: inherit;
}

.password-form input {
    background: #0f1115;
    color: #fff;
}

.password-form button {
    background: #fff;
    color: #0f1115;
    cursor: pointer;
    font-weight: 600;
}

.password-error {
    color: #ff6b6b;
}

header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    position: sticky;
    top: 0;
    z-index: 10;
}

h1 {
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.collage-container {
    columns: 4 250px;
    column-gap: 15px;
    padding: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.collage-item {
    background-color: #1a1d24;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.collage-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.collage-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.viewer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.viewer-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.prev-btn {
    left: -80px;
}

.next-btn {
    right: -80px;
}

@media (max-width: 768px) {
    .nav-btn {
        padding: 10px 15px;
        font-size: 18px;
    }

    .prev-btn {
        left: -40px;
    }

    .next-btn {
        right: -40px;
    }
}