/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

a {
    color: #00e;
}

a:visited {
    color: #551a8b;
}

a:hover {
    color: #06e;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
	font-family:Arial, Helvetica, sans-serif;
}

p {
	margin-top: 0;
}
   
a {
	text-decoration: none;
	color: #0066b2;
}

a:hover {
	text-decoration: none;
	color: #0066b2;
}

a:visited {
	text-decoration: none;
	color: #0066b2;
}
   
ul {
	padding-left: 25px;
	margin: 0;
	list-style-type: square;
}

#header {
	width: 100%;
	background-color: #0066b2;
}

#header .logo {
	background-image:url(../img/hnw-logo.png);
	background-size:160px 168px;
	width: 160px;
	height: 168px;
	float: left;
}

#header .main-nav {
	height: 36px;
	padding-left: 25px;
	padding-top: 5px;
	color: #bdcadd;
	font-size: 1.3em;
    border-top: solid 1px #bdcadd;
    box-sizing: content-box;
}

#header .main-nav:child-first {
	border-top: none;
	padding-left: 25px;
	padding-top: 2px;
}

#header .active {
	color: #ffffff;
}


.container-content {
	padding: 25px 25px 25px 25px;
	font-size: 1em;
}


img.accordion-bullet {
	width: 10px;
	height: 10px;
	padding: 25px 20px 20px 25px;
}

.accordion-header-border {
	border-bottom: 1px solid #7d7d7d;
}

.accordion-content-inside {
	padding: 5px 15px 25px 25px;

}


#container-header-nav {
	padding-left: 160px;
}


.copyright {
	padding: 0 25px 25px 25px;
	color: #786b60;
	font-size: .8em;
	text-decoration: none;
}

.copyright a {
	color: #786b60;
	text-decoration: none;
}

.notice-blue {
	padding: 10px;
	border: solid 1px #0066b2;
	background-color: #A9C6D6
}

.notice-yellow {
	padding: 0px;
	margin-right: 10px;
	border: solid 1px #FC3;
	background-color: #FFF8D9;
    position: relative;
}

.notice-yellow a{
    position: relative;
    display: block;
	padding: 10px;
    width: 100%;
    height: 100%;
}




/* ==========================================================================
   Helper classes
   ========================================================================== */

/* Prevent callout */

.nocallout {
    -webkit-touch-callout: none;
}

.pressed {
    background-color: rgba(0, 0, 0, 0.7);
}

/* A hack for HTML5 contenteditable attribute on mobile */

textarea[contenteditable] {
    -webkit-appearance: none;
}

/* A workaround for S60 3.x and 5.0 devices which do not animated gif images if
   they have been set as display: none */

.gifhidden {
    position: absolute;
    left: -100%;
}

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    background-repeat: no-repeat;
    border: 0;
    direction: ltr;
    display: block;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
}

.ir br {
    display: none;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/**
 * Clearfix helper
 * Used to contain floats: h5bp.com/q
 */

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 800px) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for viewports that meet the condition */
	
#header .logo {
	background-image:url(../img/hnw-logo@2x.png);
}

}

/* Meida Library */

.container-thumbnail {
	position: relative;
	/*padding: 20px 30px;*/
	display: flex;
	flex-wrap: wrap;
    justify-content: space-between;
	
}

.container-thumbnail a {
	margin: 0 0 15px 0;
    width: 46%;
}

.container-thumbnail.index a {
	margin: 0 0 15px 0;
    width: 100%;
}

/*.container-thumbnail a:nth-child(2n) {
	margin: 0 0 15px 0;
}*/

.container-caption {
	
	/*min-height: 230px;*/
	width: 100%;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
	
}



a .container-caption  {
	color: #222;
	font-size: 12px;
}

a:hover .container-caption  {
	color: #222;
}

.container-caption img {
	display: flex;
    height: auto;
    width: 100%;
}

.container-caption .caption {
	text-transform: uppercase;
	font-family: 'Zilla Slab', serif;
	text-align: center;
    color: #fff;
	height: auto;
	display: flex;
    flex-direction: column;
    justify-content: center;
	line-height: 24px;
	font-size: 24px;
	font-weight: normal;
	background-color: #263657;
    min-height: 120px;
}

.container-caption .caption-small {
	padding-top: 5px;
}

.grayscale-link:hover img {
	filter: grayscale(100%);
}

.gallery-headline {
	text-transform: uppercase;
	font-family: 'Zilla Slab', serif;
	color: #222;
	font-size: 24px;
	padding: 0 0 15px;
}

.fa-brands {
    font-size: 1.5em;
    padding-top: 0.5em;
}
