/* Archive styles */
#select-archive-method {
    float: left;
    width: 100%;
    margin: 4rem 0;
}

#select-archive-method ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#select-archive-method ul li {
    position: relative;
    float: left;
    width: 17%;
    vertical-align: top;
    text-align: center;
    margin-left: 2.8vw;
}

#select-archive-method ul li:first-child {
    margin-left: 0;
}

#select-archive-method ul li a {
    display: block;
    color: #FFF;
    background-color: #738f9e;
    padding: 2rem 1rem;
    min-height: 140px;
}

#select-archive-method ul li span {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 1.4rem;
}

#quick_swap,
#reorder {
    position: relative;
    cursor: pointer;
    background-color: #738f9e;
    color: #FFF;
    float: right;
    padding: 1rem 3rem;
}

#quick_swap ul,
#reorder ul {
    display: none;
    list-style: none;
    padding: 2rem 3rem;
    width: 100%;
    position: absolute;
    z-index: 1000;
    left: 0;
    background-color: #738f9e;
    margin: 0;
}

#quick_swap ul li a,
#reorder ul li a {
    font-family: "metropolisregular", Arial, Helvetica, sans-serif;
    display: block;
    color: #FFF;
    margin: 1rem 0;
}

#quick_swap ul li:first-child a,
#reorder ul li:first-child a {
    margin-top: 0;
}

#quick_swap ul li:last-child a,
#reorder ul li:last-child a {
    margin-bottom: 0;
}

#quick_swap ul li span,
#reorder ul li span {
    display: inline-block;
    margin-right: 1rem;
}

/* search */
body.search {
    width: 100%;
}

#search_form .input-group {
    width: 50%;
    margin: 2rem 0;
}

#search_form input[type="search"],
#search_form input[type="text"] {
    width: 100%;
    padding: 1rem 2rem 1rem 2rem;
    color: #738f9e;
    text-align: left;
}

#search_form ::-webkit-input-placeholder {
    text-align: left;
}

#search_form :-moz-placeholder {
    text-align: left;
}

#search_form ::-moz-placeholder {
    text-align: left;
}

#search_form :-ms-input-placeholder {
    text-align: left;
}

/* Categories */
#browse-categories {
    padding-left: 0;
    margin: 4rem 0 0 0;
    list-style: none;
}

#browse-categories li {
    width: 17%;
    margin-left: 2.8vw;
    float: left;
    height: 220px;
    margin-bottom: 3rem;
    border: 2px solid #738f9e;
}

#browse-categories li {
    position: relative;
    background-color: #738f9e;
    color: #FFF;
}

#browse-categories li a {
    color: #FFF;
}

#browse-categories li .title {
    padding: 0 2rem;
    font-size: 1.4rem;
    display: inline-block;
    vertical-align: middle;
}

#browse-categories li img {
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
}

#browse-categories li:first-child {
    margin-left: 0;
}

#browse-categories li:nth-child(5n + 1) {
    margin-left: 0;
}

#breadcrumb ul li {
    position: relative;
}

#breadcrumb ul li a {
    position: relative;
    background: #fff;
    border: 1px solid #738f9e;
    display: inline-block;
    padding: 0.95rem 3rem;
}

#breadcrumb ul li a:hover {
    color: #FFF;
}

#breadcrumb ul li:first-child a {
    padding-left: 2rem;
}

#breadcrumb ul li a:before,
#breadcrumb ul li a:after {
    left: 100%;
    top: 50%;
    border: 1px solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

#breadcrumb ul li a:after {
    border-left-color: #fff;
    border-width: 2rem;
    margin-top: -2rem;
}

#breadcrumb ul li a:before {
    border-left-color: #738f9e;
    border-width: 2.15rem;
    margin-top: -2.1rem;
}

#breadcrumb ul li a:hover {
    background-color: #738f9e;
}

#breadcrumb ul li a:hover:after,
#breadcrumb ul li a:hover:before {
    border-left-color: #738f9e;
}

#content-list.archive-item-list .content-item .article-image {
    width: 20%;
}

#content-list.archive-item-list .content-item .article-body {
    width: 80%;
    position: relative;
    min-height: 150px;
}

#content-list.archive-item-list .content-item .media-item {
    margin: 1rem 0;
}

#content-list.archive-item-list .content-item .media-item:first-child {
    margin-top: 0;
}

#archive-item-container .copyright,
#content-list.archive-item-list .content-item .added,
#content-list.archive-item-list .content-item .ref {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1rem;
}

#content-list.archive-item-list .content-item .added {
    top: 1.4rem;
}

#content-list.archive-item-list .content-item .title a {
    color: #738f9e;
    font-size: 2.2rem;
}

#content-list.archive-item-list .content-item .media-item .tooltip {
    margin-left: 2%;
}

#content-list.archive-item-list .content-item .media-item .tooltip:first-child {
    margin-left: 0;
}

#content-list.archive-item-list .content-item .more-link {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-top: 2rem;
}

#content-list.archive-item-list .content-item .more-link a {
    font-size: 1.6rem;
    padding: 0.5rem 1rem;
}

.pagination {
    padding: 4rem 0;
}

.pagination .paginate {
    width: 50%;
    margin: 0 auto;
    text-align: center;
}

.pagination .paginate .page_jump {
    margin: 0 2%;
}

.pagination .paginate .button {
    display: inline-block;
    color: #738f9e;
}

#archive-item-container {
    position: relative;
}

.item-data-grid {
    border-top: 1px solid #738f9e;
    margin-top: 3rem;
    padding-top: 3rem;
}

.item-data-grid .item-data {
    clear: both;
    margin: 0.5rem 0;
}

