

.lato-regular {font-family: "Lato", serif;
    font-weight: 400;
    font-style: normal;}

body {margin: 0; 
    padding: 0;
    font-family: Lato, sans-serif;
    line-height: 1.6;
    background-image: url(BLANK-PAGE-print.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;}
  

h1, h2 {text-align: center;
    margin: 20px 0;}

footer {text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;}


/* Flex container for the header.*/
.header {display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #4b4040d3;
    padding: 20px;
    color: #ffffff;}


/* Flex container for the nav.*/
.nav-menu {display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 10px 0;}

.nav-menu li a {text-decoration: none;
    color: #ffffff;}

/* Grid code.  I think this will work on all sheets, at least that is my plan */
.grid-container {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;}

.grid-item {padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(255, 147, 147, 0.1);}

.scalable-image {max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;}



/* Media queries added here.  I think I have the pages are consistent enough to work on every with the same ones, just like the grid. */
@media (max-width: 768px) {.nav-menu {
        flex-direction: column;
        gap: 10px;}

        .header p {font-size: 0.9em;}}
        .gallery-grid {grid-template-columns: 1fr;}

    .vertical-gallery img {max-width: 100%;
        max-height: 120px;}
    .image-box {grid-template-columns: 1fr;}

@media (max-width: 480px) {h1 {font-size: 1.5em;}
    .nav-menu {font-size: 0.8em;}
    .grid-container {grid-template-columns: 1fr;}}

/* Please work this time */
.nav-menu li {position: relative;}

.nav-menu .dropdown-menu {display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px 0;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);}

.nav-menu .dropdown-menu li {padding: 5px 15px;}

.nav-menu .dropdown-menu li a {text-decoration: none;
    color: #333;}

.nav-menu .dropdown:hover .dropdown-menu {display: block;}




/* This came from codepen for the slider.  I edited it to match what I needed. */

@keyframes slidy {
0% { left: 0%; }
20% { left: 0%; }
25% { left: -100%; }
45% { left: -100%; }
50% { left: -200%; }
70% { left: -200%; }
75% { left: -300%; }
95% { left: -300%; }
100% { left: -400%; }
}
* {
  box-sizing: border-box;
}
  figure { 
    margin: 0; 
    background: transparent;*/
  }
  
div#captioned-gallery { 
  width: 100%; overflow: hidden; 
}

figure.slider { 
  position: relative; width: 500%;
  font-size: 0; animation: 35s slidy infinite;
}
figure.slider figure { 
  width: 20%; height: fit-content;
  display: inline-block;  position: inherit;
}
figure.slider img { width: 100%; height: auto;}


figure.slider figure figcaption { 
  position: absolute; bottom: 0;
  background: rgba(0,0,0,0.4);
  color: #fff; width: 100%;
  font-size: 2rem; padding: .6rem; 
}


/* Grid layout */
.gallery-grid {display: grid;
    grid-template-columns: 1fr 2fr; /* Left 1/3 for description, right 2/3 for images */
    gap: 20px;
    margin: 20px;
    align-items: stretch;}

/* Container for the left side of the screen where I wrote descriptions */
.gallery-description {padding: 20px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(255, 157, 157, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;}

/* Callery for stacked images.  I experimented with several layouts and only used this one on the textures page. */
.vertical-gallery {display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    height: 100%;
    overflow-y: auto;
    background-color: #f9f9f9;}

.vertical-gallery figure {display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;}

.vertical-gallery img {max-width: 90%;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);}

.vertical-gallery figcaption {margin-top: 5px;
    font-size: 0.9em;
    color: #555;}



/* Grid box for the 3x2 image layout */
.image-box {display: grid;
    grid-template-columns: repeat(3, 1fr); /* This alligns it as three images per row. */
    gap: 10px; 
    background-color: #f9f9f9; 
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);}

.image-box img {width: 100%; 
    height: auto; 
    border: 1px solid #ccc; 
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);}

    /* Grid box for the 4 images in a row layout */
.image-box2 {display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; 
    background-color: #f9f9f9; 
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);}

.image-box2 img {width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);}

    /* Grid box for the 2 images in a row layout */
.image-box3 {display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; 
    background-color: #f9f9f9; 
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);}


.image-box3 img {width: 100%; 
    height: auto; 
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);}