.gallery {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.main-image-container {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    border-radius: 5px;
}
.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
.thumbnail:hover {
    border-color: #999;
}

.thumbnail.active {
    border-color: #0066cc;
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.3);
}
.image-title {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .thumbnail-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .thumbnail {
        border-width: 1px;
    }
    .image-title {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .thumbnail-container {
        gap: 5px;
    }
}