/* 
 Theme Name:     Poulin Antiques and Auctions, Inc
 Author:         Kyrie Tompkins-Overlock / TOCmedia
 Author URI:     http://toc-media.com
 Template:       Divi
 Version:        1.0.0
 Description:   
 Wordpress Version: 4.9.2
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 

/* styles from chris */

.cls-whiteborder {
	border: 2px outset white;
	background-color: black;
}




/*Alternating blog layout*/

/*Set the effect for screen sizes 980px and larger*/
@media only screen and (min-width: 980px) {
    .ds-alternating-blog .et_pb_post {
    /* background-color: #fff; */
    margin-top: 0;
    margin-bottom: 0;
    padding: 30px;
}

/*Add some hidden content to clear the floats and make our posts site on their own row*/
.ds-alternating-blog .et_pb_post:after {
   content: "."; 
   visibility: hidden; 
   display: block; 
   height: 0; 
   clear: both;
}

.ds-alternating-blog .et_pb_post h2 {
    margin-top: 0;
}

/*This sets the odd post images to the left*/
.ds-alternating-blog .et_pb_post:nth-child(odd) img {
    float: left !important;
    overflow: hidden;
    width: calc(50% + 60px);
    height: auto;
    padding-right: 30px;
    margin: -0px 0 -0px -0px;
}

/*This sets the even post images to the right*/
.ds-alternating-blog .et_pb_post:nth-child(even) img {
    float: right;
    overflow: hidden;
    width: calc(50% + 60px);
    height: auto;
    padding-left: 30px;
    margin: -0px -0px -0px 0;
}

/*This sets the background color of the image ready for the hover effect*/
/*
	.ds-alternating-blog .et_pb_post img {  
    background:rgba(255,255,255,.75);
    opacity:1;
    -webkit-transition: opacity .25s ease;
    -moz-transition: opacity .25s ease;
    transition: opacity .25s ease;
}
*/

/*This gives us the image opacity on hover*/
.ds-alternating-blog .et_pb_post img:hover {
    opacity: .5;
}     

/*This aligns the post text to the right on even posts*/    
.ds-alternating-blog .et_pb_post:nth-child(even) {
    text-align: right;
}
    
/*This sets the position of read more button on odd posts*/
.ds-alternating-blog .et_pb_post:nth-child(odd) a.more-link {
    display: block;
    clear: none;
    margin-left: calc(50% + 60px); 
}

/*This sets the position of read more button on even posts*/
.ds-alternating-blog .et_pb_post:nth-child(even) a.more-link {
    display: block;
    clear: none;
    margin-left: calc(50% - 210px);
    }
}

/*This styles the read more button*/
.ds-alternating-blog a.more-link {
    border: 1px solid #000;
    width: 150px;
    color: #000;
    margin-top: 20px;
    padding: 10px;
    text-align: center;
}

/*This styles the readmore button on hover*/
.ds-alternating-blog a.more-link:hover {
    border: 1px solid #000;
    color: #fff !important;
    background: #000;
}

/*This changes the layout to stack posts on smaller screens*/
@media only screen and (max-width: 979px) {
    .ds-alternating-blog .et_pb_post {
    margin-bottom: 0;
}
   .ds-alternating-blog .et_pb_post a img {
    min-width: 100%;
}
    .ds-alternating-blog .et_pb_post .entry-featured-image-url {
    margin: -30px -30px 30px -30px;
}
    .ds-alternating-blog .et_pb_post {
        padding: 30px;
    }
}

/*This fixes a small margin issue with the post meta on small screens*/
@media only screen and (max-width: 479px) {
    .ds-alternating-blog .et_pb_post .post-meta {
    margin-top: 10px;
    }
}



/* Universal Styles */

@media all and (min-width: 981px) {

    .flex-row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    big {
        font-size: 400%;
    }

    small {
        font-size: 50%;
    }
    
}

.entry-content table, 
body.et-pb-preview #main-content .container table,
.entry-content tr td, 
body.et-pb-preview #main-content .container tr td {
    border: 0;
}

.et_pb_widget {
	width: 100%;
}


/* Header Styles */

#main-header {
    background-image:url('images/header-bg.jpg');
    background-size: contain;
	border-bottom: 2px solid #d3ae06;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

/*
 * .home #main-header {
    border: 2px !important;
}
*/

.top-widget-1,
.top-widget-2 {
    display: none;
}

@media all and (min-width: 981px) {
    
    /* Above Nav */

	.et_header_style_left .logo_container,
    .top-widget-1,
    .top-widget-2 {
        display: block;
    	position: relative;
        width: 30% !important;
        height: auto !important;
        color: #fff;
	}

	.logo_container  img#logo {
    	max-height: 80px !important;
		max-width: 100% !important;
	}
    
    .top-widget-1 {
        text-align: center;
        font-size: 22px;
		font-weight: 700;
		text-transform: uppercase;
    }
    
    .top-widget-1 .widget-title {
        color: #fff;
        text-transform: uppercase;
    }
    
    .top-widget-1 a {
        color: #d3ae06;
    }
    
    .top-widget-2 {
        text-align: right;
    }
    
    /* Header Right Menu */
    
    .top-widget-2 .menu li {
        display: inline-block;
        margin: 0 0 0 10px;
    }
    
    .top-widget-2 .menu li a {
        color: #fff;
        text-transform: uppercase;
        font-size: 12px;
        -webkit-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
    }

    .top-widget-2 .menu li a:hover,
    .top-widget-2 .menu li a:focus,
    .top-widget-2 .menu li a:active {
       opacity: .8;
    }
    
    .top-widget-2 div:nth-child(3n) {
        margin: 20px 0 -50px 0;
    }
    
    /* Search Form */
    
    .searchform input[type="text"] {
        font-size: 16px;
        padding: 10px;
        border: 0;
        width: 80%;
        opacity: .8;
        -webkit-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
    }
    
    .searchform input[type="text"]:hover,
    .searchform input[type="text"]:focus,
    .searchform input[type="text"]:active {
        opacity: 1;
    }
    
    .searchform input[type="submit"] {
        display: none;
    }
    
    /* Navigation */

	div#et-top-navigation {
        width: 100% !important;
        max-width: 93% !important;
        text-align: left !important;
        padding: 20px 0 0 0 !important;
        margin: 0 auto !important;
        float: none !important;
    }

	.et_header_style_left #et-top-navigation nav>ul>li>a, 
    .et_header_style_split #et-top-navigation nav>ul>li>a {
    	padding: 0 0 15px !important;
	}
    
    #top-menu .menu-item-has-children > a:first-child:after, #et-secondary-nav .menu-item-has-children > a:first-child:after {
        display: none;
    }
}

