/*******************************************************************
 * Frontend stylesheet
 *
 *
 * Updated Flex columns template sample (supports 2 or 3 column grids):
 *
 * .flex-container 	(wrapper)
 * .flex-item 		(each element)

<div class="flex-container">
  <div class="flex-item">1</div>
  <div class="flex-item">2</div>
</div>

/* If there is an h3 tag within the flex environment, need to specify
   width and add +1 to nth-child(3n+2) formula, becoming nth-child(3n+3)
.flex-container h3 {
	width: 100%;
	-webkit-flex: 100%;
	-moz-flex: 100%;
	-ms-flex: 100%;
	flex: 100%;
}

.flex-item,
.flex-container {
	-khtml-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}

.flex-container {
  	display: flex; /* Create a flex layout context
  
  	* Define the flow direction 
      and if we allow the items to wrap 
   	* The same as:
   	* flex-direction: row;
   	* flex-wrap: wrap;
   	*
	*
	flex-flow: row wrap;
	justify-content: flex-start; /* Define how is distributed the remaining space (left align) *
	margin-bottom: 10px;
}

.flex-item {
	width: 100%; /* 2 column grid (width:49%); 3 column grid (width:32.5%) *
	margin-top: 10px;
	margin-right: 0;
	margin-left: 0;
}

@media screen and (min-width:600px) {
	.flex-item {
		width: 49%; /* 2 column grid *
	}
	.flex-item:nth-child(odd){
		margin-right: 2%;
	}
}

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

	.flex-container {
		align-items: flex-end; /* items will vertical align to bottom of each row (for uneven number of fields in left and right columns) *
	}

	.flex-item {
		width: 32.5%; /* 3 column grid *
	}

	/* We must remove margin from smaller screen configuration
	.flex-item:nth-child(odd){
		margin-right: 0;
	}

	/* nth-child() ref:
			w3schools.com/CSSref/sel_nth-child.php
       		css-tricks.com/how-nth-child-works
	 *
 	 * 3 column grid:
			nth-child(3n+2) formula selects middle element per row
			margin-right: 1.25%;
			margin-left: 1.25%;
 			1.25% margin per gutter for a total of 2.5%
 	 *
 	 *
	.flex-item:nth-child(3n+2){
		margin-right: 1.25%;
		margin-left: 1.25%;
	}
}


 *********************************************************************
 * Original Flex columns template sample:
 *
#fncl-main-archive .dates {
	display: flex;
	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
 	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	vertical-align: top;
}
#fncl-main-archive .cal-ent-wrap {
	width: 100%;
	-webkit-flex: 100%;
	-moz-flex: 100%;
	-ms-flex: 100%;
	flex: 100%;
	
}

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

* keep last item from stretching entire container with flex: 0 0 49%;
* ref: https://stackoverflow.com/questions/51424852/prevent-last-item-from-stretching-to-fill-the-container
* good flex tutorials:
* https://blog.bytegrad.com/three-columns-with-flex-box-in-css-examples
* https://blog.bytegrad.com/flexbox-spacing-between-items-examples
* https://css-tricks.com/snippets/css/a-guide-to-flexbox/

	#fncl-main-archive .cal-ent-wrap {
		width: 49%;
		-webkit-flex: 0 0 49%;
		-moz-flex: 0 0 49%;
		-ms-flex: 0 0 49%;
		flex: 0 0 49%;
		
	}

	** flex-shrink: 1 in case we need to shrink width slightly
	#fncl-main-archive.dates.tri .cal-ent-wrap {
		width: 32.8%;
		-webkit-flex: 0 1 33%;
		-moz-flex: 0 1 33%;
		-ms-flex: 0 1 33%;
		flex: 0 1 33%;
	}
	** define a gap in case last child is 'widowed'
	#fncl-main-archive.dates.tri {
		column-gap: 0.29%;
	}
	** flex-grow: 1 in case last item 'widowed' with 2 elements
	#fncl-main-archive.dates.tri .cal-ent-wrap:last-child {
		-webkit-flex: 1 0 auto;
		-moz-flex: 1 0 auto;
		-ms-flex: 1 0 auto;
		flex: 1 0 auto;
	}

}

 *********************************************************************
 * Colors
 *

godaddy teal
#059a91

teal
#00b1ae

light gray
#e5e5e5

pale green
#d3f0df

rich orange
#e4582a

violet
#4c2776 */

:root {
	/* Main navigation */
	--primary-nav--color-link: #4c2776;
	--primary-nav--color-link-hover: #000000;
	--primary-nav--color-text: #4c2776;
	--primary-nav--border-color: #bfbdc2;
	--global--color-border: #bfbdc2;
}

/* -------------------- Transitions -------------------- */

a,
a:hover {
	-webkit-transition:0.5s;
	-moz-transition:0.5s;
	-ms-transition:0.5s;
	transition:0.5s;
}

/* -------------------- Box Sizing -------------------- */

#hitpics-banner {
	-khtml-box-sizing:border-box;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-ms-box-sizing:border-box;
	box-sizing:border-box;
}

/* -------------------- Main Colors -------------------- 

godaddy teal
#059a91

teal
#00b1ae

light gray
#e5e5e5

pale green
#d3f0df

rich orange
#e4582a

violet
#4c2776
rgba(76,39,118,0.50)
*/

/* text colors */

.entry-content, .entry-content p {
	color: #565656;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content p strong {
	color: #00b1ae;
}

/* main title */

.entry-title {
	color: #00b1ae;
}

/* link colors */

a {
	text-decoration-style: dotted;
}

a:hover {
	color: #000000;
	text-decoration-style: solid;
}

.entry-content a {
	color: #00b1ae;
	text-decoration-style: dotted;
}

.entry-content a:hover {
	color: #000000;
	text-decoration-style: solid;
}

.primary-navigation .sub-menu {
	border: 1px solid var(--primary-nav--border-color);
}

.primary-navigation .primary-menu > .menu-item:hover > a {
	color: var(--primary-nav--color-link);
}

/* -------------------- Footer widgets -------------------- */

.widget-area a,
.widget-area a:link,
.widget-area a:visited,
.widget-area a:active {
	color: var(--primary-nav--color-link);
	text-decoration: none;
	text-decoration-color: transparent;
}

.widget-area a:hover {
	color: var(--primary-nav--color-link-hover);
	text-decoration-style: dotted;
}

/* -------------------- Page lines -------------------- */

header.page-header {
	border-top: 2px solid var(--global--color-border);
}

aside.widget-area {
  	border-top: 1px solid var(--global--color-border);
}

@media only screen and (min-width: 482px) {
	
	.primary-navigation a,
	.primary-navigation a:link,
	.primary-navigation a:visited {
		color: var(--primary-nav--color-link);
	}

	.primary-navigation a:hover {
		color: var(--primary-nav--color-link-hover);
	}

}

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

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

/** 
 * Getting proportional heights dynamically
 * jQuery solution Ref: stackoverflow.com/questions/21624014/css-are-view-height-vh-and-view-width-vw-units-widely-supported
 * CSS vw, vh units Ref: weareconvoy.com/2014/07/css-vw-and-vh-units-are-they-worth-using-yet
 * Ref: w3schools.com/cssref/css_units.asp
 * Adjust for Tabbed navigation height = approx. 6.3%
 *
span.ovrlay {
	width:100%;
	max-height:75vh;
	overflow-x:hidden;
	overflow-y:auto;
	position:relative; 
	display:block;
} */