/* GENERAL */
body {
    margin:0; padding:0;
    background-color: black;
    color: #b4b4b4;

    font-family: proxima-nova, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

/* General classes  for layout */
.hidden {
    display: none;
}
.spacing_small,
.button.spacing_small {
    margin-right: 25px;
}

.breathe_tiny {
    margin-top: 10px;
}
.breathe_smallestest {
    margin-top: 15px;
}

.breathe_smallest,
.button.breathe_smallest {
    margin-top: 20px;
}

.breathe_smaller,
.button.breathe_smaller {
    margin-top: 30px;
}
.breathe_small,
.button.breathe_small {
    margin-top: 40px;
}
.breathe_basic {
    margin-top: 50px;
}
.breathe_normal {
    margin-top: 60px;
}
.breathe_big {
    margin-top: 80px;
}
.breathe_bigger {
    margin-top: 100px;
}

/* General elements and classes for text */
.no_underlining {
    text-decoration: none;
}

.right_text {
    text-align: right;
}
.centered_text {
    text-align: center;
}

.centered {
    margin-left: auto; margin-right: auto;
}

/* .desc is usually a short (3 sentences) chunk of text, typically the abstract of an article used next to thumbnails in listings */
.white_bg {
    background-color: white;
}

.white_bg p,
.white_bg .desc {
    color: #404040;
}
.desc {
    font-size: 14px;
    line-height: 1.5em;
}

a, a:visited {
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
    color: inherit;
}

a:active, a:hover {
    color: #ededed;
}

h1, h2, h3, h4, h5, h6 {
    margin:0; padding:0;
    color: #ededed;
}
.white_bg h1, .white_bg h2, .white_bg h3, .white_bg h4, .white_bg h5, .white_bg h6 {
    color: black;
}

h1 {
    font-family: proxima-nova, sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing:0.2em;
    line-height: 53px;
}

h1.small_heading { /* used on homepage above the group of the Latest 4 posts */
    font-family: proxima-nova, sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing:0.2em;
    line-height: 20px;
    color: #b4b4b4;
}

h1.works {
    font-family: acumin-pro-extra-condensed, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    font-size: 36px;
    letter-spacing: 0.05em;
    line-height: 38px;
}

h1.works_big {
    font-family: acumin-pro-extra-condensed, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    font-size: 54px;
    letter-spacing: 0.07em;
    line-height: 56px;
}

h2 {
    font-family: acumin-pro-extra-condensed, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 30px;
    letter-spacing: 0.1em;
    line-height: 30px;
}

h2.works {
    font-family: acumin-pro-extra-condensed, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    font-size: 30px;
    letter-spacing: 0.04em;
    line-height: 32px;
}

h2.works_big {
    font-family: acumin-pro-extra-condensed, sans-serif;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    font-size: 36px;
    letter-spacing: 0.07em;
    line-height: 38px;
}

h1 a, h2 a, h3 a, h4 a {
    text-decoration: none;
}

/* Concrete usage text classes */
.byline {
    margin-top: 0.8em;
    margin-bottom: 33px;
}

.byline,
.byline a,
.section,
.section a {
    font-family: proxima-nova, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #595959;
}

.byline a:active,
.byline a:hover,
.section a:active,
.section a:hover {
    color: #969696;
}

.white_bg .byline,
.white_bg .byline a {
    color: #969696
}

.small_message {
    border-top:1px solid #404040;
    padding-top: 0.8em;
    margin-top: 3em;
    font-size: 85%;
    color: #6a6a6a;
}

/* Buttons */
.button,
.button:visited,
.pagination .page-item a {
    display: inline-block;
    height:34px; box-sizing:border-box;
    border-radius: 2px;
    border: 1px solid white;
    padding-left:13px; padding-right:13px;
    margin: 1em; margin-left:0;

    position: relative; z-index:10;

    font-family: proxima-nova, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.25em;
    line-height: 12px; padding-top:10px; padding-bottom: 10px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ededed;
}
.centered_text .button,
.centered_text .button:visited {
    margin-left: 1em; margin-right:1em;
}

.big_button {
    font-size: 16px;
    line-height: 16px; 
    height:40px; box-sizing:border-box;
    padding-top:10px; padding-bottom: 12px;
    padding-left:15px; padding-right:15px;
    border: 2px solid white;
    min-width: 222px;
}

.small_button {
    font-size: 12px;
    font-weight: 400;
    line-height: 12px; 
    height:18px; box-sizing:border-box;
    padding-top:2px; padding-bottom: 2px;
    padding-left:3px; padding-right:3px;
    border: 1px solid white;
}
.dimmed_button, .dimmed_button:visited {
    border-color: #595959;
    color: #969696;
}

.button > span {
    position: relative; z-index:20;
}

.button:hover,
.button:active {
    /*border: 1px solid white;*/
    color: white;
}

.button.white_button,
.pagination .page-item.active a {
    border: 1px solid white;
    background-color: white;
    color: #404040;
}

.button.glowing_button {
    border: 0;
    background-color: white;
    box-shadow: 0 0 2px 1px white;
    color: #404040;
}

#about_menu .button.glowing_button {
    height: 24px; padding-top: 6px; padding-bottom: 6px;
    padding-left: 9px; padding-right: 8px;
    font-weight: 700;
    font-style: normal;
    margin-right: 0;
    margin-top: 0; margin-bottom: 0;
    border:0;
}

