/*
    Theme Name: CRYSTALS
    Theme URI: https://www.hamiltrowebsitedesign.com
    Description: CUSTOM THEME FOR CHARMING COSMIC CRYSTALS
    Version: 1
    Author: hamiltro
*/

/* HEADER & GLOBAL HTML CUSTOMIZATION
------------------------------------------------------------------------------------*/

.content h2 {
	max-width: 730px;
	font-size: 1.5rem;
	margin: 40px auto 20px;
}

.content  p	{
	margin-bottom: 20px;
}

.navbar .navbar-menu	{
	margin-top: 10px;
}
 
.siteTitle h2 a:hover,
a:hover	{
	color: #af8f63;
	color: purple;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
	width: 29.05% !important;
}
.mainContent ul, .mainContent ol{
	max-width: 100% !important;
}
.mainContent ul, .mainContent ol{
	width: 100%;
}
.woocommerce nav.woocommerce-pagination ul{
	width: 8% !important;
}
.first{
	display: none;
}
.woocommerce-loop-product__title{
	text-align: center;
}
.woocommerce ul.products li.product .price{
	text-align: center;
}
.woocommerce ul.products li.product .button{
margin-left: 30%;
}

/* main navigation 
------------------------------------------------------ */

@media only screen and (min-width:768px)	{
	.mainNavigation.flexItem {
		width: 70%;
		padding-right: 15px;
	}
}

ul.navbar-nav.flexContainer	{
	justify-content: flex-end;
	flex-wrap:wrap;
	list-style: none;
	margin: 0;
    max-width: none;
    padding-left: 0;
    position: relative;
}

@media only screen and (min-width: 482px)
.primary-navigation .primary-menu-container > ul > .menu-item {
    display: flex;
}
@media only screen and (min-width: 482px)
.primary-navigation > div > .menu-wrapper li {
    margin: 0;
    width: inherit;
}

.navbar-nav > li {
    position: relative;
    height: 30px;
    padding: 12px 0 10px 30px;
}

.sub-menu > li {
    position: relative;
    padding:10px;
	background:#d2d2d2;
}

/*.navbar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}*/

/*.navbar-nav .menu-item {
    text-decoration: none;
    padding:10px;
    display: block;
    line-height: 30px;
}*/

.navbar-toggle {
    cursor: pointer;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 2px;
    transition: background-color 0.2s ease-in-out,
                transform 0.2s ease-in-out,
                opacity 0.2s ease-in-out;
    background-color: hsl(251deg 18% 19%);
}

.navbar-toggle:focus .icon-bar,
.navbar-toggle:hover .icon-bar {
    background-color: hsl(251deg 18% 19%);
}

#navbar.opened .navbar-toggle .icon-bar:first-child,
#navbar.opened .navbar-toggle .icon-bar:last-child {
    position: absolute;
    margin: 0;
    width: 30px;
}

#navbar.opened .navbar-toggle .icon-bar:first-child {
    transform: rotate(45deg);
}

#navbar.opened .navbar-toggle .icon-bar:nth-child(2) {
    opacity: 0;
}

#navbar.opened .navbar-toggle .icon-bar:last-child {
    transform: rotate(-45deg);
}

/* .navbar-menu {
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    transition: opacity 0.2s ease-in-out,
                visibility 0.2s ease-in-out;
    opacity: 0;
    visibility: hidden;
    left: 0;
    right: 0;
}

#navbar.opened .navbar-menu {
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
} */

.navbar-links {
    list-style-type: none;
    max-height: 0;
    overflow: hidden;
    position: absolute;
    background-color: hsl(251deg 18% 19%);
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 0;
    right: 0;
    margin: 1.4rem;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#navbar.opened .navbar-links {
    padding: 1em;
    max-height: none;
}
.collapse {
    display: none;
}
.collapse.in {
    display: block;
}
.sub-menu .sub-menu, .sub-menu{
	display: none;
}
@media screen and (min-width: 769px) {
    .navbar-toggle {
        display: none;
    }
	.navbar-menu {
		display:block!important;
	}    
    #navbar .navbar-menu,
    #navbar.opened .navbar-menu {
        visibility: visible;
        opacity: 1;
        position: static;
        display: block;
        height: 100%;
    }

    #navbar .navbar-links,
    #navbar.opened .navbar-links {
        margin: 0;
        padding: 0;
        box-shadow: none;
        position: static;
        flex-direction: row;
        list-style-type: none;
        max-height: max-content;
        width: 100%;
        height: 100%;
    }

    #navbar .navbar-link:last-child {
        margin-right: 0;
    }
	.navbar-nav li:hover > ul{
		display: inline;
	}
	.sub-menu .sub-menu{
		position: absolute;
		top: 0px;
		left: -150px;
		width: 150px;
		list-style: none;
		padding: 0;
		margin: 0;
		display: none;
	}
	.sub-menu{
		position: absolute;
		top: 40px;
		left: 0;
		width: 150px;
		list-style: none;
		padding: 0;
		margin: 0;
		display: none;
	}
}

