/*
 Theme Name:   Social5 (2017)
 Description:  Modernize Child Theme. Modernize tweaked even further, with elements inspired by 2017 design trends
 Author:       Rich Christiansen
 Author URI:   http://social5.com
 Template:     modernize
*/

/* Base 1440px
================================================== */

/* Remove non-full-page elements (background design, main content shadow, etc.) and other Modernize elements we won't be using */
html {
	background: none !important;
}

html div.container {
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.menu-social-navigation {
	display: none;
}

/* General styles */
body {
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0.2px;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.gdl-title,
div.blog-thumbnail-info,
div.single-thumbnail-info {
	font-family: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif;
}

h3 {
	margin-bottom: 10px;
}

a.button,
a.button:hover,
button,
button:hover,
input[type="submit"],
input[type="submit"]:hover,
input[type="reset"],
input[type="reset"]:hover,
input[type="button"],
input[type="button"]:hover {
	height: auto;
	font-size: 16px;
/*	padding: 2px 20px;*/
	padding: 6px 20px;
	border-radius: 8px;
	color: #fff;
	background-image: none;
	border: none;
}

a.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
	outline: none;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
textarea,
select {
	font-size: 16px;
	padding: 9px 13px;
	border-radius: 6px;
/*
	border: 1px solid #ccc;
	padding: 6px 4px;
	outline: none;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border-radius: 2px;
	font: 13px "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-style: normal;
	font-variant-ligatures: normal;
	font-variant-caps: normal;
	font-variant-numeric: normal;
	font-weight: normal;
	font-stretch: normal;
	font-size: 13px;
	line-height: normal;
	font-family: HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #777;
	margin: 0;
	width: 210px;
	max-width: 100%;
	display: block;
	margin-bottom: 20px;
	background: #fff;
*/
}

img {
	display: inline;
}

/* General theme-specific styles */
div.blog-item-holder .blog-item1 .blog-thumbnail-title,
h1.single-thumbnail-title {
	font-size: 28px;
	line-height: 36px;
	letter-spacing: 0.2px;
}

/*div.blog-item-holder .blog-item1,*/
.gdl-divider,
.custom-sidebar.gdl-divider div,
.custom-sidebar.gdl-divider .custom-sidebar-title,
.custom-sidebar.gdl-divider ul li {
	border: none;
}

div.blog-item-holder .blog-item1 {
	padding-top: 42px;
}

div.blog-item-holder .blog-item1:first-child {
	padding-top: 25px;
}

.content-footer-wrapper .custom-sidebar h3 {
	margin-top: 0;
}

div.footer-widget-wrapper .custom-sidebar-title {
	font-size: 20px;
	line-height: 25px;
	letter-spacing: 0.8px;
}

.alignleft {
	margin-right: 30px;
	margin-bottom: 30px;
}

.alignright {
	margin-left: 30px;
	margin-bottom: 30px;
}

div.right-sidebar-wrapper {
	border: 0;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	padding-top: 8px;
}

div.right-sidebar-wrapper .custom-sidebar-title {
	font-size: 20px;
	line-height: 26px;
	padding: 0;
}

div.gallery-thumbnail-image, div.portfolio-thumbnail-image, div.portfolio-thumbnail-video, div.portfolio-thumbnail-slider, div.single-port-thumbnail-image, div.single-port-thumbnail-video, div.single-port-thumbnail-slider, div.blog-thumbnail-image, div.blog-thumbnail-slider, div.blog-thumbnail-video, div.custom-sidebar .recent-post-widget-thumbnail, .gdl-image-frame {
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	border: 0;
/*	background: none !important;*/
	margin: 4px 24px 22px 0;
	padding: 0;
	border: 1px solid !important;
	border-color: #aaa !important;
	border-radius: 5px;
	overflow: hidden;
}

div.blog-item-holder .blog-item1 .blog-thumbnail-image, div.blog-item-holder .blog-item1 .blog-thumbnail-video, div.blog-item-holder .blog-item1 .blog-thumbnail-slider {
	margin-right: 30px;
}

div.blog-item-holder .blog-item1 .blog-thumbnail-date,
div.single-thumbnail-date,
div.single-thumbnail-info {
	font-style: normal;
}

div.single-thumbnail-info {
	border-top: none;
	padding-top: 4px;
	padding-bottom: 12px;
}

h1.single-thumbnail-title {
	padding-bottom: 0;
	margin-top: 8px;
}

div.custom-sidebar .textwidget {
	margin-top: 10px;
}

.blog-thumbnail-image img,
.recent-post-widget-thumbnail img {
	display: block;
}

span.wpcf7-form-control-wrap textarea {
	width: calc(100% - 32px); /* Not ideal, but it works for now */
	max-width: initial;
}

.wpcf7-submit {
	width: calc(100% - 20px); /* Not ideal, but it works for now */
}

.appt {
	max-width: 400px;
	margin: 0 auto;
	color: #494949;
}

.content-header-wrapper div.custom-sidebar {
	margin-bottom: 15px;
}

.hide-on-modernize-2017 {
	display: none !important;
}

/* Show (and slightly tweak) Responsive Menu Pro (WPRM) */
body #responsive-menu-pro-header,
body #responsive-menu-pro-header-bar-button,
body #responsive-menu-pro-container {
	display: block;
}

body #responsive-menu-pro-header {
	z-index: 99997;
}

