/* Makes captions center under image and follow image width. Doesn't work in older browsers */
div.dd-left, div.dd-right { /* add this class to a div wrap */
	text-align: center;
}
.dd-border { /* Adds a border to image/caption box if you want. Add class to the div */
	padding: 10px;
}
/* puts a 3px border around floating image or image within floating object, also controls if you add a border to the sidebar */
.dd-left img, img.dd-left, .dd-right img, img.dd-right,.dd-img-fluid, .dd-img-fluid.dd-lightbox img, .dd-border { 
	/* border: 3px solid #9c9c9c;  */
	/* sets a border and border color around the main images */
	padding: 0 !important;
}
.dd-img-fluid.dd-lightbox {
	border: none;
	width: 100%;
}
/* adds a line break after an image inside a floating container */
.dd-left img, .dd-right img {
	display: block;
	margin: 0 0 5px 0;
}
/* Image caption text */
.dd-left p, .dd-right p {
	margin: 2px 0 15px;
	font-size:90%; /* set the font size of caption */
}
/* Related articles styles */
.dd-articles {	/* add the dd-articles class to the div wrapper */
	padding: 10px;
	background-color: #e4f3fd; /* set the background color for related articles section*/
	border:1px solid #ccc; /* sets a border and border color around related articles section */
}
.dd-article { /* add the dd-article class to each article */
	overflow: hidden;
	padding: 5px 0 0;
}
.dd-article img { /* any image in the article wrapper will get this applied automatically */
	overflow: hidden;
	border: 1px solid #ccc; /* sets a border and border color around the images in the related articles area */
}
.dd-article .dd-title { /* add the title class to object to make it bold and have line break after */
	font-weight: bold;
	display: block;
}
.dd-article p { /* makes text align at top with image */
	padding: 5px 0 0 0;
	margin-top: 0;
}
/* styles used on all areas */
.dd-left { /* add dd-left class to an object to float it left */
	float: left;
	margin: 5px 10px 5px 0;
}
.dd-right { /* add dd-right class to an object to float it right */
	float: right;
	margin: 5px 0 5px 10px;
}
img.dd-no-border { /* add no-border to an image and it will loose its border */
	border: none;
}
.dd-img-fluid img,.dd-img-fluid{ /*stretching image to the full width of the parent block*/
	max-width: none;
	width: calc(100% - 6px);
	margin-bottom: 10px;
}
a.dd-lightbox {
	display: inline-block;
	outline: none;
}

img {
	max-width: 100%; /*responsive image styles*/
}

div.dd-left, div.dd-right,.dd-left img, img.dd-left, .dd-right img, img.dd-right,.dd-lightbox.dd-right img, .dd-border{ /* add this class to a div wrap */
	width: calc(100% - 6px); /*sets image with border width*/
}

.dd-article .dd-left,.dd-article .dd-right {
	width: 100%; 
	max-width: 200px; /*sets article image parent width*/
}

.dd-article .dd-left {
	margin-right: 10px;
}

.dd-article .dd-right {
	margin-left: 10px;
}

.dd-article .dd-left img,.dd-article .dd-right img{
	width: calc(100% - 2px); /*sets width to the article image with border*/
}

.dd-left,.dd-right  { /* add dd-left class to an object to float it left */
	margin: 5px 0;
}

.dd-lightbox.dd-right,.wistia_embed.dd-left, .wistia_embed.dd-right {
	width: 100%;
}

.wistia_embed > .wistia_click_to_play {
	width: 100% !important;
	height: auto !important;
}

.wistia_responsive_padding {
	margin: 0 0 20px;
}

.wistia_embed button,
.wistia_popover_embed button {
	/*white-space: normal !important;*/
	min-height: auto !important;
	min-width: auto !important;
}

.wistia_embed button:before,
.wistia_embed button:after,
.wistia_popover_embed button:before,
.wistia_popover_embed button:after {
	display: none !important;
}

.wistia_placebo_close_button {
	font-family: Arial !important;
	outline: none !important;
	border-radius: 50% !important;
	width: 24px !important;
    height: 24px !important;
    margin-left: -8px !important;
    min-width: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.wistia_placebo_close_button:active,
.wistia_placebo_close_button:focus {
	background: rgba(0,0,0,0.5) !important;
}

.wistia_placebo_close_button:before {
	content: "+" !important;
	transform: rotate(45deg) !important;
	display: block !important;
	width: 24px !important;
	height: 24px !important;
	color: #ffffff !important;
	font-size: 32px !important;
	line-height: 24px !important;
	border: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    position: relative !important;
    background: none !important;
}

.wistia_placebo_close_button img {
	display: none !important;
}

#dear_doctor_video_widget_video_container img {
	padding: 0 !important;
}

/*Custom fancybox styles*/
a.dd-lightbox {
	position: relative;
}

a.dd-lightbox span { /*styles for icon*/
	top: -8px;
	right: -2px;
	width: 28px;
	height: 28px;
	position: absolute;
	z-index: 5;
	display: block;
	border-radius: 50%;
    border: 2px solid #9c9c9c;
    background-color: white;
    box-shadow: 0px 3px 5px 0px rgba(156,156,156, 0.5);
    font-family: Arial;
}

a.dd-lightbox span:before { /*styles for icon*/
	content: "+";
	color: #9c9c9c;
	font-size: 24px;
	display: block;
	width: 100%;
	height: 100%;
	line-height: 24px;
	text-align: center;
	font-family: Arial;
}


/*styles for 768px+ resolution*/
@media screen and (min-width:650px) {
	div.dd-left, div.dd-right {
		width: 32.5%; /* sets the responsive width of the container for an image with a caption */
	}

	.dd-left img, img.dd-left, .dd-right img, img.dd-right, .wistia_embed.dd-left, .wistia_embed.dd-right, .dd-border {
		width: 56.5%; /* sets the responsive width of the container for an image*/
	}

	.dd-lightbox.dd-right {
		width: calc(56.5% + 6px); /* sets the responsive width of the container for an image including border*/
	}

	ul .dd-left img, ul img.dd-left, ul .dd-right img, ul img.dd-right {
		width:calc((100% + 40px)/1.7699115); /* sets the responsive width of the container for an image uncluding list padding*/
	}

	.dd-article .dd-left,.dd-article .dd-right { /* any image in the article wrapper will get this applied automatically */
		width: 25%; /* sets the responsive width of the article image*/
	}

	.dd-left {
		margin-right: 10px;
	}

	.dd-right {
		margin-left: 10px;
	}

	.wistia_embed.dd-left img, .wistia_embed.dd-right img {
		width: calc(100% - 6px);
	}
}

@media screen and (max-width:649px) {
	.dd-lightbox.dd-left,.dd-lightbox.dd-right,.dd-lightbox.dd-img-fluid {
		pointer-events: none;
	}

	.dd-lightbox.dd-left span,.dd-lightbox.dd-right span,.dd-lightbox.dd-img-fluid span {
		display: none;
	}
}

@media screen and (max-width:644px) {
	ul .dd-left img, ul img.dd-left, ul .dd-right img, ul img.dd-right {
		float: none;
		vertical-align: top;
	}
}

@media screen and (min-width:800px) {
	body.compensate-for-scrollbar {
		padding-right: calc((100vw - 817px)/2); /*fixes fancybox issue*/
	}
}