.white_bg .button,
.white_bg .button:visited {
    border: 1px solid black;
    color: black;
}




/* Arrows on button */
/* inspiration: https://stackoverflow.com/questions/38006705/how-to-make-a-button-with-an-obtuse-angle/38006789#38006789 */
.pointing_right:after,
.pointing_left:before,
.pagination [aria-label = "First"]:before,
.pagination [aria-label = "Previous"]:before,
.pagination [aria-label = "Next"]:after,
.pagination [aria-label = "Last"]:after {
    content: "";
    width: 24px; height: 24px;
    display: block;
    position: absolute; z-index:10;
    top: 3.35px; 
    border: 1.4px solid white; border-left: none; border-bottom: none;
    border-radius: 2px;
    background-color: black;
}
.pointing_right,
.pagination [aria-label = "Next"],
.pagination [aria-label = "Last"] {
    padding-right:9px;
}
.pointing_right:after,
.pagination [aria-label = "Next"]:after,
.pagination [aria-label = "Last"]:after {
    right: -13px;
    transform: scale(0.8, 0.955) rotate(45deg); 
}
.pointing_left,
.pagination [aria-label = "First"],
.pagination [aria-label = "Previous"] {
    padding-left:9px;
}
.pointing_left:before,
.pagination [aria-label = "First"]:before,
.pagination [aria-label = "Previous"]:before {
    left: -13px; 
    transform: scale(0.8, 0.955) rotate(225deg);
}

/* Pagination list */
.pagination,
.pagination li {
    display: inline-block;
    list-style: none;
}
.pagination {
    margin:0;
}
.pagination .disabled a,
.pagination .disabled a:after,
.pagination .disabled a:before {
    border-color: #404040;
    color: #404040;
}
.pagination [aria-hidden] {
    font-size: 12px;
    margin-right: 1em;
}



/* MENUS */
.menu {
    list-style-type: none;
    padding: 0; margin: 0;
    font-size: 12px;
}

.menu li {
    padding: 0; margin: 0;
    font-size: 12px;
    letter-spacing: 0.2em;
    line-height: 15px;
    text-transform: uppercase;
}

.menu .facebook_link {
    text-transform: lowercase;
    font-size: 1.2em;
}

.menu a {
    text-decoration: none;
}

#lang_menu ul,
#about_menu ul {
    text-align: right;
}

#lang_menu {
    padding-top: 12px;
    box-sizing: border-box;
}

#lang_menu ul {
    height: 16px;
}

#lang_menu li {
    display: inline;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
}

#lang_menu li.current {
    color: #ededed;
}

#lang_menu a,
#lang_menu a:visited {
    color: #6a6a6a;
}

#lang_menu a:hover,
#lang_menu a:active {
    color: #969696;
}

#lang_menu li:after {
    content: " / ";
    color: #6a6a6a;
}
#lang_menu li:last-child:after {
    content: none;
}

#about_menu li {
    display: inline;
    margin-left: 30px;
}

#about_menu li a,
#works_menu li a {
    padding: 3px 0;
}