body {
	margin-top: 50px;
}

body #responsive-menu-pro-header .responsive-menu-pro-header-box {
	margin-right: 0;
}

#responsive-menu-pro li a .fa {
	font-size: 20px;
	vertical-align: middle; /* TODO: Doesn't seem to align the icons to the middle as accurately as I'd like. Perhaps that's because they're all slightly different heights? Not sure. */
	margin-top: -3px; /* Helps with the vertical alignment issue */
}

#responsive-menu-pro-container {
	margin-left: 3%;
}

body #responsive-menu-pro-header {
	padding-right: 3%;
}

#responsive-menu-pro li:first-child a {
	padding-left: 0;
}

/* Tweak Magnific Popup so that its overlay covers all WPRM elements as well */
body .mfp-bg {
	z-index: 999999;
}

body .mfp-wrap {
	z-index: 999999;
}

#responsive-menu-pro-container {
	height: 50px;
	overflow: hidden;
}

a.toggle-menu-overflow {
	display: none;
	margin-right: 20px;
	cursor: pointer;
}

a.toggle-menu-overflow .fa {
	margin-right: 5px;
}

/* Contact Form 7 */
/* NOTE: This CSS is pretty gross; definitely not the way I'd like to do it. Working with the markup and CSS already in place for Contact Form 7 is proving to be tricky. Consider revisiting this in the future when I have more time. */
#cta-popup div.wpcf7 p {
	vertical-align: middle;
	font-weight: normal;
}

#cta-popup span.wpcf7-form-control-wrap {
	display: inline-block;
	float: right;
	vertical-align: middle;
	width: 300px;
}

#cta-popup label {
	display: inline-block;
}

#cta-popup input:not([type="submit"]) {
	float: right;
	margin: 0;
	width: 100%;
}

#cta-popup .bold {
	font-weight: bold;
}

.wpcf7 p {
	display: inline-block;
	width: 100%;
}

span.wpcf7-not-valid-tip {
	position: static;
	border: none;
	font-size: 16px;
	font-weight: normal;
	width: auto;
	float: right;
	color: #f90000;
}

body .wpcf7-response-output {
	margin: -40px 0 0 0;
	border: none;
}

.gdl-page-content .wpcf7-response-output {
	max-width: 195px;
	margin: 0 auto;
	text-align: center;
}

.wpcf7-validation-errors {
	color: #f90000;
}

/* Make the header and footer full-width */
.header-container,
.header-container .logo-wrapper,
.header-container .navigation-wrapper,
.footer-container,
div.footer-wrapper,
div.content-footer-wrapper,
div.content-header-wrapper,
div.container .top-navigation-wrapper-gimmick,
.container .header-wrapper > .sixteen.columns {
	width: 100%;
}

/*div.footer-wrapper,
div.content-footer-wrapper,
div.content-header-wrapper,
div.container .top-navigation-wrapper-gimmick {
	margin-left: 0;
}*/

div.footer-wrapper {
	margin: 0;
}

.footer-container {
	padding: 0;
}


.container.header-container {
	padding: 0;
}

.container .header-wrapper > .sixteen.columns,
.full-width .logo-wrapper,
div.navigation-wrapper {
	margin-left: 0;
	margin-right: 0;
}

