/* photo album */
*{

    margin: 0; padding: 0; border: 0; box-sizing: border-box; 
}

body {
    background-color: hsl(0, 57%, 20%);
    background-image: linear-gradient(45deg,hsl(0, 51%, 8%), hsl(0, 57%, 20%));
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    
}

#container {
    width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-weight: bold;
    color: hsl(0, 4%, 40%);
    font-size: 2.6em;
    text-transform: capitalize;
    border-bottom: 10px double hsl(0, 4%, 40%);
    margin: 8px 8px 40px 8px;
    padding: 20px;
}

p {
    
    color: hsl(0, 4%, 50%);
    margin-bottom: 30px;
    padding-left: 60px;
    padding-right: 60px;
    font-size: large;
}

#photos {
    display: flex; 
    flex-flow: row wrap;
    flex-grow: 0;
    flex-basis: 30%;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 50px;
    text-align: center;
  
}

#photos figure {
    border: 10px solid black;
    aspect-ratio: 2/1.5; 
    flex-grow: 0;
    flex-basis: 30%;
    margin-bottom: 50px;
    position: relative;
    
    
}


figure a {
    display: inline-block;
    width: 100%;
    height: 100%;
}

figure a img {
    width: 100%; height: 100%;
}
    
figure  figcaption {
   
    position: absolute;
    top: 80%; left: 0;
    width: 100%; height: 20%;
    background-color: black;
    color: hsl(0, 4%, 40%);
    text-align: center;
    line-height:50px;
    padding: 8px;
    
 }

 