@font-face {
	font-family: icons;
	src: url("../classifieds/icons.14683bd481e7.woff");
}
@media screen {
	html {
		overflow-y: scroll;
		font: 16px sans-serif;
		background: white;
	}
	body {
		margin: 0;
	}
	a {
		text-decoration: none;
	}
	a:hover, 
	a:focus, 
	a:active {
		text-decoration: underline;
	}
	input[type="submit"], 
	button[type="submit"], 
	label {
		cursor: pointer;
	}
	img {
		max-width: 100%;
	}
	.wrapper {
		width: auto;
		max-width: 1170px;
		margin: 0 auto;
		position: relative;
	}
	.wrapper > p, 
	.wrapper > #main {
		padding: 0 20px;
	}
	h1 {
		height: 70px;
		margin: 0;
		padding: 52px 0 0;
		overflow: hidden;
	}
	h1 a {
		background: url("../classifieds/images/logo.aa834708d280.svg") no-repeat 50% 50%;
		background-size: 95%;
		display: block;
		width: 300px;
		float: left;
		height: 100%;
		white-space: pre;
		text-indent: 150%;
		overflow: hidden;
		margin: 0 0 0 16px;
	}
	#nav ul {
		list-style: none;
		margin: 0;
		padding: 12px 0 0;
		text-align: center;
		display: flex;
		justify-content: space-around;
		height: 30px;
		line-height: 30px;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		font-size: 14px;
	}
	#nav a {
		text-transform: capitalize;
		color: #949494;
		transition: color 0.5s, text-decoration 0.5s;
	}
	#nav a:hover, 
	#nav a:focus, 
	#nav a:active {
		color: #cccccc;
	}
	#nav #account, 
	#nav #place, 
	#nav #place-legal {
		position: absolute;
		top: 52px;
		height: 70px;
		line-height: 70px;
		width: 137px;
		font-size: 16px;
	}
	#nav #account {
		right: 153px;
	}
	#nav #place {
		right: 16px;
		right: 165px;
	}
	#nav #place-legal {
		right: 16px;
	}
	#nav #place a {
		background: #ed7e23;
		border-radius: 4px;
		display: inline-block;
		height: 42px;
		line-height: 42px;
		padding: 0 5px;
		color: white;
		width: 100%;
		box-sizing: border-box;
		text-transform: none;
	}
	#nav #place-legal a {
		background: #00aeef;
		border-radius: 4px;
		display: inline-block;
		height: 42px;
		line-height: 42px;
		padding: 0 5px;
		color: white;
		width: 100%;
		box-sizing: border-box;
		text-transform: none;
	}
	#nav #place a:hover, 
	#nav #place a:focus, 
	#nav #place a:active {
		background: #ed8a29;
	}
	#nav #place-legal a:hover, 
	#nav #place-legal a:focus, 
	#nav #place-legal a:active {
		background: #00bdff;
	}
	#search {
		text-align: center;
		background: url("../classifieds/images/background.7a86f458447f.jpg") no-repeat 50% -268px;
		background-size: cover;
		font-size: 0;
		overflow: hidden;
	}
	#search h2 {
		font-size: 36px;
		height: 40px;
		color: white;
		text-shadow: 0 0 2px black;
		text-transform: capitalize;
		margin: 120px 0 45px;
		font-weight: normal;
		line-height: normal;
		background: none;
	}
	#search input, 
	#search button[type="submit"] {
		display: inline-block;
		padding: 0;
		border: 0;
		border-radius: 4px;
		height: 50px;
		line-height: 50px;
		padding: 0 20px;
		box-sizing: border-box;
		font-size: 17px;
		box-shadow: 0 0 2px gray;
		margin: 0 0 140px;
	}
	#search input[name="query"], 
	#search input[name="q"] {
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
		width: 36%;
		min-width: 202px;
	}
	#search button[type="submit"] {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
		background: #ed7e23;
		width: 133px;
		color: white;
	}
	#search button[type="submit"]:hover, 
	#search button[type="submit"]:focus, 
	#search button[type="submit"]:active {
		background: #ed8a29;
	}
	#categories h2 {
		display: none;
	}
	#categories {
		font-size: 16px;
		background: rgba(0,0,0,0.65);
		padding: 30px 0 40px;
		background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 5%, rgba(0,0,0,0.65) 95%, white 100%);
	}
	#categories ul {
		list-style: none;
		margin: 0 calc(100% / 6);
		padding: 0;
		display: flex;
		flex-wrap: wrap;
		word-break: normal;
		font-size: 18px;
	}
	#categories li {
		width: calc(100% / 4);
		text-align: left;
		box-sizing: border-box;
		height: 60px;
		padding: 10px 0;
	}
	#categories a {
		color: white;
		white-space: pre;
		line-height: 40px;
		padding: 0 20px;
		display: block;
		margin: 0 10px;
	}
	#categories a:hover, 
	#categories a:focus, 
	#categories a:active {
		color: #ed7e23;
		transition: color 0.5s, text-decoration 0.5s;
	}
	h2 {
		text-transform: uppercase;
		text-align: center;
		font-size: 28px;
		margin: 0 auto;
		color: #555555;
		background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1" height="1"><rect fill="silver" width="1" height="1" /></svg>') repeat-x 0 50%;
	}
	h2 span {
		background: white;
		padding: 0 20px;
	}
	#search h2 span {
		background: none;
		padding: 0;
	}
	.right {
		width: 330px;
		float: right;
		height: 500px;
		background: #efefef;
	}
	.right + h2 {
		margin-right: 360px;
	}
	.boxes {
		display: grid;
		grid-gap: 20px;
		padding: 0 20px;
		text-align: justify;
		hyphens: auto;
	}
	.boxes a {
		text-decoration: none;
		color: gray;
		border: 1px solid silver;
		display: block;
	}
	.boxes a:hover h3, 
	.boxes a:focus h3{
		background: #efefef;
	}
	.boxes a:hover, 
	.boxes a:focus {
		border-color: dodgerblue;
	}
	.boxes {
		list-style: none;
		margin: 0;
		overflow: auto;
		color: gray;
		font-size: 14px;
	}
	.boxes h3 {
		height: 50px;
		line-height: 50px;
		padding: 0 20px;
		font-weight: normal;
		margin: 0;
		border-bottom: 1px solid silver;
		overflow: hidden;
		text-align: left;
		text-overflow: ellipsis;
		white-space: break-spaces;
	}
	.boxes div {
		height: 200px;
		height: 187px;
		padding: 5px 10px;
		padding: 17px;
		box-sizing: border-box;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 17px;
		position: relative;
		color: #333333;
		word-break: break-word;
	}
	.boxes div:before {
		content: '\2192';
		padding-left: 1em;
		position: absolute;
		right: 17px;
		bottom: 17px;
		height: 17px;
		background: fuchsia;
		background: white;
		background: linear-gradient(to right,rgba(100%,100%,100%,0) 0%, white 50%);
	}
	.boxes div:after {
		content: '';
		position: absolute;
		right: 0;
		bottom: 0;
		height: 17px;
		background: fuchsia;
		width: 100%;
		background: white;
	}
	.boxes img {
		display: block;
		max-width: 100%;
		height: auto;
		max-height: 50px;
		margin: -10px auto 5px;
	}
	#footer {
		text-align: center;
		clear: both;
	}
	#footer ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	#footer li {
		display: inline;
		padding: 0 10px;
	}
	#footer a {
		color: #949494;
	}
	#footer a:hover, 
	#footer a:focus, 
	#footer a:active {
		color: #cccccc;
	}
	#nav #hamburger {
		display: none;
	}
	#nav #hamburger:before {
		content: 'menu';
		font-family: icons, sans-serif;
		font-feature-settings: 'liga' on;
	}
	#nav #hamburger {
		cursor: pointer;
		height: 42px;
		width: 42px;
		line-height: 39px;
		font-size: 18px;
		text-align: center;
		border-radius: 3px;
		border: 2px solid white;
		color: white;
		position: absolute;
		right: 16px;
		top: 0;
		box-sizing: border-box;
	}
	#nav.open #hamburger {
		height: 58px;
		background: white;
	}
	#nav #hamburger {
		border: 2px solid #aaaaaa;
		color: #aaaaaa;
		position: absolute;
		right: 16px;
		top: 19px;
		box-sizing: border-box;
	}
	#photos {
		list-style: none;
		margin: 0;
		padding: 0 20px;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	#photos li {
		margin: 10px;
		width: 200px;
		height: 113px;
		text-align: center; 
		background: #efefef;
		border: 1px solid silver;
		border-radius: 2px;
		overflow: hidden;
	}
	#photos a {
		display: block;
		height: 100%;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: 50% 50%;
	}
	#photos img {
		padding: 100% 0 0;
	}
	#contact {
		float: right;
		width: 25%;
		margin: 0 0 0 15px;
	}
	#contact > h3 {
		float: left;
		margin: 0;
		line-height: 40px;
	}
	#contact > h3:first-child:after {
		content: ': ';
	}
	#share {
		font-family: icons, sans-serif;
		list-style: none;
		margin: 0;
		padding: 0;
		text-align: center;
	}
	#share li {
		display: inline;
	}
	#share a {
		text-decoration: none;
		color: gray;
		width: 40px;
		height: 40px;
		font-size: 30px;
		line-height: 40px;
		display: inline-block;
		text-align: center;
		margin: 0 10px;
	}
	#share a[href*="twitter"]:hover, 
	#share a[href*="twitter"]:focus {
		color: dodgerblue;
	}
	#share a[href*="facebook"]:hover, 
	#share a[href*="facebook"]:focus {
		color: navy;
	}
	#share a[href*="mailto"]:hover, 
	#share a[href*="mailto"]:focus {
		color: black;
	}
	hr {
		clear: both;
	}
	#contact form ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	#contact form input[type="text"], 
	#contact form textarea, 
	#contact form button[type="submit"] {
		width: 100%;
		margin: 5px 0;
		font: 16px/20px sans-serif;
	}
	#contact form input[type="checkbox"] {
		margin: 0;
	}
	#contact form label { display: block; }
	[color="#ffffff"] { color: hsla(0,0%,0%,0.5); }
}

