/* Default Styles (Mobile-First) */
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 - No Media Queries Needed */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

figure {
    border-radius: 50%;
}

/* Tablet View (min-width: 772px) */
@media (min-width: 772px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    figure:last-of-type {
        grid-column: span 2;
        /* Last figure takes both columns */
        border-radius: 50%;
        /* Circular shape */
    }
}

/* Large Screen View (min-width: 992px) */
@media (min-width: 992px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }

    figure:nth-child(3n) {
        grid-column: span 2;
        /* Every 3rd figure takes both columns */
    }

    figure {
        border-radius: 0;
        /* Remove border radius on large screens */
    }
}

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

/* Dark Mode (prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
    figure {
        background-color: #333;
        /* Dark background for figures */
        color: #13d136;
        /* Lighter color (yellow-ish) */
        border-color: #000;
        /* Black border */
    }
}