/* Product Gallery Styles */
.product-gallery {
    margin: 20px 0;
    width: 100%;
}

.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.gallery-main img,
.gallery-main .embed-responsive {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-main .embed-responsive {
    width: 100%;
    height: 100%;
}

.gallery-main .embed-responsive-item {
    width: 100%;
    height: 100%;
    border: none;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #4a6491 #f0f0f0;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #4a6491;
    border-radius: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #4a6491;
    opacity: 1;
    box-shadow: 0 4px 8px rgba(74, 100, 145, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #3b5998, #8b9dc3);
    color: white;
    font-size: 20px;
}

.video-thumbnail .fa-play-circle {
    font-size: 24px;
}

.video-label {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.6);
    padding: 1px 4px;
    border-radius: 2px;
}

.gallery-description {
    text-align: center;
    color: #555;
    font-style: italic;
    font-size: 14px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-main {
        height: 300px;
    }

    .thumbnail-item {
        width: 70px;
        height: 50px;
    }
}