html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
    background-color: rgb(225, 228, 212);
    color: rgb(69, 51, 68);
    font-family: 'Courier New', Courier, monospace;
}
.active {
color: rgb(85, 85, 85);}


a:link {
    color: rgb(182, 85, 150);
    background-color: transparent;
    text-decoration: none;
  } 

  a:visited {
    color: rgb(182, 85, 150);
    background-color: transparent;
    text-decoration: none;
  }

  a:hover {
    color: pink;
    background-color: transparent;
    text-decoration: wavy underline;
    
  }

  #links
 {color: rgb(182, 85, 150);} 
 


 .header {
  
    
   
    /* Chrome, Safari, Opera */
   -webkit-animation: rainbow 30s infinite; }

   @-webkit-keyframes rainbow{
    0%{color: rgb(69, 51, 68);}	
    10%{color: rgb(46, 138, 43);}	
      20%{color:rgb(26, 143, 75);}
    30%{color: rgb(60, 83, 117);}
      40%{color: rgb(124, 63, 153);}
    50%{color: rgb(168, 58, 58);}
      60%{color:rgb(145, 67, 32);}
    70%{color: rgb(168, 170, 57);}
    80%{color: rgb(48, 99, 27);}
    90%{color: rgb(22, 62, 99);}
      100%{color: rgb(69, 51, 68);;}
  }


 

#container {
    padding: 20px;
}

@media only screen and (max-width: 600px) {
    .gallery
    {
  grid-gap: 0rem;

    }
}   





.img-art
{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    cursor: pointer;
}

.underline 
{
  border-bottom: 1px solid currentColor;
  color: rgb(182, 85, 150);
}


.gallery
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(auto));
  grid-gap: 1rem;
  grid-auto-flow: dense;
}

@media only screen and (max-width: 600px) {
    .gallery
    {
  grid-gap: 0rem;

    }
}   



.large-figure
{
  padding-left: 10rem;
  padding-right: 10rem;


  grid-column: span 2; /* Spans two columns */
  grid-row: span 2; /* Spans two rows */
}

@media only screen and (max-width: 1080px) {
    .large-figure
    {
     padding-left: 0rem;
  padding-right: 0rem;
      grid-column: auto; /* Spans two columns */
      grid-row: auto; /* Spans two rows */
    }
}    

.modal 
{
  display: none;
    justify-content: center;
    align-items: center;
  position: fixed;
  z-index: 1;
  padding: 10px 62px 0px 62px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.links
{
  position: static;
  display: flex;
  wrap; flex-wrap;
  flex-direction: row;
  justify-content: left;
  margin: bottom right;
  padding: 0 0 0 0;
  width: 100%;
  height: 100%;
}

.modal-content 
{
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  padding: 0 0 0 0;
  width: 100%;
  height: 100%;
}

/* Same with your slides, you set the display to none, because you want to choose which 
   one is shown at a time. */

.slide {
  position: fixed;
  display: none;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  padding: 0 0 0 0;
  width: 100%;
  height: 100%;}

.image-slide {
  display: block;
  margin: auto;
  width: 100%;
  object-fit: contain;
  height: 100%
}

/* You want the previews a little transparent to show that they are "inactive". 
   You then add an .active or :hover class to animate the selections for your user when
   they interact with your controls and clickable content.
 */

    

img.active,
.preview:hover,
.modal-preview:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
} 

.close {
  color: pink;
  position: absolute;
   transition: 3s ease;
  top: 10px;
  right: 25px;
  font-size:3rem;
  font-weight: thin;
  z-index: 2;
}

.close:hover,
.close:focus {
text-decoration: none;
  cursor: pointer;
  -webkit-animation: rainbow 10s infinite; }

   @-webkit-keyframes rainbow{
    0%{color: rgb(69, 51, 68);}	
    10%{color: rgb(46, 138, 43);}	
      20%{color:rgb(26, 143, 75);}
    30%{color: rgb(60, 83, 117);}
      40%{color: rgb(124, 63, 153);}
    50%{color: rgb(168, 58, 58);}
      60%{color:rgb(145, 67, 32);}
    70%{color: rgb(168, 170, 57);}
    80%{color: rgb(48, 99, 27);}
    90%{color: rgb(22, 62, 99);}
      100%{color: rgb(69, 51, 68);;}
  
}

.previous,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: pink;
  font-weight:normal;
  font-size: 20px;
  transition: 3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.previous:hover,
.next:hover {
-webkit-animation: rainbow 10s infinite; }

   @-webkit-keyframes rainbow{
    0%{color: rgb(69, 51, 68);}	
    10%{color: rgb(46, 138, 43);}	
      20%{color:rgb(26, 143, 75);}
    30%{color: rgb(60, 83, 117);}
      40%{color: rgb(124, 63, 153);}
    50%{color: rgb(168, 58, 58);}
      60%{color:rgb(145, 67, 32);}
    70%{color: rgb(168, 170, 57);}
    80%{color: rgb(48, 99, 27);}
    90%{color: rgb(22, 62, 99);}
      100%{color: rgb(69, 51, 68);;}
}