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

body {
    background: #000;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 1px solid #222;
}

header h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

header #bio {
    max-width: 600px;
    margin: 0 auto;
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    font-style: italic;
}

#gallery {
    column-count: 4;
    column-gap: 16px;
    padding: 24px;
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 1400px) { #gallery { column-count: 3; } }
@media (max-width: 900px)  { #gallery { column-count: 2; } }
@media (max-width: 600px)  { #gallery { column-count: 1; } }

.tile {
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    transition: transform 0.25s ease;
}

.tile img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.25s ease;
}

.tile:hover {
    transform: scale(1.02);
}

.tile:hover img {
    opacity: 0.75;
}

.tile .tile-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    font-size: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tile:hover .tile-title {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    max-height: 90vh;
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 1fr 360px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
        overflow-y: auto;
    }
}

#modal-image {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #000;
}

.modal-info {
    padding: 30px;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.modal-info dl {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.modal-info dt {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    margin-top: 12px;
}

.modal-info dd {
    color: #ddd;
    margin-top: 4px;
    line-height: 1.5;
}

.modal-info #modal-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.modal-info #modal-description:empty::before {
    content: "Description coming soon...";
    color: #555;
    font-style: italic;
}

#modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    border: 1px solid #333;
    color: #eee;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

#modal-close:hover {
    background: #222;
}
