body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: orange;
}
/* Site header */
.site-header{
    background: rgb(46, 31, 4); /* matches caption color */
    color: #ffffff;
    text-align: center;
    padding: 14px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    position: sticky; /* keeps header visible at top while scrolling */
    top: 0;
    z-index: 1000;
}
.site-header h1{
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
img{
    width: 100%;
    height: auto;
}
/* Card title styling (was h1) */
h2{
    text-align: center;
    color: rgb(46, 31, 4);
    padding: 12px 8px;
    text-shadow: 2px 2px 4px #000000;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
}

/* Grid container: equal-width columns */
.grid{
    display: grid;
    /* fluid columns: as many columns as fit, each at least 220px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding: 18px;
    box-sizing: border-box;
    max-width: 1200px; /* optional: keep content from stretching too wide */
    margin: 0 auto;
}

.card{
    background: rgba(255,255,255,0.05); /* subtle separation */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card a{ /* ensure anchor fills the card width */
    display: block;
}

.card img{
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive: 2 columns on medium screens */
@media (max-width: 900px){
    .grid{ grid-template-columns: repeat(2, 1fr); }
}

/* Single column on small screens */
@media (max-width: 500px){
    .grid{ grid-template-columns: 1fr; }
}