/* 

	Theme Name: Mogi
	Theme URI: http://www.spab-rice.com/themes
	Description: Mogi - A Creative Portfolio Wordpress Theme
	Version: 1.2.3
	Author: Spab Rice 
	Author URI: http://www.spab-rice.com 
	Tags: ecommerce
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: mogi
	
*/


/*---------------------------------------------- 

	WORDPRESS DEFAULTS

------------------------------------------------*/

/*aligns*/
.aligncenter{
	display: block;
	margin:0 auto;
}
.alignright{
	float:right;
	margin: 0 0 25px 25px !important;
}
.alignleft{
	float:left; 
	margin: 0 25px 25px 0 !important;
	}
	.wp-caption.alignleft,
	.wp-caption.alignright,
	[class*='wp-block'].alignleft,
	[class*='wp-block'].alignright {
	margin-top: 25px !important;
	}
	.wp-caption.alignleft:first-child,
	.wp-caption.alignright:first-child,
	[class*='wp-block'].alignleft:first-child,
	[class*='wp-block'].alignright:first-child,
	figure + figure[class*='wp-block'].alignleft, 
	figure + figure[class*='wp-block'].alignright { 
	margin-top:0 !important; 
	}

/*floats*/
.floatleft{ 
	float:left;
}
.floatright{ 
	float:right;
}

/*text style*/
.textcenter{ 
	text-align:center;
}
.textright{ 
	text-align:right;
}
.textleft{ 
	text-align:left;
}

/*captions*/
.wp-caption{ 
	max-width: 100% !important; 
}
.wp-caption{
	margin-top:25px;
	font-style: italic;
	}
	div .wp-caption:first-child { 
	margin-top:25px; 
	}
.wp-caption img{
	margin:0; 
	padding:0; 
	border:0 none;
	max-width: 100%;
}
.blocks-gallery-caption {
    text-align: center;
}
.wp-caption p.wp-caption-text,
.wp-caption-text,
figcaption {
	font-size: 0.8em;
	line-height: 1.3em;
	color: rgba(0,0,0,0.54); 
	margin-top: 7px;
	}
	.text-light figcaption, .text-light .wp-caption-text {
	color: rgba(255,255,255,0.68); 
	}
	.wp-block-embed figcaption {
    text-align: center;
	}

figcaption a { border-bottom: 1px solid #000; }
.text-light figcaption a { border-bottom: 1px solid #fff; }

/*smiley reset*/
.wp-smiley{
	margin:0 !important;
	max-height:1em;
}

/*blockquote*/
blockquote.left{
	margin-right:25px;
	text-align:right;
	margin-left:0;
	width:33%;
	float:left;
}
blockquote.right{
	margin-left:25px;
	text-align:left;
	margin-right:0;
	width:33%;
	float:right;
}

/*img attachment*/
#img-attch-page{
	text-align: center;
	overflow: hidden;
}
#img-attch-page img{
	display: inline-block;
	margin: 0 auto;
	max-width: 100%;
	border: 5px solid #d4d4d4; /*for IE*/
	width: 100%;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	border-color: rgba(0,0,0, 0.08);
	-webkit-transition: border 0.3s ease;
    -o-transition: border 0.3s ease;
    -moz-transition: border 0.3s ease;
}
#img-attch-page a:hover img{
	border-color: #fc7251;
}

#img-attach-page-content{
	text-align: center;
	margin-top: 25px;
}

/*button*/
.wp-block-button.is-style-squared .wp-block-button__link, 
.wp-block-button__link.wp-block-button.is-style-squared .wp-block-button__link {
    border-radius: 0;
}

/*gallery*/
.gallery {
	width: 100%;
	padding-top: 25px !important;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
}

.gallery-item .gallery-icon { 
	text-align: center; 
	display: block; 
	width: calc(100% - 10px);
	padding: 5px !important;
	}

.gallery-item .gallery-caption { 
    margin-bottom: 25px !important;
}

