* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #20232a;
    color: white;
    padding: 1rem;
    text-align: center;
}

header nav {
    margin-top: 0.5rem;
}

header nav a {
    color: #61dafb;
    text-decoration: none;
    margin: 0 1rem;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gallery {
    padding: 2rem;
    text-align: center;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.thumb {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.thumb p {
    padding: 0.5rem;
}

.thumb:hover {
    transform: scale(1.03);
}

.viewer-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.viewer {
    position: relative;
    width: 80vw;
    height: 80vw;
    max-width: 80vh;
    max-height: 80vh;
    background: #f0f0f0;
    border: 1px solid #ccc;
    overflow: hidden;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #61dafb;
    color: #20232a;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #21a1f1;
}

footer {
    background-color: #20232a;
    color: white;
    text-align: center;
    padding: 1rem;
}