@media screen and (max-width: 768px) {
	.navmenu_align.mainNavigation{
		float: right;
		width: 100%;
	}
	.navbar-header.navbar-icon{
		float: right;
		margin-right: 5px;
		margin-top: -40px;
	}
	.siteTitle.flexItem{
		float: left;
	}
	.navbar.flexContainer, .navbar-nav.flexContainer{
		display: block;
	}
	.navbar-nav > li{
		float: revert;
		width: 100%;
		height: auto;
	}
	#menu-main-navigation{
		width: 100%;
		background: #d2d2d2;
		margin-bottom: 15px;
	}
	.navbar-nav > li.menu-item a{
		display: block;
		border-bottom: 1px solid #c1c0c0;
		padding: 10px;
		background: transparent;
	}
	.navbar-nav .menu-item {
		padding: 0;
	}
	.navbar-nav > li .caret{
		position: absolute;
		right: 15px;
		top: 20px;
		width: 0;
		height: 0;
		margin-left: 2px;
		vertical-align: middle;
		border-top: 8px dashed;
		border-top: 8px solid\9;
		border-right: 8px solid transparent;
		border-left: 8px solid transparent;
	}
	.navbar-nav .sub-menu > li.menu-item a {
		padding-left: 25px;
	}
	
	.navbar-nav .sub-menu li .sub-menu > li.menu-item a {
		padding-left: 40px;
	}
	.sub-menu.open{
		display: block;
	}
	.navbar-nav  li.current-menu-item>a{
		background: #bfbfbf;
	}
	/* .navbar-nav > li.current-menu-item .sub-menu{
		display: block;
	} */
}
.single-product .woocommerce a.added_to_cart
{
	padding-left: 10px;
}
/* HOMEPAGE
------------------------------------------------------------------------------------*/


/* SHOP / Gallery
------------------------------------------------------------------------------------*/

.list_art img	{
	margin-bottom: 0;
}

.flexContainer, .flex { display: flex; flex-direction: row;flex-wrap: wrap;width: 100%;}
.flexContainer-center{
	align-items: center;
    justify-content: center;
}
.pagination{
	text-align: center;
}
.flex-col-3{ width: 25%; padding: 0 1%;}
.flex-col-4{ width: 33.3%; padding: 1%;}
.flex-col-9{ width: 75%; padding: 0 1%;}
.siteTitle.flexItem {
	margin: 0;
	min-width: 400px;
}
.mainContent ul,
.mainContent ol {
	max-width: 700px;
	margin: 0 auto 20px;
	padding-left: 20px;
	list-style: none;
}
.mainContent ul.nav-pills {
    padding-left: 0;
}
.carousel {
    position: relative;
}
#carousel-images {
	margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.detail-work .carousel-inner {
    text-align: center;
}
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel .item .image {
    height: auto !important;
    max-height: 80vh;
}
.carousel .image a {
    cursor: zoom-in;
}
.carousel .item .image img {
    max-height: 80vh;
}
.carousel .item img {
    padding-top: 0 !important;
}
.detail-work img {
    width: auto;
    max-height: 100%;
}
.detail-work .imageInfo li {
    padding-right: 7px;
    float: none;
    display: inline-block;
	vertical-align: middle;
}
.nav-pills>li {
    float: left;
	position: relative;
}
.detail-work .carousel-caption {
    padding-bottom: 0;
    color: #333;
    text-shadow: none;
	position: static;
}
.carousel-caption {
	position: absolute;
	right: 15%;
	bottom: 20px;
	left: 15%;
	z-index: 10;
	padding-top: 20px;
	padding-bottom: 20px;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 2px rgb(0 0 0 / 60%);
}
.detail-work .nav > li >a.magnify {
    width: 25px;
	background-position: -44px -16px;
}
.detail-work .nav > li > a.thumbs, .detail-work .nav > li > a.magnify {
    display: block;
    background-image: url(assets/images/prevNext.png);
    border-radius: 0;
    overflow: hidden;
    text-indent: -200px;
    height: 16px;
    background-position: -12px -16px;
    width: 14px;
    margin-top: 2px;
}
.detail-work .nav > li >a.magnify {
    background-position: -44px -80px;
	width: 25px;
}
.detail-work .imageInfo li a {
    padding: 0;
}
.carousel-control.left {
    background-image: -webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);
    background-image: -o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);
    background-image: -webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));
    background-image: linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
    background-repeat: repeat-x;
}
.carousel-control:focus, .carousel-control:hover {
    color: #fff;
    text-decoration: none;
    filter: alpha(opacity=90);
    outline: 0;
    opacity: .9;
}
.detail-work .carousel-control, .detail-post .carousel-control {
    width: 30px;
    position: absolute;
    z-index: 0;
}
a.left.carousel-control, a.right.carousel-control {
    z-index: 99999;
}
.detail-work .carousel-control.left, .detail-post .carousel-control.left {
    left: -15px;
    background-image: none;
}
.detail-work .carousel-control.right, .detail-post .carousel-control.right {
    right: -10px;
    background-image: none;
}
.detail-work .carousel-control.left svg, .detail-work .carousel-control.right svg, .detail-post .carousel-control.left svg, .detail-post .carousel-control.right svg {
    position: absolute;
    top: calc(50% - 40px);
    left: 0;
    z-index: 99999;
}
.zoom_single_work .viewport{
	min-height: 600px;
	margin-bottom: 50px;
	background: #ccc;
}
#image1{
	visibility: hidden;
}
.leaflet-control-container{
	position: absolute;
    right: 50px;
	top: 24px;
}
.zoom_single_work #mainContent .img_sec img{
	height: 0;
}
.zoom_single_work .viewport{
    height: calc(100% - 15px) !important;
	min-height: inherit;
}
.viewport .x_close{
    border: 1px solid #000;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    top: 3px;
    z-index: 9999;
    font-size: 18px;
    width: 27px;
    height: 27px;
    text-align: center;
    background: #fff;
    cursor: pointer;
}
.head_sort{
	float: right;
}
.sort_top{
	padding: 5px;
    margin-right: 10px;
}
@media (min-width: 818px) and (max-width: 1368px){
	#carousel-images {
		padding-right: 60px;
		padding-left: 60px;
	}
}
@media screen and (min-width: 768px){
	.carousel-caption {
		right: 20%;
		left: 20%;
		padding-bottom: 30px;
	}
}
@media screen and (max-width: 599px) {
	.flex-col-3,.flex-col-4,.flex-col-9, .flex-col-sm-2 {
		width: 100%;
		padding: 0;
		margin-bottom: 25px;
		text-align: center;
	}
}
@media only screen and (min-width:768px)	{
	.mainNavigation.flexItem {
		width: 350px;
		flex-grow:1;
		max-width: 70%;
		padding-right: 25px;
	}
}
@media screen and (min-width: 600px) and (max-width: 800px) {
	.flex-col-sm-2 {
		width: 50%;
		padding: 1%;
	}
}

