/*reset*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

html, textarea {
  font-family: Tahoma, Geneva, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body{
  line-height: 1.2;
}
img{
  max-width: 100%;
  height: auto;
}
iframe{
  max-width: 100%;
  border:0;
}
a{
  color: black;
}
a:hover{
  text-decoration: none;
}


.typo h1{
  text-align: center;
  font-size: 2.625rem;
  font-weight: bold;
  margin-top: 2.75rem;
  margin-bottom:2rem;

}

.typo p {
  font-size: 1rem;
  line-height: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.typo ul:not(.wp-block-gallery){
    padding-left: 16px;
    margin-top: 1rem;
}
.typo ol {
  padding-left: 20px;
  margin-top: 1rem;
}
.typo ul li,
.typo ol li {
  line-height: 1.6875rem;
}
.typo ul ul,
.typo ol ul,
.typo ul ol,
.typo ol ol {
  margin-top: 0;
  margin-bottom: 0;
}
.typo hr{
  margin-top: 1.5rem;
}
/* Headings */
.typo h2,
.typo h3,
.typo h4,
.typo h5,
.typo h6,
p.typo-h3,
p.typo-h4,
p.typo-h5 {
  /* Change heading typefaces here */
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.2;
}
.typo h2 {
  font-size: 2rem;
  margin-top: 3rem;
}
.typo h3,
p.typo-h3 {
  font-size: 1.875rem;
  margin-top: 3rem;
}
.typo h4,
p.typo-h4 {
  margin-top: 2rem;
  font-size: 1.5rem;
}
.typo h5,
.typo-h5 {
    margin-top: 2rem;
  font-size: 1.125rem;
}
.typo h6 {
    margin-top: 2rem;
  font-size: 1.125rem;
}


/* цитаты */
.typo blockquote {
  margin-left: 0;
  margin-right: 0;
  display: block;
  position: relative;
  background-color: #e9e9e9;
  padding: 3rem 3rem 2.5rem 6rem;
  border: 2px solid #e9e9e9;
  margin-top: 1.5rem;
}
.typo blockquote >*{
  margin: 0;
}
.typo blockquote:before {
  position: absolute;
  content: '';
  top: 3rem;
  left: 2.5rem;
  width: 24px;
  height: 20px;
  background-image: url(../img/citata.png);
  background-size: cover;
}

/* Code blocks */
.typo code {
  vertical-align: bottom;
}




/* выравнивание картинок к тексте*/
.typo .aligncenter {
  clear: both;
  display: table;
  margin: 25px auto ;
}
.typo .alignleft {
  float: left;
  margin: 0 25px 25px 0;
}
.typo .alignright {
  float: right;
  margin: 0 0 25px 25px;
}
.typo .alignnone {
  clear: both;
  display: block;
  margin: 25px 0 ;
}

.typo .alignleft + *,
.typo .alignright + *,
.typo .aligncenter + *,
.typo .alignnone + * {
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  .typo .alignleft,
  .typo .alignright,
  .typo .aligncenter,
  .typo .alignnone {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .typo h1{
    font-size: 2.2rem;
  }
  .single-post .typo h1{
    text-align: left;
  }
}


/*wp gallery*/
.gallery {
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin-top:4.25rem;

}
.home .gallery {
  margin-top:0;

}
@media screen and (max-width: 575px) {
  .gallery {
    justify-content: center;
  }
}
.gallery .gallery-item {
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 30px;
}
@media (max-width: 575px) {
  .gallery .gallery-item {
    margin-bottom: 15px;
  }
}
.gallery .gallery-item .gallery-icon {
  width: 100%;
}
.gallery .gallery-item .gallery-icon a {
  display: block;
}
@media screen and (max-width: 575px) {
  .gallery .gallery-item .gallery-icon a {
    text-align: center;
  }
}
.gallery .gallery-item .gallery-icon a img {
  border-radius: 0;
}
.gallery .gallery-item figcaption {
  width: 100%;
  display: block;
}
.gallery.gallery-columns-1 .gallery-item {
  width: 100%;
}
@media (max-width: 575px) {
  .gallery.gallery-columns-1 .gallery-item {
    width: 100%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-2 .gallery-item {
  width: 50%;
}
@media (max-width: 991px) {
  .gallery.gallery-columns-2 .gallery-item {
    width: 100%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-2 .gallery-item {
    width: 100%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-3 .gallery-item {
  width: 33.33333333%;
}
@media (max-width: 991px) {
  .gallery.gallery-columns-3 .gallery-item {
    width: 50%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-3 .gallery-item {
    width: 100%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-4 .gallery-item {
  width: 25%;
}
@media (max-width: 991px) {
  .gallery.gallery-columns-4 .gallery-item {
    width: 50%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-4 .gallery-item {
    width: 100%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-5 .gallery-item {
  width: 20%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-5 .gallery-item {
    width: 33.33333333%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-5 .gallery-item {
    width: 50%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-5 .gallery-item {
    width: 100%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-6 .gallery-item {
  width: 16.66666667%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-6 .gallery-item {
    width: 33.33333333%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-6 .gallery-item {
    width: 50%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-6 .gallery-item {
    width: 100%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-7 .gallery-item {
  width: 14.28571429%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-7 .gallery-item {
    width: 25%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-7 .gallery-item {
    width: 33.33333333%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-7 .gallery-item {
    width: 50%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-8 .gallery-item {
  width: 12.5%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-8 .gallery-item {
    width: 25%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-8 .gallery-item {
    width: 33.33333333%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-8 .gallery-item {
    width: 50%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-9 .gallery-item {
  width: 11.11111111%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-9 .gallery-item {
    width: 20%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-9 .gallery-item {
    width: 33.33333333%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-9 .gallery-item {
    width: 50%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-10 .gallery-item {
  width: 10%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-10 .gallery-item {
    width: 20%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-10 .gallery-item {
    width: 33.33333333%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-10 .gallery-item {
    width: 50%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-11 .gallery-item {
  width: 9.09090909%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-11 .gallery-item {
    width: 16.66666667%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-11 .gallery-item {
    width: 25%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-11 .gallery-item {
    width: 33.33333333%;
    margin-bottom: 12px;
  }
}
.gallery.gallery-columns-12 .gallery-item {
  width: 8.33333333%;
}
@media (max-width: 1199px) {
  .gallery.gallery-columns-12 .gallery-item {
    width: 16.66666667%;
  }
}
@media (max-width: 991px) {
  .gallery.gallery-columns-12 .gallery-item {
    width: 25%;
  }
}
@media (max-width: 575px) {
  .gallery.gallery-columns-12 .gallery-item {
    width: 33.33333333%;
    margin-bottom: 12px;
  }
}
.gallery figcaption {
  padding: 3px 15px;
}
.gallery figcaption strong {
  font-size: 24px;
  color: #000000;
  font-weight: bold;
}
@media (max-width: 991px) {
  .gallery figcaption strong {
    font-size: 20px;
  }
}


