/* Gallery List Style */
.gallery-container {
	position: relative;
	margin: 0 0 30px;
}

/* Checkbox All */
.gallery-checkbox-all {
	padding: 10px 15px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	margin-bottom: 20px;
	border-radius: 4px;
}

.gallery-checkbox-all label {
	margin: 0;
	cursor: pointer;
	font-weight: normal;
}

/* Gallery List */
.gallery-list {
	margin-bottom: 20px;
}

.gallery-item {
	margin-bottom: 15px;
}

/* Gallery Box */
.gallery-box {
	position: relative;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.3s ease;
	height: 100%;
}

.gallery-box:hover {
	border-color: #ddd;
	box-shadow: 0 3px 10px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

/* Checkbox */
.gallery-check {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	background: rgba(255,255,255,0.9);
	padding: 3px;
	border-radius: 3px;
}

/* Gallery Image */
.gallery-image {
	position: relative;
	overflow: hidden;
	background: #f8f9fa;
}

.gallery-image .img-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.gallery-image .img-item {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.gallery-image img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s ease;
}

.gallery-box:hover .gallery-image img {
	transform: translate(-50%, -50%) scale(1.1);
}

/* Video Icon */
.video-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 48px;
	opacity: 0.8;
	text-shadow: 0 2px 5px rgba(0,0,0,0.3);
	pointer-events: none;
	z-index: 5;
}

/* Gallery Overlay */
.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery-box:hover .gallery-overlay {
	opacity: 1;
}

.overlay-content {
	text-align: center;
	color: #fff;
	padding: 20px;
}

.overlay-icon {
	font-size: 32px;
	color: #fff;
}

.gallery-overlay .gallery-title {
	color: #fff;
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 500;
}

.gallery-overlay .gallery-meta {
	color: rgba(255,255,255,0.8);
	font-size: 12px;
}

.gallery-overlay .gallery-meta span {
	margin: 0 5px;
}

/* Gallery Info */
.gallery-info {
	padding: 15px;
}

.gallery-category {
	display: inline-block;
	padding: 2px 8px;
	background: #007bff;
	color: #fff;
	font-size: 11px;
	border-radius: 3px;
	margin-bottom: 8px;
}

.gallery-info .gallery-title {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.4;
	height: 2.8em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.gallery-info .gallery-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s;
}

.gallery-info .gallery-title a:hover {
	color: #007bff;
}

.gallery-info .count {
	color: #ff6600;
	font-size: 12px;
	margin-left: 3px;
}

/* Gallery Meta */
.gallery-meta {
	font-size: 12px;
	color: #999;
}

.gallery-meta span {
	margin-right: 10px;
	white-space: nowrap;
}

.gallery-meta i {
	margin-right: 3px;
}

/* No Content */
.gallery-none {
	text-align: center;
	padding: 80px 20px;
	background: #f8f9fa;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.gallery-none p {
	margin-top: 20px;
	font-size: 16px;
	color: #666;
}

/* Responsive */
@media (max-width: 991px) {
	.gallery-info .gallery-title {
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.gallery-item {
		margin-bottom: 10px;
	}
	
	.gallery-info {
		padding: 10px;
	}
	
	.gallery-info .gallery-title {
		font-size: 12px;
		margin-bottom: 5px;
	}
	
	.gallery-meta {
		font-size: 11px;
	}
	
	.video-icon {
		font-size: 32px;
	}
	
	.gallery-overlay {
		display: none;
	}
}

/* Masonry Layout Option */
.gallery-masonry .gallery-item {
	float: left;
}

.gallery-masonry .gallery-box {
	margin-bottom: 0;
}

/* Dark Theme Support */
.dark-theme .gallery-box {
	background: #2d2d2d;
	border-color: #444;
}

.dark-theme .gallery-box:hover {
	border-color: #555;
}

.dark-theme .gallery-info .gallery-title a {
	color: #e5e5e5;
}

.dark-theme .gallery-info .gallery-title a:hover {
	color: #4a9eff;
}

.dark-theme .gallery-meta {
	color: #999;
}

.dark-theme .gallery-none {
	background: #2d2d2d;
	border-color: #444;
	color: #e5e5e5;
}