:root {
    --primary-color: #1a1a1a;
    --primary-hover: #000000;
    --secondary-color: #4a5568;
    --border-color: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: #0f172a;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Galleries Header */
.galleries-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.galleries-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.galleries-header p {
    opacity: 0.95;
    font-size: 0.938rem;
}

.galleries-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.938rem;
}

.galleries-count svg {
    width: 24px;
    height: 24px;
}

/* Galleries Grid */
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (min-width: 992px) {
    .galleries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Gallery Card */
.gallery-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.gallery-card-placeholder svg {
    width: 64px;
    height: 64px;
    color: #9ca3af;
}

.gallery-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.gallery-card-badge svg {
    width: 16px;
    height: 16px;
}

.gallery-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-card-date {
    font-size: 0.813rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.gallery-card-title {
    font-size: 1.063rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.gallery-card:hover .gallery-card-title {
    color: var(--primary-hover);
}

.gallery-card-photographer {
    font-size: 0.875rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    margin-top: auto;
}

.gallery-card-photographer svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-galleries {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
}

.empty-galleries svg {
    width: 80px;
    height: 80px;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-galleries h2 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.empty-galleries p {
    color: var(--secondary-color);
    font-size: 1.063rem;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-weight: 500;
    transition: var(--transition);
    margin: 0 0.125rem;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading Animation */
.gallery-card-image img {
    animation: fadeInImage 0.5s ease-in;
}

@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Focus States */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .galleries-header {
        padding: 1.5rem;
    }

    .galleries-header h1 {
        font-size: 1.375rem;
    }

    .galleries-header .d-flex {
        flex-direction: column !important;
        gap: 1rem;
    }

    .galleries-count {
        align-self: flex-start;
    }

    .galleries-grid {
        gap: 1.5rem;
    }
}
