/* =========================================================
   KUMIRU GALLERY PAGE - FULLY RESPONSIVE
   ========================================================= */

#gallery-page {
	padding: 24px 0 60px;
	background: var(--bg);
}

/* Gallery Filter Buttons */
.gallery-filters {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.gallery-filters .filter-btn {
	padding: 10px 28px;
	border-radius: var(--radius-full);
	border: 1.5px solid var(--border);
	background: transparent;
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 600;
	font-family: "Inter", sans-serif;
	cursor: pointer;
	transition: all var(--transition);
}

.gallery-filters .filter-btn:hover {
	border-color: var(--text);
	color: var(--text);
}

.gallery-filters .filter-btn.active {
	background: var(--accent);
	color: #ffffff;
	border-color: var(--accent);
}

/* Gallery Grid - RESPONSIVE BREAKPOINTS */
.gallery-grid {
	display: grid;
	gap: 20px;
}

/* Desktop: 4 columns */
@media (min-width: 1025px) {
	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Tablet: 3 columns */
@media (min-width: 769px) and (max-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.gallery-filters .filter-btn {
		padding: 8px 20px;
		font-size: 0.8rem;
	}
}

/* Small Mobile: 2 columns (keep same) */
@media (max-width: 480px) {
	#gallery-page {
		padding: 16px 0 40px;
	}

	.gallery-filters {
		gap: 8px;
	}

	.gallery-filters .filter-btn {
		padding: 6px 16px;
		font-size: 0.75rem;
	}
}

/* Gallery Hero */
.gallery-hero {
	margin-bottom: 36px;
}

.gallery-hero h1 {
	font-size: 1.8rem;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 8px;
	letter-spacing: -0.02em;
}

.gallery-hero p {
	font-size: 0.95rem;
	color: var(--text-light);
	font-family: "Inter", sans-serif;
	margin: 0;
	max-width: 480px;
}

@media (max-width: 768px) {
	.gallery-hero h1 {
		font-size: 1.4rem;
	}
}

/* Gallery Card */
.gallery-card {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
	background: var(--surface);
	aspect-ratio: 1 / 1.2;
}

.gallery-card-image {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gallery-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition:
		transform 0.5s ease,
		filter 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
	transform: scale(1.05);
	filter: brightness(0.4);
}

/* Overlay */
.gallery-card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 20px;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.75) 0%,
		rgba(0, 0, 0, 0.3) 60%,
		transparent 100%
	);
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
	pointer-events: none;
}

.gallery-card:hover .gallery-card-overlay {
	opacity: 1;
	transform: translateY(0);
}

.gallery-card-overlay h3 {
	font-size: 1rem;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 6px;
}

.gallery-card-overlay p {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.8);
	font-family: "Inter", sans-serif;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 768px) {
	.gallery-card-overlay {
		padding: 16px 14px;
	}

	.gallery-card-overlay h3 {
		font-size: 0.85rem;
	}

	.gallery-card-overlay p {
		font-size: 0.72rem;
	}
}

/* Lightbox - keep existing styles */
.gallery-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.gallery-lightbox.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lightbox-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90vw;
	max-height: 90vh;
}

.lightbox-content img {
	max-width: 90vw;
	max-height: 75vh;
	object-fit: contain;
	border-radius: var(--radius-md);
}

.lightbox-info {
	text-align: center;
	margin-top: 20px;
	max-width: 600px;
}

.lightbox-info h3 {
	font-size: 1.2rem;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 6px;
}

.lightbox-info p {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	font-family: "Inter", sans-serif;
	line-height: 1.5;
	margin: 0;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
	z-index: 10;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition);
	z-index: 10;
}

.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
	left: 20px;
}

.lightbox-next {
	right: 20px;
}

@media (max-width: 768px) {
	.lightbox-nav {
		width: 36px;
		height: 36px;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}

	.lightbox-close {
		top: 12px;
		right: 12px;
		width: 36px;
		height: 36px;
	}

	.lightbox-info h3 {
		font-size: 1rem;
	}

	.lightbox-info p {
		font-size: 0.8rem;
	}
}
