/**
 * Theme Name:  Nikabiz Justread
 * Theme URI:   https://nikabiz.com
 * Description: Обновленная тема для БЦ Ника
 * Author:      Serhii Zakharenko
 * Author URI:  Telegram: @serhii75
 * Template:    justread
 * Version:     0.1
 */

@import url(../justread/style.css);

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700;800&display=swap');

body{
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}




h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
}


table {
    margin: 0 0 1.6em;
    width: 100%;
    font-size: inherit;
}


.site-header {
    font-family: 'Open Sans',-apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
    margin-bottom: 0;
    z-index: 5;
    top: 0;
    position: sticky;
}

    .custom-logo-link{width:120px}

@media (max-width: 768px){
.site-branding {
    margin: 0 1.5rem 0 0;
}
}

.main-navigation {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0;
    font-weight: bold;
}

 .page .site-content, .single .site-content {
    width: auto;
}

.page .notopmargin{
	margin: 2rem auto!important;
}

.page .entry-header, .single .entry-header {
    text-align: center;
    max-width: 1200px;
    padding: 0 10px;
    z-index: 2;
    top: 40px;
    position: relative;
}

@media (max-width: 768px){
.page .entry-header, .single .entry-header {
    margin: auto;
    /*text-align: left;*/
    padding: 0 15px;
    z-index: 2;
}
.page .entry-body, .single .entry-body {
    padding: 1rem;
}
}

@media (max-width: 376px) {
    .page .entry-header, .single .entry-header {
        margin: 20em auto auto;
        padding: 0 15px;
        z-index: 2;
    }
	.entry-content p{text-align: justify;hyphens: auto;}
	.entry-content h1, h2, h3, h4, h5, h6{text-align:center; margin: 1.5em 0;}
	.entry-content h2{font-size: 1.5em;line-height: 1.2;}

}

article{
	width: 92%;
    margin: 0 auto;
}

@media (max-width: 768px){
	article{
	width: 92%;
}
}


@media (min-width: 1024px){
.page .entry-media, .single .entry-media {
    margin: 0;
}
}

@media (max-width: 768px){
.page .entry-media, .single .entry-media {
    position: relative;
    margin: 0;
}
}

.grid {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem 0.5rem;
}

.top-background{
	height: 95vh;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-background::before{
	content: '';
	background-color:black;
	position: absolute;
	top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    opacity: .2;
}

@media (max-width: 768px){
	.top-background{
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-attachment: scroll;
    display: flex;
    justify-content: center;
    align-items: center;
	}
}

@media (min-width: 768px){
 .single .entry-title {
    font-size: 2.5em;
    text-transform: uppercase;
	color: white;
    text-shadow: #000000 1px 0 10px;
    margin-top: 20px;
}
}

@media (min-width: 768px) {
    .page .entry-title {
        font-size: 2.7rem;
    }
}

@media (max-width: 768px){
.page .entry-title, .single .entry-title {

    display: inline-block;
    text-transform: uppercase;
    line-height: 1.3;
    padding: 0;
    word-break: break-word;
	color: white;
    text-shadow: #000000 1px 0 10px;
    margin-top: 20px;    
}
}

@media (max-width: 376px) {
    .page .entry-title, .single .entry-title {
        font-size: 2.05em;
        display: inline;
        text-transform: uppercase;
        line-height: 1.3;
        padding: 0;
        word-break: break-word;
        color: white;
        text-shadow: #000000 1px 0 10px;
    }
}

p.has-background {
    padding: 1.25em 1.25em;
}


.wp-block-columns:where(.has-background) {
    padding: 1.25em 1.375em;
}

h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background {
    padding: 1em 0.5em;
}


form{
	text-align: center;
}


input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="range"],
input[type="date"], input[type="month"], input[type="week"],
input[type="time"], input[type="datetime"], input[type="datetime-local"],
input[type="color"], textarea, select {
    color: #666;
    border: 1px solid rgba(38, 50, 56, 0.1);
    border-radius: 3px;
    padding: 1.2rem 1.5rem;
    line-height: 1;
    background: #f5f7f8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    width: 75%;
}


