/*
Theme Name: Chana Helen
Theme URL: www.chanahelen.com
Description: Custom theme for this site. Child theme of RichWP Showcase
Author: Naomi Rosenberg
Template: showcase
Version: 1.0.0
Text Domain: chanahelen
*/ 


#featured_image {                                                           
         float: left;                                                        
         padding: 0 2em 2em 0;                                             
 } 
.attachment.display_item  .tags a {
    background-color: #ddd;
    border: none;
    color: black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 16px;
  }

.alm-masonry {
    width: 1500px;
    margin: auto;
}


@media only screen and (max-width: 1500px) {
  .alm-masonry {
      width: 1000px;
      margin: auto;
  } 
}

@media only screen and (max-width: 1000px) {
  .alm-masonry {
      width: 500px;
      margin: auto;
  } 
}


@media only screen and (max-width: 500px) {
    .alm-masonry {
        width: 100%;
        margin: auto;
    } 
  }
  

.attachment.display_item {
    width: 500px;
}

@media only screen and (max-width: 500px) {
    .attachment.display_item {
        width: 100%;
    } 
  }

.attachment.display_item .display_inner {
    width: 470px;
    margin: 0 auto;
}


@media only screen and (max-width: 500px) {
    .attachment.display_item .display_inner  {
        width: 100%;
    } 
  }


.attachment.display_item .display_inner img {
    margin: 0 auto;
}

.attachment.display_item .display_info {
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid lightgray;
    border-top: none;
    line-height: 15px;
    font-size: 16px;
}

.media_size {
    line-height: 20px;
}

.attachment.display_item .title{
    font-weight: bold;

}

.attachment.display_item img {
    width: 100%;
    border: 1px solid lightgray;
}

.attachment.display_item p.tags {
  margin-bottom: 0;
}





@media only screen and (max-width: 767px) {
    .bg {
        padding: 1em !important;
    }
}

.wp-block-gallery.is-cropped .blocks-gallery-item img {
	height: auto;
}



.container_16 .grid_10 {
    width: inherit;
}

#subpage-buttons form {
	display: inline-block;
	margin-right: 2em;
}

input.subpage-button {
    padding: 1.5em 3em;
	display: inline-block;
}

.metaslider .caption-wrap {
	width: 100% !important;
}

.metaslider .caption {
	text-align: center !important;
}
.fb_iframe_widget{
    position: absolute !important;
    right: 40px;
    top: 40px;
}


@media only screen and (max-width : 768px)  {

.fb_iframe_widget{
	display: none !important;
}
.home .fb_iframe_widget{
	display: block !important;
}
}

.shared-counts-wrap{
	display: none;
}

.home .shared-counts-wrap{
	display: block;
}

.home .fb_iframe_widget {
left: 85px;

top: 17px;
}

/* Wordpress gallery */
.wp-block-gallery .blocks-gallery-item {
	margin-right: 5px !important;
	margin-bottom: 3%;
	margin-top: 1%;
}

.wp-block-gallery .blocks-gallery-item figure{
	flex-direction: column;
}

.wp-block-gallery .blocks-gallery-item figure a {
	
	background: lightgray;
	padding: 5px;
	margin-bottom: 5px;

}

.wp-block-gallery .blocks-gallery-item figcaption {
	color: black;
	line-height: 20px !important;
	padding: 0;
	background:whitesmoke;
	box-sizing: border-box;
	position:relative;
	margin-top: 5px;
}

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

/* small screens show same amount of images regardless of column setting */
@media only screen and (min-width : 768px) and (max-width: 978px) {
	.wp-block-gallery .blocks-gallery-item {
		flex: 0 0 calc((100% - 25px * 2)/ 3);
	}
}

@media only screen and (max-width : 768px) {
	.wp-block-gallery .blocks-gallery-item {
		flex: 0 0 calc((100% - 40px)/ 2);
	}
}


/* Bigger screens show 6, 5 or 4 depending on column setting */
@media only screen and (min-width : 978px) {
	.wp-block-gallery.columns-6 .blocks-gallery-item {
		flex: 0 0 calc((100% - 19px * 5)/ 6);
	}
}

