/*!
Theme Name: JPSilwp

**/

/*--------------------------------------------------------------
>>> MASTER.CSS TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 General
	1.1 Typography
	1.2 Section Titles
2.0 Header
	2.1 Navigation
3.0 Pages
	3.1 Homepage
	3.2 Containers
	3.3 Gallery
4.0 Footer
	4.1 Services
	4.2 Accreditations
	4.3 Footer General
5.0	Gravity Forms
6.0 Blog
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 General
--------------------------------------------------------------*/

.custom-logo-link img {
	width:188px!important;
}
.no-results {
	min-height: 400px;
}
.col-full {
	max-width: 1220px;
	width: 100%;
	padding-left: 4%;
	padding-right: 4%;
	margin: 0 auto;
}
.col-wide {
	width: 100%;
	padding-left: 4%;
	padding-right: 4%;
	margin: 0 auto;
}

@media screen and (min-width: 1000px) {
	.col-full {
		padding-left: 4%;
		padding-right: 4%;
	}
}

.owl-carousel {
	z-index: 0!important;
}

/*--------------------------------------------------------------
1.1 Typography
--------------------------------------------------------------*/

p.intro {
	font-size:1.2rem;
}

/** Blockquote **/

blockquote:before {
	color: #ccc;
	content: '“';
	font-size: 4rem;
	line-height: 0.1em;
	margin-right: 10px;
	vertical-align: -30px;
}
blockquote p {
	display: inline;
}
figure.quote {
	margin: 0;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	padding: 20px;
	margin-bottom: 50px;
}
figure.quote figcaption,
figure.quote blockquote {
	margin: 1em;
}

@media screen and (min-width: 769px) {

	figure.quote img {
		float: right;
		margin-left: 20px;
	}
}

#primary hr,
#primary hr.wp-block-separator {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
  border-top: none!important;
}

/*--------------------------------------------------------------
2.0 Header
--------------------------------------------------------------*/

#masthead {
	border-bottom: 5px solid #c21e24;
	padding: 10px 4%;
	display: table;
	width: 100%;
	position: relative;
	z-index: 1;
}
.site-branding {
	float: left;
	width: 35%;
}
.site-branding img,
.custom-logo-link {
	display: block;
}
a.head-tel {
	float: left;
	color: #222;
	text-decoration: none;
}
a.head-tel:hover {
	color: #c21e24;
}
a.head-tel:before {
	content: "";
	display: inline-block;
	position: relative;
	top: 3px;
	width: 17px;
	height: 19px;
	background: url('../images/phone-icon.svg') no-repeat;
	background-position: center center;
}
.homeicon svg {
	position: relative;
	top: 3px;
	fill: #222;
}

@media screen and (min-width: 768px) {

	.site-branding {
		max-width: 180px;
		margin-top: 20px;
		float: left;
	}
	a.head-tel {
		float: right;
	}
	a.head-tel span {
		margin-left: 5px;
		font-size: 1.1rem;
		font-weight: 600;
	}
}

@media screen and (max-width: 768px) {

	a.head-tel span {
		display: none;
	}
	a.head-tel {
		margin: 13px 0 0 40%;
	}
	a.head-tel:before {
		position: relative;
		top: -2px;
		width: 25px;
		height: 25px;
		background: url('../images/phone-icon-white.svg') no-repeat;
		background-position: center center;
		background-size: 25px 25px;
	}
}
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait) {
	.site-branding {
		width: 25%;
	}
	a.head-tel {
  		display: none;
	}
}

.slider-caption {
	border-left: 3px solid #159a61;
}

/*--------------------------------------------------------------
2.1 Navigation
--------------------------------------------------------------*/

.primary-navigation {
	float: right;
}
#menu-jpsilwp-main-menu {
	display: inline-block;
	float: left;
}

@media screen and (min-width: 768px) {

	.jpsilwp-primary-navigation {
		float: right;
	}
	.home-link span {
		display: none;
	}
}

/*--------------------------------------------------------------
3.0 Pages
--------------------------------------------------------------*/

.entry-header,
.page-header {
	margin: 20px 0;
}
.entry-header_single {
	margin: 20px 0 0 0;
}
.entry-content {
	padding-bottom: 0;
	margin-bottom: 35px;
}
@media screen and (min-width: 768px) {
	.entry-header,
	.page-header {
		margin: 50px 0 50px 0;
	}
	.entry-header_single {
		margin: 50px 0 0 0;
	}
	
	.entry-content {
		margin-bottom: 75px;
	}
	.side-rule {
		padding-left: 5%;
	    border-left: 1px solid #ccc;
	}
}
.home .entry-header {
	margin: 0 0;
}

/** Page Columns **/