/* For simplicity of header design, just prohibit the logo from being shown at all */
.logo {
	display: none;
}

/* Social wrapper (subheader with headshot, social links, etc.) */
.social-wrapper,
.full-width .social-wrapper {
	position: relative;
	top: 0;
	margin: 0;
}

.full-width .social-wrapper {
	background: none;
	padding: 0;
	border: none;
	left: 0;
}

div.social-wrapper-text {
	margin: 0;
	width: 100%;
}

.social-wrapper-text img.headshot {
	max-width: none;
	max-height: none;
}

.links {
	margin-left: 20px;
	margin-right: 0;
}

.social-wrapper .icon .label {
	color: #525252;
	font-weight: normal;
/*	font-size: 10px;*/
	font-size: 12px;
	margin-top: 5px;
  line-height: 9px;
}

.icon {
	text-align: left;
	border-radius: 10px;
	padding: 10px;
	display: inline-block;
	margin: 10px 10px;
/*	font-size: 12px;*/
	font-size: 14px;
}

.social-wrapper .icon i {
	vertical-align: text-bottom;
	font-size: 32px;
	line-height: 28px;
}

.icon .lines {
	display: inline-block;
	width: calc(100% - 56px);
	overflow: hidden;
	margin-left: 10px;
/*	line-height: 15px;*/
	line-height: 18px;
	vertical-align: text-bottom;
}

.icon .lines > div {
	white-space: nowrap;
}

.value {
	position: relative;
}

/* For fading out overflowing text (From https://stackoverflow.com/a/22809380/114558) */
.value:before {
  content: "";
  width: 100%;
  height: 100%;    
  position: absolute;
  left: 0;
  top: 0;
	/* background attribute is set in style-custom.php */
}

.icon .value {
	color: #525252;
}

/* Icon box widths */
/* Size icon boxes such that we fill as few complete rows as possible (Also, having fewer rows is more important than having complete rows) */
.num-icons-1 .icon,
.num-icons-2 .icon,
.num-icons-3 .icon,
.num-icons-4 .icon,
.num-icons-8 .icon {
	width: calc((100% / 4) - 45px); /* 45px is a magic number; its supposed to be the width of the actual icon, but they're actually a bit wider... */	
}

.num-icons-5 .icon,
.num-icons-9 .icon,
.num-icons-10 .icon,
.num-icons-15 .icon {
	width: calc((100% / 5) - 45px);
}

.num-icons-6 .icon,
.num-icons-11 .icon,
.num-icons-12 .icon,
.num-icons-16 .icon,
.num-icons-17 .icon,
.num-icons-18 .icon {
	width: calc((100% / 6) - 45px);
}

.num-icons-7 .icon,
.num-icons-13 .icon,
.num-icons-14 .icon,
.num-icons-19 .icon,
.num-icons-20 .icon,
.num-icons-21 .icon,
.num-icons-22 .icon,
.num-icons-23 .icon,
.num-icons-24 .icon,
.num-icons-25 .icon {
	width: calc((100% / 7) - 45px);
}

/* If we don't have enough icons to make a full row, right-justify on desktop layouts to put the icons next to the name, title, and headshot. */
.num-icons-1,
.num-icons-2,
.num-icons-3 {
	margin-left: 0;
	margin-right: 20px;
	text-align: right;
}

/* Special styles if permanently "collapsed icons" are specified (these are copied from the mobile (<=767px) styles (simply copied them here and prefixed them with `.home .collapsed-icons`)) */
.home .collapsed-icons .icon .lines {
	display: block;
	margin: 0;
	width: auto;
}

.home .collapsed-icons .icon .lines .value {
	display: none;
}

.home .collapsed-icons .icon .lines > div {
	width: auto;
}

.home .collapsed-icons .links .icon {
	text-align: center;
	line-height: 18px;
}

.home .collapsed-icons.social-wrapper .icon .label {
	font-size: 12px;
	line-height: 18px;
	margin-top: 4px;
}

/* Desktop-specific "collapsed icons" styles */
@media only screen and (min-width: 768px) {
	/* Set a fixed icon width */
	.home .collapsed-icons .links .icon {
		width: 65px;
	}

	/* Always right-align the icons */
	.home .collapsed-icons .links {
		margin-left: 0;
		margin-right: 20px;
		text-align: right;
	}
}
/* End of special "collapsed icons" styles */

