.hero-image {
	position: relative;
}

.sv-event-photo-open {
	position: absolute;
	top: auto;
	right: 14px;
	bottom: 14px;
	z-index: 8;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.64);
	color: #3a3247 !important;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	box-shadow: inset 0 0 0 1px rgba(58, 50, 71, 0.1), 0 2px 8px rgba(58, 50, 71, 0.14);
	backdrop-filter: blur(10px) saturate(125%);
	-webkit-backdrop-filter: blur(10px) saturate(125%);
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, gap 180ms ease, padding 180ms ease;
}

.sv-event-photo-open:hover {
	border-color: rgba(255, 255, 255, 0.9);
	background: rgba(253, 247, 237, 0.84);
	box-shadow: inset 0 0 0 1px rgba(58, 50, 71, 0.12), 0 3px 10px rgba(58, 50, 71, 0.18);
}

.sv-event-photo-open:focus-visible {
	outline: 2px solid #f49300;
	outline-offset: 3px;
}

.sv-event-photo-open svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.hero-image:not(.hero-image--default) .sv-event-photo-open {
	top: auto;
	bottom: 14px;
	z-index: 10000;
	justify-content: center;
	gap: 0;
	min-height: 40px;
	padding: 0 11px;
	border-color: rgba(255, 255, 255, 0.56);
	background: rgba(58, 50, 71, 0.72);
	color: #fff !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 9px rgba(58, 50, 71, 0.22);
}

.hero-image:not(.hero-image--default) .sv-event-photo-open span {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	white-space: nowrap;
	transition: max-width 180ms ease, opacity 140ms ease;
}

.hero-image:not(.hero-image--default) .sv-event-photo-open:hover,
.hero-image:not(.hero-image--default) .sv-event-photo-open:focus-visible {
	gap: 6px;
	padding-right: 12px;
	padding-left: 12px;
	border-color: rgba(255, 255, 255, 0.76);
	background: rgba(58, 50, 71, 0.84);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 3px 11px rgba(58, 50, 71, 0.26);
}

.hero-image:not(.hero-image--default) .sv-event-photo-open:hover span,
.hero-image:not(.hero-image--default) .sv-event-photo-open:focus-visible span {
	max-width: 90px;
	opacity: 1;
}

body.sv-event-photo-modal-open {
	overflow: hidden;
}

.sv-event-photo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 180ms ease;
}

.sv-event-photo-modal[hidden] {
	display: none;
}

.sv-event-photo-modal.is-open {
	opacity: 1;
}

.sv-event-photo-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(58, 50, 71, 0.74);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.sv-event-photo-dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: min(88vh, 840px);
	overflow-y: auto;
	padding: 34px;
	border-radius: 24px;
	background: #fdf7ed;
	color: #3a3247;
	box-shadow: 0 32px 90px rgba(58, 50, 71, 0.38);
}

.sv-event-photo-dialog:focus {
	outline: none;
}

.sv-event-photo-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fceed9;
	color: #3a3247 !important;
	font-size: 27px;
	line-height: 1;
	cursor: pointer;
}

.sv-event-photo-close:hover {
	background: #f8dfb9;
}

.sv-event-photo-heading {
	padding-right: 34px;
}

.sv-event-photo-kicker {
	display: block;
	margin-bottom: 8px;
	color: #9a5500;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sv-event-photo-heading h2,
.sv-event-photo-success h2 {
	margin: 0;
	color: #3a3247;
	font-family: inherit;
	font-size: clamp(25px, 4vw, 34px);
	line-height: 1.15;
}

.sv-event-photo-heading p,
.sv-event-photo-success p {
	margin: 10px 0 24px;
	color: #665f6e;
	font-size: 15px;
	line-height: 1.55;
}

.sv-event-photo-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 142px;
	padding: 22px;
	border: 2px dashed #dfc59d;
	border-radius: 18px;
	background: #fff;
	color: #665f6e;
	text-align: center;
	transition: border-color 160ms ease, background 160ms ease;
}

.sv-event-photo-dropzone.is-dragging {
	border-color: #f49300;
	background: #fceed9;
}

.sv-event-photo-file-input,
.sv-event-photo-honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

