/* ================================================
   PHOTO GALLERY - FRESH DESIGN
   Simple, Clean, Works Perfectly
   ================================================ */

:root 
{
	--primary-color: #4a148c;
	--secondary-color: #ffd54f;
	--white: #ffffff;
	--dark-text: #212121;
	--light-bg: #f5f5f5;
	--gray-border: #e0e0e0;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   PAGE HEADER
   ================================================ */

.page-header 
{
	background: linear-gradient(135deg, var(--primary-color) 0%, #6a1b9a 100%);
	color: var(--white);
	padding: 100px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
	min-height: 350px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-header::before 
{
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: rgba(255, 213, 79, 0.1);
	border-radius: 50%;
	z-index: 1;
}

.page-header::after 
{
	content: '';
	position: absolute;
	bottom: -30%;
	left: -5%;
	width: 400px;
	height: 400px;
	background: rgba(255, 213, 79, 0.05);
	border-radius: 50%;
	z-index: 1;
}

.page-header-content 
{
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.page-header h1 
{
	font-size: 56px;
	font-weight: 700;
	margin-bottom: 15px;
	letter-spacing: -1px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.page-header h1 i 
{
	font-size: 50px;
	color: var(--secondary-color);
}

.page-header p 
{
	font-size: 20px;
	margin-bottom: 30px;
	opacity: 0.95;
	font-weight: 300;
	line-height: 1.6;
}

.breadcrumb 
{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	opacity: 0.9;
}

.breadcrumb a 
{
	color: var(--secondary-color);
	text-decoration: none;
	transition: var(--transition);
	font-weight: 500;
}

.breadcrumb a:hover 
{
	opacity: 0.8;
	text-decoration: underline;
}

/* ================================================
   GALLERY SECTION
   ================================================ */

.gallery-section 
{
	background-color: var(--white);
	padding: 80px 20px;
}

.gallery-container 
{
	max-width: 1200px;
	margin: 0 auto;
}

/* ================================================
   GALLERY MASONRY LAYOUT
   ================================================ */

.gallery-masonry 
{
	column-count: 4;
	column-gap: 25px;
	margin-bottom: 60px;
}

.gallery-item 
{
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	margin-bottom: 25px;
	break-inside: avoid;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: var(--light-bg);
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
	transform-origin: center;
}

.gallery-item:hover 
{
	transform: translateY(-8px);
	box-shadow: var(--shadow-lg);
}

.gallery-item .overlay 
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(74, 20, 140, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s;
}

.gallery-item-image 
{
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	object-fit: cover;
	transition: var(--transition);
}

.gallery-item:hover .gallery-item-image 
{
	transform: scale(1.05);
}

.gallery-item-overlay 
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(74, 20, 140, 0.85) 0%, rgba(106, 27, 154, 0.8) 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: var(--transition);
	padding: 20px;
	text-align: center;
	border-radius: 12px;
}

.gallery-item:hover .gallery-item-overlay 
{
	opacity: 1;
}

.gallery-item-overlay h3 
{
	font-size: 18px;
	color: var(--secondary-color);
	margin-bottom: 8px;
	font-weight: 700;
}

.gallery-item-overlay p 
{
	font-size: 13px;
	color: var(--white);
	line-height: 1.5;
	opacity: 0.95;
}

/* ================================================
   LIGHTBOX MODAL
   ================================================ */

.lightbox 
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	backdrop-filter: blur(5px);
}

.lightbox.active 
{
	opacity: 1;
	visibility: visible;
}

.lightbox-content 
{
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomIn 
{
	from 
	{
		opacity: 0;
		transform: scale(0.95);
	}
	to 
	{
		opacity: 1;
		transform: scale(1);
	}
}

.lightbox-image 
{
	max-width: 100%;
	max-height: 75vh;
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	object-fit: contain;
	animation: imageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes imageSlideIn 
{
	from 
	{
		opacity: 0;
		transform: scale(0.9);
	}
	to 
	{
		opacity: 1;
		transform: scale(1);
	}
}

.lightbox-close 
{
	position: absolute;
	top: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	background: rgba(74, 20, 140, 0.9);
	border: 2px solid var(--secondary-color);
	border-radius: 50%;
	color: var(--white);
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
	z-index: 10001;
}

.lightbox-close:hover 
{
	background: var(--secondary-color);
	color: var(--primary-color);
	transform: rotate(90deg);
}

.lightbox-caption 
{
	text-align: center;
	color: var(--white);
	padding: 25px 30px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 12px;
	margin-top: 25px;
	backdrop-filter: blur(10px);
	max-width: 600px;
	animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp 
{
	from 
	{
		opacity: 0;
		transform: translateY(20px);
	}
	to 
	{
		opacity: 1;
		transform: translateY(0);
	}
}

.lightbox-caption h3 
{
	font-size: 24px;
	margin-bottom: 10px;
	font-weight: 700;
	color: var(--secondary-color);
}

.lightbox-caption p 
{
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.95;
	color: var(--white);
}

/* ================================================
   GALLERY COUNTER
   ================================================ */

.gallery-counter 
{
	text-align: center;
	color: var(--gray-text);
	font-size: 14px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--gray-border);
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */

@media (max-width: 1024px) 
{
	.gallery-masonry 
	{
		column-count: 3;
		column-gap: 20px;
	}

	.gallery-item 
	{
		margin-bottom: 20px;
	}

	.page-header h1 
	{
		font-size: 40px;
	}

	.page-header p 
	{
		font-size: 18px;
	}
}

@media (max-width: 768px) 
{
	.gallery-masonry 
	{
		column-count: 2;
		column-gap: 15px;
	}

	.gallery-item 
	{
		margin-bottom: 15px;
	}

	.page-header 
	{
		padding: 60px 20px;
		min-height: 300px;
	}

	.page-header h1 
	{
		font-size: 32px;
		gap: 12px;
	}

	.page-header h1 i 
	{
		font-size: 36px;
	}

	.page-header p 
	{
		font-size: 16px;
	}

	.gallery-section 
	{
		padding: 50px 15px;
	}

	.lightbox-close 
	{
		width: 45px;
		height: 45px;
		font-size: 24px;
		top: 10px;
		right: 10px;
	}

	.lightbox-image 
	{
		max-height: 60vh;
	}

	.lightbox-caption 
	{
		padding: 15px 20px;
		margin-top: 15px;
		max-width: 90vw;
	}

	.lightbox-caption h3 
	{
		font-size: 18px;
	}

	.lightbox-caption p 
	{
		font-size: 13px;
	}
}

@media (max-width: 480px) 
{
	.gallery-masonry 
	{
		column-count: 1;
		column-gap: 10px;
	}

	.gallery-item 
	{
		margin-bottom: 15px;
	}

	.page-header 
	{
		padding: 50px 15px;
		min-height: 250px;
	}

	.page-header h1 
	{
		font-size: 28px;
		flex-direction: column;
	}

	.page-header h1 i 
	{
		margin-bottom: 10px;
		font-size: 32px;
	}

	.page-header p 
	{
		font-size: 14px;
	}

	.gallery-section 
	{
		padding: 40px 10px;
	}

	.lightbox-close 
	{
		width: 40px;
		height: 40px;
		font-size: 20px;
		top: 8px;
		right: 8px;
	}

	.lightbox-image 
	{
		max-height: 50vh;
	}
}

/* ================================================
   ANIMATIONS
   ================================================ */

.gallery-item 
{
	opacity: 0;
	animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp 
{
	to 
	{
		opacity: 1;
		transform: translateY(0);
	}
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(n+5) { animation-delay: 0.1s; }

/* ================================================
   ACCESSIBILITY
   ================================================ */

@media (prefers-reduced-motion: reduce) 
{
	* {
		animation: none !important;
		transition: none !important;
	}
}

.gallery-item:focus-visible
{
	outline: 3px solid var(--secondary-color);
	outline-offset: 2px;
}

.lightbox-close:focus-visible 
{
	outline: 3px solid var(--secondary-color);
	outline-offset: 2px;
}

/* ================================================
   LOADING STATE
   ================================================ */

.gallery-item.loading 
{
	background: linear-gradient(-45deg, var(--light-bg) 25%, #eeeeee 50%, var(--light-bg) 75%);
	background-size: 400% 400%;
	animation: gradientShift 1.5s infinite;
}

@keyframes gradientShift 
{
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}