/* Tweak the display of non-home pages */
/* Tweak the .menu-and-name */
body:not(.home) .menu-and-name {
	padding-top: 10px;
	line-height: 28px;
}

body:not(.home) .menu-and-name .name {
	font-size: 28px;
}

body:not(.home) .menu-and-name .title {
	font-size: 16px;
}

/* Tweak the icons on non-home pages to just be simple right-aligned icons */
body:not(.home) .links {
	text-align: right;
	margin-top: -20px;
	margin-right: 262px;
	margin-left: 0;
}

body:not(.home) .social-wrapper .icon i {
	font-size: 28px;
	width: auto; /* Undo the width set by .fa-fw */
}

body:not(.home) .icon {
	width: auto;
	margin: 0 0 10px 15px;
	padding: 0;
	background: none;
}

body:not(.home) .icon .lines {
	display: none;
}


/* Headshot */
.headshot {
	position: absolute;
	width: 200px;
	height: 200px;
	top: -103px; /* (Height / 2 + border width) */
	right: 50px;
	border: 3px solid #fff;
	border-radius: 50%;
}

/* Menu and name */
.menu-and-name {
	height: auto;
	min-height: 89px; /* (Headshot height + headshot border width - padding-top) */
	text-align: right;
	margin-right: 265px;
	padding-top: 14px;
	line-height: 40px;
}

/*.menu-and-name.no-headshot {
	margin-right: 30px;
}*/

.menu-and-name.no-headshot + .links {
	margin-right: 30px;
}

.menu-and-name p {
	margin: 0;
}

.menu-and-name .name {
	font-size: 34px;
}

.menu-and-name .title {
	font-size: 24px;
}

/* If the name matches the company name, then don't display the name and title (they are likely redundant with the header image). We can't hide the whole .menu-and-name element since the whitespace is still necessary for the headshot image */
.menu-and-name.name-matches-company-name > * {
	display: none;
}

/* If the name matches the company name and a headshot isn't present, then we can hide the .menu-and-name element entirely. However, it should already be essentially invisible. Instead of making it invisible, adjust its margin-top so that the .links vertically align nicely */
.menu-and-name.name-matches-company-name.no-headshot {
/*	display: none;*/
	margin-top: -55px;
}

/* Menu */
/* General strategy: Do as much as possible through the WPRM configuration and then customize further here */
#responsive-menu-pro-header {
	text-align: right;
}

body button#responsive-menu-pro-button,
#responsive-menu-pro-header-bar-html .cta {
	border: 1px solid #fff;
	border-radius: 8px;
	text-transform: uppercase;
	color: #fff;
	height: 32px;
	font-size: 14px;
	padding: 0 20px;
	box-shadow: none;
}

body button#responsive-menu-pro-button {
	width: auto;
}

#responsive-menu-pro-header-bar-html .cta {
	border: 1px solid #fff;
	background-color: #fff;
}

#responsive-menu-pro-wrapper,
#responsive-menu-pro-header,
#responsive-menu-pro-header-bar-html button {
	font-family: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif;
}

#responsive-menu-pro-button,
#responsive-menu-pro-header-bar-html button,
#responsive-menu-pro li a {
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Tweak the button when the menu is open */
#responsive-menu-pro-button.is-active {
	width: 50px;
	padding: 0;
}

#responsive-menu-pro-button.is-active .responsive-menu-pro-label {
	display: none;
}

/* Styles for specific pages/widgets */
.recent-post-widget {
	line-height: 22px;
}

.subscribe-form {
	margin-bottom: 10px;
}

.subscribe-form > p > label {
	width: 55px;
}

.archive-widget-year {
	font-family: "HelveticaNeue", "Helvetica Neue", Arial, sans-serif;
}

ul.xoxo.blogroll li {
	padding-top: 0;
	padding-bottom: 0;
	background-position-y: 8px;
	margin-top: 6px;
	line-height: 22px;
}

ul.xoxo.blogroll {
	margin-bottom: 7px;
}

.subscribe-form > p > input[type=text],
.subscribe-form > p > input[type=email],
.subscribe-form > p > input[type=tel] {
	width: 190px;
}

