﻿*{
    margin: 0;
    padding: 0;
}
body {
    color: #574835;
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden !important;
}

.accent-text {
    color: #FFE500;
}

.background-accent {
    background-color: #FFE500;
}

.background-1
{
    background-color: #031F4A;
}

.background-2
{
    background-color: #052962;
}

.background-3
{
    background-color: #06337a;
}

.background-4
{
    background-color: #073d94;
}

a, a:visited, a:active {
    text-decoration: none;
}

h1, h2, h3
{
    text-align: center;
    margin: 0;
}

h1
{
    font-size: 2rem;
    padding: 6% 0;
    font-weight: bold;
    color: white;
}

h2
{
    font-size: 1.25rem;
    color: white;
    padding: 1.5% 0;
}

h3
{
    font-size: 1rem;
}

header{
    position: sticky;
    top: 0;
    z-index: 10000;
}

/*Containers*/
.container {
    max-width: 2100px;
}

.header {
    display: flex;
    align-items: center;
}

.header > div:first-child {
    flex-basis: 20%;
    margin-left: 4%;
}

.header > div:first-child + div {
    flex-basis: 60%;
    align-items: center;
}

.header > div:last-child {
    flex-basis: 20%;
    text-align: right;
    margin-right: 4%;
}

#photo-container {
    margin-top: 2%;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.page-subtitle {
    background-color: #541E1B;
}

.logo-link {
    display: block;
    background-image: url('/img/header-logo-mono-yellow.png');
    width: calc(700px/14);
    height: calc(480px/14);
    background-repeat: no-repeat;
    background-size: contain;
    box-sizing: border-box;
    z-index: 100;
}

.text-left {
    text-align: left;
}

.text-color {
    color: #541E1B;
}

/*Photo popup*/
#photo-details-container > div:first-child{
    padding-right: 0;
}

#photo-details-container > div:nth-child(2) {
    padding-left: 0;
    padding-right: 0;
}

#photo-details-container > div:nth-child(3) {
    padding-left: 0;
}

.prev-next-container > div span a {
    color: white !important;
}

.pagination-container > div {
    text-align: left;
    font-family: sans-serif;
}
.prev-next-container > div {
    text-align: right;
}

div.loader {
    text-align: center;
    height: 200px;
    padding-top: 50px;
}

.prev-next-container span {
    display: inline-block;
    cursor: pointer;
}

.prev-next-container span:nth-child(2) {
    margin: 0 5%;
}

.prev-next-container span:nth-child(4) {
    margin-left: 12%;
    margin-right: 0;
}

.pagination-container {
    padding-right: 0;
}

.prev-next-container {
    padding-left: 0;
}

/*Photo grid*/
.photo-row {
    align-items: center;
    justify-content: center;
    display: flex;
    padding-top: 2%;
    border-top: 1px solid #052962;
}

.photo-row:not(:first-child){
    margin-top: 2%;
}

.photo-item {
    flex-basis: 0;
    aspect-ratio: var(--ratio);
    flex-grow: calc(var(--ratio));
    text-align: center;
    position: relative;
}

.photo-image {
    display: block;
    width: 100%;
    height: auto;
    border-left: 1px solid #06337a;
    border-right: 1px solid #06337a;
    border-top: 1px solid #06337a;
}

.photo-item:hover .info-button {
    display: flex;
}

.info-button {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 100;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    margin-left: 1%;
    margin-top: 1%;
    border: 1px solid #031F4A;
    border-radius: 50%;
    background-color: #031F4A;
}

.info-button span {
    font-weight: bold;
    color: #FFE500;
    font-size: 1.25rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
}

.photo-image-scale {
    transform: scale(1.5);
}

.photo-caption, .photo-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1%;
    position: relative;
    color: white;
}
.photo-caption
{
    border: 1px solid #06337a;
}
.photo-info
{
    position: absolute;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    border: 1px solid #0948ad;    
}

.shrink 
{
    height: 0;
    transition: all 1s ease-in-out;
}
.grow 
{
    height: auto;
    transition: all 1s ease-in-out;
}

.photo-caption {
    min-height: 60px;
}

