/*
Theme Name: MFO1
Theme URI: 
Author: MFO1
Author URI: 
Description: MFO1 Wordpress Theme
Version: 1.1
*/

:root {
	/*--max-width: 944px;*/
	--max-width: 1140px;
	--font-size: 16px;
	--header-height: 50px;
	--border-color: var(--charcoal);
	--button-background-color: var(--blue);
	--button-color: #1c1d1f;
	
	/* Dark Theme */
	--dark-body-background-color: var(--charleston-green);
	--dark-body-color: #dfdfe0;
	--dark-footer-background-color: var(--soft-dark);
	--dark-footer-color: #dfdfe0;
	--dark-header-background-color: var(--soft-dark);
	--dark-header-color: #dfdfe0;
	
	/* Colors */
	--charleston-green: #292a2f;
	--soft-dark: #1c1d1f;
	--charcoal: #3b3d44;
	--pink: #dd0e0e;
	--green: #30b21e;
	--blue: #47b5ff;
	--bali-deep: #8f9296;
}

/* Box sizing rules */
*,*:before,*:after {
	box-sizing: border-box;
}

/* Basic font sizing rules */
html {
	font-size: var(--font-size);
}

/* Remove default margin */
body,h1,h2,h3,h4,h5,h6,ul,ol,li,blockquote {
  margin: 0;
}

/* Remove list styles */
ul,ol {
	list-style: none;
	padding-left:0;
}

/* Remove default padding */
blockquote,p,h1,h2,h3,h4,h5,h6 {
  padding: 0;
}

/* Remove outline on focused elements */
:focus {
  outline: none;
}

/* Set default line height */
body,button,input,select,textarea {
  line-height: 1.6;
}

iframe,video,img {
    max-width: 100%;
}

/* Reset images to display as inline-block */
img {
  display: inline-block;
  height: auto;
}


/* Add global margin */
p,blockquotem,hr {
	margin-top:1rem;
	margin-bottom:1rem;
}

/* blockquote styling */
blockquote {
  border-left: 3px solid var(--border-color);
  padding-left: 13px;
  margin-left: 1rem;
}
blockquote p:first-child {
	margin-top:0;
}

/* Prevent smooth scrolling for users who requested that the system minimize the amount of non-essential motion it uses. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Body */
body {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100vh;
	font-family: arial;
	overflow-x:hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1024px) {
  body {
    font-size: 1.125em;
  }
}

/* Main */
main {
	flex: 1;
}

h1,h2,h3,h4,h5,h6 {-ms-word-wrap: break-word;
word-wrap: break-word;}
/* Titles */
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3,.h3 {
  font-size: 1.75rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.5;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.6;
}

h6 {
  font-size: 1rem;
  line-height: 1.7;
}

/* Links */
a {
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration: underline;
  }
}

/* Main Lists */
main ul {
	list-style: disc;
}
main ol {
	list-style-type: decimal;
}
main ul,
main ol {
	margin-bottom: 1rem;
	margin-top: 1rem;
	padding-left: 2.5rem;
}
main ul > li > ul > li{
	list-style: circle;
}
main > ul > li > ul > li > ul > li {
	list-style: square;
}

/* Seporator */
hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  background: none;
}

/* Figure */
figure {
    margin: 0 0 1em;
}
figcaption {
  color: var(--bali-deep);
  font-style: italic;
}

/* Fields */
input,textarea,select {
  font-family: arial;
  font-size: inherit;
  -webkit-appearance: none;
}

input[type="text"],input[type="tel"],input[type="search"],input[type="email"],input[type="password"],input[type="url"],textarea,select {
  border-radius: 5px;
  width: 100%;
  padding: 1rem;
  border: 0;
}

/* Section Table */
table {
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  overflow: hidden;
}
thead tr:first-child th {
  border-bottom: 3px SOLID var(--border-color);
}
tr:not(:last-child) td,
tr:not(:last-child) th  {
  border-bottom: 1px SOLID var(--border-color);
}
td {
  padding: 1rem;
}
th {
  padding: .5rem 1rem;
  font-weight: 600;
}

/* Pre Code */
pre {
	font-size: .875rem;
}
code, pre {
	font-family: monospace;
	overflow-wrap: anywhere;
	white-space:pre-wrap
}
pre code {	
	background-color: #000;
	display:block;
	overflow-x:auto;
	padding:1em;
	border-radius: 5px;
}