/* inline-block elements are a much better way to manage the layout of the "Popular Posts" widget */
.recent-post-widget:nth-child(1),
.recent-post-widget:nth-child(2),
.recent-post-widget:nth-child(3) {
	display: inline-block;
}

div.custom-sidebar .recent-post-widget-thumbnail,
div.custom-sidebar  .recent-post-widget-context,
.content-footer-wrapper .custom-sidebar h3,
.gdl-recent-post-widget,
.recent-post-widget { /* Note that this causes all of the popular posts to be shown (including the fourth and fifth) */
	display: inline-block;
}

div.custom-sidebar .recent-post-widget-thumbnail,
div.custom-sidebar  .recent-post-widget-context,
.content-footer-wrapper .custom-sidebar h3,
.content-footer-wrapper div.recent-post-widget,
.gdl-recent-post-widget {
	float: none;
	vertical-align: middle;
}

div.custom-sidebar .recent-post-widget-thumbnail {
	margin: 0 18px 0 0;
}

div.custom-sidebar  .recent-post-widget-context {
	margin: 0;
	width: 135px;
}

.content-footer-wrapper .custom-sidebar h3 {
	width: 75px;
}

.content-footer-wrapper div.recent-post-widget {
	width: 230px;
}


/* Desktop 1200px
================================================== */
@media only screen and (min-width: 1200px) and (max-width: 1439px) {
/*	.headshot {
		height: ;
		width: ;
	}*/

	.menu-and-name {
		min-height: 87px; /* (Headshot height + headshot border width - padding-top) */
		padding-top: 16px;
		line-height: 38px;
	}

	.menu-and-name .name {
		font-size: 32px;
	}

	.menu-and-name .title {
		font-size: 22px;
	}

	/* Icon box widths */
	.num-icons-1 .icon,
	.num-icons-2 .icon,
	.num-icons-3 .icon,
	.num-icons-6 .icon {
		width: calc((100% / 3) - 45px);
	}

	.num-icons-4 .icon,
	.num-icons-7 .icon,
	.num-icons-8 .icon,
	.num-icons-11 .icon,
	.num-icons-12 .icon,
	.num-icons-16 .icon {
		width: calc((100% / 4) - 45px);
	}

	.num-icons-5 .icon,
	.num-icons-9 .icon,
	.num-icons-10 .icon,
	.num-icons-13 .icon,
	.num-icons-14 .icon,
	.num-icons-15 .icon,
	.num-icons-17 .icon,
	.num-icons-18 .icon,
	.num-icons-19 .icon,
	.num-icons-20 .icon,
	.num-icons-21 .icon,
	.num-icons-22 .icon,
	.num-icons-23 .icon,
	.num-icons-24 .icon,
	.num-icons-25 .icon {
		width: calc((100% / 5) - 45px);
	}

	/* Undo our "right justification" of icons when we have three icons since three icons is a full row. */
	.num-icons-3 {
		margin-left: 20px;
		margin-right: 0;
		text-align: left;
	}

	/* Tweak the display of non-home pages */
	body:not(.home) .links {
		margin-right: 262px;
	}

	/* Styles for specific pages/widgets */
	.subscribe-form > p > input[type=text],
	.subscribe-form > p > input[type=email],
	.subscribe-form > p > input[type=tel] {
		width: 200px;
	}

	.subscribe-form > p > input[type=submit] {
		margin: 10px 0 0 60px;
	}

	.recent-post-widget:nth-child(4) {
		display: none;
	}

	.content-footer-wrapper div.recent-post-widget {
		width: 235px;
	}
}


