@media screen and (max-width:1399px){
    nav {
        margin-top: 0;
    }

    h1 {
        margin-bottom: 0;
    }
    nav ul {
        display: flex;
        
        li {
            padding: 10px;
        }
    }   }

@media screen and (min-width:1400px){
    main {
        width: 80%;
    }
    
    nav {
        width: 16%;
        margin-top: 1rem;
        position: fixed;
        right: 10px;
        padding: 10px;
        border-radius: 5px;

        ul li {
            padding: 5px 0px;
        }
    }    
    }

#myBtnContainer {
  display: flex;
  flex-wrap: wrap;
  color: transparent;
  padding: 0px 10px 0px 30px;
  margin-bottom: 0px;
  align-items: center;
  justify-content: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

button {
    display: inline-block;
    margin: 10px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: var(--main-colour);
    color: var(--text-light);
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    border: none;
}

.dropList { 
  background-color: #f1f1f1;
  color: #11151C;
  padding: 10px 16px;
  font-size: 16px;
  margin: auto;
  border: none;
  border-radius: 0;;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropList:hover {
    background-color: #ddd;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.show-dropdown {
    display: block;
}



/* Gallery for main gall */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: 10px;
    margin: auto;
    margin-top: 0px;
    justify-items: center;
    
    @media screen and (min-width: 950px) and (max-width: 1100px) {
            grid-template-columns: repeat(4, 1fr);
        }
    @media screen and (min-width: 510px) and (max-width: 949px) {
        grid-template-columns: repeat(3, 1fr);
    }
    @media screen and (max-width: 750px) {
        .masonry-item img {
            max-height: 150px;
            max-width: 150px;}
    }

    @media screen and (max-width: 550px) {
        grid-template-columns: repeat(2, 1fr);
        border: 0;
        padding: 20px;
    }

        @media screen and (max-width: 350px) {
        grid-template-columns: repeat(1, 1fr);
        border: 0;
        padding: 20px;
    }

}

.masonry-item {
    margin: 10px;
    display: none;
}

.masonry-item img {
    max-height: 200px;
    max-width: 200px;
    transition: .5s ease;
    backface-visibility: hidden;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.4));
}

.show-image {
    display: inline-block;
}

.masonry-item:hover img {
  opacity: 0.5;
}

.masonry-item:hover {
  opacity: 1;
}