/*
Theme Name: iSite
Description: iSite Sky theme
Version: 1.0
Author: Andy
*/

/* General styles                                   */
/* ------------------------------------------------ */

/* fix issues with the WP admin bar messing with sticky/absolute header items */
body.admin-bar #branding-wrap{ top: 28px; }
body.admin-bar #wrapper{ margin-top: 145px; }

td {
	vertical-align: top;
}

a {
	color: var(--main);
	text-decoration: underline;
	outline: none;
}

a:hover {
	color: var(--secondary);
}

ul {
	margin: 8px 0 18px 18px;
	padding: 0;
}

li {
	padding-left: 4px;
	line-height: 180%;
}

h1, h1 a, h2, h2 a, h3, h3 a, h4, h4 a {
	font-family: "Asap Condensed", sans-serif;
    line-height: 120%;
    color: var(--fourth);
    font-weight: normal;
}

h1 {
	font-size: 2.8em;
	margin-top: 0;
}

h2 {
	font-size: 2.4em;
}

h3 {
	font-size: 2.0em;
}

h4 {
    font-size: 1.8em;
}

hr {
	height: 1px;
	border: 0;
	width: 100%;
	background: #eee;
	color: #eee;
	margin: 30px 0;
    clear: both;
}

main img {
    border-radius: 20px;
}

/* Content                                          */
/* ------------------------------------------------ */
.content {
	padding: 30px 0 100px 0;
	overflow: hidden;
	font-size: 1.1em;
	min-height: 200px;
    clear: both;
}

.content, .content p, .content li {
	line-height: 160%;
}

.content img {
	max-width: 100%;
	height: auto;
}

.content a {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}


body.home .content h1 {
    font-size: 3.4em;
}

body.home .content h1 + h2 {
    margin-top: -20px;
    font-weight: 300;
}

#homepageintro {
    background: var(--secondary);
    padding: 60px 0;
}

#homepageintro, #homepageintro h1, #homepageintro h2, #homepageintro h3, #homepageintro p, #homepageintro a {
    color: #fff;
}

.content-left {
    width: 20%;
    padding-right: 2%;
    float: left;
    font-size: 0.9em;
}

.content-right {
    width: 75%;
    margin-left: 2%;
    margin-bottom: 30px;
    float: right;
}

.content-left h3 {
    margin: 0;
    font-size: 24px;
}

.content-left li {
    list-style-type: none;
    padding: 0;
}

.readmore, input[type="submit"] {
	font-family: "Asap Condensed", sans-serif;
    background: none;
	color: var(--fourth);
	padding: 15px 34px;
    border: 2px solid var(--fourth);
    border-radius: 999px;
	text-decoration: none;
	display: inline-block;
	margin: 15px 0;
	font-size: 18px;
	text-shadow: none;
	line-height: 100%;
	cursor: pointer;
}

.readmore:hover, input[type="submit"]:hover {
	background: var(--third);
    border: 2px solid var(--third);
	color: #fff;
}


.readmore, .content a, input[type="submit"], .wp-block-image, .listingimage img {
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}

/* listing formatting ------------------------------------------------------------------------------------------------------- */
.listingdetails {
    background: #f4faf5;
    border-radius: 25px;
    padding: 30px 40px;
    padding-left: 150px;
    position: relative;
}

.listingdetails h2 {
    margin: 0 0 20px -120px;
}

.listingdetails p {
    margin: 4px 0;
}

.listingdetails p, .listingdetails a {
    color: var(--fourth);
}

.listingdetails a {
    /*text-decoration: none;*/
    color: var(--secondary);
}

.listingdetails a:hover {
    color: var(--third);
}

.listingdetails b {
    display: inline-block;
    position: absolute;
    left: 30px;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
    flex-grow: unset;
}

.sidebaractive {
    color: var(--third);
    font-weight: bold;
}


.listing {
    float: left;
    margin: 0 2% 30px 2%;
    width: 29%;
    padding-bottom: 70px;
    position: relative;
}

.columns-container .listing:nth-of-type(3n+1) {
    clear: both;
}

.listingimage {
    overflow: hidden;
    /*border-radius: 16px;*/
    aspect-ratio: 1 / 0.7;
}

.listingimage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listingimage img:hover {
    opacity: 0.7;
}

.listing h3 {
    font-size: 22px;
    margin: 10px 0;
}

.listing .readmore {
    position: absolute;
    bottom: 0;
    left: 0;
}

body.home .wp-block-column {
    width: 22%;
    margin: 0 1.5%;
    float: left;
}

body.home .wp-block-column h2 {
    font-size: 1.8em;
}

/* set the WP gallery block images' ratio to square */
.wp-block-image, .wp-block-image img {
    aspect-ratio: 1 / 1 !important;
}

.wp-block-image:hover {
    opacity: 0.7;
}

/*.listing-youtube::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 30px;
    left: -10px;
    display: inline-block;
    background: url(images/youtube.svg) left top no-repeat;
    background-size: 30px;
}*/

/* Columns                                          */
/* ------------------------------------------------ */
.columns-container {
    margin: 0 -2.5%;
    overflow: hidden;
    display: flex; /* next two lines for full-height columns */
    flex-wrap: wrap;
}