.productDescription	{
	max-width: 750px;
	margin: 20px auto;
}

.productDescription	p {
	margin-bottom: 20px;
}



/* FONTS 
------------------------------------------------------------------------------------*/		
		@font-face{font-family: 'Slate Std Light';src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Light.eot');src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Light.eot?#iefix') format('embedded-opentype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Light.woff2') format('woff2'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Light.woff') format('woff'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Light.ttf') format('truetype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Light.svg#SlateStd-Light') format('svg');font-weight: 300;font-style: normal}
/* Slate Std */
@font-face{font-family: 'Slate Std';src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd.eot');src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd.eot?#iefix') format('embedded-opentype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd.woff2') format('woff2'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd.woff') format('woff'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd.ttf') format('truetype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd.svg#SlateStd') format('svg');font-weight: normal;font-style: normal}
/* Slate Std Book */
@font-face{font-family: 'Slate Std Bk';src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Bk.eot');src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Bk.eot?#iefix') format('embedded-opentype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Bk.woff2') format('woff2'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Bk.woff') format('woff'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Bk.ttf') format('truetype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-Bk.svg#SlateStd-Bk') format('svg');font-weight: normal;font-style: normal}
/* Slate Std Light Italic */
@font-face{font-family: 'Slate Std Light Italic';src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd-LightItalic.eot');src: url('/wp-content/themes/hwd/fonts/Slate/SlateStd-LightItalic.eot?#iefix') format('embedded-opentype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-LightItalic.woff2') format('woff2'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-LightItalic.woff') format('woff'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-LightItalic.ttf') format('truetype'),
		url('/wp-content/themes/hwd/fonts/Slate/SlateStd-LightItalic.svg#SlateStd-LightItalic') format('svg');font-weight: 300;font-style: italic}
		
form.search{ margin-left: 40%;	} /* properly centered would be better */
.search-field{height: 38px;}
.search-sub{width: 14%; height: 40px;}
@media only screen and (max-width: 600px) {
  form.search { margin-left: 15%; }
  .search-sub{ width: 24%; height: 40px; }
}
@media only screen and (max-width: 920px) {
	.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    width: 35.05% !important;
    margin-left: 3% !important;
	}
	.woocommerce nav.woocommerce-pagination ul{ width: 17% !important;}
}
@media only screen and (max-width: 620px) {
	.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    width: 75% !important;
	}
	.woocommerce nav.woocommerce-pagination ul{ width: 30% !important;}
}

.search-results form.search {
	display: none;
}

.search-results img	{
	max-height: 70vh;
	width: auto;
}