header {
    margin-top: 0;
    padding: 0px;
    text-align: center;
}

header h2 {
    font-size: 50px;
    font-family: "Cormorant Upright", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 20px;
}

header h3 {
    margin-top: 0;
    font-size: 15px;
    font-family: "Cormorant Upright", serif;
    font-weight: 400;
     font-style: normal;
}

nav {
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 20px;
    font-family: "Cormorant", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
}

/* Each grid cell */
.photo {
    position: relative;
    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: center; /* horizontal centering */
}

/* Image inside the grid cell */
.photo img {
    width: 80%;
    height: auto;
    display: block;
}

.photo img:hover {
    transform: rotate(7deg);
}

.photo .caption {
    position: absolute;
    bottom: 0;
    text-align: center;
    width: 100%;
    padding: 5px 0;
}

nav button {
    background-color: gainsboro;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

nav button:hover {
    background-color: rgb(255, 255, 255);
}

.modal {
  display: none;              /* ONLY display rule here */
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.75);

  justify-content: center;
  align-items: center;

  font-family: 'Roboto', sans-serif;
}

.modalContent {
  width: auto;
  max-width: 90%;
  max-height: 50%;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color:rgb(176, 176, 176);
  font-family: 'Times New Roman', Times, serif;
  font-size: 40px;
  font-weight: 100;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #4a4a4a;
}

@media (max-width:600px) {
    #gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

footer h3 {
    text-align: center;
    color: #000000;
    font-family: "Cormorant Upright", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    padding-bottom: 40px;
}