body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Thumbnail gallery for figure shortcodes */
.figure-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.figure-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.figure-gallery figure a {
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

/* Override any figure styles that might interfere */
.figure-gallery figure img {
    max-width: 100% !important;
    height: 300px !important;
}

/* More specific overrides for Bootstrap and browser defaults */
.col-lg-8 .figure-gallery img,
.container .figure-gallery img,
article .figure-gallery img {
    width: 100% !important;
    height: 300px !important;
    max-width: none !important;
    object-fit: cover !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('/images/museumheader.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 75vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    width: 100%;
    padding: 4rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    font-weight: 300;
    line-height: 1.4;
}

.hero-buttons .btn {
    margin-bottom: 1rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-width: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-info i {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.hero-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-info small {
    opacity: 0.9;
}

.hero-info a {
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
}

.hero-info a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Responsive hero adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero-info {
        padding: 1.5rem;
    }
}

/* Optional: Add some spacing to content areas */
article {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

article:last-child {
    border-bottom: none;
}

/* Contact form styling */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #dee2e6;
}

.contact-form .form-label {
    font-weight: 600;
    color: #495057;
}

.contact-form .btn-primary {
    padding: 12px 30px;
    font-weight: 600;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Hide date on contact page */
.contact-page .text-muted {
    display: none;
}

/* Homepage news cards */
.news-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.news-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.news-card .card-title a {
    color: #2c3e50;
    transition: color 0.2s ease;
}

.news-card .card-title a:hover {
    color: #0d6efd;
}

.news-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
}

.news-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.news-card .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-img-top-wrapper,
    .card-img-placeholder {
        height: 160px;
    }
}

