
.gallery-container {
	max-width: 1400px;
	margin: 80px auto 50px;
	padding: 20px;
	text-align: center;
}
.gallery-container h1 {
	font-size: 2.5rem;
	margin-bottom: 2rem;
	color: var(--accent-primary);
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.view-toggle {
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}
.view-toggle button {
	background: var(--card-bg);
	border: 2px solid var(--border-color);
	padding: 12px 24px;
	cursor: pointer;
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600;
	color: var(--text-color);
	font-family: 'Poppins', sans-serif;
	display: flex;
	align-items: center;
	gap: 8px;
}
.view-toggle button:hover {
	border-color: var(--accent-primary);
	transform: translateY(-2px);
	box-shadow: var(--hover-shadow);
}
.view-toggle button.active {
	background: var(--accent-primary);
	color: var(--text-color);
	border-color: transparent;
	box-shadow: 0 8px 25px rgba(196, 75, 255, 0.3);
}

.filter-controls {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
}
.filter-group {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 15px;
}
.search-group {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
.search-group input {
	min-width: 250px;
}

.gallery-view {
	display: none;
}
.gallery-view.active {
	display: block;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
	margin-top: 20px;
}
.grid-item {
	background: var(--card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid var(--border-color);
	cursor: pointer;
	min-height: 1000px;
}
.grid-item img {
	width: 100%;
	height: 70%;
	object-fit: cover;
	display: block;
}
.grid-item:hover {
	transform: translateY(-8px);
	box-shadow: var(--hover-shadow);
}
.grid-image-container {
	width: 60%;
	overflow: hidden;
	position: relative;
}
.grid-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.grid-item:hover .grid-image-container img {
	transform: scale(1.05);
}
.grid-item-info {
	padding: 20px;
	text-align: left;
}
.grid-item-info h3 {
	margin: 0 0 10px 0;
	font-size: 1.2rem;
	color: var(--text-color);
	font-weight: 600;
}
.grid-item-info p {
	margin: 0 0 15px 0;
	color: var(--text-color);
	opacity: 0.8;
	font-size: 0.95rem;
	line-height: 1.5;
}
.grid-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 15px;
}
.tag-badge {
	background: rgba(196, 75, 255, 0.1);
	color: var(--accent-primary);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(196, 75, 255, 0.2);
}
.event-badge {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(59, 130, 246, 0.2);
}
.featured-badge {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	font-weight: 500;
	border: 1px solid rgba(245, 158, 11, 0.2);
}
.grid-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: var(--text-color);
	opacity: 0.7;
}

.masonry-grid {
	column-count: 4;
	column-gap: 25px;
	margin-top: 20px;
}
.masonry-item {
	break-inside: avoid;
	margin-bottom: 25px;
	background: var(--card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	cursor: pointer;
	transition: all 0.3s ease;
}
.masonry-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--hover-shadow);
}
.masonry-image-container {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
}
.masonry-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.masonry-info {
	padding: 15px;
}
.masonry-info h4 {
	margin: 0 0 8px 0;
	font-size: 1rem;
	color: var(--text-color);
	font-weight: 600;
}
.masonry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.tags-container {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 20px;
}
.tag-section {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 25px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
}
.tag-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--border-color);
}
.tag-header h3 {
	margin: 0;
	color: var(--accent-primary);
	font-size: 1.4rem;
	font-weight: 600;
}
.tag-count {
	background: var(--accent-primary);
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.85rem;
	font-weight: 600;
}
.tag-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
}
.tag-image {
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}
.tag-image:hover {
	transform: scale(1.05);
}
.tag-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
}
.modal-content {
	background: var(--card-bg);
	margin: 2% auto;
	border-radius: 20px;
	width: 100%;
	max-width: 1400px;
	max-height: 90vh;
	overflow: hidden;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.close-modal {
	position: absolute;
	top: 20px;
	right: 5px;
	color: white;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.5);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.close-modal:hover {
	background: rgba(239, 68, 68, 0.8);
	transform: scale(1.1);
}
.modal-image-container {
	display: flex;
	height: 70vh;
	justify-content: center;
}
.modal-image-container img {
	object-fit: contain;
	background: var(--bg-color);
	max-width: 760px;
}
.image-info {
	padding: 30px;
	overflow-y: auto;
	border-left: 1px solid var(--border-color);
}
.image-info h3 {
	margin: 0 0 15px 0;
	color: white;
	font-size: 1.5rem;
	font-weight: 600;
}
.image-info p {
	color: white;
	opacity: 0.9;
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 1rem;
}
.modal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	color:white;
}
.image-meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.9rem;
	color: white;
	opacity: 0.7;
}
.modal-navigation {
	display: flex;
	justify-content: space-between;
	padding: 20px 30px;
	background: var(--card-bg);
	border-top: 1px solid var(--border-color);
}