#about_menu li.current a,
#works_menu li.current a {
    display: inline-block;
    border-bottom: 2px solid #969696;
}

#works_menu {
    margin-top: 10px;
    margin-right: 110px;
}

#works_menu li{
    margin: 5px;
    padding: 5px;
    text-align: right
}

#footer_nav_first .menu li,
#footer_nav_second .menu li {
    display: inline;
    margin: 20px;
}

#footer_nav_second .menu li {
    margin: 25px 15px;
}


/* PAGE LAYOUT */
#centerpage {
    width: 910px;
    margin-left: auto; 
    margin-right: auto;
}


.content_basic {
    width: 880px;
}

/* LAYOUT BOXES INSIDES */
#logo img {
    width: 100%; height: auto;
}


#content {
    padding-bottom: 100px;
    padding-right: 30px;
}
    .content_header {
        position: relative;
        margin-right: 168px;
    }
        #comments_link {
            display:block;
            width:100px;
            position:absolute
        }

    .content_readable {
        width: 37em; /* Line length optimal for max 75 chars. And 1 char ~ 0.5em. */
        line-height: 1.5em;
    }


    .IsPage h2 {
        font-family: proxima-nova, sans-serif;
        font-weight: 400;
        font-style: normal;
        text-transform: uppercase;
        font-size: 40px;
        letter-spacing:0.2em;
        line-height: 42px;
        color: #b4b4b4;
    }

#footer {
    text-align: center;
    margin: 1em;
}

#footer_logo {
    margin: 65px auto;
}

#footer_logo img {
    width: 165px; height: auto;
}

#footer_nav_first,
#footer_nav_second {
    margin: 25px auto;
}

