/* Main Widget Styles */
.exhibitions-fallback {
    padding: 80px 16px;
    background: #3f2b8f;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.exhibitions-fallback .container {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

/* Header Styles */
.exhibitions-fallback .header {
    text-align: center;
    margin-bottom: 32px;
    color: white;
}

.exhibitions-fallback .header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.exhibitions-fallback .underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ffb347);
    margin: 8px auto;
    border-radius: 2px;
}

.exhibitions-fallback .subtitle {
    margin-top: 6px;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Grid Layout */
.exhibitions-fallback .grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Card Styles */
.exhibitions-fallback .card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #1a1a1a;
    min-height: 300px;
    position: relative;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    box-sizing: border-box;
}

.exhibitions-fallback .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.35);
}

/* Image Container */
.exhibitions-fallback .image-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: #eee;
    flex: 0 0 auto;
    overflow: hidden;
}

.exhibitions-fallback .image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.exhibitions-fallback .card:hover .image-wrap img {
    transform: scale(1.05);
}

/* Card Body */
.exhibitions-fallback .body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.exhibitions-fallback .title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
}

.exhibitions-fallback .dates {
    font-size: 0.75rem;
    text-transform: uppercase;
    background: rgba(255, 235, 230, 0.9);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    color: #3f2b8f;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 4px 0;
    line-height: 1.2;
}

.exhibitions-fallback .category {
    font-size: 0.65rem;
    font-weight: 600;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.exhibitions-fallback .location {
    font-size: 0.75rem;
    color: #555;
    margin-top: 4px;
}

/* Badge */
.exhibitions-fallback .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6b35;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Loading State */
.exhibitions-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .exhibitions-fallback .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .exhibitions-fallback {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .exhibitions-fallback .grid {
        grid-template-columns: 1fr;
    }
    
    .exhibitions-fallback .header h2 {
        font-size: 1.8rem;
    }
    
    .exhibitions-fallback .subtitle {
        font-size: 0.9rem;
    }
}

/* Accessibility Improvements */
.exhibitions-fallback .card:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .exhibitions-fallback {
        padding: 20px 0;
        background: none;
    }
    
    .exhibitions-fallback .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .exhibitions-fallback .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
