#ghost-portal-root {
    display: none;
}

body {
    display: flex;
    background: #111;
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    color: #888;
}

a {
    color: orange;
}

hr::after, hr::before {
    display: none;
}

hr {
    border-bottom: 1px solid #888;
    border-radius: 0%;
    width: 100%;
    background-color: transparent;
    margin: 10px 0;
}

.hidden {
    display: none;
}

.pagination {
    display: flex !important;
    padding: 10px 0px;
}
.pagination .newer-posts {
    margin-right: 5px;
}
.pagination .page-number {
    margin-right: 5px;
}
.outline-button {
    padding: 5px 10px;
    border: 1px solid #888888;
    border-radius: 5px;
    text-align: center;
}

.sidebar {
    width: 400px;
    padding:20px;
    background: #222;
}

.site {
    flex: 1;
}

.section {
    padding: 10px;
    margin-bottom: 20px;
}

.section-title {
    border-bottom: 1px solid #888;
}

.container, .container.medium {
    max-width: 100%;
}

.site-header {
    border-bottom: 1px solid #222222;
}
.site-footer {
    border-top: 1px solid #222222;
}

.post-wrapper {
    width: 100%;
}

.post-media {
    width: 400px;
    height: 200px;
}

.post-media .u-placeholder {
    bottom: 15%;
}

.post-divider {
    border-bottom: 1px solid #888;
    margin:20px auto;
    width: 100%;
    max-width: 750px;
}

.post-content a {
    display: inline-block;
    width: 100%;
    margin: 0px !important;
}

.kg-canvas {
    grid-template-columns: 
    [full-start] minmax(4vw,auto) 
        [wide-start] minmax(auto,285px) 
            [main-start] min(800px,calc(100% - 8vw)) 
            [main-end] minmax(auto,285px) 
        [wide-end] minmax(4vw,auto) 
    [full-end];
}

figcaption {
    color: grey;
}

/* bookmark container */
.kg-bookmark-container {
    border: 1px solid #888;
    display: flex !important;   
    text-decoration: none !important;
}
.kg-bookmark-title {
    padding-bottom:20px;
    color: lightgrey;
    text-decoration: none;
    font-size: 18px;
}
.kg-bookmark-content {
    padding: 20px;
    flex: 1;
}
.kg-bookmark-metadata {
    display: flex;
    color: lightgrey;
    text-decoration: none;
    font-size: 12px;
}
.kg-bookmark-icon {
    width: 20px;
    height: 20px;
}
.kg-bookmark-thumbnail {
    width: 280px;
    overflow: hidden;
    height: 150px;
    align-items: center;
    display: flex;
    position: static;
}
.kg-bookmark-thumbnail img {
    position: unset;
    display: block;
    height: 400px;
}
.kg-bookmark-author, .kg-bookmark-publisher {
    padding-left:10px;
}
/* end bookmark container */

/* video container */
.kg-video-container video {
    width: 100%;
    height: auto;
    background-color: #111 !important;
}

.kg-video-overlay, .kg-video-player-container {
    display: none !important;
}

/* end video container */

/* image container */
.kg-image-card, .kg-gallery-image {
    cursor: pointer;
}
.kg-image-card.zoom, .kg-gallery-image.zoom {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin-top: 0px !important;
    padding: 10px;
    background: rgba(0,0,0,0.9);
    align-items: center;
    display: flex;
    z-index: 200;
}

.kg-image-card.zoom .kg-image, .kg-gallery-image.zoom img {   
    height: 100%;
    width: 100%;  
    object-fit: contain;
}

.kg-gallery-image.zoom img {  
    margin-left: auto;
    margin-right: auto;
}

.kg-card-hascaption.zoom {
    padding-bottom: 50px;

}
.kg-image-card.zoom figcaption {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 8px;
    font-size: 22px;
    color: white;
}
#image-controls {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    pointer-events: none;
    z-index: 300;
}
.image-control {
    position: fixed;
    height: 100%;
    width: 100px;
    text-align: center;
    font-size: 70px;
    align-items: center;
    display: flex;
    pointer-events: all;
    cursor: pointer;
    background: transparent;
    transition: all 300ms linear;
    
}
.image-control span {
    width: 100%;
    user-select: none;
}
.image-control.next {
    right: 0px;
    border-right: 10px solid transparent;
}
.image-control.prev {
    border-left: 10px solid transparent;
}
.image-control:hover {
    border-color: rgba(255,255,255,0.8);
}
/* end image container */

/* embed container 
    explanation: 
    https://www.h3xed.com/web-development/how-to-make-a-responsive-100-width-youtube-iframe-embed
*/ 
.kg-embed-card {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;   
}
.kg-embed-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




/* end embed container */

.u-placeholder {
    /*position:static;*/
    background: #111;
}

