.pde-profile-gallery {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	width: auto !important;
	min-width: 0;
	margin: 10px 28px 0;
	clear: both;
	box-sizing: border-box;
}
.um-header.no-cover.pde-has-profile-gallery {
	height: auto !important;
	min-height: 0 !important;
	align-content: start !important;
	padding-bottom: 7px !important;
	flex-wrap: wrap !important;
}
body .um-profile .um-header.no-cover.pde-has-profile-gallery { padding-bottom: 7px !important; overflow: visible !important; }
.um-header > .pde-profile-gallery {
	grid-column: 1 / -1 !important;
	flex: 0 0 calc(100% - 56px);
	align-self: stretch;
	justify-self: stretch;
	max-width: none !important;
	float: none !important;
	clear: both !important;
	order: 99;
}
body .um-header.pde-has-profile-gallery .pde-profile-premium-status-wrap {
	position: static !important;
	grid-column: 1 / -1 !important;
	grid-row: auto !important;
	order: 100 !important;
	width: auto !important;
	margin: 7px 28px 0 !important;
}
body .um.um-profile .um-header.no-cover.pde-has-profile-gallery > .pde-profile-premium-status-wrap {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	clear: both !important;
	display: flex !important;
	grid-column: 1 / -1 !important;
	order: 100 !important;
	width: auto !important;
	margin: 7px 28px 0 !important;
	box-sizing: border-box !important;
}
.pde-profile-gallery__image-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pde-profile-gallery__slot {
	position: relative;
	width: 100%;
	min-width: 0;
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(145deg, #fbfdff 0%, #f1f5fb 100%);
	box-sizing: border-box;
}
.pde-profile-gallery.is-editing .pde-profile-gallery__slot,
.pde-profile-gallery.is-owner .pde-profile-gallery__slot:not(.has-photo) {
	border: 2px dashed #aebdd1;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.8);
}
.pde-profile-gallery__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.pde-profile-gallery__image[hidden] { display: none !important; }
.pde-profile-gallery__add {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	color: #536987 !important;
	text-align: center;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.15;
	cursor: pointer;
}
.pde-profile-gallery__slot.has-photo .pde-profile-gallery__add { display: none !important; }
body .um-header .pde-profile-gallery .pde-profile-gallery__icon {
	display: block !important;
	flex: 0 0 56px !important;
	width: 56px !important;
	height: 56px !important;
	max-width: none !important;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pde-profile-gallery__delete {
	position: absolute;
	z-index: 2;
	top: 6px;
	right: 6px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0,26,64,.84);
	color: #fff;
	font-size: 23px;
	line-height: 28px;
	cursor: pointer;
}
.pde-profile-gallery__delete[hidden] { display: none !important; }
.pde-profile-gallery__status { display: none !important; }
@media (max-width: 600px) {
	.pde-profile-gallery { gap: 5px; margin: 8px 8px 0; }
	.um-header > .pde-profile-gallery { flex-basis: calc(100% - 16px); width: auto !important; }
	body .um-header.pde-has-profile-gallery .pde-profile-premium-status-wrap { margin: 7px 8px 0 !important; }
	body .um.um-profile .um-header.no-cover.pde-has-profile-gallery > .pde-profile-premium-status-wrap { margin-left: 8px !important; margin-right: 8px !important; }
	.pde-profile-gallery__slot { border-radius: 12px; }
	.pde-profile-gallery__add { gap: 2px; padding: 3px 1px; font-size: 9.5px; line-height: 1.05; overflow-wrap: normal; }
	body .um-header .pde-profile-gallery .pde-profile-gallery__icon { flex-basis: 24px !important; width: 24px !important; height: 24px !important; }
	.pde-profile-gallery__delete { top: 3px; right: 3px; width: 26px; height: 26px; font-size: 20px; line-height: 24px; }
}
