#gallery {
	text-align: center;
	width: 100%;
	margin: 0px;
	padding: 0px;
}

.box {
	box-sizing: padding-box;
	width: 22%;
	float: left;
	border: 1px solid #afafaf;
	margin: 10px;
	box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5), 1px 1px 10px 1px rgba(0, 0, 0, 0.3);
	opacity: 0.7;
}

.box img {
	width: 100%;
	margin: 0;
	padding: 0;
	object-fit: cover;
}

#gallery .caption {
	padding: 0;
	margin: 0;
	font-size: 20px;
	font-weight: bold;
}

#gallery .box:hover {
	opacity: 1;
	transition: transform 0.5s ease-in-out;
	z-index: 999999;
	transform: scale(1.05);
}

.tx-fotoarchiv #gallery .box .caption p {
	display: none;
}

#lbt_previous {
	position: absolute;
	background: #fff;
	left: 0;
	width: 50px;
	height: 50px;
	padding: 0 12px;
	margin-left: 20px;
	line-height: 1;
}

#lbt_next {
	position: absolute;
	background: #fff;
	right: 0;
	width: 50px;
	height: 50px;
	padding: 0 12px;
	margin-right: 20px;
	line-height: 1;
}

#lbt_next::after {
	content: ">";
	color: #000;
	font-weight: 300;
}

#lbt_previous::after {
	content: "<";
	color: #000;
	font-weight: 300;
}

#lbt_previous i,
#lbt_next i {
	display: inline-block
}

p#lbt-lightbox-caption {
	background: rgb(255, 255, 255, 0.9);
	color: #000;
	font-size: 14px;
	padding: 10px;
	text-shadow: unset;
	height: 120px !important;
	min-height: 120px;
}

.box {
	width: auto;
	float: unset;
	border: 1px solid #afafaf;
	margin: 0 0 20px 0;
	box-shadow: 1px 1px 10px 1px rgba(0, 0, 0, 0.5), 1px 1px 10px 1px rgba(0, 0, 0, 0.3);
	opacity: 1;
}

.box img {
    width: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    height: auto;
    aspect-ratio: 1 / 1;
}

.lbt-image-wrapper #lbt-lightbox-media img {
	top: calc(50% - 140px) !important;
}

.lt-thumbnail-wrapper {
	background: unset;
}

.lt-thumbnail-wrapper ul a#lbt-close_lightbox svg {
	color: #fff;
	width: 50px;
	height: 50px;
}

.hidesort{
	display:none;
}

.d-none{
	display:none;
}

.sortbuttons{
	text-align:left;
}

.sortCreated, .sortAdded{
	display:inline-block;
	width:300px;
	margin-right:20px;
	background:#eeeeee;
	border: 1px solid #bbbbbb;
	padding:10px;
	margin-bottom:20px;
	text-align:center;
}

.sortCreated.active, .sortAdded.active{
	background:#dddddd;
}

@media (max-width: 767px) {
	.box img {
		height: 150px;
	}
}