/*!
Theme Name: merspace
Theme URI: https://britevn.net
Author: Brite Solutions
Author URI: https://britevn.net
Description: A theme for Mer Space Gallery
Version: 3.5.59
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: merspace
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}
/*------------------*/
#menu-primary-menu .nav-link {
	font-family: MYRIADPRO-SEMIBOLD, sans-serif;
	font-size: 1.125rem;
	color: #cd4b33;
}

#menu-primary-menu .dropdown-menu {
	border: 0;
}

#menu-primary-menu .dropdown-item {
	font-family: MYRIADPRO-SEMIBOLD, sans-serif;
    color: #cd4b33;
}

#menu-primary-menu .dropdown-item.active, 
#menu-primary-menu .dropdown-item:active {
    background-color: transparent;
    background-image: none;
    color: #cd4b33;
}

#menu-primary-menu .nav-link:focus-visible,
#menu-primary-menu .dropdown-item:focus, .dropdown-item:hover {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    outline: 0;
}

#menu-primary-menu .dropdown-submenu .dropdown-item {
	padding-left: 1.5rem !important;
}

.navbar-toggler.hamburger {
	background: #cd4b33;
    border-radius: 50%;
    padding: 0;
    width: 42px;
    height: 42px;
}

.navbar-toggler .hamburger-box {
	width: 24px;
    height: 16px;
    vertical-align: middle;
}

.navbar-toggler .hamburger-inner, 
.navbar-toggler .hamburger-inner:after, 
.navbar-toggler .hamburger-inner:before {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background-color: #fff;
}

.navbar-toggler.hamburger--slider .hamburger-inner:before {
	top: 7px;
}

.navbar-toggler.hamburger--slider .hamburger-inner:after {
	top: 14px;
}

.navbar-toggler.hamburger--slider.is-active .hamburger-inner {
    transform: translate3d(0, 7px, 0) rotate(45deg);
}

.navbar-toggler.hamburger--slider.is-active .hamburger-inner:after {
    transform: translate3d(0, -14px, 0) rotate(-90deg);
}

.navbar-toggler.hamburger.is-active .hamburger-inner, 
.navbar-toggler.hamburger.is-active .hamburger-inner:after, 
.navbar-toggler.hamburger.is-active .hamburger-inner:before {
    background-color: #fff;
}

.navbar-toggler.hamburger.is-active:hover,
.navbar-toggler.hamburger:hover {
    opacity: 1;
}

#carousel-merspace p {
	margin: 0;
}

/* Custom styles for smoother fade */
.carousel-fade .carousel-item {
  	transition: opacity 2s ease-in-out !important; /* Adjusted to be slower */
}
.carousel-fade .carousel-item.active {
  	transition: opacity 2s ease-in-out !important; /* Adjusted to be slower */
}

.masthead {
	position: relative;
	height: calc(100vh - 128px);
	background-size: cover;
	background-position: top right;
	background-repeat: no-repeat;
}

.btn-scroll {
	width: 60px;
    height: 30px;
    position: absolute;
    bottom: 50px;
    left: calc(50vw - 30px);
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    animation: fadeIn 2s infinite;
    z-index: 1;
}

@-webkit-keyframes fadeIn{
	0%{opacity:.8;	bottom: 30px;}
	50%{opacity:1; bottom:20px;}
	100%{opacity:.8;	bottom: 30px;}
}

@keyframes fadeIn{
	0%{opacity:.8;	bottom: 30px;}
	50%{opacity:1; bottom:20px;}
	100%{opacity:.8;	bottom: 30px;}
}

.work-title,
.entry-title {
	font-family: UTM-Iron-Gothic, sans-serif;
	font-size: 2.5rem;
	color: #cd4b33;
}

.entry-single-title,
.entry-content h1 {
	margin-top: 1.5rem;
	font-family: UTM-Iron-Gothic, sans-serif;
	font-size: 2.5rem;
	color: #cd4b33;
}

.entry-content p {
	font-size: 1.125rem;
}

.wrap {
    position: relative;
    margin: 0 auto;
}

.wrap a img{
    height: auto;
    max-width: 100%;
}

.post-description {
    color: #58595B;
    width: 100%;
}

.post-description h3,
.decor-item h3 {
	font-family: MYRIADPRO-SEMIBOLD, sans-serif;
	font-size: 1.25rem;
	color: #58595B;
}

.wrap a p,
.decor-item p {
	font-family: MYRIADPRO-REGULAR, sans-serif;
	margin-bottom: 0;
	color: #58595B;
	font-size: 1.125rem;
}

.bg-mer-gray {
	background-color: #9d9c9c;
	color: #fff;
}

.btn-merspace {
	background-color: #cd4b33!important;
	border-color: #cd4b33!important;
	color: #fff!important;
	background-image: none!important;
}

.form-control:focus {
    border-color: #cd4b33!important;
    -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.075),0 0 0 .25rem rgba(205,75,51,.25)!important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.075),0 0 0 .25rem rgba(205,75,51,.25)!important;
}

