/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jan 06 2026 | 06:41:19 */
.homenest__tab-ketqua { 
	margin-top: 20px; 
}

.homenest__tab-nav {
	display: flex;
	gap: 10px;
	list-style: none;
	padding: 0;
	justify-content: center;
	margin-bottom: 40px;
}

.homenest__tab {
	margin: 0 !important;
	width: 250px;
}

.homenest__tab a {
	transition: background 0.3s, color 0.3s;
	border: 2px solid transparent;
	border-radius: 32px;
	line-height: 1.5em;
	border-color: #0028AF;
	text-align: center;
	display: inline-block;
	padding: 12px 12px;
	text-transform: uppercase;
	font-size: 16px;
	width: 100%;
}

.homenest__tab a:hover {
	background: #e0e0e0;
}

.homenest__tab.active a {
	background: #0028AF;
	color: #fff;
}

.homenest__tab-container { 
	position: relative; 
}

.homenest__tab-item { 
	display: none; 
}

.homenest__tab-item.active { 
	display: block; 
}

.homenest__gallery {
	display: flex;
	flex-wrap: wrap;
	--gap: 20px;
	--column: 4;
	gap: var(--gap);
}

.homenest__gallery-item {
	/*     aspect-ratio: 1 / 1; */
	width: calc((100% - var(--gap) * (var(--column) - 1)) / var(--column) );
	/*     overflow: hidden; */
	position: relative;
	border-radius: 4px;
	cursor: pointer;
	transition: transform 0.3s, box-shadow 0.3s;
}

.homenest__gallery-item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity 0.3s;
	border-radius: 10px;
}

.homenest__gallery-item:hover img {
	opacity: 0.9;
}

.homenest__caption {
	margin: 0px;
	margin-top: 5px;
	font-size: 13px;
	color: #666;
	text-align: center;
}

.homenest__load-more {
	margin: 0;
	margin-top: 50px;
	background: #0028AF;
	color: #fff;
	padding: 5px 32px;
	border-radius: 41px;
	font-size: 14px;
	font-weight: 400;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.homenest__load-more:disabled {
	background: #999;
	cursor: not-allowed;
}

/* ========== LIGHTBOX MODAL ========== */
.hn-lightbox-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	/* 	overflow: hidden; */
	flex-direction: column;
}

.hn-lightbox-modal.active {
	display: flex !important;
}

.hn-lightbox-close {
	position: absolute;
	top: 20px;
	right: 35px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10001;
	transition: color 0.3s;
	line-height: 1;
}

.hn-lightbox-close:hover {
	color: #bbb;
}

.hn-lightbox-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.hn-lightbox-content {
	max-width: 90%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hn-lightbox-image-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
}

.hn-lightbox-image {
	max-width: 100%;
	max-height: 100vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hn-lightbox-caption {
	color: #fff;
	font-size: 14px;
	text-align: center;
	line-height: 1.5;
	padding: 5px 20px;
	display: none;
	position: absolute;
	bottom: 0px;
	width: 100%;
	margin: 0;
	transition: bottom .5s ease;
	background-color: #00000080;
}

.hn-lightbox-modal:has(.hn-lightbox-thumbnails.active) .hn-lightbox-caption {
	bottom: 150px;
}

.hn-lightbox-caption:not(:empty) {
	display: block;
}

.hn-lightbox-prev,
.hn-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 15px;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.3s;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
}

.hn-lightbox-prev {
	left: 20px;
}

.hn-lightbox-next {
	right: 20px;
}

.hn-lightbox-prev:hover,
.hn-lightbox-next:hover {
	background: rgba(0, 0, 0, 0.8);
}

.hn-lightbox-prev svg,
.hn-lightbox-next svg {
	display: block;
}

.hn-lightbox-counter {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 16px;
	background: rgba(0, 0, 0, 0.5);
	padding: 8px 16px;
	border-radius: 20px;
	z-index: 10001;
}

/* ========== THUMBNAIL GALLERY ========== */
.hn-lightbox-thumbnails {
	width: 100%;
	background: rgba(0, 0, 0, 0.8);
	padding: 15px;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	height: 150px;
	position: absolute;
	bottom: -150px;
	transition: bottom .5s ease;
}

.hn-lightbox-thumbnails.active {
	bottom: 0px;
}

.hn-lightbox-thumbnails::-webkit-scrollbar {
	height: 8px;
}

.hn-lightbox-thumbnails::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.3);
}

.hn-lightbox-thumbnails::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 4px;
}

.hn-lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

.hn-thumbnail-item {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	border: 3px solid transparent;
	transition: all 0.3s;
	opacity: 0.6;
}

.hn-thumbnail-item:hover {
	opacity: 1;
	transform: scale(1.05);
}

.hn-thumbnail-item.active {
	border-color: #fff;
	opacity: 1;
}

.hn-thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

button.hn--toggle-thumbnails {
	position: absolute;
	bottom: 0px;
	right: 20px;
	margin: 0;
	padding: 0;
	transition: bottom .5s ease;
}

.hn-lightbox-thumbnails.active + button.hn--toggle-thumbnails {
	bottom: 142px;
}

@media (max-width: 1200px) { 
	.homenest__tab {
		width: 25%;
	}

}

/* Responsive */
@media (max-width: 768px) {
	.homenest__gallery {
		--gap: 16px;
		--column: 2;
	}

	.homenest__tab-nav {
		flex-wrap: wrap;
		gap: 8px;
	}

	.homenest__tab {
		width: calc(50% - 4px);
	}

	.homenest__tab a {
		padding: 6px 12px;
		font-size: 14px;
	}

	.hn-lightbox-close {
		top: 10px;
		right: 15px;
		font-size: 30px;
	}

	.hn-lightbox-counter {
		top: 10px;
		font-size: 14px;
	}

	.hn-lightbox-main {
		padding: 50px 10px 10px;
	}

	.hn-lightbox-image {
		max-height: 50vh;
	}

	.hn-lightbox-prev,
	.hn-lightbox-next {
		width: 40px;
		height: 40px;
		padding: 10px;
	}

	.hn-lightbox-prev {
		left: 10px;
	}

	.hn-lightbox-next {
		right: 10px;
	}

	.hn-lightbox-caption {
		font-size: 14px;
		padding: 0 15px;
	}

	.hn-lightbox-thumbnails {
		padding: 10px;
		max-height: 100px;
	}

	.hn-thumbnail-item {
		width: 70px;
		height: 70px;
	}
}

@media (max-width: 480px) {

	.homenest__gallery {
		--gap: 8px;
		--column: 1;
	}

	.hn-thumbnail-item {
		width: 60px;
		height: 60px;
	}
	.homenest__tab a {
		padding: 6px 12px;
		font-size: 10px;
	}


}

@media (max-width: 480px) {
    /* Ẩn tất cả các ảnh từ vị trí thứ 4 trở đi */
    .homenest__gallery:not(.ajax-loading) .homenest__gallery-item:nth-child(n+4):nth-child(-n+8) {
        display: none !important;
    }
}