/* =Tiled Gallery Default Styles
-------------------------------------------------------------- */

.tiled-gallery {
	clear: both;
	margin: 0 0 20px;
	overflow: hidden;
}
.tiled-gallery img {
	margin: 2px !important; /* Ensure that this value isn't overridden by themes that give content images blanket margins */
}
.tiled-gallery .gallery-group {
	float: left;
	position: relative;
}
.tiled-gallery .tiled-gallery-item {
	float: left;
	margin: 0;
	position: relative;
	width: inherit; /* prevents ie8 bug with inline width styles */
}
.tiled-gallery .gallery-row {
	 overflow: hidden;
}
.tiled-gallery .tiled-gallery-item a { /* Needs to reset some properties for theme compatibility */
	background: transparent;
	border: none;
	color: inherit;
	margin: 0;
	padding: 0;
	text-decoration: none;
	width: auto;
}
.tiled-gallery .tiled-gallery-item img,
.tiled-gallery .tiled-gallery-item img:hover { /* Needs to reset some properties for theme compatibility */
	background: none;
	border: none;
	box-shadow: none;
	max-width: 100%;
	padding: 0;
	vertical-align: middle;
}
.tiled-gallery-caption { /* Captions */
	background: #f0f0f1;
	background: rgba( 255,255,255,0.8 );
	color: #333;
	font-size: 13px;
	font-weight: 400;
	overflow: hidden;
	padding: 10px 0;
	position: absolute;
		bottom: 0;
	text-indent: 10px;
	text-overflow: ellipsis;
	width: 100%;
	white-space: nowrap;
}
.tiled-gallery .tiled-gallery-item-small .tiled-gallery-caption { /* Smaller captions */
	font-size: 11px;
}

/* Hide galleries in widgets until they've been resized to fit.
   Gallery widgets are almost guaranteed to need resizing, and
   the jump is a little more obvious than galleries in content. */
.widget-gallery .tiled-gallery-unresized {
	visibility: hidden;
	height: 0px;
	overflow: hidden;
}

/* =Greyscale
-------------------------------------------------------------- */

.tiled-gallery .tiled-gallery-item img.grayscale {
	-webkit-filter: grayscale(1);
	-ms-filter: grayscale(1);
	-o-filter: grayscale(1);
	filter: grayscale(1);
}
.tiled-gallery .tiled-gallery-item:hover img.grayscale {
	-webkit-filter: none;
	-ms-filter: none;
	-o-filter: none;
	filter: none;
}


/* =Circles Layout
-------------------------------------------------------------- */

.tiled-gallery.type-circle .tiled-gallery-item img {
	border-radius: 50% !important; /* Ensure that circles are displayed in themes that add border-radius to all images as a default */
	object-fit: cover;
}
.tiled-gallery.type-circle .tiled-gallery-caption {
	display: none;
}


/* =Square Layout
-------------------------------------------------------------- */
.tiled-gallery.type-square .tiled-gallery-item img {
	object-fit: cover;
}
.widget_eu_cookie_law_widget {
	animation: fadeIn 800ms;
	border: none;
	bottom: 1em;
	left: 1em;
	margin: 0;
	padding: 0;
	position: fixed;
	right: 1em;
	width: auto;
	z-index: 50001;
}

@keyframes fadeIn {
	from { opacity: 0; visibility: hidden; }
	to { opacity: 1; visibility: visible; }
}

.widget_eu_cookie_law_widget.widget.top {
	bottom: auto;
	top: 1em;
}

.admin-bar .widget_eu_cookie_law_widget.widget.top {
	top: 3em;
}

amp-consent.widget_eu_cookie_law_widget.widget.top {
	top: 1em;
	margin: 0;
}

.admin-bar amp-consent.widget_eu_cookie_law_widget.widget.top {
	top: 0;
	margin-top: 3em;
}

#eu-cookie-law {
	background-color: #fff;
	border: 1px solid #dedede;
	color: #2e4467;
	font-size: 12px;
	line-height: 1.5;
	overflow: hidden;
	padding: 6px 6px 6px 15px;
	position: relative;
}

#eu-cookie-law a,
#eu-cookie-law a:active,
#eu-cookie-law a:visited {
	color: inherit;
	cursor: inherit;
	text-decoration: underline;
}

#eu-cookie-law a:hover {
	cursor: pointer;
	text-decoration: none;
}

#eu-cookie-law.negative {
	background-color: #000;
	border: none;
	color: #fff;
}

#eu-cookie-law.hide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 400ms, visibility 400ms;
}

/**
 * Using a highly-specific rule to make sure that certain form styles
 * will be reset
 */
#eu-cookie-law form {
	margin-bottom: 0;
	position: static;
}

/**
 * Using a highly-specific rule to make sure that all button styles
 * will be reset
 */
#eu-cookie-law input,
#eu-cookie-law input:hover,
#eu-cookie-law input:focus {
	background: #f3f3f3;
	border: 1px solid #dedede;
	border-radius: 4px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	color: #2e4453;
	cursor: pointer;
	display: inline;
	float: right;
	font-family: inherit;
	font-size: 14px;
	font-weight: inherit;
	line-height: inherit;
	margin: 0 0 0 5%;
	padding: 8px 12px;
	position: static;
	text-transform: none;
}

#eu-cookie-law.negative input,
#eu-cookie-law.negative input:hover,
#eu-cookie-law.negative input:focus {
	background: #282828;
	border-color: #535353;
	color: #fff;
}

@media ( max-width: 600px ) {
	#eu-cookie-law {
		padding-bottom: 55px;
	}
	#eu-cookie-law input.accept {
		bottom: 8px;
		position: absolute;
		right: 8px;
	}
}

/**
 * Tweak position of the Customizer edit button to make it more obvious this
 * is an editable widget rather than a normal accept cookies banner.
 */
.widget_eu_cookie_law_widget .customize-partial-edit-shortcut > button {
	left: 0;
}