/*Footer*/
footer {
    font-size: 1rem;
    text-align: center;
    margin: 3% 0;
}
#footer-content {
    padding: 1%;
    color: white;
}

/*Menus*/
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#burger-icon {
    display: inline-block;
}

.burger-line {
    height: 2px;
    width: 30px;
    background-color: #FFE500;
    margin-bottom: 7px;
}

nav {
    text-align: right;
}

nav ul {
    width: auto;
    border: none;
}

nav ul li {
    display: inline-block;
    padding: 1%;
    text-align: left;
}

nav ul li a, nav ul li a:hover  {
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: left;
}

nav a
{
    font-size: 1rem;
}

nav#desktop a, nav#desktop a:hover
{
    color: white;
}

nav#desktop .sub-menu  ul a, nav#desktop .sub-menu  ul a:hover
{
    color: #574835;
}

nav#desktop a, nav#desktop a:hover
{
    color: white;
}

nav#desktop
{
    display: none;
}

nav#desktop ul li.sub-menu:hover > ul
{
    display: block;
    position: absolute;
    background-color: white;
    z-index: 1000;
    border: 1px solid #574835;
    padding: .25%;
}

nav#desktop .sub-menu ul
{
    display: none;
}

nav#mobile a, nav#mobile a:hover
{
    color: #574835;
    font-weight: bold;
}

nav#mobile {
    display: none;
    margin-top: 8%;
    position: absolute;
    width: 100%;
    left: 0;
    border-top: 1px solid #574835;
    background-color: white;
}

nav#mobile ul li {
    display: block;
    padding: .5rem;
    text-align: left;
}

nav#mobile > ul li{
    border-bottom: 1px solid #574835;
}

nav#mobile li.sub-menu li{
    border-bottom: none;
}

nav#mobile .sub-menu ul li a {
    font-weight: normal;
}

.sub-menu {
    cursor: pointer;
}

.sub-menu li
{
    display: block;
    padding: .5rem;
}

.sub-menu li:not(.first-child) a
{
    color: #574835;
}

.sub-menu li:not(.first-child):hover
{
   background-color: #FFE500;
}

/*// X-Small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap*/
/*// Small devices (landscape phones, 576px and up)*/

@media (min-width: 576px) {
    .container.header > div:first-child {
        flex-basis: 10%;
        padding-top: 3.5%
    }

    .container.header > div:first-child + div {
        flex-basis: 80%;
    }

    .container.header > div:last-child {
        flex-basis: 10%;
    }
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    nav#mobile {
        margin-top: 3%;
    }
}
@media (min-width: 600px) {

}

/*// Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {

    .container.header > div:first-child {
        padding-top: 1.5%
    }
    .container.header > div:last-child {
        padding-top: 2.5%;
    }

    .prev-next-container span:nth-child(4) {
        margin-left: 6%;
    }
    .prev-next-container span:nth-child(2) {
        margin: 0 1%;
    }
    #pagination-details span + span
    {
        margin-left: 1%;
    }
    h1 {
        font-size: 2.5rem;
        padding: 2%;
    }

    .photo-item + .photo-item {
        margin-left: 1.5%;
    }

    nav#mobile {
        margin-top: 2%;
    }
}

/*// Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {

    .container.header > div:first-child {
        flex-basis: 20%;
        padding-top: 1%;
    }

    .container.header > div:first-child + div {
        flex-basis: 60%;
    }

    .container.header > div:last-child {
        flex-basis: 20%;
        padding-top: 1.5%;
    }
    .photo-row:not(:first-child) {
        margin-top: 1%;
        padding-top: 1%;
    }
    .photo-item {
        cursor: pointer;
    }
}

/*// X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px)
{
    .photo-row {
        padding-top: 1%;
    }

    h1 {
        font-size: 3rem;
    }
}
@media (min-width: 1280px)
{
    nav#desktop {
        display: block;
    }

    nav#mobile {
        display: none;
    }

    #burger-icon {
        display: none;
    }

}
/*// XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {
}
@media (min-width: 1500px) {
    h1 {
        padding: 1.5% 0;
    }

    h2 {
        padding: 1% 0;
    }
}
@media (min-width: 2000px) {

    h2 {
        padding: .5% 0;
    }
}