/* Desktop 960px
================================================== */
@media only screen and (min-width: 960px) and (max-width: 1199px) {
	.headshot {
		height: 175px;
		width: 175px;
		top: -91px; /* (Height / 2 + border width) */
		right: 40px;
	}

	.menu-and-name {
		min-height: 79px; /* (Headshot height / 2 + headshot border width - padding-top) */
		margin-right: 230px;
		padding-top: 12px;
		line-height: 36px;
	}

	.menu-and-name .name {
		font-size: 30px;
	}

	.menu-and-name .title {
		font-size: 20px;
	}

	/* Icon box widths */
	.num-icons-1 .icon,
	.num-icons-2 .icon,
	.num-icons-3 .icon,
	.num-icons-5 .icon,
	.num-icons-6 .icon,
	.num-icons-9 .icon {
		width: calc((100% / 3) - 45px);
	}

	.num-icons-4 .icon,
	.num-icons-7 .icon,
	.num-icons-8 .icon,
	.num-icons-10 .icon,
	.num-icons-11 .icon,
	.num-icons-12 .icon,
	.num-icons-13 .icon,
	.num-icons-14 .icon,
	.num-icons-15 .icon,
	.num-icons-16 .icon,
	.num-icons-17 .icon,
	.num-icons-18 .icon,
	.num-icons-19 .icon,
	.num-icons-20 .icon,
	.num-icons-21 .icon,
	.num-icons-22 .icon,
	.num-icons-23 .icon,
	.num-icons-24 .icon,
	.num-icons-25 .icon {
		width: calc((100% / 4) - 45px);
	}

	/* Undo our "right justification" of icons when we have three icons since three icons is a full row. */
	.num-icons-3 {
		margin-left: 20px;
		margin-right: 0;
		text-align: left;
	}

	/* Tweak the display of non-home pages */
	body:not(.home) .links {
		margin-right: 230px;
	}

	/* Styles for specific pages/widgets */
	.subscribe-form > p > input[type=text],
	.subscribe-form > p > input[type=email],
	.subscribe-form > p > input[type=tel] {
		margin-left: 0;
	}
		
	.subscribe-form > p > label {
		margin-bottom: 0px;
	}

	.subscribe-form > p > input[type=submit] {
		margin: 10px 0 0 0;
	}

	.recent-post-widget:nth-child(3),
	.recent-post-widget:nth-child(4) {
		display: none;
	}

	.content-footer-wrapper div.recent-post-widget {
		width: 245px;
	}

	div.custom-sidebar  .recent-post-widget-context {
		width: 145px;
	}
}


/* Tablet (Portrait) 768px
================================================== */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	.headshot {
		height: 175px;
		width: 175px;
		top: -91px; /* (Height / 2 + border width) */
		right: 40px;
	}

	.menu-and-name {
		min-height: 75px; /* (Headshot height / 2 + headshot border width - padding-top) */
		margin-right: 230px;
		padding-top: 16px;
		line-height: 32px;
	}

	.menu-and-name .name {
		font-size: 28px;
	}

	.menu-and-name .title {
		font-size: 18px;
	}

	/* Turn of scaling from parent theme */
	.full-width .social-wrapper {
		transform: none;
		-ms-transform: none;
		-webkit-transform: none;
		-o-transform: none;
		-moz-transform: none;
	}

	/* Icon box widths */
	.num-icons-1 .icon,
	.num-icons-2 .icon,
	.num-icons-4 .icon {
		width: calc((100% / 2) - 45px);
	}

	.num-icons-3 .icon,
	.num-icons-5 .icon,
	.num-icons-6 .icon,
	.num-icons-7 .icon,
	.num-icons-8 .icon,
	.num-icons-9 .icon,
	.num-icons-10 .icon,
	.num-icons-11 .icon,
	.num-icons-12 .icon,
	.num-icons-13 .icon,
	.num-icons-14 .icon,
	.num-icons-15 .icon,
	.num-icons-16 .icon,
	.num-icons-17 .icon,
	.num-icons-18 .icon,
	.num-icons-19 .icon,
	.num-icons-20 .icon,
	.num-icons-21 .icon,
	.num-icons-22 .icon,
	.num-icons-23 .icon,
	.num-icons-24 .icon,
	.num-icons-25 .icon {
		width: calc((100% / 3) - 45px);
	}

	/* Undo our "right justification" of icons when we have two or three icons since two or three icons is a full row. */
	.num-icons-2,
	.num-icons-3 {
		margin-left: 20px;
		margin-right: 0;
		text-align: left;
	}
	
	/* Tweak the display of non-home pages */
	body:not(.home) .links {
		margin-top: -15px;
		margin-right: 230px;
	}

	/* Styles for specific pages/widgets */
	.subscribe-form > p > input[type=text],
	.subscribe-form > p > input[type=email],
	.subscribe-form > p > input[type=tel] {
		width: 130px;
		margin-left: 0;
	}
		
	.subscribe-form > p > label {
		margin-bottom: 0px;
	}

	.subscribe-form > p > input[type=submit] {
		float: none;
		margin: 10px 0 0 0;
	}

	.recent-post-widget:nth-child(3),
	.recent-post-widget:nth-child(4) {
		display: none;
	}

	.content-footer-wrapper div.recent-post-widget {
		width: 210px !important;
	}

	div.custom-sidebar  .recent-post-widget-context {
		width: 110px;
	}

	.content-footer-wrapper .custom-sidebar h3 {
		margin-top: 0;
	}
}


