* {
	box-sizing: border-box;
}

.gallery {
	font-family: "Roboto", Arial;
	font-size: 16px;
	display: grid;
	grid-gap: 15px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	grid-auto-rows: 15px;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 15px;
	opacity: 1;
}

a {
	text-decoration: none !important;
}

.gallery-item {
	margin-top: 10px;
	padding: 10px;
	max-width: 400px;
}

.gallery-item-inner {
	box-shadow: 0 0px 8px #bbb;
}

.gallery-item-inner:hover {
	box-shadow: 0 0px 8px #05F;
	transform: scale(1.03);
}

.gallery-image-wrapper {
	position: relative;
	padding-bottom: 0;
	overflow: hidden;
	min-height: 100px;
}

.gallery-image, .gallery-image-page-image {
	display: flex;
	overflow: hidden;
	align-items: center;
	justify-content: center;
}

.gallery-image img {
	max-width: 100%;
	width: 100%;
	height: auto;
}

.gallery-image-categories {
	display: flex;
	flex-wrap: wrap;
	position: absolute;
	top: 0;
	left: 0;
}

.gallery-image-categories, .gallery-image-page-categories {
	padding: 7px;
}

.gallery-image-category {
	background: yellow;
	color: #05f !important;
	margin: 3px 6px 3px 3px;
	padding: 4px 6px;
	font-size: 12px;
}

.gallery-image-category:hover {
	background-color: #05f;
	color: yellow !important;
}

.gallery-image-likes {
	position: absolute;
	bottom: 0;
	right: 0;
	background-color: white;
	padding-left: 4px;
	padding-right: 10px;
}

.gallery-image-likes img, .gallery-image-page-likes img {
	margin-bottom: -3px;
}

.gallery-item-footer-top-row {
	padding-left: 10px;
	font-size: 24px;
	font-weight: bold;
	background: #DDD;
}

.gallery-item-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gallery-item-delete-link {
	font-size: 12px;
	font-weight: normal;
	margin-top: 8px;
	margin-right: 10px;
}

.gallery-item-caption, .gallery-image-page-caption {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
	padding: 4px 10px;
	background: #EEE;
	font-weight: 700;
	font-size: 14px;
	color: #000;
}

.multiimg_link {
	display: inline-flex;
	vertical-align: middle;
}

.gallery-item-title a, .gallery-item-caption a {
	color: #555;
}

.gallery-image-next-prev, .gallery-item-footer-top-row, .gallery-item-footer-last-row, .gallery-item-caption, .gallery-image-page-caption {
	justify-content: space-between;
	display: flex;
}

.gallery-item-footer-last-row {
	padding: 4px 10px;
	font-size: 12px;
}

.gallery-image-page-image-footer {
	font-size: 14px;
	padding: 10px 14px 10px 10px;
	color: #3f3f3f;
	justify-content: space-between;
	display: flex;
}

.gallery-image-page-image-footer {
	margin-top: 8px;
	padding: default;
	background-color: #EEE;
	border: 1px solid #DDD;
	width: 100%;
}

.gallery-image-page-thumbnails {
	border: 1px solid #ddd;
	margin-top: 10px;
	padding-top: 5px;
}

.gallery-image-page-thumbnail-link img {
	max-width: 100px;
	max-height: 100ps;
}

.gallery-image-page-caption {
	padding: default;
	margin-top: 8px;
	border: 1px solid #DDD;
}

.gallery-image-page-caption-and-footer {
	display: inline-block;
	width: 100%;
}

.gallery-item-poster, .gallery-image-page-poster {
	margin-right: 16px;
}

.gallery-item-comments a {
	display: flex;
	align-items: center;
}

.gallery-item-date, .gallery-image-page-date {
	color: #6f6666;
}

.gallery-image-upload-form {
	text-align: center;
}

.gallery-image-upload-form div {
	margin-bottom: 10px;
}

.gallery-image-upload-form label {
	font-weight: bold;
}

.gallery-image-upload-form label:after {
	content: '\A';
        white-space: pre;
}

.gallery-image-page-main {
	text-align: center;
}

.gallery-image-page-image img {
	max-width: 100%;
}

.gallery-image-comments {
	margin-top: 40px;
	margin-bottom: 40px;
	text-align: left;
}

.gallery-image-comments img {
	max-width: 100%;
}

.add-edit-comment {
	font-weight: bold;
}

.gallery-image-comment {
	border-top: 1px solid #DDD;
	border-bottom: 1px solid #DDD;
	text-align: left;
	width: 100%;
}

.comment-actions {
	text-align: right;
	margin-bottom: 30px;
	border-bottom: 1px solid #DDD;
	background-color: #EEE;
}

.gallery-image-comment:after {
	content: '\A';
        white-space: pre;
}

.gallery-image-comment-header {
	display: inline-block;
	width: 100%;
	margin-bottom: 5px;
	background-color: #EEE;
}

.gallery-image-comment-poster {
	float: left;
}

.gallery-image-comment-date {
	float: right;
}

.gallery-overlay-text {
	position: absolute;
	padding: 10px;
	color: orange;
	font-size: 16px;
}

.gallery-image-comment-editor {
	display: inline-block;
	text-align: left;
	width: 100%;
}

.gallery-image-page-wrapper {
	display: inline-block;
	width: 623px;
	max-width: 80%;
}

select#image_categories {
	height: auto;
}

.highslide-container td {
	display: table-cell;
}

@media (max-width: 769px) {
	.gallery {
		max-width: 400px;
		grid-template-columns: repeat(auto-fill, minmax(90%, 1fr));
	}
	.gallery-item {
		margin: 10px 0 0 0;
		padding: 0;
	}
}

@media (min-width: 770px) and (max-width: 1119px) {
	.gallery {
		max-width: 95%;
	}
}

@media (min-width: 1200px) {
	.gallery {
		max-width: 1140px;
	}
}

@media (min-width: 1400px) {
	.gallery {
		max-width: 1320px;
	}
}