<style>
.heading {
  
}
.header {
  
}
.nav {
  
}
.menu {
  
}
.mediatypes{
  
}
        .body{
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
            background-color: #f4f4f4;
        }
        .thumbnails{
          display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
    /*make containers into all same size square boxes display 3x3*/  
        }
        .galleryitem{
          background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s ease-in-out;
            padding:10px;
            aspect-ratio: 1 / 1; 
    /* Alignment for inner content */
            display: flex;
            flex-direction: column;
        }
        .galleryitem:hover{
          transform: scale(1.03);
        }
        .galleryitem img {
            width: 100%;
            flex-grow: 1;
            height: 0; 
            object-fit: cover; /* Crops the image evenly to fit the square layout */
            display: block;
        }

        /* Caption Formatting */
        .titles{
            padding: 15px;
            text-align: center;
            font-size: 18px;
            color: #333;
            background-color: #fff;
            border-top: 1px solid #eee;
            font-weight: bold;
        }
  </style>