@media only screen and (min-width : 978px) {
	.wp-block-gallery.columns-5 .blocks-gallery-item {
		flex: 0 0 calc((100% - 19px * 4)/ 5);
	}
}

@media only screen and (min-width : 978px) {
	.wp-block-gallery.columns-4 .blocks-gallery-item {
		flex: 0 0 calc((100% - 20px * 3)/ 4);
	}
}


#exhibition{
	text-align: center;
	clear:both;
}

#exhibition h1 {
	color: #006892;
	font-size:2.8em;
	font-weight: bold;
	line-height:1.1em;
}


#exhibition h2, .attachment h2 {
	font-weight: bold;
	color: #86865F;
	font-size: 2em;
	margin: 0.7em 0 0.7em 0;
}

.attachment #content {
	text-align: center;
}

#exhibition a {
	color: #006892;
    padding-left: 1em;
    padding-right: 1em;
    text-decoration: underline;
    font-size: 1.4em;
		margin-bottom: 10px;
	display: inline-block;
}
#exhibition a:hover {
	color: #F8640A;
}

#access .sf-menu li li a:hover {
    background: #96966F;
}

@media only screen and (min-width: 660px) {
  .soliloquy-outer-container {
	min-height: 600px;
  }
}

.wp-block-soliloquy-soliloquywp {
	position: relative;
}

.home .wp-block-soliloquy-soliloquywp {
    top:15px;
}
/* for some reason, this has a max-height of 300 hard coded in the html! wff */
.soliloquy-container {
	max-height: inherit !important;
}

.soliloquy-viewport {
	height: auto !important;
}

.soliloquy-container 
.soliloquy-controls-direction
.soliloquy-prev{
	width:100px;
	height:100px;
	margin-top: -50px;
	background: url(/wp-content/uploads/2018/10/left.png) no-repeat scroll 50% 50%;
}

.soliloquy-container
.soliloquy-controls-direction
.soliloquy-next{
	width:100px;
	height:100px;
	margin-top: -50px;
	background: url(/wp-content/uploads/2018/10/right.png) no-repeat scroll 50% 50%;
}

/* Stop dropdown from vanishing while still hovered due to a bug making the javascript-controlled 
"sfHover" class disappear too soon */
#access .sf-menu li:hover ul,#access .sf-menu li.sfHover ul  {
    visibility: inherit !important;
    display: inherit !important;
}

/* Youtube embeds */
    .youtube-player {
        position: relative;
        padding-bottom: 37%;
        height: 0;
        overflow: hidden;
        width: 70%;
        background: #000;
        margin: 5px;
    }

@media screen and (max-width:1024px) {
	.youtube-player {
		width: 100%;
	}
}
    
    .youtube-player iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 100;
        background: transparent;
    }
    
    .youtube-player img {
        bottom: 0;
        display: block;
        left: 0;
        margin: auto;
        max-width: 100%;
        width: 100%;
        position: absolute;
        right: 0;
        top: 0;
        border: none;
        height: auto;
        cursor: pointer;
        -webkit-transition: .4s all;
        -moz-transition: .4s all;
        transition: .4s all;
    }
    
    .youtube-player img:hover {
        -webkit-filter: brightness(75%);
    }
    
    .youtube-player .play {
        height: 72px;
        width: 72px;
        left: 50%;
        top: 50%;
        margin-left: -36px;
        margin-top: -36px;
        position: absolute;
        background: url("https://i.imgur.com/TxzC70f.png") no-repeat;
        cursor: pointer;
    }

/* Main menu spacing */
#access .sf-menu a {
    padding: 10px 30px 20px 30px;
}

@media screen and (max-width: 1024px) {
    #access .sf-menu a {
        padding-right:25px;
        padding-left: 25px;
    }
}

#access .sf-menu li:first-child a {
    padding-left: 10px;
}
#access .sf-menu li:last-child a {
    padding-right: 10px;
}

form.wpcf7-form p {
 clear:both; 
}

ul.wp-block-gallery {
 clear:both;
}