.load-more-container {
	text-align: center;
	margin-top: 40px;
	width: 100%;
	display: flex;
	justify-content: center;
}
.load-more-container .button {
	padding: 15px 30px;
	font-size: 1rem;
	background-color: rgba(196, 75, 255, 0.95);
	color: white;
	border-radius: 10px;
	border: 0px;
}
.load-more-container .button:hover {
	padding: 15px 30px;
	font-size: 1rem;
	background-color: rgba(89, 23, 122, 0.95);
	color: white;
	border-radius: 10px;
	border: 0px;
	transition: 0.3s all ease-in-out;
}
.load-more-container .button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.no-images, .no-tags {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: var(--text-color);
	opacity: 0.7;
}
.no-images i, .no-tags i {
	font-size: 3rem;
	margin-bottom: 20px;
	opacity: 0.3;
}
.no-images h3, .no-tags h3 {
	margin-bottom: 10px;
	font-size: 1.5rem;
}

@media (max-width: 1024px) {
	.masonry-grid {
	column-count: 3;
	}
	.gallery-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	}
	.modal-image-container {
	flex-direction: column;
	height: auto;
	}
	.modal-image-container img {
	width: 100%;
	}
	.image-info {
	width: 100%;
	border-left: none;
	border-top: 1px solid var(--border-color);
	}
}
@media (max-width: 768px) {
	.masonry-grid {
	column-count: 2;
	}
	.gallery-grid {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
	}
	.filter-group {
	flex-direction: column;
	align-items: center;
	}
	.search-group {
	flex-direction: column;
	width: 100%;
	}
	.search-group input {
	min-width: auto;
	width: 100%;
	}
	.view-toggle {
	flex-direction: column;
	align-items: center;
	}
	.view-toggle button {
	width: 200px;
	}
	.modal-content {
	width: 95%;
	margin: 5% auto;
	}
	.tag-images {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
}
@media (max-width: 480px) {
	.masonry-grid {
	column-count: 1;
	}
	.gallery-grid {
	grid-template-columns: 1fr;
	}
	.gallery-container {
	margin: 60px auto 30px;
	padding: 15px;
	}
	.gallery-container h1 {
	font-size: 2rem;
	}
	.tag-images {
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
	.grid-image-container {
	height: 200px;
	}
	.masonry-image-container {
	height: 180px;
	}
	.tag-image {
	height: 120px;
	}
}

.animate-stagger {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeInUp {
	to {
	opacity: 1;
	transform: translateY(0);
	}
}

.loading {
	opacity: 0.6;
	pointer-events: none;
}
.spin {
	animation: spin 1s linear infinite;
}
@keyframes spin {
	from {
	transform: rotate(0deg);
	}
	to {
	transform: rotate(360deg);
	}
}

.filter-controls {
	background: var(--card-bg);
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}
.filter-controls:focus-within {
	box-shadow: 0 8px 25px rgba(196, 75, 255, 0.15);
	border-color: var(--accent-primary);
}
.filter-group {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.search-group {
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
}

.form-input {
	background: var(--bg-color);
	border: 2px solid var(--border-color);
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 0.95rem;
	color: var(--text-color);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: 'Poppins', sans-serif;
	min-width: 180px;
}
.form-input:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(196, 75, 255, 0.1);
	transform: translateY(-2px);
}
.form-input:hover {
	border-color: var(--accent-secondary);
}

#searchGallery {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' width='20' height='20'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 16px center;
	background-size: 20px;
	padding-left: 48px;
	min-width: 300px;
	background-color: var(--bg-color);
}
#searchGallery::placeholder {
	color: var(--text-color);
	opacity: 0.6;
}
#searchGallery:focus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C44BFF' width='20' height='20'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'%3E%3C/path%3E%3C/svg%3E");
}