.topic-item {
    display: flex;
}

.topic-name {
    padding-right: 10px;
    color: white;
}

.author {
    background: #222;
    padding:5px;
    flex-wrap: wrap;
}

.author-image-container {
    width: 80px;
    margin-right: 20px;
}

.subsection {
    width: 100%;
    flex: 100%;
    display: flex;
}

.header-search {
    margin-left:10px;
    position: relative;
}

.header-search i {
    position: absolute;
    right: 10px;
    top: 6px;
}

.text-input-field {
    margin-left:20px;
    background: transparent;
    align-items: center;
    border: 1px solid orange;
    border-radius: 3px;
    color: var(--white-color);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    outline: none;
    padding: 0 15px;
    text-transform: uppercase;
}

.icon-search::before {
    content: "\e906";
}

.term {
    border-bottom: 1px solid #888;
}
.term-name {
    font-size: 32px;
    text-transform: uppercase;
}

.opacity-3 {
    opacity:0.3;
}

.header-background-container {
    position: absolute;
    top: 0px;
    z-index: -1;
    right: 0px;
    left: 0px;
    margin-left: 400px;
    overflow: hidden;
    
}

.header-background-container img {
    width: 100%;
    opacity: 0.2;
    -webkit-mask-image:-webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header .page-title {
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-header .page-meta {
    margin-top: 8px;
}
.page-meta {
    color: white;
    font-size: 16px;
    font-weight: 700;
}
.page-meta-date {
    color:#888;
}

.gallery-grid {
    display:flex;
    flex-wrap: wrap;
}

.gallery-item {    
    position: relative;
}

.gallery-item.c50 {
    flex: 50%;
}

.gallery-item a {
    display: flex;
    height:300px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    opacity: 0.5;
    transition: opacity 0.45s;
}

.gallery-item:hover img {
    opacity: 1;
}

.gallery-item label {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    font-size:42px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.p10 {
    padding:10px;
}

.popup {
    background: #222;
    border: 1px solid orange;
    border-radius: 3px;   
}

.header-button {
    height: 100%;
}

.button-secondary {
    background:transparent;
    border: 1px solid orange;
    border-radius: 3px;
}

#header-sidebar-toggle {
    display: none;
}

/* archive */
.archive-feed .archive-label {
    border-bottom: 1px solid #888;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 30px;
}

.archive-line {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
}

.archive-line .archive-meta {
    padding: 10px;
}

.archive-line .post-date {
    width: 150px;
}

.archive-line .post-link, .archive-line .post-tags {
    flex: 1;
}

.archive-line .post-tags .post-tag  {
    padding-left: 15px;
}

.post-date-1 + .post-date-1 .archive-label,
.post-date-2 + .post-date-2 .archive-label,
.post-date-3 + .post-date-3 .archive-label,
.post-date-4 + .post-date-4 .archive-label,
.post-date-5 + .post-date-5 .archive-label,
.post-date-6 + .post-date-6 .archive-label,
.post-date-7 + .post-date-7 .archive-label,
.post-date-8 + .post-date-8 .archive-label,
.post-date-9 + .post-date-9 .archive-label,
.post-date-10 + .post-date-10 .archive-label,
.post-date-11 + .post-date-11 .archive-label,
.post-date-12 + .post-date-12 .archive-label {
  display: none;
}

.post-meta-footer {
    margin-top:80px;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.flex-container {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex: 1;
}

@media (max-width: 1500px) {
    .post-media {
        width: 200px;
        height: 100px;
    }

    .gallery-item.c50 {
        flex: 100%;
    }
}

@media (max-width: 1200px) {

    #header-sidebar-toggle {
        display: inline;
        margin-right:10px;
    }

    .site-content {
        margin-top: 80px;
    }

    .site-header {
        z-index: 200;
        position: fixed;
    }

    #sidebar {
        position:fixed;
        transition: left ease-in-out 0.5s;
        left:-400px;
        z-index:100;
        padding-top:80px;
        box-shadow: 1px 5px 10px rgba(0,0,0,0.5);
    }

    #sidebar.open {
        left:0px;
        right:0px;
        margin-right: 20px;
    }

    .header-background-container {
        margin-left:0px;
    }

    .kg-image-card.zoom .kg-image {       
        height: auto !important;
        
        max-width: 100%;
        max-height: 100%;
       
        flex-grow: 1;     
    }
    
}

@media (max-width: 768px) { 

    .post-meta .flex-col  {
        text-align: center;
        flex: 100%;
        margin-bottom: 10px;
    }

    .post-feed .post {
        flex-wrap: wrap;
    }

    .post-feed .post-media {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .header-search {
        display: none;
    }

    .pagination {
        flex-wrap: wrap;
    }
    .pagination > * {
        flex: 1;
    }



}