svg {
    fill: currentColor;
}

/***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 * 
 * 
 *  2.WP BLOCKS
 * 
 * 
***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
body .is-layout-constrained > :where(:not(.alignfull)) {
	max-width: var(--max-width);
	margin-left: auto;
	margin-right: auto;
}
body .is-layout-constrained > * {
    margin-block-start: 0;
    margin-block-end: 0;
}
/*body .is-layout-constrained > * + *,*/
body .is-layout-constrained > *:not(.alignfull) + * {
    margin-block-start: 1.5rem;
    margin-block-end: 0;
}

.has-global-padding {
    padding-right: 1rem;
    padding-left: 1rem;
}
.alignfull {
    margin-left: -1rem;
    margin-right: -1rem;	
}
.has-background {
	padding:1rem;
}

/* WP COLUMNS */
.wp-block-columns {
  margin-bottom: 1rem;
}
.wp-block-column {
  width: 100%;
}
.is-layout-flex.wp-block-columns {
	align-items: flex-start;
}
.wp-block-columns {
    gap: 1rem;
  }
@media (min-width: 1024px) {
  .wp-block-columns {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
  }
  .wp-block-columns > .wp-block-column {
    flex-basis: 0%;
    flex-grow: 1;
  }
}

/* wp buttons */
.wp-block-buttons {
  display: flex;
  margin-bottom: 1rem;
  gap: 1rem;
}
a.wp-block-button__link,
input[type="submit"] {
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
  border-radius: 5px;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
    white-space: pre-wrap;
}
input[type="submit"]  {border:0}
.wp-block-button:not(.is-style-outline) a.wp-block-button__link {
  background: var(--button-background-color);
}
.wp-block-button:not(.is-style-outline) a.wp-block-button__link {
	color: var(--button-color) !important;	
}  
.wp-block-button.is-style-outline {
	border:1px solid var(--border-color);
}

/* wp table */
.has-fixed-layout {
  table-layout: fixed;
}
.wp-block-table {
  overflow: auto;
}

/* wp gallery */
.gallery-item img {
  border-radius: 5px;
}
.gallery-item {
  margin-bottom: 1rem;
}
ul.blocks-gallery-grid {
	padding-left:0!important;
	list-style: none;
}
@media (min-width: 720px) {
  .gallery-columns-2 {
    column-count: 2;
    column-gap: 1rem;
  }
}

/**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 * 
 * 
 *  3.MY CLASSES 
 * 
 * 
***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* выравнивание */
.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.is-vertically-aligned-center {
  align-self: center;
}
.align-content-space-between {
  align-content: space-between;
}
/* text align */
.has-text-align-center {
  text-align: center;
}
.has-text-align-left {
  text-align: left;
}
.has-text-align-right {
  text-align: right;
}
/* float */
.alignleft {
  float: left;
  margin-right: 1em;
}
.alignright {
  float: right;
  margin-left: 1em;
}
.aligncenter {
	justify-content: center;
	text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
    clear: both;
}
.center {
  margin-left: auto !important;
  margin-right: auto !important;
}
.items-center {
  align-items: center;
}
.baseline {
  align-items: baseline;
}
.justify-between {
  justify-content: space-between;
}
.left {
  float: left;
}
/* item loop */
.item-wrap {
  padding: 16px;
}
.item-ins {
  margin: 0 8px 16px;
}
.row {
  margin-left: -8px;
  margin-right: -8px;
}
/* text */
strong,
.strong {
  font-weight: 600;
}
.light {
  font-weight: 300;
}
.small {
  font-size: 0.875em;
}
.smallest {
  font-size: 12.5px;
}
.big {
  font-size: 1.25em;
}
.italic {
  font-style: italic;
}
.uppercase {
  text-transform: uppercase;
}
.break-word {
	-ms-word-wrap: break-word;
word-wrap: break-word;
}
/* general */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.hidden,
.display-none {
  display: none;
}
.block,
.display {
  display: block !important;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}