select.form-input {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' width='20' height='20'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	padding-right: 48px;
	cursor: pointer;
}
select.form-input:focus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C44BFF' width='20' height='20'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

#clearFilters {
	background: var(--bg-color);
	border: 2px solid var(--border-color);
	color: var(--text-color);
	padding: 12px 20px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 120px;
	justify-content: center;
}
#clearFilters:hover {
	background: rgba(239, 68, 68, 0.1);
	border-color: #ef4444;
	color: #ef4444;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
#clearFilters:active {
	transform: translateY(0);
}

.modal-navigation {
	display: flex;
	justify-content: space-between;
	padding: 25px 30px;
	background: var(--card-bg);
	border-top: 1px solid var(--border-color);
	gap: 15px;
}
.modal-navigation .button {
	background: var(--accent-primary);
	border: 2px solid transparent;
	color: white;
	padding: 14px 28px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 140px;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.modal-navigation .button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}
.modal-navigation .button:hover::before {
	left: 100%;
}
.modal-navigation .button:hover {
	background: var(--accent-secondary);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(196, 75, 255, 0.4);
}
.modal-navigation .button:active {
	transform: translateY(0);
}
.modal-navigation .button:disabled {
	background: var(--border-color);
	color: var(--text-color);
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.modal-navigation .button:disabled:hover {
	background: var(--border-color);
	transform: none;
	box-shadow: none;
}

#prevImage {
	background: linear-gradient(135deg, var(--accent-primary), #9333ea);
}
#prevImage:hover {
	background: linear-gradient(135deg, #9333ea, var(--accent-primary));
}

#nextImage {
	background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}
#nextImage:hover {
	background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

@media (max-width: 768px) {
	.filter-controls {
	padding: 20px;
	}
	.form-input {
	min-width: 100%;
	width: 100%;
	}
	#searchGallery {
	min-width: auto;
	}
	.search-group {
	width: 100%;
	}
	.modal-navigation {
	flex-direction: column;
	gap: 12px;
	}
	.modal-navigation .button {
	min-width: auto;
	width: 100%;
	}
}
@media (max-width: 480px) {
	.filter-controls {
	padding: 15px;
	}
	.form-input {
	padding: 10px 14px;
	font-size: 0.9rem;
	}
	#searchGallery {
	background-position: 12px center;
	padding-left: 40px;
	}
	.modal-navigation .button {
	padding: 12px 20px;
	font-size: 0.9rem;
	}
}

.search-group.loading #searchGallery {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C44BFF' width='20' height='20'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6v6m0 0v6m0-6h6m-6 0H6'%3E%3C/path%3E%3C/svg%3E");
	animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% {
	opacity: 1;
	}
	50% {
	opacity: 0.7;
	}
}

.grid-item-info h3,.masonry-info h4,.tag-header h3 {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.grid-item-info p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.5;
	max-height: 4.5em;
	
}

.grid-item-info h3 {
	max-width: 100%;
}
.masonry-info h4 {
	max-width: 100%;
}

.tag-badge,.event-badge,.featured-badge {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 120px;
}

.tag-header h3 {
	max-width: 200px;
}

@media (max-width: 768px) {
	.grid-item-info p {
	-webkit-line-clamp: 2;
	max-height: 3em;
	}
	.tag-badge,.event-badge,.featured-badge {
	max-width: 100px;
	}
}
@media (max-width: 480px) {
	.grid-item-info p {
	-webkit-line-clamp: 2;
	max-height: 3em;
	}
	.tag-badge,.event-badge,.featured-badge {
	max-width: 80px;
	font-size: 0.75rem;
	}
}

.grid-meta span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 120px;
	display: inline-block;
}

.grid-item-info,.masonry-info {
	min-width: 0;
	
}

.masonry-info h4 {
	margin: 0 0 8px 0;
	font-size: 1rem;
	color: var(--text-color);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.masonry-info p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
	max-height: 2.8em;
	margin: 0 0 10px 0;
	color: var(--text-color);
	opacity: 0.8;
	font-size: 0.9rem;
}