/* Mobile (Portrait) 320px (rules apply to all mobile sizes)
================================================== */
@media only screen and (max-width: 767px) {
	.headshot {
		height: 150px;
		width: 150px;
		top: -78px; /* (Height / 2 + border width) */
		right: 10px;
	}

	.menu-and-name {
		min-height: 62px; /* (Headshot height / 2 + headshot border width - padding-top) */
		margin-right: 170px;
		padding-top: 16px;
		line-height: 32px;
	}

	.menu-and-name .name {
		font-size: 24px;
	}

	.menu-and-name .title {
		font-size: 14px;
	}

	/* Undo a change by Modernize */
	.sixteen.columns .social-wrapper {
		position: relative;
	}

	/* On mobile, tweak the icon boxes to just be simple icons with text and a colored background */
	.icon .lines {
		display: block;
		margin: 0;
		width: auto;
	}

	.icon .lines .value {
		display: none;
	}
	
	.icon .lines > div {
		width: auto;
	}
	
	.links .icon {
		text-align: center;
		line-height: 18px;
	}

	.social-wrapper .icon .label {
		font-size: 12px;
		line-height: 18px;
		margin-top: 4px;
	}

	/* On mobile, undo our "right justification of icons when we don't have enough to make a full row" (see above) */
	.num-icons-1,
	.num-icons-2,
	.num-icons-3 {
		margin-left: 20px;
		margin-right: 0;
		text-align: left;
	}

	body button#responsive-menu-pro-button {
		display: block;
	}

	/* Hide menu overflow toggle pseudo-menu item */
	.toggle-menu-overflow {
		display: none !important;
	}

	/* Make the menu header bar bigger on mobile */
	body {
		margin-top: 75px;
	}

	body #responsive-menu-pro-header {
		height: 75px;
	}

	body #responsive-menu-pro li a,
	body #responsive-menu-pro-header .responsive-menu-pro-header-bar-item {
		line-height: 75px;
	}

	body button#responsive-menu-pro-button,
	body #responsive-menu-pro-header-bar-html .cta {
		height: 50px;
	}

	#responsive-menu-pro-container {
		height: auto;
	}

	.content-header-wrapper div.textwidget {
		width: 375px;
	}

	/* Tweak the display of non-home pages */
	body:not(.home) .links {
		margin-right: 205px;
	}

	/* Hide the title on all non-home page mobile layouts */
	body:not(.home) .menu-and-name .title {
		display: none;
	}

	body:not(.home) .social-wrapper .icon i {
		font-size: 26px;
	}

	/* Styles for specific pages/widgets */
	.content-header-wrapper .join-header {
		width: auto;
		margin: 0 0 10px 0;		
		font-size: 20px;
		line-height: 26px;
		font-weight: normal;
	}

	.subscribe-form > p > input[type=text],
	.subscribe-form > p > input[type=email],
	.subscribe-form > p > input[type=tel] {
		width: 195px;
	}

	.content-footer-wrapper .custom-sidebar h3 {
		margin-top: 0;
	}

	div.custom-sidebar .recent-post-widget-thumbnail {
		margin-top: 0;
	}

	div.custom-sidebar  .recent-post-widget-context {
		width: 280px;
	}
}


/* Mobile (Landscape) 600px
================================================== */
@media only screen and (min-width: 600px) and (max-width: 767px) {
	.headshot {
		height: 175px;
		width: 175px;
		top: -91px; /* (Height / 2 + border width) */
		right: 20px;
	}

	.menu-and-name {
		min-height: 75px; /* (Headshot height / 2 + headshot border width - padding-top) */
		margin-right: 205px;
		padding-top: 16px;
		line-height: 32px;
	}

	.menu-and-name .name {
		font-size: 30px;
	}

	.menu-and-name .title {
		font-size: 20px;
	}
}


