* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
/* body{background-color: #1a1a1a;} */

img{max-width: 100%;}
a{color: #0066cc;text-decoration: none;}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5rem;
    padding: 0 1rem;
}

header{
    padding-top: 1rem;
}

.logo{display: flex;}
img.logo-image {
    width: 100%;
}

.nav {
    margin-top: 15px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nav-list li {
    white-space: nowrap;
}

.nav-list a {
    text-decoration: none;
    color: #0066cc;
    font-size: 14px;
    padding: 5px 10px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h1 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: auto;
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 100%;
    height: 60px;
    border: 1px solid #ccc;
    object-fit: cover;
    cursor: pointer;
}

.thumbnail.active {
    border: 2px solid #898989;
}

.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    font-size: 12px;
    color: #666;
}

/* Tablet Styles */
@media screen and (min-width: 768px) {
    .container {
        max-width: 750px;
    }

    .nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1040px;
    }

    .main-content {
        flex-direction: row;
        gap: 30px;
    }

    .left-column {
        border-right: 1px solid;
        padding-top: 1.5rem;
        padding-right: 3rem;
        width: 35%;
    }

    .right-column {
        padding-top: 1.5rem;
        padding-left: 1rem;
        width: 57%;
    }

    h1 {
        font-size: 24px;
    }

    .nav-list {
        justify-content: flex-start;
    }

    .thumbnail {
        height: 70px;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .nav-list a {
        padding: 8px 12px; /* Larger touch targets */
    }

    .thumbnail {
        min-height: 80px; /* Larger thumbnails for touch */
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .header {
        background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
        border-color: #333;
    }

    .nav-list a {
        color: #66b3ff;
    }

    .description {
        color: #cccccc;
    }

    .image-caption {
        color: #999;
    }

    .footer {
        color: #999;
        border-color: #333;
    }
}

/* Print Styles */
@media print {
    .nav {
        display: none;
    }

    .thumbnail-gallery {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}