/**
 * for Publisher's update_albums.php
***/

table#albums input[type="text"],
table#albums select {
	margin-bottom: 0;
}

table#albums td {
	vertical-align: middle;
}

/**
 * for Publisher's view_album.php
 * and Publisher's view_top_level_gallery.php
***/

*[class*="grid_"].album-view *[class*="col_"] {
	padding-left: 0;
	padding-right: 0;
}

*[class*="grid_"].album-view *[class*="col_"] h3:first-child {
	line-height: 2rem;
	margin-top: 0;
}

*[class*="grid_"].album-view ul {
	font-size: 0.75rem;
	padding-left: 0;
}

*[class*="grid_"].album-view li {
	list-style: none;
}

#albums a.album-set::before,
#albums a.album::before {
	margin-right: 0.625rem;
	opacity: 0.5;
}

#albums a.album-set::before {
	content: "\f07c";
	font-family: "Font Awesome 5 Pro";
	font-weight: 400;
}

#albums a.album::before {
	content: "\f1c5";
	font-family: "Font Awesome 5 Pro";
	font-weight: 400;
}

#photos {
	border: 0 solid #ededed;
	border-width: 1px;
	font-size: 0;
	padding: 6px;
	text-align: center;
}

#photos figure {
	background-color: transparent;
	border: 1px solid #ededed;
	border-radius: 2px;
	box-sizing: border-box;
	cursor: grab;
	display: inline-block;
	margin: 6px;
	overflow: hidden;
	position: relative;
	text-align: center;
	user-select: none;
	vertical-align: top;
	width: calc(25% - 12px);
}

#photos figure .thumbnail {
	border: 6px solid transparent;
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
	width: 100%;
}

#photos figure .thumbnail::before {
	content: "";
	display: block;
	padding-top: 100%;
	width: 100%;
}

#photos figure .thumbnail-background {
	background-image: none !important;
	margin: 0;
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
}

#photos figure input[type="checkbox"] ~ .thumbnail label {
	cursor: grab;
}

#photos figure input[type="checkbox"]:checked ~ .thumbnail {
	border-color: #E1F5FE;
}
#photos figure input[type="checkbox"]:checked ~ .thumbnail label {
	background-color: #E1F5FE;
}

#photos figure img {
	box-sizing: border-box;
	/* cursor: pointer; */
	display: block;
	max-height: 100%;
	max-width:  100%;
	position: absolute; top: 50%; left: 50%;
	-webkit-transform: translate(-50%,-50%);
	        transform: translate(-50%,-50%);
	width: auto; height: auto;
}

#photos ul.image_metadata {
  border-top: 1px solid #ededed;
	font-size: 0.625rem;
	margin: 0;
	padding:0;
	text-align: center;
}

ul.image_metadata li {
	height: 1.5rem;
	line-height: 1.5rem;
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding:0 6px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

figure > input {
	cursor: pointer;
	position: absolute; top: 3px; right: 3px;
	z-index: 1;
}

@media only screen and (max-width: 992px) {
	#photos figure {
		width: calc(25% - 12px);
	}

	.view_album_summary {
		margin-top: 3rem;
	}
}

@media only screen and (max-width: 640px) {
	#photos figure {
		margin: 3px;
		width: calc(33.333333% - 12px);
	}
}

@media only screen and (max-width: 414px) {
	#photos figure {
		width: calc(33.333333% - 12px);
	}
	#photos figure .thumbnail {
		border: none;
	}
	#photos figure img {
		box-shadow: none;
	}
}

/**
 * for Publisher's addedit_album.php
 * copied from Designer's design_template.php
***/

label[for="title"],
label[for="menu_set_id"],
label[for="page_template_id"],
label[for="page_template_id"] {
	cursor: default;
	display: block;
}

select#menu_set_id,
select#page_template_id {
	width: auto; min-width: 128px;
}

.setting-section {
}

.setting-section.hidden {
	display: none;
}

.setting-section.section-level-1 > h1 {
	border: 0 solid #454545;
	border-width: 0 0 1px;
	line-height: 2;
	margin: 1.125rem 0;
	padding: 0;
}

.setting-section.section-level-2 {
	border: 0 solid #e0e0e0;
	border-width: 0 0 1px;
	box-sizing: border-box;
	margin: 0 auto 1.125rem;
	overflow: hidden;
	padding-bottom: 1.125rem;
}

.setting-section.section-level-2 {
	height: calc(2.25rem + 0px);
}
.setting-section.section-level-2:target {
	height: auto;
}

.setting-section.section-level-2 > h1 {
	border: 0 solid #e0e0e0;
	border-width: 0;
	box-sizing: content-box;
	font-size: 1.125rem;
	line-height: 2.25rem;
	margin: 0;
}

.setting-section.section-level-2:target > h1 {
	margin-top: 117px;
}