.sv-event-photo-dialog .sv-event-photo-choose {
	margin-bottom: 8px;
	padding: 10px 17px;
	border: 1px solid #f49300;
	border-radius: 999px;
	background: #fff;
	color: #3a3247 !important;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.sv-event-photo-dialog .sv-event-photo-choose:hover {
	background: #fceed9;
}

.sv-event-photo-previews {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.sv-event-photo-preview {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 12px;
	background: #fceed9;
}

.sv-event-photo-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sv-event-photo-preview.is-file {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 12px;
	color: #3a3247;
	text-align: center;
}

.sv-event-photo-preview-badge {
	padding: 4px 7px;
	border-radius: 5px;
	background: #3a3247;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.sv-event-photo-preview-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 11px;
	line-height: 1.25;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sv-event-photo-remove {
	position: absolute;
	top: 5px;
	right: 5px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 50%;
	background: rgba(29, 20, 18, 0.8);
	color: #fff;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
}

.sv-event-photo-field {
	margin-top: 20px;
}

.sv-event-photo-field label {
	display: block;
	margin-bottom: 7px;
	color: #3a3247;
	font-size: 14px;
	font-weight: 750;
}

.sv-event-photo-field input,
.sv-event-photo-field textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 12px 13px;
	border: 1px solid #d8c4a5;
	border-radius: 10px;
	background: #fff;
	color: #3a3247;
	font: inherit;
	font-size: 16px;
}

.sv-event-photo-field input:focus,
.sv-event-photo-field textarea:focus {
	border-color: #f49300;
	outline: 3px solid rgba(244, 147, 0, 0.16);
}

.sv-event-photo-field small {
	display: block;
	margin-top: 6px;
	color: #756e7c;
	font-size: 12px;
	line-height: 1.4;
}

.sv-event-photo-consent {
	display: grid;
	grid-template-columns: 19px 1fr;
	gap: 10px;
	margin-top: 20px;
	color: #51495d;
	font-size: 13px;
	line-height: 1.45;
}

.sv-event-photo-consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #f49300;
}

.sv-event-photo-dialog .sv-form-legal-note {
	margin: 12px 0 16px;
	color: #756e7c;
	font-size: 12px;
	line-height: 1.5;
}

.sv-event-photo-dialog .sv-form-legal-note a {
	color: #9a5500;
	text-decoration: underline;
}

.sv-event-photo-turnstile {
	min-height: 65px;
	margin-top: 16px;
}

.sv-event-photo-status {
	min-height: 22px;
	margin-top: 10px;
	color: #665f6e;
	font-size: 13px;
	line-height: 1.45;
}

.sv-event-photo-status.is-error {
	color: #a11f2f;
	font-weight: 650;
}

.sv-event-photo-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: #f49300;
	color: #3a3247 !important;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(244, 147, 0, 0.24);
}

.sv-event-photo-submit:hover {
	background: #d97f00;
}

.sv-event-photo-submit:disabled {
	cursor: wait;
	opacity: 0.68;
}

.sv-event-photo-success {
	padding: 36px 8px 12px;
	text-align: center;
}

.sv-event-photo-success-icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #e5f5e9;
	color: #23713c;
	font-size: 32px;
	font-weight: 800;
}

@media (max-width: 640px) {
	.sv-event-photo-open {
		top: auto;
		right: 10px;
		bottom: 10px;
		min-height: 36px;
		padding: 7px 10px;
		font-size: 12px;
	}

	.hero-image:not(.hero-image--default) .sv-event-photo-open {
		top: auto;
		bottom: 10px;
		min-height: 38px;
		padding: 0 10px;
	}

	.hero-image:not(.hero-image--default) .sv-event-photo-open:hover,
	.hero-image:not(.hero-image--default) .sv-event-photo-open:focus-visible {
		padding-right: 11px;
		padding-left: 11px;
	}

	.sv-event-photo-modal {
		align-items: end;
		padding: 0;
	}

	.sv-event-photo-dialog {
		width: 100%;
		max-height: 92vh;
		padding: 28px 20px max(24px, env(safe-area-inset-bottom));
		border-radius: 22px 22px 0 0;
	}

	.sv-event-photo-heading {
		padding-right: 28px;
	}

	.sv-event-photo-previews {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-image:not(.hero-image--default) .sv-event-photo-open span,
	.sv-event-photo-modal,
	.sv-event-photo-open,
	.sv-event-photo-dropzone {
		transition: none;
	}
}
