/* MLM Gallery - Gallery-spezifische Styles */

.gallery-container {
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: white;
    border-radius: var(--mlm-border-radius);
    box-shadow: var(--mlm-shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--mlm-shadow-lg);
}

.gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item-link:hover {
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
    cursor: pointer;
}

.gallery-item-content {
    padding: 1.5rem;
}

.gallery-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mlm-primary);
}

.gallery-item-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.gallery-item-designer {
    font-style: italic;
    color: #888;
    font-size: 0.875rem;
}

/* Image Modal für Vergrößerung */
.gallery-modal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

.gallery-modal .modal-content {
    border: none;
    background: rgba(255, 255, 255, 0.9);
}

.gallery-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.gallery-modal .modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Pagination */
.gallery-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-container {
        padding: 1rem 0;
    }

    .gallery-item img {
        height: 200px;
        object-fit: contain;
    }
}

/* Barrierefreiheit */
.gallery-item:focus-within {
    outline: 3px solid var(--mlm-primary);
    outline-offset: 2px;
}

.gallery-item img:focus {
    outline: none;
}

/* Loading State */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
}
