/* Main container */
.rsmg-content-main-container * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
.rsmg-content-main-container a {
	text-decoration: none;
}
/* End main container */

/* Gallery */
.rsmg-content-gallery {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	margin: 0 0 1.25rem 0;
	padding: 0;
	z-index: 1;
}
.rsmg-content-gallery > li {
	padding: 0.75rem;
}
.rsmg-content-gallery .rsmg-loader-container {
	height: 200px;
	margin: 1.25rem 0;
	padding: 0;
	position: static;
	left: auto;
	top: auto;
}
.rsmg-content-main-container.rsmg-center .rsmg-content-item-container {
	margin: 0 auto;
}
.rsmg-content-item-container {
	overflow: hidden;
	box-shadow: 0 0 1.25rem 0 rgba(0,0,0,0.25);
	transition: box-shadow .2s ease;
}
.rsmg-content-item-link {
	display: block;
	position: relative;
	transition: color .2s ease;
}
.rsmg-content-item-link:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	transition: opacity .2s ease;
	z-index: 1;
}
.rsmg-content-item-thumb-container {
	position: relative;
	padding-top: 75%;
}
.rsmg-content-item-thumb-container:before {
	border-left: 3px solid;
	border-top: 3px solid;
	content: '';
	position: absolute;
	left: 2px;
	top: 2px;
	opacity: 0;
	height: 12px;
	width: 12px;
	transform: translate(6px, 6px);
	transition: .2s ease;
	z-index: 1;
}
.rsmg-content-item-thumb-container:after {
	border-right: 3px solid;
	border-bottom: 3px solid;
	content: '';
	position: absolute;
	right: 2px;
	bottom: 2px;
	opacity: 0;
	height: 12px;
	width: 12px;
	transform: translate(-6px, -6px);
	transition: .2s ease;
	z-index: 1;
}
.rsmg-content-item-thumb {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	transition: opacity .2s ease;
}
.rsmg-content-item-thumb:before {
	content: '';
	position: absolute;
	left: 2px;
	top: 2px;
	opacity: 0;
	height: 14px;
	width: 3px;
	transform: translate(6px, 0) rotate(-45deg);
	transition: .2s ease;
	z-index: 1;
}
.rsmg-content-item-thumb:after {
	content: '';
	position: absolute;
	right: 2px;
	bottom: 2px;
	opacity: 0;
	height: 14px;
	width: 3px;
	transform: translate(-6px, 0) rotate(-45deg);
	transition: .2s ease;
	z-index: 1;
}
.rsmg-content-item-thumb > img {
	object-fit: contain;
	object-position: center;
	max-width: none;
	max-height: none;
	height: 100%;
	width: 100%;
}
.rsmg-content-item-body {
	line-height: 1.5em;
	padding: 1.25rem;
	word-break: break-all;
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	transform: translate(0, -50%);
	z-index: 2;
}
.rsmg-content-item-title {
	font-size: 1.25em;
	font-weight: 700;
	margin: 0;
	line-height: 1.5em;
	overflow: hidden;
	position: relative;
	text-align: center;
	transform: translate(0, -800%);
	transition: .3s ease;
	/* We want a maximum of 2 lines of text in title */
	display: -webkit-box;
	max-height: calc(2 * 1.5em);
	max-width: 100%;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}
.rsmg-content-item-title + .rsmg-content-item-description {
	margin-top: 0.75rem;
}
.rsmg-content-item-description {
	overflow: hidden;
	position: relative;
	text-align: center;
	transform: translate(0, 800%);
	transition: .3s ease .1s;
	/* We want a maximum of 3 lines of text in description */
	display: -webkit-box;
	max-height: calc(3 * 1.5em);
	max-width: 100%;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
}

/* Gallery hover */
.rsmg-content-item-container:hover, .rsmg-content-item-container:focus {
	box-shadow: 0 0 1.5rem 0 rgba(0,0,0,0.35);
}
.rsmg-content-item-container.lightbox:hover .rsmg-content-item-thumb-container:before, .rsmg-content-item-container.lightbox:focus .rsmg-content-item-thumb-container:before, .rsmg-content-item-container.lightbox:hover .rsmg-content-item-thumb-container:after, .rsmg-content-item-container.lightbox:focus .rsmg-content-item-thumb-container:after {
	opacity: 1;
	transform: translate(0, 0);
}
.rsmg-content-item-container.lightbox:hover .rsmg-content-item-thumb:before, .rsmg-content-item-container.lightbox:focus .rsmg-content-item-thumb:before, .rsmg-content-item-container.lightbox:hover .rsmg-content-item-thumb:after, .rsmg-content-item-container.lightbox:focus .rsmg-content-item-thumb:after {
	opacity: 1;
}
.rsmg-content-item-container:hover .rsmg-content-item-link:before, .rsmg-content-item-container:focus .rsmg-content-item-link:before {
	opacity: 0.5;
}
.rsmg-content-item-container:hover .rsmg-content-item-title, .rsmg-content-item-container:focus .rsmg-content-item-title {
	transform: translate(0, 0);
}
.rsmg-content-item-container:hover .rsmg-content-item-description, .rsmg-content-item-container:focus .rsmg-content-item-description {
	transform: translate(0, 0);
}
/* End gallery hover */