/* CONCRETE USAGES */
    /* Home Featured Top - used as an image and label slider for 3 featured posts */
    .home_featured_top_wrap {
        overflow: hidden;
    }
    .home_featured_top_slider {
        width: 888px;
        height: 300px;
        display: flex;
        overflow-x: hidden;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
      }
      .slide {
        width: 888px;
        flex-shrink: 0;
        height: 100%;
        scroll-snap-align: start;
      }
    .home_featured_top {
        height: 300px;
        display: grid;
        grid-template-columns: 600px auto;
        grid-template-rows: auto;
    }
    .home_featured_top_img {
        grid-column-start: 1; grid-column-end: 2;
        grid-row-start: 1; grid-row-end: 2;
    }
        .home_featured_top_img img {
            width: 100%; height: auto;
        }
    .home_featured_top_label {
        grid-column-start: 2; grid-column-end: 3;
        grid-row-start: 1; grid-row-end: 2;
        box-sizing: border-box;
        padding: 25px 20px;
    }
    .home_featured_top_label .byline, 
    .home_featured_top_label .byline a {
        font-size: 12px;
        letter-spacing: 0;
    }
    .home_featured_top_label .byline {
        margin-top: 0.5em;
        margin-bottom: 26px;
    }
    
    /* Square Preview Group - used only on Homepage at this point */
    .square_previews_group {
        display: grid;
        grid-template-columns: 140px 12.12% 140px 12.12% 140px 12.12% 140px;
        grid-template-rows: auto;
    }
    #preview_1 {
        grid-column-start: 1; grid-column-end: 2;
        grid-row-start: 1; grid-row-end: 2;
    }
    #preview_2 {
        grid-column-start: 3; grid-column-end: 4;
        grid-row-start: 1; grid-row-end: 2;
    }
    #preview_3 {
        grid-column-start: 5; grid-column-end: 6;
        grid-row-start: 1; grid-row-end: 2;
    }
    #preview_4 {
        grid-column-start: 7; grid-column-end: 8;
        grid-row-start: 1; grid-row-end: 2;
    }
    .square_preview {
        width: 140px;
    }
    .square_preview_img img {
        width: 100%; height: auto;
    }
    .square_preview_label {
        text-align: center;
    }
    .square_preview_label h2 {
        font-family: proxima-nova, sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 14px;
        color: #b4b4b4;
        line-height: 16px;
    }
    .square_preview_label .byline {
        margin-top: 7px;
        margin-bottom: 10px;
    }
    .square_preview_label .byline, .square_preview_label .byline a,
    .square_preview_label .section, .square_preview_label .section a {
        font-size: 12px;
        letter-spacing: 0;
    }

    /* Home Featured Section Group - used only on Homepage for Komiksy and Animace */
    .home_featured_section_group {
        display: grid;
        grid-template-columns: 225px 11.648% 225px 11.648% 225px;
        grid-template-rows: auto;
    }
    .portrait_preview_1 {
        grid-column-start: 1; grid-column-end: 2;
        grid-row-start: 1; grid-row-end: 2;
    }
    .portrait_preview_2 {
        grid-column-start: 3; grid-column-end: 4;
        grid-row-start: 1; grid-row-end: 2;
    }
    .portrait_preview_3 {
        grid-column-start: 5; grid-column-end: 6;
        grid-row-start: 1; grid-row-end: 2;
    }
    .portrait_preview {
        width: 225px;
    }
    .portrait_preview_img img {
        width: 100%; height: auto;
    }
    .portrait_preview_label {
        text-align: center;
    }
    .portrait_preview_label h2 {
        font-weight: 700;
        font-size: 30px;
        line-height: 32px;
    }
    .portrait_preview_label .byline {
        margin-top: 7px;
        margin-bottom: 10px;
    }
    .portrait_preview_label .byline, .portrait_preview_label .byline a {
        font-size: 12px;
        letter-spacing: 0;
    }

    /* Medium Landscape Previews Group - currently used only for 2 featured posts on Animace list page*/
    .medium_landscape_previews_group {
        display: grid;
        grid-template-columns: 400px 9.0909% 400px;
        grid-template-rows: auto;
    }
    .ml_preview_1 {
        grid-column-start: 1; grid-column-end: 2;
        grid-row-start: 1; grid-row-end: 2;
    }
    .ml_preview_2 {
        grid-column-start: 3; grid-column-end: 4;
        grid-row-start: 1; grid-row-end: 2;
    }
    .medium_landscape_preview_label .byline {
        margin-bottom: 15px;
    }
    .medium_landscape_preview_label .byline, .medium_landscape_preview_label .byline a {
        font-size: 12px;
    }
    .medium_landscape_preview_label .animation_info,
    .medium_landscape_preview_label .desc,
    .medium_landscape_preview_label .animation_credits {
        font-size: 16px;
        margin-top: 20px;
    }

    /* Medium Portrait Previews Group - used on Udalosti list page */
    /* using styles from Home Featured Section Group for the insides, Komiksy list page uses the same too */
    .medium_portrait_vertical_previews_group {
        text-align: center;
    }
    .medium_portrait_preview {
        display: inline-block;
        width: 267px; 
        margin-left: 0;
        margin-right: 34px;
        margin-bottom: 25px;
    }
    .medium_portrait_preview:nth-child(3n) {
        margin-right: 0;
    }
    /* large portrait preview */
    .large_portrait_preview {
        display: inline-block;
        width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 25px;
    }

    /* Small Landscape Horizontal Previews Group - common preview - Animace, Blog atd. */
    .small_landscape_horizontal_previews_group {
        width: 640px;
    }

    .small_landscape_horizontal_preview {
        width: 640px;
        display: grid;
        grid-template-columns: 267px 7.8125% 323px;
        grid-template-rows: auto;
    }
    .small_landscape_horizontal_preview_img {
        grid-column-start: 1; grid-column-end: 2;
        grid-row-start: 1; grid-row-end: 2;
        width: 267px;
    }
    .small_landscape_horizontal_preview_img img {
        width: 100%; height: auto;
        z-index: 10;
    }

    /* Deprecated: display play button over anim thumb on list pages
    .thumb_wrap {
        position: relative;
    }
    .anim_thumb_with_playbutton:hover:before {
        position: absolute;
        left: 20px; bottom: 20px;
        content: '\25BA'; font-size: 30px;
    }*/

    .small_landscape_horizontal_preview_label {
        grid-column-start: 3; grid-column-end: 4;
        grid-row-start: 1; grid-row-end: 2;
    }
    .small_landscape_horizontal_preview_label h2 {
        font-size: 36px;
        line-height: 36px;
    }
    .type-animace .small_landscape_horizontal_preview_label h2 {
        font-size: 24px;
        line-height: 24px;
    }
    .type-animace .subsection_preview .small_landscape_horizontal_preview_label h2 {
        font-size: 36px;
        line-height: 36px;
    }
    .type-atd .small_landscape_horizontal_preview_label .small_button,
    .type-mainstream .small_landscape_horizontal_preview_label .small_button {
        margin-bottom: 0px;
        letter-spacing: 0.1em;
    }
    .small_landscape_horizontal_preview_label .byline {
        margin-bottom: 15px;
    }
    .small_landscape_horizontal_preview_label .byline, .small_landscape_horizontal_preview_label .byline a {
        font-size: 12px;
        margin-right: 0.3em;
    }
    .small_landscape_horizontal_preview_label .animation_info,
    .small_landscape_horizontal_preview_label .desc,
    .small_landscape_horizontal_preview_label .animation_credits {
        font-size: 16px;
        margin-top: 10px;
    }

    /* Small Portrait Previews Group - used just for Komiksy listing*/
    .small_portrait_previews_group {
        width: 881px;  
        overflow: hidden;   
    }
    .small_portrait_preview {
        float: left;
        width: 175px;
        margin-right: 60px;
    }
    .small_portrait_preview:nth-child(4n) {
        margin-right: 0;
    }
    .small_portrait_preview:nth-child(4n+1) {
        clear: left;
    }
    .small_portrait_preview {
        width: 175;
    }
    .small_portrait_preview_img img {
        width: 100%; height: auto;
    }
    .small_portrait_preview_label {
        text-align: center;
    }
    .small_portrait_preview_label h2 {
        font-weight: 700;
        font-size: 22px;
        line-height: 24px;
        letter-spacing: 0.07em;
    }
    .subsection_preview .small_portrait_preview_label h2 {
        font-size: 30px;
        line-height: 32px;
    }
    .small_portrait_preview_label .byline {
        margin-top: 7px;
        margin-bottom: 10px;
    }
    .small_portrait_preview_label .byline, .small_portrait_preview_label .byline a {
        font-size: 12px;
        letter-spacing: 0;
    }

    /* Little Square Previews Group - used just for Blog listing*/
    .little_square_previews_group {
        width: 666px;   
    }
    .little_square_preview {
        display: grid;
        grid-template-columns: 80px 50px auto;
        grid-template-rows: auto;
    }
    .little_square_preview_img {
        grid-column-start: 1; grid-column-end: 2;
        grid-row-start: 1; grid-row-end: 2;
        width: 80px;
    }
    .little_square_preview_label {
        grid-column-start: 3; grid-column-end: 4;
        grid-row-start: 1; grid-row-end: 2;
    }
    .little_square_preview_img img {
        width: 100%; height: auto;
    }
    .little_square_preview_label h2 {
        font-weight: 700;
        font-size: 36px;
        line-height: 38px;
        letter-spacing: 0.07em;
    }
    .subsection_preview .little_square_preview_label h2 {
        font-size: 36px;
        line-height: 38px;
    }
    .little_square_preview_label .byline {
        margin-top: 7px;
        margin-bottom: 10px;
    }
    .little_square_preview_label .byline, .little_square_preview_label .byline a {
        font-size: 12px;
        letter-spacing: 0;
    }
    .little_square_preview_label .desc {
        font-size: 16px;
    }

    /* Small Landscape Vertical Previews Group - currently used for Relace listing page, displaying always 2 post side by side */
    .small_landscape_vertical_previews_group {
        text-align: center;
    }

    .small_landscape_vertical_preview {
        display: inline-block;
        width: 267px; 
        margin-left: 40px;
        margin-right: 40px;
        margin-bottom: 25px;
    }
    .small_landscape_vertical_preview_label h2 {
        margin-top: 15px;
        font-size: 24px; 
        line-height: 26px;
    }
    .small_landscape_vertical_preview_label .byline {
        margin-bottom: 15px;
    }
    .small_landscape_vertical_preview_label .byline, .small_landscape_vertical_preview_label .byline a {
        font-size: 12px;
    }
    .small_landscape_vertical_preview_label .animation_info,
    .small_landscape_vertical_preview_label .desc,
    .small_landscape_vertical_preview_label .animation_credits {
        font-size: 16px;
        margin-top: 20px;
    }

    /* changes on Relace list page */
    .featured_img_top {
        margin-top: -50px;
        margin-bottom: -50px;
    }