@font-face {
    font-family: 'Morris Troy';
    src: url('../fonts/p22_morris_troy_regular-webfont.woff2') format('woff2'),
         url('../fonts/p22_morris_troy_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Quadraat Sans';
    src: url('../fonts/quadraatsansregular-webfont.woff2') format('woff2'),
         url('../fonts/quadraatsansregular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Quadraat Italic';
    src: url('../fonts/quadraatsansot-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Quadraat Regular';
    src: url('../fonts/quadraatsansot-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'QuadraatOT Italic';
    src: url('../fonts/quadraatot-italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'QuadraatOT Regular';
    src: url('../fonts/quadraatot-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body, p, li, div, h1, h2, h3, h4, h5, h6 {
	font-family: "Quadraat Sans";
}

.exhibit-items img {
    box-shadow: 5px 5px 5px grey;
    margin-bottom: 5px;
}

.hero {
	background-color: rgba(231,230,225,1);
	background-image: url('../images/hero.jpg');
	min-height: 170px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.hero h1 {
	font-family: "Morris Troy";
	font-size: 3.625rem; /* 58px */
	line-height: 1.1; /* relative to font-size */
	color: rgba(52,81,91,1);
	text-shadow: 1px 0 1px rgba(2,39,66,1);
	padding: 3.3125rem 0.9375rem; /* 53px 15px */
	margin:0;
}

.navbar {
	background-color: rgba(52,81,91,1);
}

.navbar .nav-item a.nav-link {
	text-transform: uppercase;
	font-size: 1.375rem; /* 22px */
	letter-spacing: 1px;
	font-weight: 400;
	color: #FFF;
	margin-right: 1.25rem; /* 20px */
	margin-left: 1.25rem; /* 20px */
	text-align: center;
}

.navbar-nav {
    margin: 0 auto;
}

h1 {
    margin-top: 1.875rem; /* 30px */
    color: rgba(112,11,4,1);
    margin-left: 0.9375rem; /* 15px */
    font-family: 'QuadraatOT Italic';
    font-size: 2.25rem; /* 36px */
}

h2 {
    margin-top: 1.25rem; /* 20px */
    font-family: 'QuadraatOT Regular';
	color: rgba(112,11,4,1);
    font-size: 1.5rem; /* 24px */
    text-transform: small-caps;
    letter-spacing: 1px;
}

h3 {
    color: rgba(112,11,4,1);
    font-family: 'QuadraatOT Regular';
    margin-top: 1.875rem; /* 30px */
    font-size: 1.25rem; /* 20px */
}

h4 {
    color: black;
    font-size: 1.125rem; /* 18px */
    padding-left: 2.25rem; /* 36px */
    text-indent: -2.25rem; /* -36px */
}

p {
	font-size: 0.875rem; /* 14px */
	line-height: 1.5; /* relative to font-size */
}

.home p {
	max-width: 360px;
	margin-bottom: 70px;
}

.max-width-900 {
	max-width: 900px;
	margin: 0 auto;
}

.element-set {
    background-color: whitesmoke;
    font-size: 0.875rem; /* 14px */
}

.element h3 {
    color: black;
    font-size: 1rem; /* 16px */
    font-weight: bold;
    margin-bottom: 0px;
}

.element-text {
    margin-bottom: 5px;
}

.button1, .button2, .button3, .button4 {
	width: 100%;
	max-width: 360px;
	height: 72px;
	background-color: rgba(215,192,109,1);
	color: #2d1810; /* dark brown for AAA contrast against yellow background */
	display: block;
	text-align: center;
	line-height: 4.5rem; /* 72px */
	font-size: 1.5625rem; /* 25px */
	text-transform: uppercase;
	letter-spacing: 2px;
}

.button2 {
	background-color: rgba(165,134,77,1);
}

.button3 {
	background-color: rgba(2,39,66,1);
	color: #ffffff; /* white text for dark blue background */
}

.button4 {
	background-color: rgba(112,11,4,1);
	color: #ffffff; /* white text for dark red background */
}

.button1:hover,
.button2:hover,
.button3:hover,
.button4:hover {
	opacity: 0.85;
	text-decoration: none;
	color: #FFF;
}

.exhibit-item-caption {
    margin: 0 auto;
}

.exhibit-description {
    margin-left: 1.875rem; /* 30px */
}

.primary {
    padding-bottom: 15%;
}

.exhibit-title {
    margin-left: 1.875rem; /* 30px */
}

.exhibit {
    margin-bottom: 1.875rem; /* 30px */
}

p.caption {
    margin: 0 auto;
	text-align: center;
    color: rgba(2,39,66,1);
	font-size: 0.6875rem; /* 11px */
}

.footer-decoration {
    height: 1.25rem; /* 20px */
    background-image: url("../images/footer-decoration.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

footer {
    bottom: 0;
    background-color: rgba(2,39,66,1);
    padding-top: 0.9375rem; /* 15px */
    padding-bottom: 1.875rem; /* 30px */
}

footer a.nav-link {
    color: #f2f5f4; /* improved contrast from rgba(242,245,244,1) */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Ensure minimum 44px touch target for footer links */
    min-height: 2.75rem; /* 44px */
    min-width: 2.75rem; /* 44px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
}

.search-query {
    border-radius: 0;
    border: 0;
    margin: 0 0 0 10px;
    padding: 0;
    height: 36px;
    line-height: 24px;
    padding: 9px 0 6px 15px;
}

#query {
    border: 1px;
    border-style: solid;
    border-color: #999;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-left: 0px;
}

.search-btn {
    background-color: rgba(215,192,109,1);
    color:#FFF;
    border-radius: 0;
    border: 0;
    height: 2.25rem; /* 36px */
    line-height: 2.375rem; /* 38px */
    padding: 0 0.75rem; /* 0 12px */
    margin: 0;
}

#exhibit-pages a {
    color: rgba(112,11,4,1);
}

.search-btn:hover {
    opacity: 0.85;
    cursor: pointer;
}

.help-block {
    margin-bottom: 0px;
}

footer .container {
    text-align: center;
    margin: 0 auto;
}

footer .nav {
    padding-left: auto;
}

footer .form-control {
    width: auto;
}

a {
    color: #5c5c5c;
}

a:hover {
    color: rgba(112,11,4,1);
    text-decoration: underline;
}

/* Ensure all nav links meet minimum touch target size */
.nav-link {
    min-height: 2.75rem; /* 44px */
    min-width: 2.75rem; /* 44px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem; /* 8px 12px */
}

/* Preserve nav link hover appearance */
.nav-link:hover {
    text-decoration: none;
}

/* Accessibility: underline non-navigation links for clearer affordance */
a:not(.nav-link) {
    text-decoration: underline;
}

/* Accessibility: visually-hidden until focused skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 0.9375rem; /* 15px */
    top: 0.3125rem; /* 5px */
    width: auto;
    height: auto;
    background: #ffffff;
    color: #000000;
    padding: 0.5rem 0.75rem; /* 8px 12px */
    border: 2px solid #000000;
    z-index: 10000;
}

/* Visually hidden utility for accessible labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure clear focus outlines */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#wordmark {
    color: rgba(52,81,91,1);
    text-decoration: none;
}

#BRcontainer {
    padding-top: 50px;
}

#next-item, #previous-item {
    list-style-type: none;
}

.file-image {
    width: 100%;
}

#item-col-right {
    padding: 0;
}

#item-col-left {
    padding-right: 20px;
}

.pagination {
    background: whitesmoke;
}

.pagination * {
    margin-right: 20px;
}


#exhibit-pages {
    display: none;
}

.add_search {
    margin: 20px;
}

.btn-primary {
    margin: 20px;
}

blockquote {
    margin-left: 10%;
}

#show-advanced {
    display: none;
}

@media (min-width: 900px) {
    .layout-file-text .exhibit-items.right {
        float: right;
        width: 25%;
        padding-left: 10%;
    }
}

@media (min-width: 900px) {
    .layout-file-text {
        width: 100%;

    }
}



@media (max-width: 991px) {
    .hero {
        min-height: 100px;
    }
    .hero h1 {
        font-size: 38px;
        line-height: 44px;
        padding: 28px 15px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 80px;
    }
    .hero h1 {
        font-size: 32px;
        line-height: 44px;
        padding: 18px 15px;
    }
}

@media (max-width: 574px) {
    .button1, .button2, .button3, .button4 {
        width: 100%;
        min-width: 100%;
    }

}


@media (max-width: 530px) {
    .hero {
        min-height: 60px;
    }
    .hero h1 {
        font-size: 24px;
        line-height: 34px;
        padding: 13px 15px;
    }

}
