/* Dialog overlay */
x.vi-dialog-overlay {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

/* Main dialog box */
.vi-dialog-box {
	width: 80%;
	height: 80%;
	min-width: 800px;
	min-height: 600px;
	background-color: white;
	border-radius: 8px;
	display: flex;
	overflow: hidden;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	position: relative;
}

/* Close button */
.vi-close-button {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	background-color: #ff4d4d;
	color: white;
	font-size: 24px;
	font-weight: bold;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1100;
	transition: background-color 0.3s, transform 0.2s;
}

.vi-close-button:hover {
	background-color: #cc0000;
	transform: scale(1.1);
}

.vi-close-button:active {
	transform: scale(0.95);
}

/* Share button */
.vi-share-button {
	position: absolute;
	top: 10px;
	right: 60px;
	width: 40px;
	height: 40px;
	background-color: #007bff;
	color: white;
	font-size: 24px;
	font-weight: bold;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1100;
	transition: background-color 0.3s, transform 0.2s;
}

.vi-share-button:hover {
	background-color: #0056b3;
	transform: scale(1.1);
}

.vi-share-button:active {
	transform: scale(0.95);
}

/* Left section (image and thumbnails) */
.vi-left-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 40%;
	min-width: 300px;
	padding: 20px;
	background-color: #fafafa;
}

/* Main image container */
.vi-main-image-container {
	flex: 0 0 auto;
	width: 100%;
	height: 300px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #ffffff;
	overflow: hidden;
}

.vi-main-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: pointer;
}

/* Thumbnail bar */
.vi-thumbnail-bar {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 0;
}

.vi-thumbnail {
	width: 60px;
	height: 60px;
	object-fit: contain;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	transition: border-color 0.3s;
}

.vi-thumbnail:hover,
.vi-thumbnail.active {
	border-color: #007bff;
}

/* Right section (title and description) */
.vi-right-section {
	width: 60%;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.vi-item-title {
	margin: 0 0 20px;
	font-size: 1.4em;
	font-weight: bold;
	position: sticky;
	top: 0;
	background-color: white;
	z-index: 1;
}

.vi-item-id {
	margin: -20px 0 20px 0;
	font-weight: normal;
	font-size: 0.8em;
}

.vi-item-description {
	flex: 1;
	overflow-y: auto;
	font-size: 1em;
	line-height: 1.5;
}

.vi-item-list {
	margin: 16px 32px;
}

.vi-item-list ul {
	margin-left: 16px;
}

.vi-item-list h3 {
	font-size: 1.3em;
}

.vi-item-list a {
	font-weight: bold;
}

/* Scrollbar styling */
.vi-item-description::-webkit-scrollbar {
	width: 8px;
}

.vi-item-description::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.vi-item-description::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.vi-item-description::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* Share dialog box */
.vi-share-dialog {
	width: 90%;
	max-width: 400px;
	background-color: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 1100;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.vi-share-dialog input {
	width: 100%;
	padding: 8px;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.vi-share-dialog-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.vi-share-dialog-buttons button {
	padding: 8px 16px;
	font-size: 1em;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.vi-share-dialog-buttons .vi-copy-button {
	background-color: #007bff;
	color: white;
}

.vi-share-dialog-buttons .vi-copy-button:hover {
	background-color: #0056b3;
}

.vi-share-dialog-buttons .vi-cancel-button {
	background-color: #ccc;
	color: black;
}

.vi-share-dialog-buttons .vi-cancel-button:hover {
	background-color: #b3b3b3;
}

/* Mobile styles */
@media screen and (max-width: 900px) {
	.vi-dialog-box {
		width: 90%;
		height: 90%;
		min-width: 320px;
		min-height: 500px;
		flex-direction: column;
		overflow-y: auto;
	}

	.vi-left-section {
		width: 100%;
		min-width: unset;
		padding: 10px 10px;
	}

	.vi-main-image-container {
		height: 200px;
		justify-content: center;
	}

	.vi-thumbnail-bar {
		gap: 5px;
		padding: 5px 10px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.vi-thumbnail {
		width: 50px;
		height: 50px;
	}

	.vi-right-section {
		width: 100%;
		padding: 10px 10px;
	}

	.vi-item-title {
		font-size: 1.5em;
		margin: 0 0 10px;
	}


	.vi-item-id {
		margin: -10px 0 20px 0;
		font-weight: normal;
		font-size: 0.8em;
	}

	.vi-item-description {
		font-size: 0.9em;
		max-height: 300px;
	}

	.vi-close-button {
		width: 32px;
		height: 32px;
		font-size: 20px;
		top: 8px;
		right: 8px;
	}

	.vi-share-button {
		width: 32px;
		height: 32px;
		font-size: 20px;
		top: 8px;
		right: 48px;
	}

}
