body { 
    font-family: Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
}
.gallery { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 16px; 
    padding: 24px; 
    justify-content: center;
}
.thumbnail { 
    height: 150px; 
    max-width: 90vw;
    cursor: pointer; 
    border: 2px solid #eee; 
    border-radius: 8px; 
    transition: border 0.2s; 
}
@media(max-width:750px) {
    .thumbnail {
        height: 200px;
    }
}
.thumbnail:hover { 
    border: 2px solid #333; 
}
.dialog-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0,0,0,0.5); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 1000;
    cursor: pointer;
}
.dialog {
    background-color: rgba(22, 25, 27, 0.8);
    padding: 24px; 
    border-radius: 10px; 
    max-height: 90vh; 
    max-width: 90vw;
    height:fit-content;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2); 
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: auto;
}
.dialog img { 
    width: 100%; 
    border-radius: 8px; 
    max-height: 83vh;
}
.close-btn {
    position: absolute; 
    top: 12px; 
    right: 12px; 
    background: #eee; 
    border: none;
    border-radius: 50%; 
    width: 32px; 
    height: 32px; 
    font-size: 18px; 
    cursor: pointer;
    padding: unset;
    line-height: unset;
}
.details { 
    margin-top: 16px; 
}
.details h2 { 
    margin: 0 0 8px 0; 
    font-size: 1.2em; 
}
.details p { 
    margin: 0; 
}