main[class*="page-404"] article {
    padding: 0 10%;   
}
main[class*="page-404"] section.links-well ul {
    padding-left: 20px;
}
main[class*="page-404"] section.links-well ul ul {
    list-style-type: square;
    margin-top: 0;
}
main[class*="page-404"] section.links-well li a {
    display: block;
    padding: .25em 0 0;
}
main[class*="page-404"] .bg-image-full  {
	display: none;
}
main[class*="page-404"] article  {
	background: url(../images/herky.png) no-repeat;
    background-position: right center;
    background-size: contain;
}

@media screen and (min-width:640px) {
main[class*="page-404"] section.links-well {
    display: flex;
   flex-wrap: wrap;
}
main[class*="page-404"] section.links-well div {
    flex: 1 1 48%;
    margin-right: 4%;
}
main[class*="page-404"] section.links-well div:nth-of-type(even) {
    margin-right:0;
}
}


@media screen and (min-width:960px) {
main[class*="page-404"] section.links-well {
}
main[class*="page-404"] section.links-well div {
    flex: 0 0 32%;
    margin-right: 2%;
}
main[class*="page-404"] section.links-well div:nth-of-type(even) {
    margin-right: 2%;
}
main[class*="page-404"] section.links-well div:nth-of-type(3n) {
    margin-right: 0;
}
main[class*="page-404"] section.links-well div:last-of-type {
    margin-right:0;
}
}

@media screen and (min-width:1300px) {
main[class*="page-404"] section.links-well {
}
main[class*="page-404"] section.links-well div {
    flex: 1 1 18%;
    margin-right: 2.5%;
}
main[class*="page-404"] section.links-well div:last-of-type {
    margin-right:0;
}
}