.gallery-item img {
	margin: 0 !important;
	padding:  0 !important;
	border: none !important;
	max-width: 100% !important;
}

.gallery-item a {
	display: inline-block;
	max-width: 100% !important;
	margin:  0 !important;
	padding: 0 !important;
}

.gallery-item a:hover img {
	opacity: 0.8;
	filter: alpha(opacity=80);
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}

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

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	width: 1px;
}

/* Misc */
.wp-has-aspect-ratio iframe {
    width: 100%;
}

.wp-block-embed__wrapper .twitter-tweet {
	margin: 0 auto;
}

.wp-block-group__inner-container {
	padding: 25px;
	}
	.widget .wp-block-group__inner-container {
	padding: 0;
}


/*	Gutenberg default
-------------------------------------------------*/	
.entry-content > figure,
.entry-content > [class*='wp-block'] { 
	margin-top: 25px; 
	}
	.entry-content > figure:first-child,
	.entry-content > [class*='wp-block']:first-child { 
	margin-top: 0; 
	}

.entry .entry-content > .alignleft {
    margin-left: 0;
}

.entry .entry-content .wp-block-cover .wp-block-cover-text {
    padding: 2rem;
}

.entry .entry-content > .alignfull {
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100vw;
    max-width: 100vw;
	position: relative;
	}
	.entry .entry-content.wrapper > .alignfull {
    left: calc( (-100vw + 1440px) / 2);
	}
	.entry .entry-content.wrapper-medium > .alignfull {
    left: calc( (-100vw + 1080px) / 2);
	}
	.entry .entry-content.wrapper-small > .alignfull {
    left: calc( (-100vw + 780px) / 2);
	}
	.entry .entry-content.wrapper-mini > .alignfull {
    left: calc( (-100vw + 420px) / 2);
	}
	.entry .entry-content > .wp-block-columns.alignfull {
	padding: 0 30px;
	width: calc(100vw - 60px);
	}

.alignfull .blocks-gallery-grid { padding: 0 1em; }

@media only screen and (max-width: 1024px) {
	.entry .entry-content.wrapper > .alignfull {
    left: auto
	}
	.entry .entry-content.wrapper-medium > .alignfull {
    left: auto;
	}
	.entry .entry-content > .wp-block-columns.alignfull {
	padding: 0;
	width: auto;
	}
}

@media only screen and (max-width: 768px) {
	.entry .entry-content.wrapper-small > .alignfull {
    left: auto;
	}
}

@media only screen and (max-width: 480px) {
	.entry .entry-content.wrapper-mini > .alignfull {
    left: auto;
	}
}

.entry .entry-content > .alignwide {
    width: calc(100% + 160px);
    max-width: calc(100vw - 80px);
	margin-left: 50%;
	transform: translateX(-50%);
}
@media only screen and (max-width: 1024px) { .entry .entry-content > .alignwide { max-width: calc(100vw - 40px); } }

.wp-block-cover .wp-block-cover-text a,
.wp-block-cover .wp-block-cover__inner-container a {
	color: #fff !important;
	border-color: #fff !important;
}

.wp-block-gallery .blocks-gallery-image figcaption, .wp-block-gallery .blocks-gallery-item figcaption {
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-ms-box-sizing:border-box;
	box-sizing:border-box;
}

.wp-block-gallery {
    margin-left: 0;
}

.wp-block-cover,
.wp-block-cover .wp-block-cover-text,
.wp-block-cover .wp-block-cover__inner-container {
	color: #fff;
}

.has-drop-cap:after {
  content: "";
  display: table;
  clear: both;
}



.admin-bar #header.sticky {
    top: 32px;
}


/* elementor */
body.elementor-editor-active #page-body {
	position: relative;
	z-index: 1600 !important;
}

body.scrolled.elementor-editor-active #header.sticky {
	z-index: 1601 !important;
}

body.elementor-editor-active:not(.scrolled) #header[class*='transparent-'] {
	z-index: 1601 !important;
	pointer-events: none;
}