.edbi-gallery {
	&--grid {
		.edbi-gallery__item {
			width: var(--column-width);
			aspect-ratio: var(--aspect-ratio);
		}
	}

	&__items {
		display: flex;
		flex-wrap: wrap;
		
	}

	&--style {
		&-rounded {
			.edbi-gallery__item {
				overflow: hidden;
				border-radius: 5px;
			}
		}
	}

	&__item {
		display: block;
		overflow: hidden;
		position: relative;
		cursor: pointer;
		margin: 5px;

		&:hover {

			.edbi-gallery__item__overlay--onHover {
				opacity: 1;
			}

			img {
				transform: scale(1.1);
				transition: all .3s ease-in-out;
			}
		}

		img {
			width: 100%;
			height: 100%;
			transition: all .3s ease-in-out;
			object-fit: cover;
		}


		&__overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.6);
			opacity: 0;
			transition: all .3s ease-in-out;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
			color: #fff;
			font-size: 14px;
			font-weight: 600;
			transition: all .3s ease-in-out;
			text-align: center;

			&--always {
				opacity: 1;
			}

			h3, h4 {
				color: #fff;
				font-size: 15px;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				margin: 0;
				max-width: 100%;
				padding-inline: 10px;
			}
		}
	}
}

.edbi-breadcrumb-container {
	padding: 15px 20px;
	background: rgba(0, 0, 0, 0.02);
	border-radius: 8px;
	margin-bottom: 20px;

	.edbi-breadcrumbs {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
		font-size: 14px;

		.edbi-breadcrumb-item {
			cursor: pointer;
			color: var(--edbi-primary-color, #2271b1);
			display: flex;
			align-items: center;
			transition: all 0.2s ease;

			&:hover {
				opacity: 0.8;
			}

			&.home {
				font-size: 16px;
			}

			&.active {
				color: var(--edbi-text-color, #1d2327);
				pointer-events: none;
				font-weight: 600;
			}
		}

		.edbi-breadcrumb-separator {
			font-size: 12px;
			color: #999;
			opacity: 0.6;
		}
	}
}

.edbi-gallery-main {
	position: relative;
	min-height: 100px;
}

.edbi-selected-files-bottom {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--edbi-border-color, #dcdcde);

	.edbi-section-title {
		font-size: 16px;
		font-weight: 600;
		margin-bottom: 20px;
		color: var(--edbi-text-color, #1d2327);
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
}

.edbi-loading {
	filter: grayscale(0.5);
	
	.edbi-gallery-main::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 30px;
		height: 30px;
		border: 3px solid rgba(0,0,0,0.1);
		border-top-color: var(--edbi-primary-color, #2271b1);
		border-radius: 50%;
		animation: edbi-spin 1s linear infinite;
	}
}

@keyframes edbi-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}
