/*--------------------------------------------------------------
16.0 Gallery
--------------------------------------------------------------*/

.bypostauthor {
	position: static;
}
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;

	img {

		&[class*="wp-image-"] {
			display: block;
			margin: 0 auto;
		}
	}

	.wp-caption-text {
		text-align: center;
		margin: 0.8075em 0;
	}
}

.gallery-icon img {
	margin: 0 auto;
}

.gallery-caption {
	position: absolute;
	bottom: 7px;
	left: 7px;
	right: 7px;
	padding: 15px;
	background-color: rgba(0,0,0,0.6);
	font-family: "Noto Sans", sans-serif;
	font-size: 12px;
	color: $white-color;
	line-height: 1.5;
	opacity: 0;
}

.gallery {
	margin: -7px -7px 20px -7px;

	&::after {
		display: table;
		content: "";
		clear: both;	
	}
}

.gallery-item {
	position: relative;
	float: left;
	margin: 0;
	padding: 0.5em;
	overflow: hidden;

	img {
		width: 100%;
	}

	&:hover {

		.gallery-caption {
			opacity: 1;
		}
	}
}

.gallery-columns-1 .gallery-item {
    width: 100%;
    float: none;
}

.gallery-columns-2 .gallery-item {
    width: 50%
}

.gallery-columns-3 .gallery-item {
    width: 33.3333%
}

.gallery-columns-4 .gallery-item {
    width: 25%
}

.gallery-columns-5 .gallery-item {
    width: 20%
}

.gallery-columns-6 .gallery-item {
    width: 16.6667%
}

.gallery-columns-7 .gallery-item {
    width: 14.2857%
}

.gallery-columns-8 .gallery-item {
    width: 12.5%
}

.gallery-columns-9 .gallery-item {
    width: 11.1111%
}

.gallery-columns-2 .gallery-item:nth-child(2n+1),
.gallery-columns-3 .gallery-item:nth-child(3n+1),
.gallery-columns-4 .gallery-item:nth-child(4n+1),
.gallery-columns-5 .gallery-item:nth-child(5n+1),
.gallery-columns-6 .gallery-item:nth-child(6n+1),
.gallery-columns-7 .gallery-item:nth-child(7n+1),
.gallery-columns-8 .gallery-item:nth-child(8n+1),
.gallery-columns-9 .gallery-item:nth-child(9n+1) {
	clear: left;
}