/* basic styles */
:root {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background-color: #0f172a;
    color: #e6eef8;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-sizing: border-box;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35));
}

.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

header h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    letter-spacing: 0.4px;
}

.locker {
    background: rgba(255,255,255,0.03);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(2,6,23,0.6);
    max-width: 520px;
}

.locker p {
    margin: 0 0 14px 0;
    opacity: 0.9;
}

.notice {
    color: #ffb3b3;
    margin-bottom: 10px;
}

form {
    display: flex;
    gap: 12px;
}

input {
    flex: 1 1 auto;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

button {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    color: white;
    font-weight: 600;
}

/* gallery layout */
.toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.button {
    display: inline-block;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: inherit;
    font-weight: 600;
}

/* grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.tile {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

.tile img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
    cursor: pointer;
}

.tile img:hover {
    transform: scale(1.03);
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.85);
    z-index: 9999;
    padding: 18px;
}

.lightbox img {
    max-width: calc(100% - 160px);
    max-height: calc(100% - 160px);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.plain {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    padding: 12px;
    cursor: pointer;
    text-decoration: none;
}

.close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 22px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: rgba(255,255,255,0.04);
    padding: 16px;
    border-radius: 14px;
}

.nav:nth-of-type(1) { left: 18px; }
.nav:nth-of-type(2) { right: 18px; }

.download {
    position: absolute;
    bottom: 18px;
    right: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

footer {
    margin-top: 18px;
    opacity: 0.8;
    font-size: 13px;
}

.muted {
    opacity: 0.85;
}