@media screen and (max-width: 650px) {
	#search input[name="query"],
	#search input[name="q"] {
		width: calc(100vw - 40px - 133px);
	}
	#nav #place, 
	#nav #place-legal {
		width: auto;
	}
}

@media screen and (max-width: 410px) {
	#search button[type="submit"] {
		overflow: hidden;
		padding: 0;
		width: 50px;
		font-family: icons;
	}
	#search button[type="submit"]:before {
		content: 'search'; /*change to magnifying glass only*/
		display: inline-block;
		padding: 0;
		border-radius: 4px;
		height: 50px;
		line-height: 50px;
		padding: 0 20px;
		box-sizing: border-box;
		font-size: 17px;
	}
	#search input[name="query"],
	#search input[name="q"] {
		width: calc(100vw - 40px - 50px);
	}
}

@media screen and (max-width: 1427px) {
	#categories ul {
		font-size: 14px;
		font-weight: bold;
	}
}

@media screen and (max-width: 1265px) {
	#categories ul {
		margin: 0 calc(100% / 8);
	}
	#categories li {
		width: calc(100% / 3);
	}
}

@media screen and (max-width: 845px) {
	#categories ul {
		margin: 0 20px;
	}
}

@media screen and (max-width: 675px) {
	#categories li {
		width: calc(100% / 2);
	}
}

