/*
Theme Name:   Mesmerize Fix
Theme URI:    http://piechnat.pl
Description:  Modyfikacja motywu Mesmerize
Author:       Mateusz Piechnat
Author URI:   http://piechnat.pl
Template:     mesmerize
Version:      1.0.29
*/
@import url("../mesmerize/style.css");

body {
	color: #4E5D6E;
	line-height: 1.7;
}
body, .site .content, .page-content {
	background-color: #fafdff;
}
ul, ol, table {
    text-align: left;
}
a, .read-more {
    color: #0389d4;
}
.footer a {
	color: #ccc;
	text-decoration: none;
}
.footer a:hover {
	color: #ccc;
	text-decoration: underline;
}

/* rounded posts and widgets  */
.sidebar .widget, .post-content, .blog-post, .post-item, .navigation-c {
	box-shadow: 0 0 1em 0.1em rgba(70, 70, 70, 0.1);
	background-color: #fff;
	border-radius: 10px;
	border: 0;
}
.post-list .post-list-item .card {
	border: 0;
}
.post-thumbnail, .navigation-c, .nav-links, .rounded-corners, .rounded-corners img {
	overflow: hidden;
	border-radius: 10px;
}

/* menu header fixed height (logo 70px) */
.navigation-bar {
	padding-top: 15px;
	padding-bottom: 15px;
}
.header-wrapper > .header {
	padding-top: 101px
}
.header-wrapper > .header-homepage {
	padding-top: 100px
}

/* remove 4th footer block  */
.footer-content > .gridContainer > .row > .col-sm-8 {
	flex-basis: 100%;
	max-width: 100%;
}
.footer-content > .gridContainer > .row > .col-sm-4 {
	display: none;
}
@media (max-width:767px) {
	.footer .row {
		margin-left: -5px;
	}
	.footer-content-lists .widgets-row > * {
		border-left: none;
	}
}
#piechnat-signature {
    position: absolute;
    width: 100%;
    transform: translateY(-100%);
    padding: 0 10% 10px 5px;
    text-align: right;
    font-size: 11px;
}
#piechnat-signature a {
	color: #aaa; 
	text-decoration: none
}
.col-centered {
	float: none;
	margin-left: auto;
	margin-right: auto;  
}

/* mesmerize fix */
@media (max-width:767px) {
	h1.hero-title {
      	font-size: 2.9rem;
    }
	.header-buttons-wrapper .button {
    	margin-left: 10px;
		margin-right: 10px;
	}
}
ul, ul ul, ul ol, ol, ol ul, ol ol {
	margin: 0 0 0 2.5rem;
}
ul.dropdown-menu li {
	transition: color .4s;
}
ul.dropdown-menu ul li, .offcanvas_menu li a {
    line-height: 1.8;
}
ul.dropdown-menu ul, ul.dropdown-menu ul li:hover, ul.dropdown-menu ul li.hover {
    border-radius: 4px;
}
p, ul, ol, .advgb-list, .button:only-child, p:last-child, h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, .comment-author .fn:last-child, h6:last-child {
    margin-bottom: 16px;
}
h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty {
    display: none;
}
.footer .widget {
	margin-bottom: 1em;
}

/* block styles */
.blocks-gallery-item__caption {
	display: none;
}
th:first-child, td:first-child {
	padding-left: 1rem;
}
th:last-child, td:last-child {
	padding-right: 1rem;
}

/* custom classes */
.img-icon {
	margin: 0.5em 2em;
	display: inline-block;
}
.img-icon ~ .img-icon {
	margin-left: 1em;
}
img.img-icon, .img-icon img {
	max-height: 5em;
}
.next-to-img {
	margin-top: 0;
}
.next-to-img::before {
	content: "";
	display: block;
	overflow: hidden;
	min-width: 15rem;
}

/* fix gallery - last image in single row */
.wp-block-gallery {
    --wp--style--unstable-gallery-gap: 16px !important;
}

/* fix gallery - image caption */
figcaption.wp-element-caption {
    top: auto;
}

.wp-block-separator {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
