/* ===================================
BREADCRUMB SECTION
=================================== */
.breadcrumb-section {
	position: relative;
	height: 300px;
	max-height: 300px;
	background: linear-gradient(135deg, #2C1A11 0%, #5D3A1A 100%);
	background-image: url('../images/gallery-breadcrumb-bg.jpeg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-top: 76px;
}
.breadcrumb-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(44, 26, 17, 0.85), rgba(44, 26, 17, 0.75));
}
.breadcrumb-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 40px 20px;
	max-width: 800px;
}
.breadcrumb-nav { margin-bottom: 20px; }
.breadcrumb-list {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}
.breadcrumb-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(253, 251, 247, 0.8);
}
.breadcrumb-item a {
	color: rgba(253, 251, 247, 0.9);
	text-decoration: none;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}
.breadcrumb-item a:hover { color: var(--accent-gold); }
.breadcrumb-item.active {
	color: var(--accent-gold);
	font-weight: 600;
}
.breadcrumb-separator {
	color: var(--accent-gold);
	font-size: 12px;
}
.breadcrumb-title {
	font-size: clamp(36px, 5vw, 56px);
	color: var(--text-light);
	margin-bottom: 15px;
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.breadcrumb-description {
	font-size: 18px;
	color: rgba(253, 251, 247, 0.9);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ===================================
GALLERY PAGE SECTION (legacy masonry layout styles)
=================================== */
.gallery-page-section {
	padding: 80px 0;
	min-height: 800px;
}
/* Filter Tabs - Horizontal Scroll */
.gallery-filter-tabs {
	display: flex;
	gap: 15px;
	margin-bottom: 30px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 0 20px;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
}
.gallery-filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 30px;
	background: white;
	border: 2px solid rgba(227, 168, 87, 0.2);
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-gray);
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Poppins', sans-serif;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	white-space: nowrap;
	flex-shrink: 0;
}
.filter-tab i {
	font-size: 18px;
	color: var(--accent-gold);
	transition: transform 0.3s ease;
}
.filter-tab:hover {
	border-color: var(--accent-gold);
	color: var(--primary-dark);
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(227, 168, 87, 0.2);
}
.filter-tab:hover i { transform: scale(1.2); }
.filter-tab.active {
	background: var(--gradient-primary);
	border-color: var(--accent-gold);
	color: var(--primary-dark);
	box-shadow: 0 10px 30px rgba(227, 168, 87, 0.3);
}
.filter-tab.active i { color: var(--primary-dark); }

