.e5-post-gallery .layout-inner-container {
	display: flex;
	flex-grow: 1;
}

/* Layouts 5 */
.e5-post-gallery-layout-5 {
	display: flex;
	flex-direction: row;
}

.e5-post-gallery-layout-5 > .layout-inner-container {
	flex-direction: column;
}

.e5-post-gallery-layout-5 .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1) {
	flex-direction: row;
}

.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(1) {
	flex-basis: 33%;
}

.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) {
	flex-basis: 66%;
}

.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(1),
.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(2),
.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(1) {
	flex-basis: 40%;
}

.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(1),
.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1),
.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(2) {
	flex-basis: 60%;
}

/* Variations */
.e5-post-gallery-layout-5.e5-post-gallery-layout-5b,
.e5-post-gallery-layout-5.e5-post-gallery-layout-5d,
.e5-post-gallery-layout-5.e5-post-gallery-layout-5b .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1),
.e5-post-gallery-layout-5.e5-post-gallery-layout-5d .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1) {
	flex-direction: row-reverse;
}

.e5-post-gallery-layout-5.e5-post-gallery-layout-5c .layout-inner-container,
.e5-post-gallery-layout-5.e5-post-gallery-layout-5d .layout-inner-container {
	flex-direction: column-reverse;
}

/* Responsive sizes */
@media screen and (max-width: 549px) {
	.e5-post-gallery-layout-5 {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-5 > .layout-inner-container {
		flex-basis: 100%;
		min-width: 100%;
	}

	.e5-post-gallery-layout-5 > .layout-inner-container > .layout-inner-container {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-5 .e5-post-gallery-single-element {
		flex-basis: 100%;
		min-width: 100%;
	}
}

@media screen and (min-width: 550px) and (max-width: 1023px) {
	.e5-post-gallery-layout-5 {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(1),
	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) {
		flex-basis: 100%;
		min-width: 100%;
	}

	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(1),
	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(2),
	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(1),
	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(1),
	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1),
	.e5-post-gallery-layout-5 > .layout-inner-container:nth-child(2) .layout-inner-container:nth-child(1) .e5-post-gallery-single-element:nth-child(2) {
		flex-basis: 50%;
	}
}


/* Layouts 3 */
.e5-post-gallery-layout-3 {
	display: flex;
	flex-direction: row;
}

.e5-post-gallery-layout-3 .e5-post-gallery-single-element {
	flex-basis: 33%;
}


@media screen and (max-width: 549px) {
	.e5-post-gallery-layout-3 {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-3 .e5-post-gallery-single-element {
		flex-basis: 100%;
	}
}

@media screen and (min-width: 550px) and (max-width: 1023px) {
	.e5-post-gallery-layout-3 {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-3 .e5-post-gallery-single-element {
		flex-basis: 50%;
	}

	.e5-post-gallery-layout-3 .e5-post-gallery-single-element:nth-child(3) {
		flex-basis: 100%;
	}
}


/* Layouts 2 */
.e5-post-gallery-layout-2 {
	display: flex;
	flex-direction: row;
}

.e5-post-gallery-layout-2.e5-post-gallery-layout-2b {
	flex-direction: row-reverse;
}

.e5-post-gallery-layout-2 .e5-post-gallery-single-element:nth-child(1) {
	flex-basis: 40%;
}

.e5-post-gallery-layout-2 .e5-post-gallery-single-element:nth-child(2) {
	flex-basis: 60%;
}

@media screen and (max-width: 549px) {
	.e5-post-gallery-layout-2 {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-2 .e5-post-gallery-single-element {
		flex-basis: 100%;
	}
}

@media screen and (min-width: 550px) and (max-width: 1023px) {
	.e5-post-gallery-layout-2 {
		flex-wrap: wrap;
	}

	.e5-post-gallery-layout-2 .e5-post-gallery-single-element {
		flex-basis: 50%;
	}
}

/* Layouts 1 */
.e5-post-gallery-layout-1 .e5-post-gallery-single-element {
	/* max-height: 512px; */
}

/* Single Element */
.e5-post-gallery-single-element {
	flex-grow: 1;
	margin: 3px;
}

.e5-post-gallery-single-element .image-container {
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 100%;
}

.e5-post-gallery-single-element .image-container .vegan-icon {
	top: 20px;
	right: 20px;
	opacity: 0.8;
	transition: opacity 0.2s;
	z-index: 1;
	position: relative;
	text-align: right;
}

.e5-post-gallery-single-element.hover .image-container .default-image {
	opacity: 0;
}

.e5-post-gallery-single-element .detail-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	opacity: 0;
	transition: opacity 0.2s;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.e5-post-gallery-single-element .vegan-icon + .detail-container {
	position: relative;
	top: -61px;
}

.e5-post-gallery-single-element.hover .detail-container,
.e5-post-gallery-single-element.hover .vegan-icon {
	opacity: 1;
}

.e5-post-gallery-single-element .detail-container h4 {
	color: #ffffff;
	width: 100%;
	padding: 30px;
	padding-bottom: 50px;
	background: linear-gradient(180deg, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
}

.e5-post-gallery-single-element .vegan-icon + .detail-container h4 {
	padding-right: 90px;
}

.e5-post-gallery-single-element .detail-container .flex-spacer {
	flex-grow: 1;
	padding-top: 30%;
}

.e5-post-gallery-single-element.e5-post-gallery-single-image .detail-container .flex-spacer {
	padding-top: 60%;
}

.e5-post-gallery-single-element .detail-container .bottom-container {
	color: #ffffff;
	width: 100%;
	padding: 30px;
	padding-bottom: 10px;
	padding-top: 60px;
	background: linear-gradient(0deg, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.e5-post-gallery-single-element .detail-container .bottom-container p {
	color: #ffffff !important;
}

.e5-post-gallery-single-element .detail-container .label.accent {
	font-weight: 700;
	padding-bottom: 15px;
	display: block;
}


@media (hover: none) {
	.e5-post-gallery-single-element.e5-post-gallery-single-post::after {
		content: '...';
		display: block;
		color: #ffffff;
		font-size: 20px;
		font-family: 'itc-american-typewriter', serif;
		transform: translateY(-37px);
		text-align: right;
		padding-right: 20px;
		font-weight: 700;
	}
}


.e5-post-gallery-single-post .image-container.mobile {
	display: none;
}

@media screen and (max-width: 549px) {
	.e5-post-gallery-single-post .image-container {
		display: none;
	}

	.e5-post-gallery-single-post .image-container.mobile {
		display: block;
	}
}