@media screen and (max-width: 465px) {
	#categories li {
		width: calc(100% / 1);
	}
	#categories li {
		text-align: center;
	}
}

@media screen and (max-width: 390px) {
	#search h2 {
		font-size: 32px;
	}
}

@media screen and (max-width: 610px) {
	#footer li {
		display: block;
	}
}

@media screen and (max-width: 550px) {
	h1 a {
		width: calc(100% - 243px);
	}
}

@media screen and (max-width: 600px) {
	#nav #place {
		right: 74px;
		top: 5px;
	}
	#nav #hamburger {
		display: block;
		right: 10px;
	}
	#nav ul {
		position: static;
		margin: 0;
		display: block;
		height: auto;
		border: 2px solid #aaaaaa;
		border-right: 0;
		border-left: 0;
		padding: 0 !important;
		line-height: 40px;
		height: 0;
		overflow: hidden;
	}
	#nav.open ul {
		height: auto;
	}
	#nav li:not(#place,#place-legal) a {
		display: block;
		border: 2px solid #efefef;
	}
	#nav li:not(#place,#place-legal) a:hover, 
	#nav li:not(#place,#place-legal) a:focus {
		background: #efefef;
		color: black;
	}
	#search {
		margin-top: 0;
	}
	h1 {
		padding-top: 5px;
	}
	#nav #place, 
	#nav #place-legal {
		font-size: 12px;
	}
	#nav #place {
		right: 145px;
		top: 5px;
	}
	#nav #place-legal {
		right: 56px;
		top: 5px;
	}
}

@media screen and (min-width: 475px){
	.boxes {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (min-width: 750px){
	.boxes {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media screen and (max-width: 415px) {
	h1 a {
		background: url("../classifieds/images/logo-stacked.c5a7852f491a.svg") no-repeat 50% 50%;
	}
}

@media screen and (max-width: 400px) {
	h2 {
		font-size: 20px;
	}
}

@media screen and (max-width: 1210px) {
	#contact {
		margin: 0 20px 0 15px;
	}
}

@media screen and (max-width: 975px) {
	#share a {
		margin: 0;
	}
}

@media screen and (max-width: 740px) {
	#contact {
		float: none;
		margin: 0 auto;
		width: 50%;
		min-width: 300px;
	}
}

@media screen and (max-width: 1170px) {
	.wrapper > div > div:first-child {
		margin-right: 20px !important;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media screen and (max-width: 920px) {
	.wrapper > div > div:first-child {
		float: none !important;
		overflow: auto;
		margin: 0 auto !important;
	}
}
