/* PHONES */
@media screen and (max-width: 767px) {
	.ipsApp .cGalleryAlbums_recent {
		padding: 0;
		margin-bottom: 3px;
	}

	.cGalleryAlbums_recent > ul {
		height: 134px;
	}
	html[dir="ltr"] .cGalleryAlbums_recent > ul {
		padding-left: 138px;
	}
	html[dir="rtl"] .cGalleryAlbums_recent > ul {
		padding-right: 138px;
	}

	.cGalleryAlbums_recent > ul > li:first-child,
	.cGalleryAlbums_recent > ul > li:first-child a {
		width: 134px;
		height: 134px;
	}

	.cGalleryAlbums_recent > ul > li,
	.cGalleryAlbums_recent > ul > li a {
		width: 65px;
		height: 65px;
	}

	.cGalleryAlbums_recent + ul.ipsList_inline {
		padding-left: 4px;
	}

	.cGalleryUpdated {
		margin-left: 6px;
	}

	/* IMAGE VIEW */
	#elGalleryImage {
		padding: 2px;
	}

	body[data-pageapp="gallery"][data-pagecontroller="view"] .cWidgetContainer:not( .ipsHide ) + div .elGalleryHeader {
		margin-top: 10px;
	}

	.ipsStreamItem_condensed.ipsStreamItem.ipsStreamItem_contentBlock.cGalleryAlbumSearchResult {
		padding-bottom: 40px;
	}

	.cGalleryRowsList .ipsThumb.ipsThumb_medium.ipsThumb_bg {
		max-width: 100%;
		width: 100%;
		margin-bottom: 7px;
	}

	html[dir="ltr"] .cGalleryRowsList .ipsDataItem_main {
		padding-left: 0;
	}
	html[dir="rtl"] .cGalleryRowsList .ipsDataItem_main {
		padding-right: 0;
	}

	html[dir="ltr"] .cGalleryRowsList .ipsDataItem_modCheck {
		right: 10px;
		left: auto;
		top: 150px;
	}
	html[dir="rtl"] .cGalleryRowsList .ipsDataItem_modCheck {
		left: 10px;
		right: auto;
		top: 150px;
	}
	
	html[dir="ltr"] ul.cGallerySearchAlbumThumbs.ipsList_inline {
		margin-left: 0px;
	}
	html[dir="rtl"] ul.cGallerySearchAlbumThumbs.ipsList_inline {
		margin-right: 0px;
	}

	.cGalleryImageTopBar,
	.cGalleryImageBottomBar {
		flex-wrap: wrap;
		justify-content: normal;
	}

		.cGalleryImageTopBar > .ipsList_inline,
		.cGalleryImageBottomBar > .ipsList_inline {
			margin-top: 10px;
		}

	html[dir="ltr"] .elGalleryImage .ipsButton.ipsButton_link,
	html[dir="ltr"] .elGalleryImage .ipsButton.ipsButton_primary {
		margin-left: 0px;
	}
	html[dir="rtl"] .elGalleryImage .ipsButton.ipsButton_link,
	html[dir="rtl"] .elGalleryImage .ipsButton.ipsButton_primary {
		margin-right: 0px;
	}

	/* Lightbox */
	#cLightbox {
		overflow: auto;
	}

	.cGalleryLightbox .elGalleryImage {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		bottom: auto;
		width: 100%;
	}

	.cGalleryLightbox {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		display: block;
	}

	.cGalleryLightbox_inner {
		position: relative;
		display: block;
	}

	.cGalleryLightbox_info {
		width: 100%;
		min-width: 0;
		overflow: visible;
	}

	.cGalleryImageTitle {
		top: 11px;
		width: 100%;
	}
	html[dir="ltr"] .cGalleryImageTitle {
		left: 15px;
	}
	html[dir="rtl"] .cGalleryImageTitle {
		right: 15px;
	}

	html[dir="ltr"] .elGalleryImage .elGalleryImageNav_prev,
	html[dir="rtl"] .elGalleryImage .elGalleryImageNav_next,
	html[dir="rtl"] .elGalleryImage .elGalleryImageNav_prev,
	html[dir="ltr"] .elGalleryImage .elGalleryImageNav_next {
		transform: translateX(0);
	}

	.cGalleryLightbox_info a.ipsReact_reaction:after {
		width: 60px;
		height: 60px;
	}
}