:root {
    --bg-color: #0f0f0f;
    --surface-color: #1e1e1e;}
body {
    background-color: var(--bg-color);
    color: #ffffff;
    font-family: system-ui, sans-serif;
    margin: 0;
    padding: 20px;}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;}
.gallery-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--surface-color);
    cursor: pointer;}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;}
.gallery-item:hover img {
    transform: scale(1.05);}
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;}
.lightbox.active {
    display: flex;
    opacity: 1;}
.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;}
.lightbox-close:hover {
    color: #ccc;}