/*contact form 7*/
.wpcf7-spinner {
	vertical-align: middle;
}

.form-check .wpcf7-list-item {
	margin-left: 0;
}

.wpcf7-form-control .form-check-input:checked {
    background-color: #cd4b33;
    border-color: #cd4b33;
}

/* category */
.category-name,
.category-description {
	color: #58595B;
}

.category-name {
	font-family: UTM-Iron-Gothic, sans-serif;
	font-size: 1.625rem;
	line-height: 1;
	margin-bottom: 6px;
}

.category-description strong {
	font-family: MYRIADPRO-SEMIBOLD, sans-serif;
}

.category-description em {
	font-family: MYRIADPRO-IT, sans-serif;
}

/* Decoration */
.decor-img-top::before {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.decor-img-top img {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%!important;
    max-height: 272px;
}

/* Pagination */
.page-numbers{
    position: relative;
    display: block;
    padding: .5rem .75rem;
    margin-left: -1px;
    font-family: UTM-Iron-Gothic, sans-serif;
    font-size: 1.25rem;
    line-height: 1;
    color: #cd4b33;
    background-color: #fff;
    border: 1px solid #dee2e6;
}
.page-numbers.current{
    z-index: 1;
    color: #fff;
    background-color: #cd4b33;
    border-color: #cd4b33;
}

/* Content */
.author-name,
.category-modal-link,
.modal .close {
	font-size: 2.125rem;
	color: #cd4b33;
}

/*.category-modal-link::before {
	content: '\270E';
	display: inline-block;
	font-size: 1.25rem;
	margin-right: 0;
}*/

/* Modal */
.modal .close {
	border: none;
	background: none;
}

.modal-logo {
	height: 46px!important;
}

/* breadcrumbs */
.breadcrumb-item a {
    color: #cd4b33;
}

/* page nav */
.page-nav-works ul {
    width: 100%;
    height: 22px;
    max-width: inherit;
}

.page-nav-works ul li {
	list-style: none;
}

.page-nav-works ul li.prev,
.page-nav-works ul li.next {
    width: 30px;
    height: 22px;
}

.page-nav-works ul li.prev {
/*	float: left;*/
}

.page-nav-works ul li.back {
    width: 22px;
    height: 22px;
}

.page-nav-works ul li.next {
/*    float: right;*/
}

.page-nav-works ul li a {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-indent: 101%;
    line-height: 0;
    font-size: 0.1em;
}

.page-nav-works ul li.prev a {
    background: url(assets/images/button/prev.svg) center center no-repeat;
    background-size: contain;
}

.page-nav-works ul li.back a {
    background: url(assets/images/button/all.svg) center center no-repeat;
    background-size: contain;
}

.page-nav-works ul li.next a {
    background: url(assets/images/button/next.svg) center center no-repeat;
    background-size: contain;
}

/* news */
.news-title {
	font-size: 2rem;
}

.news-link {
	color: #58595B;
}

.news-single-title {
	font-family: MYRIADPRO-SEMIBOLD, sans-serif!important;
    font-size: 1.5rem!important;
    color: #58595B!important;
}

.dataposted {
    display: block;
    margin-bottom: .75rem!important;
    font-size: 14px!important;
    color: #878d94!important;
    width: 100%;
}

.dataposted span {
    display: inline-block;
    margin-right: 15px;
}

/* sidebar */
.feature-title,
.recent-news h3,
.recent-news a {
	font-family: MYRIADPRO-SEMIBOLD, sans-serif;
	color: #58595B;
}

.recent-news .wpp-thumbnail {
	max-width: 100%;
	width: 100%;
    height: auto;
    float: none;
}

.news-img::before {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.news-img img {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%!important;
}

/* back to top */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #cd4b33;
    color: #fff;
    text-align: center;
    line-height: 1;
    font-size: 22px;
    border-radius: 50%;
    padding: 13px 16px;
    display: none; /* Hidden by default */
    z-index: 9999;
    cursor: pointer;
}

@media (min-width: 768px) {
	.masthead {
		min-height: 700px;
	}

	.wrap a {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.wrap .mm-columns__item:not(:last-child) a {
		height: calc(100% - 20px);
	}

	.wrap a .post-description {
	    position: absolute;
	    top: 50%;
	    left: 50%;
	    transform: translateY(-50%) translateX(-50%);
	    display: none;
	}

	.wrap a:hover .post-description {
	    display: block;
	}

	.wrap a:hover {
		background-color: rgba(255, 255, 255, .5);
	}
}

@media (min-width: 992px) {
	.masthead {
		height: calc(100vh - 144px);
		background-position: top right;
		background-position: top center;
	}
}

@media (max-width: 992px) {
	#menu-primary-menu .dropdown-menu.dropdown-submenu {
		-webkit-box-shadow: none !important;
	    box-shadow: none !important;
	}
}