* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #1e1e1e;
    color: #ddd;
}

header {
    background: #111;
    color: white;
    text-align: center;
    padding: 25px;
}

/* Masonry-like layout */
.gallery {
    column-count: 3;
    column-gap: 15px;
    padding: 20px;
    margin-bottom: 80px;
}

.item {
    background: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    break-inside: avoid;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.item:hover {
    transform: scale(1.02);
}

.item img {
    width: 100%;
    display: block;
    cursor: pointer;
}

.item.text {
    padding: 15px;
    line-height: 1.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.footer a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer a:hover {
    color: #1da1f2;
}