.image-info h3,.image-info p,.modal-tags,.image-meta span {
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	max-width: none;
}
.image-info p {
	display: block;
	-webkit-line-clamp: none;
	-webkit-box-orient: horizontal;
	max-height: none;
}
.modal-tags .tag-badge {
	max-width: none;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	overflow-y: auto;
}
.modal-content {
	background: var(--card-bg);
	margin: 50px auto;
	border-radius: 20px;
	width: 95%;
	max-width: 1400px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	display: block;
	
	min-height: auto;
	height: auto;
	overflow: visible;
}
.close-modal {
	position: absolute;
	top: 20px;
	right: 20px;
	color: white;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001;
	background: rgba(0, 0, 0, 0.5);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}
.close-modal:hover {
	background: rgba(239, 68, 68, 0.8);
	transform: scale(1.1);
}
.modal-image-container {
	display: flex;
	justify-content: center;
	align-items: center;
	background: var(--bg-color);
	padding: 60px 40px;
	width: 100%;
	border-radius: 20px 20px 0 0;
}
.modal-image-container img {
	object-fit: contain;
	max-width: 100%;
	max-height: 52vh;
	width: auto;
	height: auto;
}
.image-info {
	padding: 40px;
	border-top: 1px solid var(--border-color);
}
.image-info h3 {
	margin: 0 0 20px 0;
	color: white;
	font-size: 2rem;
	font-weight: 600;
}
.image-info p {
	color: white;
	opacity: 0.9;
	line-height: 1.6;
	margin-bottom: 25px;
	font-size: 1.1rem;
}
.modal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 25px;
	color: white;
}
.image-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 1rem;
	color: white;
	opacity: 0.7;
}
.modal-navigation {
	display: flex;
	justify-content: space-between;
	padding: 30px 40px;
	background: var(--card-bg);
	border-top: 1px solid var(--border-color);
	border-radius: 0 0 20px 20px;
}

.modal::-webkit-scrollbar {
	width: 12px;
}
.modal::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
}
.modal::-webkit-scrollbar-thumb {
	background: var(--accent-primary);
	border-radius: 6px;
	border: 2px solid rgba(0, 0, 0, 0.9);
}
.modal::-webkit-scrollbar-thumb:hover {
	background: var(--accent-secondary);
}

@media (max-width: 1024px) {
	.masonry-grid {
	column-count: 3;
	}
	.gallery-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	}
	.modal-content {
	width: 98%;
	margin: 30px auto;
	}
	.modal-image-container {
	padding: 40px 30px;
	}
	.modal-image-container img {
	max-height: 70vh;
	}
	.image-info {
	padding: 30px;
	}
}
@media (max-width: 768px) {
	.masonry-grid {
	column-count: 2;
	}
	.gallery-grid {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
	}
	.modal-content {
	margin: 20px auto;
	width: 98%;
	}
	.modal-image-container {
	padding: 30px 20px;
	}
	.modal-image-container img {
	max-height: 60vh;
	}
	.image-info {
	padding: 25px;
	}
	.image-info h3 {
	font-size: 1.6rem;
	}
	.modal-navigation {
	padding: 25px;
	}
}
@media (max-width: 480px) {
	.masonry-grid {
	column-count: 1;
	}
	.gallery-grid {
	grid-template-columns: 1fr;
	}
	.modal-content {
	margin: 10px auto;
	width: 99%;
	border-radius: 15px;
	}
	.modal-image-container {
	padding: 20px 15px;
	border-radius: 15px 15px 0 0;
	}
	.modal-image-container img {
	max-height: 50vh;
	}
	.image-info {
	padding: 20px;
	}
	.image-info h3 {
	font-size: 1.4rem;
	}
	.image-info p {
	font-size: 1rem;
	}
	.modal-navigation {
	padding: 20px;
	flex-direction: column;
	gap: 10px;
	border-radius: 0 0 15px 15px;
	}
	.modal-navigation .button {
	width: 100%;
	}
}

.video-container {
	position: relative;
	cursor: pointer;
}
.video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.3);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}
.video-container:hover .video-overlay {
	opacity: 0.8;
}
.play-button {
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}
.video-container:hover .play-button {
	transform: scale(1.1);
}
.video-duration {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0,0,0,0.7);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.modal video {
	max-width: 100%;
	max-height: 90%;
	border-radius: 8px;
	background: #000;
}
.media-type-badge {
	background: #3b82f6;
	color: white;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	display: inline-block;
	margin-bottom: 8px;
}
