html {
    scroll-behavior: smooth;
}

body {
    background-color: #dedede;
    padding: 5px;
    margin: 15px;
    font-size: 25px;
    font-family: Arial, sans-serif;
}

h1 {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 1.95em;
}

h2 {
    text-align: center;
}

li {
    margin-top: 20px;
}

img {
    border: 5px solid blue;
    border-radius: 35px;
    width: 100%;
}

.label {
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Mobile View - Default (No media query) */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Tablet View (min-width: 772px) */
@media (min-width: 772px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
    figure {
        border-radius: 50%; /* Circular shape */
    }
    figure:last-child {
        grid-column: span 2; /* Last figure spans both columns */
    }
}

/* Large Screen View (min-width: 992px) */
@media (min-width: 992px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
    figure {
        border-radius: 0; /* Remove border-radius */
    }
    figure:nth-child(3n) {
        grid-column: span 2; /* Every third figure spans two columns */
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #222;
        color: #ddd;
    }
    figure {
        background-color: #444;
        color: yellow;
        border: 2px solid black;
    }
}
