/* @import url('https://fonts.googleapis.com/css?family=Roboto:100,300,400');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@1,100;1,300;1,400&display=swap'); */

/* @import url("../../css/styles-variables.css"); */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,100;1,300;1,400;1,500;1,700&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap') */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


:root {
    --gallery-bg-color-main: white;
    --gallery-text-color-main: #505050;

    --gallery-bg-color-sidebar: #e0e0e0;
    --gallery-text-color-nav: #404040;
    --gallery-text-color-highlighted: #f0f0f0;
    --gallery-text-color-sublink-selected: #404040;

    --gallery-accent-color: hsl(324, 65%, 47%);
    --gallery-text-color-links: hsl(324, 65%, 47%);

}

body {
    /*    padding: 0px;*/
    margin: 0;
    padding: 0;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}


/**************************************************/

body.body-gallery {
    font-family: 'Roboto';
    background: var(--gallery-bg-color-main);
    /* background-color: #888; */
    /*    padding-top: 20px;*/
}


/***************  NAV  ****************************/

.gallery-nav {
    position: relative;
    font-family: "Roboto";
    /* font-family: "Nunito Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "YTLC" 500; */
    font-size: 1rem;
    /*    border: 1px dashed white;*/
    /* margin: 15px 15px 0px 15px; */
}

.gallery-nav .titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*    padding: 0 0.25em;*/
    background: var(--gallery-bg-color-sidebar);
    padding: 0.25em;
    /* border: 1px solid blue; */
    /* background: var(--gallery-bg-color-sidebar); */
}

.sublinks-container a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 0.75rem;
}

#dangries {
    display: flex;
    align-items: center;
    font-size: 2.25rem;
    height: 3rem;
    font-weight: 500;
    color: var(--gallery-text-color-nav);
    text-decoration: none;
    flex-grow: 1;
    padding: 5px 0px 5px 15px;
    /* border: 1px solid red; */
}

#dangries:hover {
    color: var(--gallery-text-color-highlighted);
    ;
}

.sublinks-container {
    display: block;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    font-weight: 200;
    font-size: 2.5em;
    font-style: italic;
    background: var(--gallery-accent-color);
    /* color: var(--gallery-text-color-nav); */
    color: var(--gallery-text-color-highlighted);
}

.sublinks-container ul {
    list-style-type: none;
}

.sublinks-container ul {
    padding: 0 0 10px 0;
    margin: 0;
    left: 0;
    list-style-type: none;
}

.sublinks-container ul ul {
    padding-left: 1.5em;
    font-size: 1rem;
    text-transform: none;
    font-variant: normal;
}

.sublinks-container ul ul li {
    /* padding-left: 25px; */
    font-weight: 300;
    font-size: 0.75em;
}

/* .sublinks-container ul li {
    
} */

.sublinks-container.menu-open {
    max-height: 20em;
}

.sublink-selected {
    font-weight: 400;
    background: var(--gallery-text-color-main);
    color: var(--gallery-text-color-sublink-selected);
}

.hamburger {
    /*    border: 1px solid var(--gallery-text-color-main);*/
    position: relative;
    /* background: #484848; */
    width: 3em;
    height: 3em;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.exmark {
    position: absolute;
    width: 60%;
    height: 60%;
    margin: 0%;
    font-size: 2em;
}

.exmark-line {
    position: absolute;
    background: var(--gallery-text-color-main);
    width: 80%;
    height: 6%;
    margin: 45% 10%;
    transform-origin: center;
    transform: rotate(45deg);
    border-radius: 7%/50%;
    opacity: 0;
    transition: opacity 0.2s linear;
}

.exmark-line:nth-child(2) {
    transform: rotate(-45deg);
}

.exmark div.exmark-open {
    opacity: 1;
    transition: 0.2s linear 0.1s;
}

.hamburger-line {
    width: 60%;
    height: 4%;
    margin: 7%;
    background: var(--gallery-text-color-main);
    border-radius: 6%/48%;
    opacity: 1;
    transition: opacity 0.2s linear 0.1s;
}

.hamburger-line.menu-open {
    opacity: 0;
    transition: opacity 0.2s linear;
}


/**************************************************/

a {
    color: var(--gallery-text-color-links);
    text-decoration: none;
}

.gallery-description {
    margin: 15px 20px;
    /* border: 1px solid red; */
    /* border: 1px solid red; */
    /* padding: 10px; */
    color: var(--gallery-text-color-main);
    display: inline-block;
    min-width: 200px;
}

.gallery-description h4 {
    /* margin-top: 10px; */
    font-size: 1.75rem;
    padding-top: 1rem;
    font-weight: 400;
    /* font-style: italic; */
    margin-bottom: 0;
    margin-top: 0;
    /* border-bottom: 1px solid var(--gallery-text-color-main); */
    /* border-bottom: 1px solid var(--gallery-text-color-main); */
    /* background-color: #c62a87; */
}


.gallery-description h5 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 1em;
}


.gallery-description p {
    font-size: 1.0rem;
    line-height: 1.5;
    padding-bottom: 1em;
    margin-top: 0.5em;
    text-align: left;
    /* justified doesn't look good on small screens */
}


/* 
.thumbnails-container {
	margin: 5px 5px;
    display: flex;
	flex-wrap: wrap;
	justify-content: center;
    width: 98%;
}

.thumbnails-container .item {
	height: 200px;
	width: auto;
	margin: 5px;
}

.thumbnails-container .item img {
	height: 100%;
}
*/


/***** FLEXBOX VERSION, Left aligned **********/


/* 
.thumbnails-container {
    margin: 5px 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}

.thumbnails-container .item {
    display: block;
    padding: 0;
    height: 280px;
}

.thumbnails-container .item img {
    display: block;
    height: 100%;
} */


