a {
  text-decoration: none;
}

.mini-header {
  width: 100%;
  margin: 50px auto;
  display: flex;
  justify-content: space-around;
  align-content: center;
  /* text-align: center; */
}

.back {
  display: inline;
  margin-bottom: 35px;
  text-decoration: none;
  color: #219eff;
  font-weight: bold;
  font-size: 16px;
}

.back:hover {
  text-transform: underline;
  color: white;
}

.view-option button {
  border: none;
  background-color: transparent;
  color: white;
  font-size: 30px;
  margin:0;
  margin-left: 50px;
  padding: 0;
  cursor: pointer;
}

.view-option button:focus {
  outline: none;
}

.view-option button:hover {
  color: #219eff;
}

.onButton {
  color: #219eff;
}

.title {
  padding-bottom: 35px;
  font-family: Playfair, Times New Roman, Serif;
  font-size: 70px;
}

.artGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
  margin: 0 75px 175px 75px;

  animation: fadein 1.5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.block {
  position: relative;
  height: 300px;
  width: 100%;
}

.block, .block * {
  cursor: zoom-in;
}

.art {
  position: relative;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 20px black;
  height: 300px;
  width: 100%;
  object-fit: cover;
  z-index: 0;
  overflow: hidden;
}

.art img {
  width: 100%;
  min-height: 100%;
  left: 0;
  top: 0;
  display: block;
  position: absolute;
  object-fit: cover;
}

.dark {
  z-index: 1;
  animation: lighten 0.3s ease-in 0s normal 1 forwards running;
}

.text {
  position: absolute;
  text-align: center;
  padding-right: 20px;
  left: 20px;
  bottom: 0;
  z-index: 2;
  font-weight: normal;
  font-family: OpenSansLight, OpenSans, Helvetica;
  font-size: 16px;

  opacity: 0;
  animation: disappear 0.3s ease-in 0s normal 1 forwards running;
}


/* animation stuff */
.art:hover .dark {
  animation: darken 0.3s ease-in 0s normal 1 forwards running;
}

.art:hover .text {
  animation: appear 0.3s ease-in 0s normal 1 forwards running;
}

@keyframes darken {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.75;
  }
}

@keyframes lighten {
  0% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
  }
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes disappear {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Modal (credit goes to w3) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 4; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width of screen */
    height: 100%; /* Full height of screen */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgb(0,0,0, 0.9);
}

/* Modal Content (image) */
.modal-content {
    margin: auto; /* center */
    display: block;
    width: auto; /* 80% of screen */
    max-width: 1500px; /* keep from getting too wide */
    cursor: zoom-out;
}

/* Caption of Modal Image */
#caption {
    margin: auto; /* center */
    display: block;
    width: 90%; /* same width as image */
    max-width: 1600px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.3s;
    animation-name: zoom;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
}

@-webkit-keyframes zoom { /* for safari */
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: fixed;
    top: 75px;
    right: 10%;
    color: #bbb;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

/* media queries */
@media(max-width: 1400px){
  .artGrid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 1050px) {
  .piece {
    margin-left: 25px;
    margin-right: 25px;
  }
}

@media(max-width: 1000px){
  .artGrid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 725px){
  .artGrid{
    grid-template-columns: 1fr;
  }
}

@media(max-width: 575px){
  .back {
    font-size: 14px;
    padding-bottom: 25px;
  }

  .title {
    font-size: 40px;
    padding-bottom: 0;
  }
}

@media(max-width: 500px){
  .artGrid{
    margin: 0 25px 175px 25px;
  }
}

@media(max-width: 510px){
  .view-option button {
    margin-left: 20px;
  }
}

@media(max-width: 355px) {
  .mini-header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 25px 0;
  }

  .view-option {
    margin-top: 10px;
  }
}

/* All artwork */