/* Mobile (Landscape) 480px
================================================== */
@media only screen and (min-width: 480px) and (max-width: 599px) {
	.headshot {
		height: 175px;
		width: 175px;
		top: -91px; /* (Height / 2 + border width) */
		right: 20px;
	}

	.menu-and-name {
		min-height: 75px; /* (Headshot height / 2 + headshot border width - padding-top) */
		margin-right: 203px;
		padding-top: 16px;
		line-height: 32px;
	}

	.menu-and-name .name {
		font-size: 24px;
	}

	.menu-and-name .title {
		font-size: 18px;
	}

	.content-header-wrapper div.textwidget {
		width: 375px;
	}

	/* Tweak the display of non-home pages */
	body:not(.home) .menu-and-name .name {
		font-size: 24px;
	}

	body:not(.home) .menu-and-name {
		min-height: 83px;
		padding-top: 2px;
		line-height: 28px;
	}

	/* Styles for specific pages/widgets */
	.subscribe-form > p > input[type=text],
	.subscribe-form > p > input[type=email],
	.subscribe-form > p > input[type=tel] {
		width: 195px;
	}
}

/* Mobile (Portrait) 480px (all displays smaller than 480px)
================================================== */
@media only screen and (max-width: 479px) {
	.menu-and-name {
		text-align: left;
		margin-left: 30px;
		min-height: 72px;
		padding-top: 6px;
	}

	/* Hide the title on portrait */
	.menu-and-name .title {
		display: none;
	}

	.content-header-wrapper div.textwidget {
		width: 255px;
	}

	/* Tweak the display of non-home pages */
	body:not(.home) .menu-and-name .name {
		font-size: 24px;
	}

	body:not(.home) .menu-and-name {
		height: 83px;
		padding-top: 2px;
		line-height: 28px;
	}

	body:not(.home) .links {
		text-align: left;
		margin-right: 110px;
		margin-left: 30px;
	}
	
	body:not(.home) .icon {
		margin-left: 0;
		margin-right: 13px;
	}

	/* Styles for specific pages/widgets */
	.subscribe-form > p > input[type=text],
	.subscribe-form > p > input[type=email],
	.subscribe-form > p > input[type=tel] {
		width: 165px;
		margin-left: 0;
	}
		
	.subscribe-form > p > label {
		margin-bottom: 0px;
	}

	.subscribe-form > p > input[type=submit] {
		float: none;
		margin: 10px 0 0 0;
	}

	div.custom-sidebar  .recent-post-widget-context {
		width: 160px;
	}

	/* Make Magnific popup full-screen on phones */
	body .mfp-container {
		padding: 0;
	}
	.mfp-content {
		position: absolute;
		height: 100%;
		top: 0;
		left: 0;
	}
	.popup-window {
		position: absolute;
		box-sizing: border-box;
		height: 100%;
		width: 100%;
		margin: 0 auto;
		border-radius: 0;
	}
	
	#cta-popup span.wpcf7-form-control-wrap {
		width: 100%;
	}
	
	#cta-popup input:not([type="submit"]) {
		float: left;
		margin-bottom: 15px;
	}
}
/* Make the margin for the name (and links on non-home pages) as small as possible (without looking too goofy) on really small displays to provide more room for the name */
@media only screen and (max-width: 350px) { .menu-and-name, body:not(.home) .links { margin-left: 20px; } }
@media only screen and (max-width: 330px) { .menu-and-name, body:not(.home) .links { margin-left: 10px; } }

/* Fine-grained mobile-only media queries for icon sizing */
@media only screen and (min-width: 715px) and (max-width: 767px) { .links .icon { width: calc((100% / 7) - 43px); } }
@media only screen and (min-width: 650px) and (max-width: 714px) { .links .icon { width: calc((100% / 6) - 43px); } }
@media only screen and (min-width: 545px) and (max-width: 649px) { .links .icon { width: calc((100% / 5) - 44px); } }
@media only screen and (min-width: 460px) and (max-width: 544px) { .links .icon { width: calc((100% / 4) - 45px); } }
@media only screen and (min-width: 370px) and (max-width: 459px) { .links .icon { width: calc((100% / 3) - 46px); } }
@media only screen and (min-width: 290px) and (max-width: 369px) { .links .icon { width: calc((100% / 2) - 49px); } }
@media only screen and                        (max-width: 289px) { .links .icon { width: calc((100% / 1) - 58px); } }