.item-data-grid .item-data label {
    width: 130px;
    float: left;
}

.item-data-grid .item-data ul li {
    margin-left: 1%;
}

.item-data-grid .item-data ul li:first-child {
    margin-left: 0;
}

#archive_image {
    position: relative;
    width: 657px;
}

#archive_image .tag-box {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0);
    width: 50px;
    height: 50px;
    z-index: 200;
    cursor: help;
}

#archive_image .tag-box.active {
    border: 2px solid rgba(255, 255, 255, 0.7);
}

#tags_container {
    position: absolute;
    right: 0;
}

#toggle-tags,
#tags_container .photo-tag {
    cursor: pointer;
}

#tags_container .photo-tag {
    margin: 2% 0;
}

#tags_container .photo-tag.active {
    color: #6dd2d1;
}

/* Timeline list */
#timeline-container {
    clear: both;
    padding: 4rem 0;
}

.time-control {
    float: right;
}

.time-control a {
    color: #738f9e;
}

.timeline-list {
    padding: 1rem;
    position: relative;
}

.timeline-list:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0.5rem;
    background: #e9eeef;
    left: -moz-calc(50% - .25rem);
    left: -webkit-calc(50% - .25rem);
    left: calc(50% - .25rem);
}

.timeline-list > li {
    position: relative;
    list-style-type: none;
    clear: both;
}

.timeline-list > li:before {
    content: "";
    width: 4rem;
    height: 4rem;
    display: block;
    position: absolute;
    top: -1em;
    left: -moz-calc(50% - 2rem);
    left: -webkit-calc(50% - 2rem);
    left: calc(50% - 2rem);
    border-radius: 4em;
    background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 51, color-stop(30%, #ffffff), color-stop(31%, #cfd9db), color-stop(50%, #cfd9db), color-stop(51%, #ffffff));
    background-image: -webkit-radial-gradient(#ffffff 30%, #cfd9db 31%, #cfd9db 50%, #ffffff 51%);
    background-image: -moz-radial-gradient(#ffffff 30%, #cfd9db 31%, #cfd9db 50%, #ffffff 51%);
    background-image: -o-radial-gradient(#ffffff 30%, #cfd9db 31%, #cfd9db 50%, #ffffff 51%);
    background-image: radial-gradient(#ffffff 30%, #cfd9db 31%, #cfd9db 50%, #ffffff 51%);
}

.timeline-list .article:after {
    content: "";
    display: table;
    clear: both;
}

.timeline-list .article {
    background-color: #FFF;
    float: left;
    width: 45%;
    display: block;
    border: 1px solid #738f9e;
    width: 45%;
    margin-bottom: 6em;
    margin-top: -.4em;
}

.timeline-list li:nth-child(2n) .article {
    float: right;
    margin-left: 8em;
}

.timeline-list time:after {
    content: '';
    width: 0;
    height: 0;
    /*    border: 1em solid transparent;
        border-right-color: #5f8ae8;*/
    position: absolute;
    left: -2em;
    top: 0;
}

.timeline-list time {
    margin-left: 10rem;
    top: -1.3rem;
    padding-left: 0;
}

.timeline-list time {
    color: white;
    background: #738f9e;
    display: inline-block;
    position: relative;
    font-weight: bold;
    padding: .5em .5em .5em 0.5em;
}

.timeline-list li:nth-child(2n) time:after {
    content: '';
    width: 0;
    height: 0;
    /*    border: 1rem solid transparent;
        border-left-color: #5f8ae8;*/
    left: auto;
    right: -2em;
    top: 0;
}

.timeline-list li:nth-child(2n) time {
    position: absolute;
    right: 56.5%;
}

.timeline-list .article {
    padding: 2rem;
}

.timeline-list .article .title {
    font-size: 1.8rem;
}

.timeline-list .article hr {
    border: none;
    background: none;
    border-top: 1px solid #738f9e;
    margin: 2rem 0 0 0;
    padding-bottom: 2rem;
}

.timeline-list .article .secondary-title {

}

/* media query */
@media screen and (min-width: 1240px) {
    #browse-categories li,
    #select-archive-method ul li {
        margin-left: 3.2rem;
    }
}

@media screen and (max-width: 662px) {
    #content-list.archive-item-list .content-item .article-image,
    #content-list.archive-item-list .content-item .article-body {
        width: 100%;
    }

    #content-list.archive-item-list .content-item .article-body {
        padding: 4rem 0 0 0;
    }

    #toggle-tags,
    #tags_container .photo-tag,
    #archive_image .tag-box {
        display: none;
    }

    #archive_image {
        width: 100%;
    }

    #archive_image img {
        display: block;
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }

    #quick_swap,
    #reorder {
        width: 100%;
        margin-bottom: 4rem;
    }

    #timeline-container {
        padding-bottom: 0;
    }

    body.timeline #content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline-list li:nth-child(2n) time,
    .timeline-list li time {
        display: inline-block;
        position: relative;
        margin: 0;
        left: 0;
    }

    .timeline-list li:nth-child(2n) .article,
    .timeline-list li .article {
        width: 100%;
        position: relative;
        margin-left: 0;
        margin-bottom: 6rem;
    }

}

@media screen and (max-width: 480px) {
    #archive-item-container .copyright,
    #content-list.archive-item-list .content-item .added,
    #content-list.archive-item-list .content-item .ref {
        position: static;
        margin: 3% 0;
    }

    .item-data-grid .item-data {
        margin: 4% 0;
    }

    .item-data-grid .item-data label {
        width: 100%;
        margin-bottom: 1%;
    }

}