html {
    min-width:225px;
}

/* Featherlight helper styles */
img {
    cursor:pointer;
}
p#featherlight-caption {
    position: absolute;
    bottom: 0px;
    text-align: center;
    margin: 5px 30px;
    left: 0;
    right: 0;
    background-color: #efefef;
    padding: 5px 35px;
    border-radius: 10px;
    font-size: 10pt;
    color: black;
}
a#featherlight-caption-toggle {
    position: absolute;
    bottom: 0px;
    text-align: center;
    margin: 5px auto;
    left: 0px;
    right: 0px;
    width: 120px;
    background-color: rgb(239, 239, 239);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 10pt;
    color: black;
    text-decoration:underline;
}
#hide-caption {
    position: absolute;
    top: 5px;
    right: 5px;
    color: black;
    text-decoration:underline;
}
.featherlight .featherlight-content {
	overflow:hidden;
}

/* Loader */
#loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Home page */
blockquote {
    border-left: 5px solid black;
    margin: 1rem;
    padding: 1rem;
}
#home-slider {
    max-height: 380px;
    display: block;
    max-width: calc( 100% - 30px );
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
#latest-updates > li > a,
#editorials > li > a {
    color: #3c3c3c;
    display: block;
    width: 100%;
    height: 100%;
}
#editorial-content-container * {
    max-width: 100%;
}
#editorial-content-container table {
    width: 100% !important;
    overflow: scroll;
}
#editorial-content-container img {
    margin: 0 auto;
    max-width: 80%;
    display: inherit;
    height: auto !important;
    width: auto !important;
}
p.lead {
    margin-bottom: 0px;
}
.breadcrumb {
    padding: 0 !important;
}

/*Tree*/
section.return-to-parent {
    min-height: 50px;
}
.generation-display {
    display: inline-block;
    float: right;
    font-style: italic;
    border: 1px solid transparent;
    padding: .45rem 1rem;
    font-size: 1rem;
    border-radius: .25rem;
    background-color: #ffc107;
    border-color: #ccc;
    font-weight: 500;
	color: black;
}
@media (max-width: 500px) {
    .generation-display {
        width: 100% !important;
        text-align: center;
        margin-top: 20px;
        display: block !important;
        float:none !important;
    }
    .parent-display {
        width: 100% !important;
    }
}
.person-li {
    margin: 20px 0px;
    position: relative;
}
a.person-anchor {
    position: relative;
    white-space: normal !important;
}
.person-fullname {
    font-size: 70%;
    display: block;
    margin-top: 5px;
}
.children-ul .person-li a.person-anchor:before {
    color: black;
    content: "\2192 \0020";
    position: absolute;
    left: -23px;
    top: -20px;
    bottom: 0;
    height: 7px;
    margin: auto;
    font-size: 15pt;
}
.children-ul .person-li a.person-anchor.has-children:after {
    color: black;
    content: "\2192 \0020";
    position: absolute;
    right: -15px;
    top: -20px;
    bottom: 0;
    height: 7px;
    margin: auto;
    font-size: 15pt;
}
.person-li a.edit-person-anchor {
    font-style: italic;
    display: block;
    text-align: right;
    margin-right: 5px;
}
.children-ul {
    border-left: 1px solid #a7a7a7;
    margin-left: 50px;
    padding-left: 20px;
    list-style-type:none;
    /*list-style-image: url('arrow.png');
    list-style-position: inside;*/
}
.person-comment {
    font-size: 8pt;
    width: 100%;
    display: block;
    margin-top: 5px;
    overflow: hidden;
    height: auto;
    font-style: italic;
}
.photoslider {
    height: 180px;
    margin-top: 5px;
    overflow: hidden;
}
.slides {
   margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    overflow-x: auto;
    height: 185px;
}
.slides li {
    list-style: none;
    display: inline-block;
    margin: 5px 10px;
}
.slides img {
    height: 150px;
    box-shadow: 0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19) !important;
}
.slides::-webkit-scrollbar-track {
	background-color: #F5F5F5;
}
.slides::-webkit-scrollbar {
	width: 6px;
	background-color: #dadada;
}
.slides::-webkit-scrollbar-thumb {
	background-color: #dadada;
}
.slides-gallery {
    white-space: normal !important;
    height: auto !important;
}
.slides-gallery li {
    margin: 18px !important;
}
#additional-btns {
    margin:5px 0px 0px 0px;
    padding: 0px;
    width: 100%;
    text-align:center;
}
#additional-btns > li {
    list-style-type: none;
    width: 44%;
    margin: 0 3%;
    display:inline-block;
}
.sub-btns {
    color: white !important;
    background-color: #31708f !important;
    width: 100%
}
.sub-btns:focus,
.sub-btns:hover {
    background-color: #1e475a !important;
}

/* Name Lookup */
#namelookup-alphabetical-links {
    max-width: 100%;
    overflow-x: auto;
}
#namelookup-alphabetical-links > li {
    min-width: 40px;
    width: calc( 100% / 26 );
}
.alphabetical-link {
    text-align: center;
}
#filter-name {
	
}

/* Media */
#audio-player {
	width: 90%;
	margin: 5%;
}
#audio-selection-list .active .audio-track,
#video-selection-list .active .video-track {
    color: white;
}
#audio-selection-list a,
#video-selection-list a {
	display: block;
    width: 100%;
    height: 100%;
}

/* Admin */
#preview-img {
    width: 100%;
}
#preview-caption {
    font-style: italic;
}