/* ==========================================================================
   DFB HW Billeder
   ========================================================================== */

/* --- Widget -------------------------------------------------------------- */

.dfb-hw-open {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	color: var(--bb-oxblod, #8b1a1a);
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: rgba(139, 26, 26, .3);
	text-underline-offset: 2px;
}

.dfb-hw-open:hover,
.dfb-hw-open:focus-visible {
	color: var(--bb-link-hover, #5e1111);
	text-decoration-color: currentColor;
}

.dfb-hw-count {
	color: #888;
	font-size: .88em;
}

.dfb-hw-loading,
.dfb-hw-empty {
	color: #888;
	font-size: .9em;
	font-style: italic;
	margin: 0;
}

/* --- Overlay ------------------------------------------------------------- */

.dfb-hw-overlay {
	position: fixed;
	inset: 0;
	/* Over temaets sticky-elementer og over dfb-geografis popup (100001). */
	z-index: 100010;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dfb-hw-popup {
	position: relative;
	background: var(--bb-pergament, #f7f3e9);
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	width: min(900px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	padding: 22px 26px 16px;
}

.dfb-hw-close,
.dfb-hw-lightbox-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 30px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0 4px;
}

.dfb-hw-close:hover,
.dfb-hw-lightbox-close:hover {
	color: var(--bb-oxblod, #8b1a1a);
}

.dfb-hw-popup-title {
	margin: 0 0 14px;
	color: var(--bb-oxblod, #8b1a1a);
	font-size: 1.15em;
}

.dfb-hw-credit {
	margin: 14px 0 0;
	font-size: .78em;
	color: #888;
	border-top: 1px solid rgba(0, 0, 0, .08);
	padding-top: 8px;
}

/* --- Stedgrupper --------------------------------------------------------- */

.dfb-hw-gruppe {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.dfb-hw-gruppe:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.dfb-hw-gruppe-hoved {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

.dfb-hw-gruppe-navn {
	font-weight: 600;
	color: var(--bb-oxblod, #8b1a1a);
}

.dfb-hw-gruppe-antal {
	font-size: .8em;
	color: #888;
}

.dfb-hw-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dfb-hw-strip-loading {
	color: #999;
	font-size: .85em;
	font-style: italic;
}

.dfb-hw-thumb {
	background: none;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 3px;
	padding: 0;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.dfb-hw-thumb:hover,
.dfb-hw-thumb:focus-visible {
	border-color: var(--bb-oxblod, #8b1a1a);
}

.dfb-hw-thumb img {
	display: block;
	width: 110px;
	height: 82px;
	object-fit: cover;
}

.dfb-hw-mere {
	margin-top: 8px;
	background: none;
	border: 1px solid rgba(139, 26, 26, .3);
	border-radius: 3px;
	color: var(--bb-oxblod, #8b1a1a);
	font: inherit;
	font-size: .82em;
	padding: 3px 10px;
	cursor: pointer;
}

.dfb-hw-mere:hover:not(:disabled) {
	background: rgba(139, 26, 26, .06);
}

/* --- Lightbox ------------------------------------------------------------ */

.dfb-hw-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100020;
	background: rgba(0, 0, 0, .88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.dfb-hw-lightbox-inner {
	margin: 0;
	max-width: min(1100px, 100%);
	max-height: 92vh;
	display: flex;
	flex-direction: column;
}

.dfb-hw-lightbox-img {
	max-width: 100%;
	max-height: 62vh;
	object-fit: contain;
	align-self: center;
	background: #111;
}

.dfb-hw-lightbox-caption {
	color: #e8e4da;
	font-size: .88em;
	line-height: 1.55;
	margin-top: 12px;
	overflow-y: auto;
	max-height: 26vh;
}

.dfb-hw-cap-meta {
	margin: 0 0 6px;
	color: #a9a49a;
	font-size: .85em;
}

.dfb-hw-cap-da {
	margin: 0 0 8px;
	white-space: pre-line;
}

.dfb-hw-cap-en-wrap summary {
	cursor: pointer;
	color: #a9a49a;
	font-size: .85em;
}

.dfb-hw-cap-en {
	margin: 6px 0 0;
	color: #c9c4ba;
	white-space: pre-line;
}

.dfb-hw-prev,
.dfb-hw-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, .35);
	border: none;
	color: #fff;
	font-size: 44px;
	line-height: 1;
	padding: 6px 16px;
	cursor: pointer;
}

.dfb-hw-prev { left: 10px; }
.dfb-hw-next { right: 10px; }

.dfb-hw-prev:hover,
.dfb-hw-next:hover {
	background: rgba(0, 0, 0, .6);
}

@media (max-width: 600px) {
	.dfb-hw-thumb img { width: 86px; height: 64px; }
	.dfb-hw-popup { padding: 18px 16px 12px; }
	.dfb-hw-prev, .dfb-hw-next { font-size: 32px; padding: 4px 10px; }
}

/* --- Sammenfoldet sektion med sekundaere steder -------------------------- */

.dfb-hw-sekundaer {
	margin-top: 4px;
	border-top: 1px solid rgba(0, 0, 0, .07);
	padding-top: 12px;
}

.dfb-hw-sekundaer > summary {
	cursor: pointer;
	color: var(--bb-oxblod, #8b1a1a);
	font-size: .88em;
	list-style-position: outside;
	margin-bottom: 10px;
}

.dfb-hw-sekundaer > summary:hover {
	color: var(--bb-link-hover, #5e1111);
}

.dfb-hw-sekundaer[open] > summary {
	margin-bottom: 14px;
}
