.galleryHome {
    padding: 10px 10px 30px 10px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin: 0px auto;
    background-color: #f7efe7;
    border-left: solid 3px #3d464d;
    border-right: solid 3px #3d464d;
    align-items: center;
    background-image: url("../images/homepage-04.png"), url("../images/spill1.png");
    background-size: 360px, 100%;
    background-position-x: 550px, left;
    background-position-y: 360px, bottom;
    background-repeat: no-repeat;
}

.galleryTitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2em;
    font-weight: 700;
    line-height: 100%;
    text-align: center;
    color: #171e33;
    margin: 40px auto 8px auto;
}

#gallery, #photobooth, #preceremony, #reception, #gettingready, #firstlook {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 5px;

}

.galleryImage {
    position: relative;
    width: 33%;
    height: 220px;
    padding: 15px;
    overflow: hidden;
    text-align: center;
}

.clickZoomText {
    display: none;
    width: 290px;
    z-index: 3;
    position: absolute;
    color: rgba(255, 255, 255, 0.525);
    text-align: center;
    font-size: .65em;
    font-weight: bold;
    bottom: 180px;
    margin: auto;
    text-transform: uppercase;
}

.galleryImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.galleryImage img:hover {
    filter: brightness(60%);
    cursor: zoom-in;
}

.galTitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: 1.7em;
    text-align: center;
    margin-top: 40px;
    color: #171e33;
    letter-spacing: 8px;
}

.modal {
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw; /* Full width */
    height: 100vh; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    padding: 10px;
    border: 1px solid #888;
    width: auto;
    text-align: center;
  }

  #modalImage {
      max-width: 900px;
      width: 90vw;
      height: auto;
      margin: 0px auto;
      cursor: zoom-out;
  }

  #galleryNav {
      margin: 15px auto 0px auto;
      padding: 15px;
      max-width: 100%;
      width: 95%;
      font-size: 1.2em;
      letter-spacing: 3px;
      border-top: 2px solid #ddcab7;
      border-bottom: 2px solid #ddcab7;
  }

  .galleryNav {
      text-transform: uppercase;
      color: #6f102a;
      margin: 8px auto 8px auto;
  }

  .navLink{
    text-transform: uppercase;
    color: #171e3385;
    text-decoration: none;
    line-height: 150%;
    margin: 0px;
    font-size: .95em;
    cursor: pointer;
    display: inline-block;
    padding: 0px 15px;
    border-left: 0px solid rgb(193, 193, 193);
    border-right: 0px solid rgb(193, 193, 193);
    margin: 3px 0px;
  }

  .navLink:hover, .returnText:hover {
    color: #171e33;
  }

  .notbordered{
    display: inline-block;
    padding: 0px 15px;
    border-left: 0px solid #888;
    border-right: 0px solid #888;
    margin: 0;
  }
  
  .returnText {
    font-family: 'Cormorant Garamond', serif;
    color: #171e3385;
    font-weight: 400;
    font-size: 1em;
    line-height: 160%;
    text-align: center;
    cursor: pointer;
    letter-spacing: 2px;
}

  @media only screen and (max-width: 1020px) {
    .wrap {
        border-top: #6f102a 3px solid;
        margin-top: 0;
        padding-top: 40px;
    }

    .galleryImage {
        width: 48%;
        height: 250px;
    }

    .clickZoomText {
        width: 48%;
    }

    #gallery, #photobooth, #preceremony, #reception, #gettingready, #firstlook {
        flex-direction: row;
        justify-content:flex-start;
    }

    .navLink{
        display: block;
        border-left: 0px solid #888;
        border-right: 0px solid #888;
    }

    #modalImage {
        width: 100%;
        height: auto;
    }

  }

  @media only screen and (max-width: 650px) {
    .galleryImage {
        width: 100%;
        height: 300px;
    }

  }