.setting-section.section-level-2 > h1 a {
	background-color: #454545;
	color: #ffffff;
	display: block;
	padding: 0 12px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.setting-section.section-level-2 > h1 a::after {
	content: "\f07b";
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	float: right;
	line-height: 2.25rem;
}

.setting-section.section-level-2:target > h1 a::after {
	content: "\f07c";
}

.setting-section.section-level-3 {
}

.setting-section.section-level-3 > h1 {
	border: 0px solid #e0e0e0;
	border-width: 1px 0;
	font-size: 1.125rem;
	line-height: 2rem;
	margin-top: 2rem;
}

.setting-section.section-level-4 {
	margin-left: 12px;
}

.setting-section.section-level-4 > h1 {
	border: 0px solid #e0e0e0;
	border-width: 0 0 1px;
	font-size: 1rem;
	font-weight: 400px;
	margin-top: 2rem;
}

.setting-container {
	margin: 0.5rem 0;
	margin-left: 12px;
}

.setting-container p {
	line-height: 1.125rem;
	margin: 0 0 0.25rem;
}

p.label {
	font-weight: 700;
}

p.setting-description {
	font-size: 0.75rem;
}

.setting-section h1 + p.setting-description {
	margin: 1.125rem 0 1.125rem 12px;;
}

.setting-container input[type="text"],
.setting-container select {
	font-size: 0.875rem;
	width: auto;
}

.setting-container textarea {
	font-size: 0.875rem;
}

.setting-container input[type="text"] {
	min-width: 256px;
}

.setting-container div.radio-container {
	display: inline-block;
	vertical-align: top;
}

.radio-container input[type="radio"],
.radio-container label {
	cursor: pointer;
	display: inline-block;
	vertical-align: baseline;
}

.radio-container input[type="radio"] {
	visibility: hidden;
	width: 0; height: 0;
}

.radio-container label {
	background-color: #e0e0e0;
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: normal;
	min-width: 48px;
	padding: 0;
	text-align: center;
	text-transform: uppercase;
	transition: 0.2s ease-in-out;
}

.radio-container input[type="radio"]:checked + label {
	background-color: #2196F3;
	box-shadow: 1px 1px 2px rgba(0,0,0,0.25) inset;
	color: #ffffff;
}

.setting-container input[type="range"],
.setting-container input.range,
.setting-container input.range ~ span.unit {
  display: inline-block;
	width: auto;
}

.setting-container input[type="range"] {
  clear: left;
	margin-right: 6px;
	width: 192px;
}

.setting-container input.range {
	font-size: 0.875rem;
	line-height: 1.5rem;
	margin-right: 6px;
	padding: 0 0 0 15px;
	text-align: center;
	width: 64px;
}

.setting-container input.range ~ span.unit {
	font-size: 0.75rem;
	line-height: 1.125rem;
}

.setting-container.disabled p,
.setting-container.disabled p.label,
.setting-container.disabled p.setting-description
.setting-container.disabled select,
.setting-section.disabled p,
.setting-section.disabled p.label,
.setting-section.disabled p.setting-description
.setting-section.disabled select
{
	color: #e0e0e0;
}

.setting-container.disabled label,
.setting-section.disabled label
{
	color: #aaa;
}

.setting-section.disabled input[type="radio"]:checked + label,
.setting-container.disabled input[type="radio"]:checked + label {
	color: #cbcbcb;
	background-color: #77bef8;
}

.setting-section.disabled input[type="radio"] + label,
.setting-container.disabled input[type="radio"] + label {
	cursor: not-allowed;
}

div.setting-error {
	border: 1px solid #F44336;
}

.ajax__trigger,
.ajax__success {
	background: red;
	box-sizing: border-box;
	color: #ffffff;
	font-size: 1rem;
	font-weight: normal;
	padding: 0;
	position: absolute;
	top: calc(45px + 36px + 2.25rem); right: 0;
	text-align: center;
}

.ajax__trigger {
	background-color: #2196F3;
  box-shadow: 0 2px 3px -2px rgba(0,0,0,0.5);
  cursor: pointer;
	display: block;
	line-height: 44px;
	margin: 0;
	width: 44px; height: 44px;
}

.ajax__trigger:hover {
	background-color: #1565C0;
}

.ajax__success {
	background-color: #ff9933;
	border: 3px solid #ffffff;
	border-radius: 50%;
	display: block;
	line-height: 32px;
	margin: 3px;
	width: 38px; height: 38px;
}

@media screen and ( max-width: 1140px ) {
	.ajax__trigger {
		margin-left: 12px;
		margin-right: 12px;
	}
	.ajax__success {
		margin-left: 12px;
		margin-right: 12px;
	}
}

#uppy-app {
	margin-bottom: 1.25rem;
}