/* Training Gallery Styles */
.training-gallery-container {
    max-width: 100%;
}

/* Main Image Display */
.main-image-container {
    height: 800px;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.main-image-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    border-radius: 0 0 0.5rem 0.5rem;
}

.main-image-caption {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.main-image-description {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Navigation Arrows */
.nav-arrow {
    background-color: rgba(255, 255, 255, 0.9);
    color: #212529;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.nav-arrow:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.nav-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Thumbnails */
.thumbnails-wrapper {
    padding: 0.75rem 0;
}

.thumbnails-wrapper::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-wrapper::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 0.375rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    position: relative;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 110, 253, 0.1);
    pointer-events: none;
}

/* Fade transitions */
.main-image.fade-out {
    opacity: 0;
}

.main-image.fade-in {
    opacity: 1;
}

/* Loading state */
.loading {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

    .main-image-overlay {
        padding: 1rem;
    }

    .main-image-caption {
        font-size: 1.1rem;
    }

    .main-image-description {
        font-size: 0.9rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .thumbnail {
        width: 100px;
        height: 75px;
    }

    .thumbnails-wrapper {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 250px;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .thumbnails-wrapper {
        gap: 0.5rem;
    }
}