/**********   COLUMNS VERSION FOR SMALL SCREENS  ************/

.thumbnails-container {
    margin: 5px 5px;
    column-width: 150px;
    /* column-count: 2; */
    column-gap: 5px;
}

.thumbnails-container .item {
    display: block;
    margin-bottom: 5px;
    padding: 0;
}

.thumbnails-container .item img {
    display: block;
    width: 100%;
}

.gallery-image-caption {
    font-size: 0.8em;
    color: var(--gallery-text-color-main);
    /*    display: none;*/
    margin-bottom: 2em;
}

.lightbox-slide {
    display: none;
}


/*
Have another, smaller breakpoint for when the images form a single column.
Add captions, disable lightbox
*/


/********* Larger than phone **************/

@media(min-width:520px) {
    .gallery-image-caption {
        display: none;
    }
}


/********* Large screens - desktop - larger than tablet ***********/

@media(min-width:801px) {
    #hamburger {
        display: none;
    }

    .gallery-container {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .titlebar {
        border: none;
        background: none;
        padding: 0px;
        /* margin-right: 0.5em; */
    }

    #dangries {
        font-size: 2.5rem;
        padding: 0;
        margin: 0;
    }

    .gallery-nav {
        /*
        display: inline-block;
        flex-flow: column;
        flex-wrap: wrap;
*/
        position: sticky;
        top: 0;
        /* height: 100vh; */
        /* border-right: 1px solid var(--gallery-text-color-nav); */
        min-height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        /* height: 100vh; */
        margin: 0;
        padding: 30px 20px 20px 20px;
        font-size: 1em;
        background: var(--gallery-bg-color-sidebar);
        /* background: rgba(255, 255, 255, 0.06); */
        text-transform: uppercase;
        /* border: 1px solid red; */
    }

    .sublinks-container {
        display: flex;
        flex-direction: row;
        flex-grow: 0;
        max-height: none;
        overflow: visible;
        background: none;
        transition: none;
        width: auto;
        font-weight: 200;
        font-size: 2.25em;
        color: var(--gallery-text-color-nav);
    }

    .sublinks-container a {
        padding-left: 0.25em;
    }

    .sublinks-container ul ul {
        line-height: 1.5;
    }

    .thumbnails-container {
        /* margin: 5px 5px; */
        width: 100%;
        margin: 0px 0px 50px 0px;
        column-count: 6;
        column-width: 100px;
        column-gap: 20px;
    }

    .thumbnails-container .item {
        display: block;
        margin-bottom: 20px;
        padding: 0;
        break-inside: avoid;
        border: 1px solid #e0e0e0;
        /* border-style: solid;
        border-width: 4px;
        border-color: #e0e0e0 #f0f0f0 #e8e8e8 #f8f8f8; */
        /* width: 100%; */
        /* max-width: 300px; */
        /* box-shadow: 5px 5px 5px #e8e8e8; */
        /* fixed weird issue with border breaking over column */
    }

    .body-borderless-thumbnails .thumbnails-container .item {
        border: none;
    }

    .bodygallery .item a {
        border: none;
        text-decoration: none;
    }


    .nobreakafter {
        /* break-inside: avoid;
        display: grid;
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 20px;
        border: 1px solid red; */
        break-after: avoid;
    }

    .thumbnails-container .item img {
        width: 100%;
    }

    .gallery-nav a:hover {
        background: var(--gallery-accent-color);
        color: var(--gallery-text-color-highlighted);
    }



    #titlebar {
        margin-bottom: 2rem;
    }

    .linktext {
        padding: 0 0.25em;
    }

    .sublink-selected {
        background: none;
        color: var(--gallery-text-color-main);
    }

    .sublink-selected .linktext {
        background: var(--gallery-accent-color);
        color: var(--gallery-text-color-highlighted);
        /*        padding: 0 0.25em;*/
        font-weight: 300;
    }

    main {
        /* matching column-gap */
        padding: 0px 20px;

    }

    .gallery-description {
        /* margin: 10px; */
        /* margin: 10px 0px 10px 0px; */
        /* padding: 0px; */
        /* padding: 10px; */
        /* background-color: rgba(255, 255, 255, 0.5); */
        margin: 0;
        padding: 30px 0px;
        color: var(--gallery-text-color-main);
        /* border: 1px solid blue; */
        font-family: "Lato", sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    .gallery-description h4 {
        font-size: 2.0rem;
        /* border: 1px solid red; */
        font-weight: 400;
        margin: 0px;
        margin-bottom: 2rem;
    }

    .gallery-description p {
        font-size: 1.0em;
        max-width: 40em;
        min-width: 200px;
        /*        padding: 0px 10px 10px 10px;*/

        /* margin: 0 0 0 4px; */
        text-align: justify;
        margin: 0;
    }
}


/************** LIGHTBOX CUSTOMIZATION *****************/
/* 
#lightbox {
    max-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid red;
} */

/* .lb-dataContainer {
    width: 100% !important;
} */



#lightbox img {
    background: transparent;
    border: none;
}

/* a.x-img {
    padding: 0px;
} */


/* 
.lb-nav a.lb-next {
    position: fixed;
    right: 0;
    top: 0;
}

.lb-nav a.lb-prev {
    position: fixed;
    left: 0;
    top: 0;
} */

/*
#lightbox{
	
}

.lb-outerContainer {
	background: red;
}
.lb-dataContainer {
	background-color: red;
}
.lb-container {
	padding: 0;
	background-color: blue;
}
.lb-dataContainer {
	background-color: green;
	padding:0 10px;
}

.lb-image {
	background: green;
}
*/