.addc-gallery {
	max-width: 72rem;
	margin: 0 auto;
}

.addc-gallery-notice {
	margin-bottom: 1rem;
}

.addc-gallery-toolbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.addc-gallery-sort-label {
	font-weight: 600;
}

.addc-gallery-sort {
	padding: 0.35rem 0.5rem;
}

.addc-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 640px) {
	.addc-gallery-grid {
		grid-template-columns: 1fr;
	}
}

.addc-gallery-empty {
	grid-column: 1 / -1;
	color: #646970;
}

.addc-gallery-card {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.addc-gallery-thumb-button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #f6f7f7;
	cursor: pointer;
}

.addc-gallery-thumb {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.addc-gallery-thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	color: #646970;
	background: #f6f7f7;
}

.addc-gallery-card-body {
	padding: 0.85rem 1rem 1rem;
}

.addc-gallery-name {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}

.addc-gallery-vote-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.addc-vote-button {
	padding: 0.45rem 0.85rem;
	border: 0;
	border-radius: 4px;
	background: #F47A1F;
	color: #fff;
	cursor: pointer;
	font-size: 0.95rem;
}

.addc-vote-button:hover:not(:disabled) {
	background: #d96612;
}

.addc-vote-button:disabled,
.addc-vote-button.is-voted,
.addc-vote-button--disabled {
	background: #dcdcde;
	color: #50575e;
	cursor: not-allowed;
}

.addc-vote-count {
	font-size: 0.95rem;
	color: #1d2327;
	white-space: nowrap;
}

.addc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: rgba(0, 0, 0, 0.82);
}

.addc-lightbox[hidden] {
	display: none !important;
}

.addc-lightbox-image {
	max-width: min(100%, 960px);
	max-height: calc(100vh - 4rem);
	object-fit: contain;
}

.addc-lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

body.addc-lightbox-open {
	overflow: hidden;
}

.addc-gallery-editor {
	padding: 1rem;
	border: 1px dashed #c3c4c7;
	background: #f6f7f7;
}

.addc-gallery-editor__hint {
	color: #646970;
	margin: 0.25rem 0 0;
}

.addc-gallery .addc-message {
	padding: 0.75rem 1rem;
	border-radius: 4px;
}

.addc-gallery .addc-message--info {
	background: #f0f6fc;
	color: #1d2327;
	border: 1px solid #c5d9ed;
}