/* Masonry Gallery Grid (scoped so it never touches the polaroid grid) */
.gallery-masonry {
	column-count: 4;
	column-gap: 25px;
	padding: 0 20px;
}
.gallery-masonry .gallery-item {
	break-inside: avoid;
	margin-bottom: 25px;
}
.gallery-item {
	position: relative;
	cursor: pointer;
}
.gallery-item-wrapper {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.4s ease;
	background: white;
}
.gallery-item:hover .gallery-item-wrapper {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.gallery-masonry .gallery-item img {
	width: 100%;
	display: block;
	transition: transform 0.6s ease;
}
.gallery-masonry .gallery-item:hover img { transform: scale(1.1); }
/* Tall items for masonry variety */
.gallery-item.tall .gallery-item-wrapper { height: 400px; }
.gallery-item.tall img {
	height: 100%;
	object-fit: cover;
}
/* Gallery Overlay */
.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(44, 26, 17, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.eye-icon {
	width: 60px;
	height: 60px;
	background: var(--gradient-primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 10px 30px rgba(227, 168, 87, 0.5);
}
.gallery-item:hover .eye-icon { transform: scale(1); }
.eye-icon i {
	font-size: 24px;
	color: var(--primary-dark);
}
/* Gallery Item Info */
.gallery-item-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	background: linear-gradient(to top, rgba(44, 26, 17, 0.9), transparent);
	color: white;
	transform: translateY(100%);
	transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-item-info { transform: translateY(0); }
.gallery-item-info h4 {
	font-size: 18px;
	margin-bottom: 5px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
}
.gallery-item-info span {
	font-size: 13px;
	opacity: 0.9;
}
/* Video Items */
.video-item .play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70px;
	height: 70px;
	background: rgba(227, 168, 87, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
	opacity: 0;
	transition: all 0.4s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.video-item:hover .play-button {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1.1);
}
.play-button i {
	font-size: 28px;
	color: var(--primary-dark);
	margin-left: 5px;
}

/* ===================================
IMAGE MODAL
=================================== */
.image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(44, 26, 17, 0.98);
	z-index: 3000;
	animation: fadeIn 0.3s ease;
}
.image-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.modal-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	animation: zoomIn 0.3s ease;
	text-align: center;
}
@keyframes zoomIn {
	from { opacity: 0; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1); }
}
.modal-content img {
	width: 100%;
	height: auto;
	max-height: 75vh;
	object-fit: contain;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-info {
	padding: 25px;
	color: var(--text-light);
}
.modal-info h3 {
	font-size: 28px;
	margin-bottom: 10px;
	font-family: 'Playfair Display', serif;
}
.modal-info p {
	font-size: 16px;
	opacity: 0.9;
}
.modal-close {
	position: absolute;
	top: 30px;
	right: 40px;
	width: 55px;
	height: 55px;
	background: var(--gradient-primary);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 3001;
	color: var(--primary-dark);
	font-size: 24px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.modal-close:hover {
	background: var(--accent-gold);
	transform: rotate(90deg) scale(1.1);
	box-shadow: 0 8px 30px rgba(227, 168, 87, 0.6);
}
.modal-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 65px;
	height: 65px;
	background: var(--gradient-primary);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	color: var(--primary-dark);
	font-size: 24px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	z-index: 3001;
}
.modal-nav:hover {
	background: var(--accent-gold);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 8px 30px rgba(227, 168, 87, 0.6);
}
.modal-nav.prev { left: 40px; }
.modal-nav.next { right: 40px; }

/* ===================================
RESPONSIVE DESIGN
=================================== */
@media (max-width: 1200px) {
	.gallery-masonry { column-count: 3; }
	.gallery-item.tall .gallery-item-wrapper { height: 350px; }
}
@media (max-width: 992px) {
	.gallery-masonry { column-count: 2; }
	.gallery-item.tall .gallery-item-wrapper { height: 300px; }
	.filter-tab { padding: 12px 25px; font-size: 14px; }
}
@media (max-width: 768px) {
	.breadcrumb-section {
		height: 350px;
		max-height: 350px;
		margin-top: 80px;
	}
	.breadcrumb-title { font-size: 36px; }
	.gallery-page-section { padding: 60px 0; }
	.gallery-filter-tabs { gap: 12px; margin-bottom: 40px; padding: 0 15px; }
	.filter-tab { padding: 12px 20px; font-size: 13px; }
	.filter-tab i { font-size: 16px; }
	.gallery-masonry { column-count: 2; column-gap: 15px; padding: 0 15px; }
	.gallery-masonry .gallery-item { margin-bottom: 15px; }
	.gallery-item.tall .gallery-item-wrapper { height: 280px; }
	.modal-close { top: 20px; right: 20px; width: 45px; height: 45px; }
	.modal-nav { width: 50px; height: 50px; font-size: 20px; }
	.modal-nav.prev { left: 20px; }
	.modal-nav.next { right: 20px; }
}
@media (max-width: 480px) {
	.breadcrumb-section { height: 220px; max-height: 220px; }
	.breadcrumb-title { font-size: 28px; }
	.breadcrumb-description { font-size: 16px; }
	.gallery-filter-tabs { gap: 10px; padding: 0 10px; }
	.filter-tab { padding: 10px 18px; font-size: 12px; }
	.filter-tab i { font-size: 14px; }
	.gallery-masonry { column-count: 2; padding: 0 10px; }
	.gallery-item.tall .gallery-item-wrapper { height: 260px; }
	.eye-icon { width: 50px; height: 50px; }
	.eye-icon i { font-size: 20px; }
	.play-button { width: 60px; height: 60px; }
	.play-button i { font-size: 24px; }
	.gallery-item-info h4 { font-size: 16px; }
	.gallery-item-info span { font-size: 12px; }
}

/* Hide items when filtering */
.gallery-item.hidden { display: none; }
/* Loading state */
.gallery-item.loading {
	opacity: 0;
	transform: translateY(20px);
}

/* ===================================
GALLERY PAGE — STATIC GRID, NO SCROLL ON DESKTOP
3 images per row (desktop) / 2 (tablet) / 1 (mobile)
Scoped to .gallery-static → home page marquee untouched
=================================== */
.gallery-static .gallery-wrapper {
	max-width: var(--container-max, 1400px);
	margin: 0 auto;
	padding: 0 20px;
}
.gallery-static .gallery-row {
	overflow: visible;          /* lets washi-tape show */
	margin-bottom: 45px;
}
.gallery-static .gallery-track {
	display: block;
	width: 100%;
	animation: none !important; /* kills the marquee scroll on desktop */
}
/* safety net: hide loop duplicates even if left in HTML */
.gallery-static .gallery-set + .gallery-set { display: none; }
.gallery-static .gallery-set {
	display: grid;
	grid-template-columns: repeat(3, 1fr);   /* 3 images per row */
	gap: 30px;
	width: 100%;
	padding: 15px 0 10px;      /* top room for washi tape */
}
.gallery-static .gallery-item,
.gallery-static .gallery-item:nth-child(odd),
.gallery-static .gallery-item:nth-child(even) {
	flex: none;
	width: 100%;
	transform: none;            /* straight polaroids, no scattered rotation */
	margin-bottom: 0;
}
/* keep a nice hover lift on the static grid */
.gallery-static .gallery-item:hover {
	transform: translateY(-10px) scale(1.03);
	box-shadow: 0 28px 60px rgba(44, 26, 17, .28);
	z-index: 5;
}
.gallery-static .g-media img { animation: none; }  /* calm static photos (no ambient zoom) */

/* Tablet: 2 per row */
@media (max-width: 992px) {
	.gallery-static .gallery-set { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}
/* Mobile: 1 per row (needs !important to beat styles.css mobile fix) */
@media (max-width: 640px) {
	.gallery-static .gallery-set {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 25px;
		padding: 15px 0 5px;
	}
}