@media (max-width: 768px){
input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="tel"], input[type="range"],
input[type="date"], input[type="month"], input[type="week"],
input[type="time"], input[type="datetime"], input[type="datetime-local"],
input[type="color"], textarea, select {
    color: #666;
    border: 1px solid rgba(38, 50, 56, 0.1);
    border-radius: 3px;
    padding: 1.2rem 1.5rem;
    line-height: 1;
    background: #f5f7f8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    width: 100%;
}
}

.button, .wp-block-button__link, button,
.site-main #infinite-handle span button,
input[type="button"], input[type="reset"],
input[type="submit"] {
    font-size: 1.3rem;
    padding: 1.2rem 2rem;
    font-family: inherit;
}

.wpcf7-spinner {display: block;}

.post-navigation {
    margin: 1.5rem auto;
    max-width: 1000px;
    margin-top: auto;
}

.aligncenter {text-align: center;}
.site-footer {font-family: inherit;}

@media (max-width: 599px){
.wp-block-columns-50:not(.is-not-stacked-on-mobile)>.wp-block-column {
    flex-basis: 50%!important;
}
}

footer ul, ol {
    margin: 0 0 0 1em;
    padding: 0;
}

li.wp-block-latest-comments__comment>article{width:100%;}

.wp-block-image .aligncenter>figcaption, .wp-block-image .alignleft>figcaption, .wp-block-image .alignright>figcaption {
    white-space: nowrap;
}

@media (max-width: 699px){
.wp-block-image .aligncenter>figcaption, .wp-block-image .alignleft>figcaption, .wp-block-image .alignright>figcaption {
    font-size: 1rem;
}
}
.page .entry-content > p:first-child, .single .entry-content > p:first-child {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: #6f8590;
}

.main-navigation a {padding: 10px 16px;}

.comments-area {width: inherit;}
.comments-pagination{text-align: center;}
.comment-reply-title{display: none;}
.comment-form-author, .comment-form-email, .comment-form-url {display: block;}


.wp-block-group {padding: 1rem;}

@media (max-width: 699px){
  .wp-block-group {padding: 10px;margin: -5px;}
}


.ngg-galleryoverview.default-view {
    text-align: left;
}


hr{
    border-top: 0!important;
    color: lightgrey;
    background: none;
    margin: 1em 0;
}

.margin-bottom-0{margin-bottom: 0;}

::marker {color: #cd0f0f}

/*--------------------------------------------------------------
# Grids
--------------------------------------------------------------*/
.grid {
	display: flex;
	flex-wrap: wrap;
	padding: 0 .5rem;
}

.grid > * {
	padding: .5rem;
	width: 100%;
}

@media (min-width: 768px) {
	.grid {
		padding: 0 1.5rem;
	}
	.grid > * {
		padding: 1.5rem;
	}
	.grid--2 > *,
	.grid--3 > *,
	.grid--4 > * {
		width: 50%;
	}
}

@media (min-width: 1024px) {
	.grid--4 > *,
	.grid--3 > * {
		width: 33%;
	}
}

@media (min-width: 1280px) {
	.grid--4 > * {
		width: 25%;
	}
}

.widget ul {
	list-style: square;}
	
/*Customs Fields******************/

.customs-fields {
    display: inline-block;
    margin: 20px auto 0;
    padding: 4px 8px;
    background: #f2f0e9;
    border-radius: 50px;
    position: relative;
  }
  .customs-fields .faicon {
    margin: auto 0;
  }
  .customs-fields i {
    color: #5d584e;
    position: absolute;
    left: 6px;
    top: 6px;
  }
  .customs-fields-text p {
    color: #5d584e;
    line-height:   1;
    font-size: 16px;
    padding: 3px 0px 3px 25px;
  }
 
 .dodatkovyj_opys_do_temy{
    text-shadow: #000000 1px 0 7px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0.5em 0 .5em;
    border-top: 1px solid #ffffff;
    padding-top: 7px;
 }
  /*End Customs Fields******************/

.wp-block-button__link{
	font-weight: bold!important;
    text-transform: uppercase!important;
    letter-spacing: 0 !important;
    padding: 1.2rem 2rem!important;
    border: none!important;
    line-height: 1!important;
    min-width: 256px!important;
}

h1.entry-title{font-size:1.8rem}