.column-half, .column-third, .column-quarter, .column-twothirds {
    box-sizing: border-box;
    padding: 30px;
}

.column-half {
    width: 50%;
    margin: 0 0 40px 0;
    float: left;
}

.column-twothirds {
    width: 66.333%;
    margin: 0 0 40px 0;
    float: left;
}

.column-third {
    width: 33.333%;
    margin: 0 0 40px 0;
    float: left;
}

.column-quarter {
    width: 25%;
    margin: 0 0 40px 0;
    float: left;
}

.column-half img, .column-twothirds img, .column-third img {
    width: 100%;
    height: auto;
}

/*.columns-container .column-half:nth-of-type(2n+1) {
    clear: both;
    background: red;
}*/

.clearfix {
    clear: both;
}

.search-highlight {
    font-style: italic;
}


/* format the NGG basic thumbnail gallery type */
.ngg-galleryoverview {
}

.ngg-gallery-thumbnail-box {
    min-height: 200px;
    aspect-ratio: 1 / 1;
    padding: 5px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    width: 33.333%;
}

.ngg-gallery-thumbnail-box img {
    height: 100% !important;
    width: 100%;
    object-fit: cover !important;
    object-position: center;
    aspect-ratio: 1 / 1 !important;
}

.imagecaption {
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    font-size: 16px !important;
    padding: 6px 10px;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.5) 0%, rgba(237, 221, 83, 0) 100%);
    color: #fff;
    border-radius: 0 0 21px 21px;
}

/* Footer                                           */
/* ------------------------------------------------ */
footer {
	font-size: 0.9em;
	padding: 80px 0;
	text-align: center;
	background: var(--secondary);
    overflow: hidden;
}

#footerlogo {
    max-width: 300px;
    height: auto;
}

footer a, footer, footer p {
	color: #fff;
}

footer span {
    font-size: 24px;
}

a.scrollup {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    text-indent: -9999px;
    background: url(images/top.svg) no-repeat;
    background-size: 100%;
    opacity: 0.7;
}

#copyright {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 150px;
}

/* Responsive elements                              */
/* ------------------------------------------------ */
@media screen and (max-width: 1200px) {
    .ngg-gallery-thumbnail-box {
        width: 50%;
    }
}

@media screen and (max-width: 970px) {
    .content-left, .content-right {
        width: 100%;
        float: none;
        border-right: none;
        margin: 0;
    }

    .content-left {
        margin-top: 50px;
        padding-top: 50px;
    }

    body.home .wp-block-column {
        width: 47%;
    }
}

@media screen and (max-width: 800px) {
    .listingdetails {
        padding: 20px;
        padding-left: 130px;
        margin: 0 -20px;
    }

    .listingdetails b {
        left: 20px;
    }

    .listingdetails h2 {
        margin: 0 0 20px -110px;
    }

    .column-quarter {
        width: 50%;
    }

    .listing {
        width: 45%;
    }

    .columns-container .listing:nth-of-type(3n+1) {
        clear: none;
    }

    .columns-container .listing:nth-of-type(2n+1) {
        clear: both;
    }

    .column-quarter:nth-child(2n+1) {
        clear: both;
    }
}

@media screen and (max-width: 600px) {
    .column-half, .column-twothirds, .column-third, .column-quarter {
        width: auto;
        float: none;
        margin: 0 0 30px 0;
    }

    .listing {
        width: 100%;
        margin: 0 0 40px 0
    }

    .columns-container .listing:nth-of-type(2n+1) {
        clear: none;
    }

    .ngg-gallery-thumbnail-box {
        width: 100%;
    }
}

@media screen and (max-width: 460px) {
    body.home .wp-block-column {
        width: 100%;
        margin: 0;
    }
}

/* iOS */
@media screen and (max-width: 380px) {
	#header {
		min-height: 80px;
		font-size: 16px;
	}

	#header a {
		font-size :28px;
	}

	#footer img {
		width: 150px;
		height: auto;
	}
}


/* WP Common Styles */
figure {
    display: table;
}

.wp-block-image figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

figure.wp-block-image {
    margin-left: 0;
    margin-right: 0;
}

figure.wp-block-image img {
    max-width: none !important;
    width: 100%;
    height: auto;
}

.wp-caption {
    width: 100% !important;
}

.aligncenter {
   display: block;
   text-align: center;
   margin: 0 auto;
   padding-bottom: 10px;
}

.alignright {
   text-align: right;
   display: block;
   float: right;
   margin: 10px 0px 5px 15px;
}

.alignleft {
   text-align: left;
   display: block;
   float: left;
   margin: 10px 20px 5px 0px;
}

.wp-caption-text,.wp-caption-dd {
   margin: 0;
   font-weight: bold;
   font-size: smaller;
   text-align: center;
}

.wp-caption {
   margin-right: 5px;
}

.wp-caption img {
	padding-bottom: 5px;
}

.alignleft, .alignright {
	margin-bottom: 20px;
}

.aligncenter, dl.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
}

.alignright {
	float: right;
}


@media screen and (max-width: 600px) {
    img.alignleft, img.alignright {
        float: none;
        display: block;
        margin: 20px auto;
    }
}