#top-menu li.current-menu-item > a {
    color: #d3ae06;
}

/* Body Styles */

.box-header h2 {
    font-size: 36px;
	text-transform: uppercase;
}

.box {
	overflow: hidden;
}

.box h1,
.box h2,
.box h3,
.box h4,
.box h5,
.box h6 {
	color: #000
}

.box big {
	font-size: 30px;
}

.news-box .et_pb_post {
	clear: both;
	margin-bottom: 10px;
}

.news-box .et_pb_post:last-of-type {
	margin-bottom: 0;
}

.box a,
.box .special,
.news-box .et_pb_post a.more-link {
	display: inline-block;
	padding: 15px;
	color: #fff !important;
	border: 1px solid !important;
	background-image:url('../../uploads/2018/02/button-bg.png');
	background-color: #12192a;
	font-size: 20px;
	line-height: 1;
	text-transform: uppercase;
	font-weight: 700; 
}

.box .special {
	display: block;
	text-align: center;
	font-size: 14px;
	padding: 5px;
}

.box-full-width a {
	display: block;
	text-align: center;
}


.box img,
.news-box img {
	border: 3px solid #d3ae06;
	max-width: 150px !important;
}


.news-box .et_pb_post .entry-featured-image-url {
	float: left;
	margin: 0 15px 0 0
}

.news-box .et_pb_post:nth-child(even) .entry-featured-image-url {
	float: right;
	margin: 0 0 0 15px;
}

.sidebar-main,
.single-post #sidebar {
	background-image:url('../../uploads/2018/02/button-bg.png');
	background-size: cover;
    border: 5px solid #d3ae06;
    padding: 0 0 20px 0;
    margin: 2.8% 0;
}

.single-post #sidebar {
	margin: 0;
}

.sidebar-main .et_pb_module,
.single-post #sidebar .et_pb_module {
    border-bottom: 5px solid #d3ae06;
}

.single-post #sidebar .et_pb_module {
	padding-top: 20px;
}

.single-post #sidebar .et_pb_module:first-of-type {
	padding-top: 0;
}

.sidebar-main .et_pb_module:last-of-type,
.single-post #sidebar .et_pb_module:last-of-type {
    border-bottom: 0;
}

/* Blog Styles */

.blog-section .et_pb_post .entry-featured-image-url {
    max-width: 300px;
    float: left;
    margin: 0 20px 0 0;
	border: 3px solid #d3ae06;
}

.blog-section .et_pb_post:nth-child(even) .entry-featured-image-url {
    float: right;
    margin: 0 0 0 20px
}

.blog-section .et_pb_posts a.more-link {
    clear: none;
}

.single-post #main-content {
    background: #BBB8B7!important;
}

.single-post #main-content .container {
    width: 94%;
    max-width: 94%;
    padding: 30px 0 !important;
}

.container:before { background-color:transparent !important; }
.et_pb_widget_area_right { border-left:0 !important; }
.et_pb_widget_area_left { border-right:0 !important; }

.single-post #left-area {
    padding: 30px;
    background-color: #d8d6d6;
    box-shadow: 6px 6px 18px 0px rgba(0,0,0,0.3);
}

@media all and (min-width: 981px) {
	
	.single-post #left-area {
		width: 74.25% !important;
    	margin-right: 3%;
	}
	
}

/* Footer Styles */

#main-footer {
	border-top: 2px solid #d3ae06;
    background-image:url('images/footer-bg.jpg');
    background-size: cover;
}

#footer-widgets {
    padding: 30px 0;
}

div#footer-bottom {
    display: none;
}

@media all and (min-width: 981px) {
    
    #main-footer {
        background-size: contain;
    }
    
    #main-footer .container {
        width: 100% !important;
        max-width: 93% !important;
    }

    .et_pb_gutters3 .footer-widget {
        margin: 0 5.5% 1% 0;
    }

}
    
#main-footer .footer-widget h4.title {
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid;
} 

#main-footer .tribe-events-list-widget .tribe-event-title {
    display: inline;
    margin: 0;
    padding: 0;
}

#main-footer .tribe-event-duration {
    display: inline;
}

#main-footer .tribe-event-duration:before {
    content: '-';
}

/* Misc Responsive */

@media (max-width: 600px) {

    .et_pb_section .et_pb_row, .et_pb_section.et_section_specialty .et_pb_row {
        width: 100% !important;
        max-width: 100%;
    }

    .et_pb_column .et_pb_row_inner_0 {
        margin: 0 auto !important;
    }
	
	h1,
	.box-header h2 {
		font-size: 30px !important;
	}

}