/*
 * Name: WordPress Jetpack Plugin Tweaks
 * Author:       David Madison
 * Author URI:   http://www.partsnotincluded.com
 * Version:      1.0.0
 *
 * this file is part of the PNI Tweaks Plugin
 */

/* Remove border and rounded corners on slideshow */
.jetpack-slideshow.slideshow-window {
	border: 0;
	border-radius: 0;
	background-color: white;
	padding-bottom: 63.4% !important; /* 3:2 */
}

/* Reposition image comments to the bottom-right corner
 * Hide slideshow caption, show on hover.
 * Change font to match website
 */
.jetpack-slideshow .slideshow-slide-caption {
	top: 1em;
	opacity: 0;
	font-family: inherit;
	color: #fff;
	text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.85);
	transition: all 200ms ease;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	padding: 0.25rem 1rem;
	border-radius: 20px;
}

/* Add background color to slideshow caption, BUT only if it has content */
.jetpack-slideshow .slideshow-slide-caption:not(:empty) {
	background-color: rgba(0,0,0,0.6);
}

.jetpack-slideshow:hover .slideshow-slide-caption {
	opacity: 1;
}

/* Hide slideshow controls when not hovered */
.jetpack-slideshow .slideshow-controls {
	opacity: 0;
}

/* Move slideshow controls to bottom of window */
.jetpack-slideshow .slideshow-controls {
	bottom: 0;
}

/* Hide Jetpack carousel lightbox comments and comment form */
div.jp-carousel-buttons a.jp-carousel-commentlink, 
#jp-carousel-comment-form,
#jp-carousel-comments-loading {
	display: none !important;
}

.jp-carousel-buttons {
	padding: 0 !important;
}
