/* Gallery Styles */
.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .card-body {
    padding: 1rem;
}

.gallery-item .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.gallery-category {
    margin-bottom: 2.5rem;
}

.gallery-category h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Lightbox overrides */
.lb-data .lb-caption {
    font-size: 14px;
    line-height: 1.4;
}

.lb-data .lb-details {
    width: 100%;
    padding: 0 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
}

/* Loading animation */
.gallery-loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Category badges */
.category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 50rem;
    background-color: #e9ecef;
    color: #495057;
}

/* Admin specific styles */
.gallery-admin-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-admin-actions {
    opacity: 1;
}

/* Image preview in forms */
.image-preview-container {
    margin-bottom: 1rem;
    text-align: center;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border: 1px dashed #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    display: none;
}

/* Sortable items */
.sortable-ghost {
    opacity: 0.4;
    background: #c8ebfb;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}
