.wa-album {
	margin: 2rem 0;
}

.wa-album-title {
	text-align: center;
	margin-bottom: 0.5rem;
	font-size: 1.75rem;
}

.wa-album-subtitle {
	text-align: center;
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 1rem;
	color: #767676;
}

.wa-actions {
	text-align: center;
	margin-bottom: 1.5rem;
}

.wa-btn {
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background: #a8836f;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wa-btn:hover {
	background: #8f6c5a;
	color: #fff;
}

/* Grid-lay-out (standaard) */
.wa-grid {
	display: grid;
	grid-template-columns: repeat(var(--wa-columns, 3), 1fr);
	gap: var(--wa-gap, 12px);
}

.wa-grid .wa-item {
	margin: 0;
}

.wa-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.wa-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 1 / 1;
	transition: transform 0.25s ease;
}

.wa-item:hover img {
	transform: scale(1.04);
}

.wa-item-caption {
	margin: 6px 0 0;
	font-size: 0.85rem;
	color: #666;
	text-align: center;
}

/* Masonry-lay-out: elke foto behoudt haar eigen verhouding */
.wa-grid[data-layout="masonry"] {
	display: block;
	column-count: var(--wa-columns, 3);
	column-gap: var(--wa-gap, 12px);
}

.wa-grid[data-layout="masonry"] .wa-item {
	width: 100%;
	break-inside: avoid;
	margin-bottom: var(--wa-gap, 12px);
}

.wa-grid[data-layout="masonry"] .wa-item img {
	aspect-ratio: auto;
	height: auto;
	object-fit: initial;
}

.wa-item.wa-item--selected {
	outline: 3px solid #a8836f;
	outline-offset: -3px;
}

/* Icoonmenu's in de lightbox (download + delen) */
.wa-icon-menu {
	position: relative;
	display: inline-block;
}

.wa-icon-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wa-icon-menu-toggle:hover {
	background: rgba(255, 255, 255, 0.3);
}

.wa-icon-menu-svg {
	width: 22px;
	height: 22px;
}

.wa-icon-menu-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #ffffff;
	color: #222222;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	min-width: 230px;
	padding: 6px;
}

.wa-icon-menu-dropdown[hidden] {
	display: none;
}

.wa-icon-menu-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	background: none;
	border: none;
	text-align: left;
	font-size: 0.9rem;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	border-radius: 6px;
	font-family: inherit;
}

.wa-icon-menu-item:hover {
	background: #f2f0ee;
}

.wa-select-check {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	border-radius: 4px;
	border: 2px solid #999999;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wa-lightbox-select-toggle.is-selected .wa-select-check {
	background: #a8836f;
	border-color: #a8836f;
}

.wa-lightbox-select-toggle.is-selected .wa-select-check::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 44%;
	width: 7px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Selectiebalk onderaan het scherm */
.wa-selection-bar {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 14px;
	background: #2b2b2b;
	color: #fff;
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	max-width: 92vw;
	flex-wrap: wrap;
	justify-content: center;
}

.wa-selection-bar[hidden] {
	display: none;
}

.wa-selection-text {
	font-size: 0.9rem;
	white-space: nowrap;
}

.wa-selection-clear {
	background: none;
	border: none;
	color: #ddd;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0;
}

.wa-selection-clear:hover {
	color: #fff;
}

.wa-password-gate {
	max-width: 360px;
	margin: 3rem auto;
	text-align: center;
}

.wa-password-gate form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wa-password-gate label {
	font-size: 0.95rem;
}

.wa-password-gate input[type="password"] {
	padding: 0.6rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.wa-error {
	color: #b3261e;
}

.wa-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
}

.wa-lightbox[hidden] {
	display: none;
}

.wa-lightbox-img {
	max-width: 90vw;
	max-height: 78vh;
}

/* Actierij bovenaan de lightbox (boven de foto), gecentreerd */
.wa-lightbox-actions {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 14px;
	z-index: 3;
}

.wa-lightbox-caption {
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	font-size: 0.95rem;
	padding: 0 1rem;
}

.wa-lightbox-close,
.wa-lightbox-prev,
.wa-lightbox-next {
	position: absolute;
	background: none;
	border: none;
	color: #fff;
	font-size: 2.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 0.5rem;
	z-index: 2;
}

.wa-lightbox-close {
	top: 0.75rem;
	right: 1rem;
	font-size: 2rem;
}

.wa-lightbox-prev {
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

.wa-lightbox-next {
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 640px) {
	.wa-grid:not([data-layout="masonry"]) {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.wa-grid[data-layout="masonry"] {
		column-count: 2 !important;
	}

	.wa-lightbox-actions {
		top: 0.6rem;
		gap: 10px;
	}

	.wa-lightbox-img {
		max-height: 65vh;
	}
}