/* Gallery filters */
.rsmg-content-gallery-filters {
	list-style-type: none;
	margin: 0 0 1.25rem 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.rsmg-content-main-container.rsmg-center .rsmg-content-gallery-filters {
	justify-content: center;
}
.rsmg-content-gallery-filters > li {
	cursor: pointer;
	font-size: 1.125em;
	font-weight: 700;
	line-height: 1.25em;
	margin: 0 0 0 1.25rem;
	padding: 0.325rem 0.75rem;
	position: relative;
	transition: .2s ease;
}
.rsmg-content-gallery-filters > li:before {
	content: '';
	height: 100%;
	width: 2px;
	position: absolute;
	left: -15px;
	top: 0;
	transform-origin: bottom left;
	transform: rotate(15deg);
}
.rsmg-content-gallery-filters > li:first-of-type:before {
	content: none;
	margin: 0;
}
/* End gallery filters */
/* End gallery */

/* Item details */
.rsmg-content-item-details {
	font-size: 1.15rem;
	margin: 2.5rem auto 0 auto;
	min-height: 100px;
	position: relative;
}
.rsmg-content-item-details * {
	box-sizing: border-box;
}
.rsmg-content-item-details a {
	text-decoration: none;
}
.rsmg-content-details-container {
	box-shadow: 0 0 1.25rem 0 rgba(0,0,0,0.25);
	display: inline-block;
	position: relative;
	left: 50%;
	transform: translate(-50%, 0);
}
.mfp-close-btn-in .rsmg-content-item-details .mfp-close {
	height: 20px;
	width: 20px;
	line-height: 20px;
	margin: 0.75rem 0;
	left: 0;
	right: auto;
	top: -40px;
	text-align: left;
}
.rsmg-content-details-body {
	position: absolute;
	padding: 1.25rem;
	text-align: center;
	bottom: 0;
	left: 0;
	width: 100%;
	transform: translate(0, 100%);
	transition: transform .2s ease;
}
.rsmg-content-details-body.rsmg-show {
	transform: translate(0, 0);
}
.rsmg-content-details-close {
	position: absolute;
	right: 4px;
	top: 4px;
	height: 16px;
	width: 16px;
}
.rsmg-content-details-close:before {
	content: '';
	position: absolute;
	left: 6px;
	top: 0;
	height: 16px;
	width: 3px;
	transform: rotate(45deg);
	transition: .2s ease;
}
.rsmg-content-details-close:after {
	content: '';
	position: absolute;
	left: 6px;
	top: 0;
	height: 16px;
	width: 3px;
	transform: rotate(-45deg);
	transition: .2s ease;
}
.rsmg-content-details-image > img {
	display: block;
	position: relative;
	left: 50%;
	transform: translate(-50%, 0);
}
.rsmg-content-details-title {
	font-size: 1.25em;
	margin: 0;
}
.rsmg-content-details-title + .rsmg-content-details-description {
	margin-top: 0.75rem;
}
/* End item details */

/* Flexbox */
.rsmg-col-1 {
	width: 100%;
}
.rsmg-col-2 {
	width: calc(50% - 1px);
}
.rsmg-col-3 {
	width: calc(33.33% - 1px);
}
.rsmg-col-4 {
	width: calc(25% - 1px);
}
.rsmg-col-5 {
	width: calc(20% - 1px);
}
.rsmg-col-6 {
	width: calc(16.66% - 1px);
}
@media(max-width: 768px) {
	[class*='rsmg-col-'], [class^='rsmg-col-'] {
		width: calc(50% - 1px);
	}
}
@media(max-width: 480px) {
	[class*='rsmg-col-'], [class^='rsmg-col-'] {
		width: 100%;
	}
}
/* End flexbox */

/* Loader */
.rsmg-details-loader {
	font-size: 0;
	border-style: solid;
	border-width: 3px;
	border-color: #ffffff transparent transparent transparent;
	border-radius: 50%;
	margin: 0;
	position: absolute;
	left: 50%;
	top: 50%;
	right: auto;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 100px;
	-webkit-animation: rsmg-details-loader-spin 2s linear infinite;
	animation: rsmg-details-loader-spin 2s linear infinite;
}
.rsmg-details-loader:before {
	border-style: solid;
	border-width: 3px;
	border-color: #bbbbbb transparent transparent transparent;
	border-radius: 50%;
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 88px;
	height: 88px;
	transform: translate(-50%, -50%);
	-webkit-animation: rsmg-details-loader-spin 3s linear infinite;
	animation: rsmg-details-loader-spin 3s linear infinite;
}
.rsmg-details-loader:after {
	border-style: solid;
	border-width: 3px;
	border-color: #777777 transparent transparent transparent;
	border-radius: 50%;
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 76px;
	height: 76px;
	transform: translate(-50%, -50%);
	-webkit-animation: rsmg-details-loader-spin 1.5s linear infinite;
	animation: rsmg-details-loader-spin 1.5s linear infinite;
}

@-webkit-keyframes rsmg-details-loader-spin {
	0%   {
		-webkit-transform: translate(-50%, -50%) rotate(0deg);
		-ms-transform: translate(-50%, -50%) rotate(0deg);
		transform: translate(-50%, -50%) rotate(0deg);
	}
	100% {
		-webkit-transform: translate(-50%, -50%) rotate(360deg);
		-ms-transform: translate(-50%, -50%) rotate(360deg);
		transform: translate(-50%, -50%) rotate(360deg);
	}
}
@keyframes rsmg-details-loader-spin {
	0%   {
		-webkit-transform: translate(-50%, -50%) rotate(0deg);
		-ms-transform: translate(-50%, -50%) rotate(0deg);
		transform: translate(-50%, -50%) rotate(0deg);
	}
	100% {
		-webkit-transform: translate(-50%, -50%) rotate(360deg);
		-ms-transform: translate(-50%, -50%) rotate(360deg);
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.rsmg-content-details-container.rsmg-loading,
.rsmg-content-details-container.rsmg-loading ~ .mfp-close {
	opacity: 0;
}
/* End loader */

/* Other */
.rsmg-hidden {
	display: none;
}
/* End other */