/* Gallery Plugin Styles */

/* Gallery Card Hover Effects */
.gallery-card:hover .gallery-overlay {
    opacity: 1 !important;
}

/* Gallery Lightbox Styles */
.gallery-lightbox-modal {
    z-index: 1060;
}

.gallery-lightbox-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 0;
}

.gallery-lightbox-header {
    border: none;
    padding: 15px 20px;
    background: transparent;
}

.gallery-lightbox-title {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-lightbox-body {
    padding: 0;
    position: relative;
}

/* Main Image Container */
.gallery-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-height: 80vh;
    overflow: hidden;
}

.gallery-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 20px;
}

.gallery-nav-btn.next {
    right: 20px;
}

.gallery-nav-btn i {
    font-size: 1.2rem;
    color: #333;
}

/* Image Counter */
.gallery-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Image Info */
.gallery-image-info {
    display: none !important;
}

.gallery-image-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-image-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Thumbnail Strip */
.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    max-width: 100%;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--accent-color, #ffd700);
    transform: scale(1.1);
}

/* Loading State */
.gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: white;
    font-size: 1.1rem;
}

.gallery-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-lightbox-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }

    .gallery-lightbox-content {
        height: 100vh;
        border-radius: 0;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-nav-btn.prev {
        left: 10px;
    }

    .gallery-nav-btn.next {
        right: 10px;
    }

    .gallery-thumbnails {
        padding: 10px;
    }

    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }

    .gallery-counter {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Error State */
.gallery-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: white;
    text-align: center;
}

.gallery-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Gallery Card Custom Colors */
.gallery-card[data-color] {
    position: relative;
}

.gallery-card[data-color]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--card-color), transparent);
    pointer-events: none;
    border-radius: inherit;
}