.ds-2col-stacked,
.ds-2col {
	overflow: hidden;
}
#testing-gallery img {
	float: left;
	padding: 3px;
	margin-right: 10px;
	margin-bottom: 10px;
	width: 125px;
	height: auto;
	border: 1px solid #dddddd;
}
.node-container .field-name-field-container-images img {
    float: left;
    padding: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 125px;
    height: auto;
    border: 1px solid #dddddd;
}

@media screen and (min-width: 768px) {
	.ds-2col-stacked .group-left,
	.ds-2col .group-left {
		float: left;
		width: 46%;
		margin-right: 2%;
	}
	.ds-2col-stacked .group-right,
	.ds-2col .group-right {
		float: left;
		width: 52%;
	}
}

/*--------------------------------------------------------------
3.1 Homepage
--------------------------------------------------------------*/

#products {
	text-align: center;
}
#products a {
	text-decoration: none;
	color: #222;
}
#products button {
	margin: 0 auto;
}
#products button a {
	color: #fff;
}
@media screen and (min-width: 768px) {
	#products {
		padding-left: 10%!important;
		padding-right: 10%!important;
	}
}

/*--------------------------------------------------------------
3.2 Containers
--------------------------------------------------------------*/

.view-containers .view-content {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: stretch;
	align-items: flex-start;
}
.view-containers .view-content .views-row {
	border: 2px solid white;
	background-color: #f5f5f5;
	margin-bottom: 20px;
	order: 0;
	flex: 0 1 auto;
	align-self: auto;
	flex-basis: 50%
}
.view-containers .view-content .views-row img {
	width: 100%;
  height: 150px;
	display: block;
}
.view-containers .view-content .views-row .views-field-title {
	text-align: center;
}
.view-containers .view-content .views-row .views-field-title a {
	color: #222;
	text-decoration: none;
	font-size: 1.2rem;
	line-height: 1.2;
	display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: stretch;
  align-items: center;
	min-height: 70px;
	padding: 0 10px;
}
@media screen and (min-width: 768px) {
	.view-containers .view-content .views-row img {
		width: 100%;
	  height: 300px;
	}
	.view-containers .view-content .views-row {
		flex-basis: 32%
	}
}

/*--------------------------------------------------------------
3.3 Gallery
--------------------------------------------------------------*/

.view-gallery .view-content {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: stretch;
	align-items: flex-start;
}
.view-gallery .view-content .views-row {
	border: 2px dashed white;
	order: 0;
	flex: 0 1 auto;
	align-self: auto;
	flex-basis: 50%
}
@media screen and (min-width: 768px) {
	.view-gallery .view-content .views-row {
		flex-basis: 20%
	}
}

/*--------------------------------------------------------------
4.0 Footer
--------------------------------------------------------------*/

/*--------------------------------------------------------------
4.1 Services
--------------------------------------------------------------*/

.home section.services {
	background-color: #c21e24;
	padding: 20px 0;
}
.home section.services p {
	color: #fff;
	max-width: 1220px;
	margin: 0 auto;
	text-align: center;
}

/*--------------------------------------------------------------
4.2 Accreditations
--------------------------------------------------------------*/

.accreditations {
	padding: 20px 0 0 0;
	background: #f5f5f5 url('/wp-content/uploads/2022/08/footer-image.jpeg') center center fixed;
	-webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
	overflow: hidden;
}
.accreditations p {
	max-width: 1220px;
	background-color: #c21e22;
	margin: 50px auto;
	padding: 30px 5%;
	text-align: center;
	color: #fff;
}

/*--------------------------------------------------------------
4.3 Footer General
--------------------------------------------------------------*/

.site-footer {
	background-color: #232325;
	padding-top: 40px;
}
.site-footer h2 {
	color: #fff;
}
.site-footer a {
	text-decoration: none;
}
.footer-nav {
	overflow: hidden;
	margin-bottom: 30px;
}
.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-nav li {
	margin-bottom: 5px;
}
.site-footer ul.menu li a,
.site-footer {
	color: #fff;
}
.site-footer ul.menu li a:hover {
	text-decoration: underline;
}
.menu-footer-container li {
	float: left;
	margin-right: 4%;
	padding-left: 4%;
	border-left: 1px solid #999;
}
@media screen and (min-width: 768px) {
	.menu-footer-container li {
		float: none;
		margin-right: 0;
		padding-left: 0;
		border-left: none;
	}
}

@media screen and (min-width: 768px) {

	.footer1wrp,
	.footer2wrp,
	.footer3wrp {
		width: 30.333%;
		float: left;
		padding-left: 1%;
		border-left: 1px solid #999;
	}
	.footer-nav li {
		padding-right: 5%;
	}
}

/** Fooetr Comms **/

p.footer_comms a {
	color: #fff;
	font-weight: bold;
}

