 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
}

.back-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-button:hover {
    background: #0056b3;
}

.main-content {
    display: grid;
    grid-template-columns: 2fr 0.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.main-image-container {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.placeholder {
    color: #666;
    font-size: 18px;
}

.description-container {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.description-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.description-text {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

.gallery-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.gallery-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
    min-width: 100px;
}

.control-button:hover {
    background: #1e7e34;
}

.control-button.active {
    background: #007bff;
}

.control-button.active:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-section {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .button-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #0056b3;
}