/* =========================================================
   STORÖRINGENS BILDGALLERI
   ========================================================= */

.stbg,
.stbg * {
	box-sizing: border-box;
}

.stbg {
    --stbg-blue: #0269ae;
    --stbg-blue-dark: #02558c;
    --stbg-deep: #023c64;
    --stbg-soft: #eaf5fc;
    --stbg-text: #17242d;
    --stbg-muted: #667680;
    --stbg-border: #d8e3ea;
    --stbg-card: #ffffff;

    width: 88% !important;
    max-width: 1500px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    color: var(--stbg-text);
    font-family: inherit;
}

.stbg__header {
	max-width: 780px;
	margin-bottom: 30px;
}

.stbg__eyebrow,
.stbg__step {
	margin: 0 0 7px;
	color: var(--stbg-blue);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.stbg__title {
	margin: 0 0 10px;
	color: var(--stbg-text);
	font-size: clamp(31px, 4vw, 48px);
	line-height: 1.05;
}

.stbg__intro {
	margin: 0;
	color: var(--stbg-muted);
	font-size: 16px;
	line-height: 1.7;
}

.stbg__upload-card {
	margin-bottom: 48px;
	padding: 28px;
	border: 1px solid var(--stbg-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 36px rgba(24,59,82,.07);
}

.stbg__upload-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 23px;
}

.stbg__upload-head h3,
.stbg__gallery-head h3 {
	margin: 0;
	color: var(--stbg-text);
	font-size: 24px;
	line-height: 1.15;
}

.stbg__upload-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--stbg-soft);
	color: var(--stbg-blue);
	font-size: 25px;
	font-weight: 800;
}

.stbg__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 20px 24px;
}

.stbg__field:nth-child(2),
.stbg__field:nth-child(3),
.stbg__preview,
.stbg__form-footer {
	grid-column: 1 / -1;
}

.stbg__field label:not(.stbg__file) {
	display: block;
	margin-bottom: 7px;
	color: #40515c;
	font-size: 13px;
	font-weight: 800;
}

.stbg__field input[type="text"],
.stbg__field textarea {
	width: 100%;
	margin: 0;
	border: 1px solid var(--stbg-border);
	border-radius: 10px;
	background: #fff;
	color: var(--stbg-text);
	font: inherit;
	outline: 0;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.stbg__field input[type="text"] {
	min-height: 48px;
	padding: 10px 13px;
}

.stbg__field textarea {
	min-height: 116px;
	padding: 12px 13px;
	resize: vertical;
}

.stbg__field input[type="text"]:focus,
.stbg__field textarea:focus {
	border-color: #7fbee4;
	box-shadow: 0 0 0 3px rgba(2,105,174,.10);
}

.stbg__file {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	cursor: pointer;
}

.stbg__file input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
}

.stbg__file-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid var(--stbg-blue);
	border-radius: 9px;
	background: var(--stbg-soft);
	color: var(--stbg-blue-dark);
	font-size: 13px;
	font-weight: 800;
}

.stbg__file-name {
	color: var(--stbg-muted);
	font-size: 13px;
}

.stbg__field small {
	display: block;
	margin-top: 7px;
	color: #8b979e;
	font-size: 11px;
}

.stbg__preview {
	max-width: 360px;
	overflow: hidden;
	border: 1px solid var(--stbg-border);
	border-radius: 13px;
	background: #f2f6f9;
}

.stbg__preview img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.stbg__form-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.stbg__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 48px;
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--stbg-blue);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(2,105,174,.16);
	transition: background .15s ease, transform .15s ease;
}

.stbg__submit:hover {
	background: var(--stbg-blue-dark);
	transform: translateY(-1px);
}

.stbg__submit:disabled {
	opacity: .65;
	cursor: wait;
	transform: none;
}

.stbg__message {
	margin: 0;
	color: var(--stbg-muted);
	font-size: 13px;
	font-weight: 700;
}

.stbg__message.is-success {
	color: #1e6d49;
}

.stbg__message.is-error {
	color: #9b3030;
}

.stbg__honeypot {
	position: absolute !important;
	left: -99999px !important;
}

.stbg__login-note {
	padding: 16px 18px;
	border: 1px solid #a9cee5;
	border-left: 5px solid var(--stbg-blue);
	border-radius: 10px;
	background: var(--stbg-soft);
}

.stbg__login-note strong,
.stbg__login-note span {
	display: block;
}

.stbg__login-note span {
	margin-top: 3px;
	color: var(--stbg-muted);
	font-size: 13px;
}

.stbg__gallery-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--stbg-border);
}

.stbg__count {
	color: var(--stbg-muted);
	font-size: 13px;
	font-weight: 700;
}

.stbg__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 22px;
}

.stbg-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--stbg-border);
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 6px 22px rgba(24,59,82,.06);
	transition: transform .16s ease, box-shadow .16s ease;
}

.stbg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(24,59,82,.10);
}

.stbg-card__image {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: #e8eef2;
	cursor: zoom-in;
}

.stbg-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .25s ease;
}

.stbg-card:hover .stbg-card__image img {
	transform: scale(1.025);
}

.stbg-card__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255,255,255,.94);
	color: var(--stbg-blue);
	font-size: 20px;
	font-weight: 700;
	box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.stbg-card__body {
	padding: 18px;
}

.stbg-card__body h4 {
	margin: 0 0 6px;
	color: var(--stbg-text);
	font-size: 20px;
	line-height: 1.2;
}

.stbg-card__body p {
	margin: 0;
	color: var(--stbg-muted);
	font-size: 13px;
	line-height: 1.55;
}

.stbg__empty {
	grid-column: 1 / -1;
	padding: 34px;
	border: 1px dashed #b8c9d4;
	border-radius: 14px;
	background: #f7fafc;
	text-align: center;
}

.stbg__empty strong,
.stbg__empty span {
	display: block;
}

.stbg__empty strong {
	font-size: 18px;
}

.stbg__empty span {
	margin-top: 4px;
	color: var(--stbg-muted);
}

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

.stbg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 30px;
	background: rgba(8,18,26,.88);
	backdrop-filter: blur(4px);
}

.stbg-lightbox img {
	display: block;
	max-width: min(1200px, 92vw);
	max-height: 80vh;
	border-radius: 12px;
	box-shadow: 0 20px 70px rgba(0,0,0,.35);
}

.stbg-lightbox__close {
	position: fixed;
	top: 18px;
	right: 22px;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 31px;
	line-height: 1;
	cursor: pointer;
}

.stbg-lightbox__caption {
	margin-top: 13px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

@media (max-width: 980px) {
	.stbg__grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
}

@media (max-width: 680px) {
	.stbg__upload-card {
		padding: 21px;
		border-radius: 14px;
	}

	.stbg__form {
		grid-template-columns: 1fr;
	}

	.stbg__field,
	.stbg__field:nth-child(2),
	.stbg__field:nth-child(3),
	.stbg__preview,
	.stbg__form-footer {
		grid-column: auto;
	}

	.stbg__grid {
		grid-template-columns: 1fr;
	}

	.stbg__gallery-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.stbg__submit {
		width: 100%;
	}

	.stbg-lightbox {
		padding: 18px;
	}
}