/** Footer Social **/

.footer_social {
	padding: 20px 0 0;
}
.footer_social a {
	color: #fff;
	display: block;
	float: left;
	width: 40px;
	height: auto;
	margin: 5px 20px 5px 0;
}
.footer_social a:hover {
	color: #c21e22;
}

/** Site Info **/

.site-info {
	background-color: #111;
	padding: 20px 5%;
}
.site-info p {
	margin: 0 0 10px 0;
}
.site-info {
	font-size: 0.8rem;
	text-align: center;
}
.site-info a,
.site-info a:visited,
.site-info a:hover,
.site-info p,
.site-info {
	color: #bbb;
	text-decoration: none;
}

/*--------------------------------------------------------------
6.0 Blog
--------------------------------------------------------------*/

.container_news {
	padding: 50px 0;
}

.ps-post-thumb{
	margin-bottom: 50px;
}
.pad-bottom {
	padding-bottom: 50px;
}
.news-archive {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-content: space-around;
	align-items: left;
	margin-bottom: 50px;
}
.post-thumbnail {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
    flex-basis: 100%;
}
.post-thumbnail a {
	display: block;
	width: 100%;
	float: left;
	margin-bottom: 20px;
}
.post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}
.news-summary {
    order: 0;
    flex: 0 1 auto;
    align-self: auto;
	padding-right: 5%;
}

@media screen and (min-width: 768px) {
	.news-archive {
		flex-direction: row;
		margin-bottom: 50px;
		align-items: center;
	}
	.post-thumbnail {
		flex-basis: 30%;
	}
	.news-summary {
		flex-basis: 70%;
		padding-left: 5%;
	}
}


/** Latest projects / blog **/

ul.jpc_posts  {
	max-width: 1780px;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-content: stretch;
	grid-gap: 2%;
	margin-bottom: 20px;
}
ul.jpc_posts>li {
	background-color: #f5f5f5;
	margin-bottom: 20px;
	padding-bottom: 10px;
	order: 0;
	flex: 0 1 auto;
	align-self: auto;
	flex-basis: 49%;
}
.thumb_wrap{
	position: relative;
}
ul.jpc_posts>li a {
	text-decoration: none;
	color: #333;
}
.post-thumbnail img {
	display: block;
}
ul.post_tags {
	display: block;
	clear: both;
	list-style: none;
	padding: 0;
	margin: 0 0 20px 5%;
  	overflow: hidden;
}
ul.post_tags li {
  display: inline-block;
  float: left;
  margin-right: 1px;
  margin-bottom: 1px;
}
ul.post_tags li a {
  font-size: 0.9rem;
  line-height: 1.0;
  background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	text-transform: uppercase;
	display: block;
	padding: 1px 3px;
}
ul.jpc_posts h3 {
	font-size: 1.4rem;
	line-height: 1.2;
	font-size: 1rem;
}
ul.jpc_posts p.archive_date {
	font-weight: bold;
	padding: 0 0 10px 0;
	font-size: 0.8rem;
	margin: 0;
}
ul.jpc_posts p {
	font-size: 0.9rem;
	line-height: 1.3;
	font-size: .8rem;
}
ul.jpc_posts button {
	font-size: .8rem;
}
ul.jpc_posts h3,
ul.jpc_posts p,
ul.jpc_posts button {
	margin: 0 5px 10px 10px;
}
.home ul.jpc_posts>li:nth-child(3) {
	display: none;
}
.tag_commas:last-child {
  display: none;
}

.entry-meta {
	padding: 20px 0;
	font-size: 0.8rem;
}
.entry-meta a {
	color:#222;
	text-decoration: none;
	font-weight: 500;	
}
@media screen and (min-width: 768px) {
	.home ul.jpc_posts>li:nth-child(4) {
		display: block;
	}
	ul.jpc_posts  {
		grid-gap: 1.3%;
		margin-bottom: 10px;
	}
	ul.jpc_posts>li {
		flex-basis: 24%
	}
	ul.post_tags {
		margin: 0 0 20px 5%;
	}
	ul.post_tags li a {
		font-size: 1rem;
		line-height: 1.7;
		padding: 2px 5px;
	}
	ul.jpc_posts h3 {
		font-size: 1.8rem;
	}
	ul.jpc_posts p {
		font-size: 1.0rem;
		line-height: 1.7;
	}
	ul.jpc_posts button {
		font-size: 1rem;
	}
		ul.jpc_posts h3,
	ul.jpc_posts p,
	ul.jpc_posts button {
		margin: 0 5px 20px 0;
	}
}

.content_archive_tags {
  list-style: none;
  margin: 0;
  padding: 0;
}
.content_archive_tags li a {
  list-style: none;
  margin: 0;
  padding: 0;
}
