/* -------------------------------------------------
   MASONRY RESPONSIVE GALLERY
--------------------------------------------------- */
.gallery-wrap {
	padding: 40px 20px;
}

.masonry-grid {
	max-width: 1300px;
	margin: 0 auto;
	column-count: 3;
	column-gap: 18px;
}

@media (max-width: 1100px) {
	.masonry-grid {
		column-count: 2;
	}
}

@media (max-width: 650px) {
	.masonry-grid {
		column-count: 1;
		column-gap: 12px;
	}
}

.masonry-item {
	width: 100%;
	margin-bottom: 18px;
	border-radius: 14px;
	break-inside: avoid;
	cursor: pointer;
	transition: 0.3s ease;
	background: #4577b3;
	box-shadow: 0 4px 12px rgb(72 123 179 / 68%);
}

.masonry-item:hover {
	transform: scale(1.035);
}

/* -------------------------------------------------
   LIGHTBOX POPUP
--------------------------------------------------- */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.90);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.lightbox.hidden {
	display: none;
}

.lightbox img {
	max-width: 92%;
	max-height: 88%;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

/* Close button */
.close-btn {
	position: absolute;
	top: 25px;
	right: 35px;
	font-size: 40px;
	color: white;
	cursor: pointer;
	transition: 0.2s ease;
	font-weight: 300;
}

.close-btn:hover {
	opacity: 0.7;
}

/* Arrows */
.lightbox-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	font-size: 50px;
	padding: 12px;
	cursor: pointer;
	opacity: 0.85;
	transition: 0.25s ease;
}

.lightbox-arrow:hover {
	opacity: 1;
}

.lightbox-arrow.prev {
	left: 25px;
}

.lightbox-arrow.next {
	right: 25px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.lightbox-arrow {
		font-size: 38px;
		padding: 10px;
	}

	.lightbox-arrow.prev {
		left: 10px;
	}

	.lightbox-arrow.next {
		right: 10px;
	}
}

/* -------------------------------------------------
   FADE-IN ANIMATION
--------------------------------------------------- */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: 0.6s ease;
}

.in-view {
	opacity: 1 !important;
	transform: none !important;
}