.scroll-x {
  overflow-x: scroll;
}
/* flex */
.flex {
  display: flex;
}
.gap-48 {
  gap: 48px;
}
.gap-24 {
  gap: 24px;
}
.gap-16 {
  gap: 16px;
}
.gap-12 {
  gap: 12px;
}
.gap-6 {
  gap: 6px;
}
.align-center {
  align-items: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-col {
  flex-direction: column;
}
.nowrap {
  white-space: nowrap;
}
/* borders */
.border-radius {
  border-radius: 5px;
}
.border-radius-25 {
  border-radius: 25px !important;
}
.border {
  border: 1px solid var(--border-color);
}
.border-top {
  border-top: 1px solid var(--border-color);
}
.border-bottom {
  border-bottom: 1px solid var(--border-color);
}
.border-right {
  border-right: 1px solid var(--border-color);
}
.overflow-hidden {
  overflow: hidden;
}
/* Width */
.box-100 {
  width: 100%;
}
.box-85 {
  width: 85%;
}
.box-75 {
  width: 75%;
}
.box-66 {
  width: 66.666%;
}
.box-50 {
  width: 50%;
}
.box-33 {
  width: 33.333%;
}
.box-25 {
  width: 25%;
}
/* Margin/Padding */
.mb-40 {
  margin-bottom: 40px!important;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-0 {
  margin-bottom: 0!important;
}
.mt-40 {
  margin-top: 40px!important;;
}
.mt-24 {
  margin-top: 24px;
}
.mt-12 {
  margin-top: 12px !important;
}
.mt-16 {
  margin-top: 16px !important;
}
.mt-6 {
  margin-top: 6px;
}
.mt-0 {
  margin-top: 0 !important;
}
.p-6 {
  padding: 6px;
}
.p-12 {
  padding: 12px;
}
.p-16 {
  padding: 16px;
}
.p-24 {
  padding: 24px;
}
.pb-12 {
  padding-bottom: 12px;
}
.pb-40 {
  padding-bottom: 40px;
}
.pt-40 {
  padding-top: 40px;
}
.pt-24 {
  padding-top: 24px;
}
.pl-0 {
  padding-left: 0px!important;
}
.pl-12 {
  padding-left: 12px;
}
.pr-12 {
  padding-right: 12px;
}
@media (min-width: 720px) {
  .md\:flex-row {
    flex-direction: row;
  }
  .md\:justify-center {
    justify-content: center;
  }
  .md\:justify-between {
    justify-content: space-between;
  }
  .md\:small {
    font-size: 0.875em;
  }
  .md\:box-auto {
    width: auto;
  }
  .md\:box-60 {
    width: 60%;
  }

  .md\:box-50 {
    width: 50%;
  }
  .md\:box-40 {
    width: 40%;
  }

  .md\:box-20 {
    width: 20%;
  }
  .md\:p-16 {
    padding: 16px;
  }
  .md\:p-24 {
    padding: 24px;
  }
  .md\:pl-16 {
    padding-left: 16px;
  }
  .md\:pr-16 {
    padding-right: 16px;
  }
  .md\:pt-16 {
    padding-top: 16px;
  }
  .md\:pb-16 {
    padding-bottom: 16px;
  }
  .md\:mt-24 {
    margin-top: 24px!important;
  }
  .md\:mb-24 {
    margin-bottom: 24px;
  }
  .md\:mb-0 {
    margin-bottom: 0;
  }
  .md\:gap-24 {
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .lg\:box-25 {
    width: 25%;
  }
  .lg\:box-33 {
    width: 33.333%;
  }
  .lg\:box-66 {
    width: 66.666%;
  }
  .lg\:box-75 {
    width: 75%;
  }
  .lg\:box-100 {
    width: 100%;
  }
  .lg\:sticky {
    position: sticky;
  }
  .lg\:p-24 {
    padding: 24px;
  }
}
.none-decoration {
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .hover-decoration:hover {
    text-decoration: underline;
  }
  .wp-block-button__link:hover,
  .submit:hover {
    opacity: 0.5;
  }
}



/*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 * 
 * 
 *  4.HEADER
 * 
 * 
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
header,
header > * {
  z-index: 9999;
}

/* 
 * 
 * ul.menu 
 * 
 */
header ul.menu {
  top: var(--header-height);
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
  overflow: hidden;
  background: #101010;
	padding:1rem;
}

/* menu list */
header ul.menu li a {
  padding: 1rem 0;
  display: block;
}

/* menu links */
header ul.menu li > a {
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
	font-size:1rem;
}

/* adaptive */
@media screen and (min-width: 1024px) {
  header, header > * > .flex {
    height: var(--header-height);
    top: 0;
  }
  header ul.menu {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    top: unset;
    background: transparent !important;
    position: unset;
    width: auto;
  }
  header ul.menu > li > a {
    display: block;
    padding: 0 1rem;
    line-height: var(--header-height);
    height: var(--header-height);
  }
  header ul.menu > li:hover > a,
  header ul.menu > li.current-menu-item > a {
    color: var(--blue);
    border-bottom: 3px solid var(--blue);
  }
}
.footer ul li {
	margin-bottom:12px;
}
.footer ul li a {
	color:var(--bali-deep)
}

/*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 * 
 * 
 *  5.Post / Post Archive
 * 
 * 
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.item:not(:last-child) .p-a-t-2,
.item:not(:last-child) .p-a-t-3 {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 1rem;
}
.item:not(:last-child) .p-a-t-2 {
	margin-bottom: 1rem;
}
.p-a-t-2 .title,
.p-a-t-3 .title{
    overflow-wrap: anywhere;
}
.p-a-t-3 .thumbnail,
.p-a-t-2 .item-img-link {
  width: 112px;
  height: auto;
  line-height: 0;
}
/* responsive */
@media (min-width: 720px) {
  .p-a-t-2 .item-img-link {
    width: 150px;
    height: auto;
  }
}
@media (min-width: 1024px) {
#related-posts .item .p-a-t-3 {	
	border-bottom: 1px solid var(--border-color);
}
  .p-a-t-2 .item-img-link {
    width: 250px;
    height: auto;
  }
}
/* hover */
.p-a-t-2 .item-img-link:hover .overlay {
	background: rgba(0, 0, 0, 0.3);
}
.p-a-t-2 .overlay {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.single  img.post-thumbnail{
    max-width: calc(100% + 2rem);
}

/* navigation */
.pagination {
  margin-bottom: 40px;
  margin-top: 40px;
}
nav.pagination a,
nav.pagination span {
  display: inline-block;
  font-weight: 600;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  text-align: center;
  line-height: 45px;
}
nav.pagination .current {
  background-color: var(--blue);
  color: #292a2f;
}
/*
 * COMMENTS */
.commentslist li:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}
.commentslist li {
  margin-bottom: 24px;
}



/*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
 * 
 * 
 *  7.COLORS
 * 
 * 
*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
body.dark {
  background-color: var(--soft-dark);
  color: var(--dark-body-color);
}


.dark a {
  color: var(--dark-body-color);
}

/*
.dark main a {
  color: var(--blue);
}
*/

.dark .footer {
  background: var(--dark-footer-background-color);
  color: var(--dark-footer-color);
}

/* MENU BACKGROUND */
.dark header {
  background-color: var(--dark-header-background-color);
}
/* SVG COLOR */
.dark header .icon-search svg {
  fill: var(--dark-header-color);
}
/* ICON COLOR */
.dark header .hamburger-icon span,
.dark header .hamburger-icon span:after,
.dark header .hamburger-icon span:before {
  background-color: var(--dark-header-color);
}
/* Colors */
.dark .background-color-1 {
  background-color: var(--charleston-green);
}
.dark .background-color-2 {
  background-color: var(--soft-dark);
}
.dark .color-1 {
  color: #dfdfe0;
}
.has-black-color {color:#000;}

.has-black-background-color {
	background-color:black;
}
.my-soft-dark-background-color {
  background-color: var(--soft-dark);
}
.has-my-pink-background-color,
a.has-my-pink-background-color {
  background-color: var(--pink);
}
.my-charcoal-background-color {
  background-color: var(--charcoal);
}
.my-green-color {
  color: var(--green);
}
.my-blue-color {
  color: var(--blue);
}
.my-bali-deep-color {
  color: var(--bali-deep);
}
.has-white-color {color:white!important;}
a.has-white-color {color:white!important;}

@media (min-width: 720px) {
  body.dark {
    background-color: var(--dark-body-background-color);
  }
  .dark .md\:background-color-2 {
    background-color: var(--soft-dark);
  }
}

ul.row {padding:0;}

#postsloop,.navigation {z-index:1;position:relative;margin-bottom:0;padding-bottom:3rem;}
.archive .entry-content h1 {margin-top:0!important;z-index:999;position:relative;padding-top:3rem;}