/* Past Masters gallery inside the Lodge 1392 theme */
.lodge-app-main { padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.lodge-app-root {
	max-width: 1200px;
	margin: 0 auto;
	background: #FAF7F0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(13,24,40,0.06), 0 8px 24px rgba(13,24,40,0.08);
	font-family: var(--wp--preset--font-family--body);
	padding-bottom: 2.5rem;
}
.lodge-app-root a { text-decoration: none; }
.lodge-app-root h1, .lodge-app-root h2, .lodge-app-root h3, .lodge-app-root h4,
.lodge-app-root .display-4 { font-family: var(--wp--preset--font-family--heading); }

/* App headers: match the site's navy and gold */
.lodge-app-root .lodge-header,
.lodge-app-root .profile-header {
	background: linear-gradient(160deg, #14284B 0%, #0D1828 100%) !important;
	border-bottom: 4px solid #C9A24B !important;
	color: #fff;
}
.lodge-app-root .lodge-header h1, .lodge-app-root .profile-header h1 { color: #fff; }
.lodge-app-root .profile-header { margin: 0 0 2rem !important; width: 100% !important; }

/* Gallery cards */
.lodge-app-root .portrait-grid { padding: 0 clamp(1rem, 3vw, 2rem) !important; gap: clamp(14px, 2vw, 22px) !important; }
.lodge-app-root .portrait-card { border-width: 2px !important; border-radius: 8px; overflow: hidden; }
.lodge-app-root .name-plate { background: #0D1828 !important; border-top: 2px solid #C9A24B !important; }
.lodge-app-root .pm-year { color: #E6CD8A; font-family: var(--wp--preset--font-family--display); letter-spacing: 0.08em; }
.lodge-app-root .pm-name { letter-spacing: 0.06em; }
.lodge-app-root .search-input {
	border-radius: 999px;
	padding: 0.8rem 1.25rem !important;
	border: 2px solid #C9A24B !important;
	font-family: var(--wp--preset--font-family--body) !important;
	box-shadow: 0 8px 24px rgba(13,24,40,0.15);
}
.lodge-app-root .btn { border-radius: 999px; }
.lodge-app-root .btn-warning { background: #C9A24B; border-color: #C9A24B; color: #0D1828; }
.lodge-app-root .btn-warning:hover { background: #E6CD8A; border-color: #E6CD8A; }
.lodge-app-root .card { border-radius: 12px; }
.lodge-app-root .badge-stately { border-radius: 999px; }

@media (max-width: 599px) {
	.lodge-app-main { padding-left: 0; padding-right: 0; }
	.lodge-app-root { border-radius: 0; }
	.lodge-app-root .portrait-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.lodge-app-root .portrait-img { height: 190px !important; }
	.lodge-app-root .profile-img-container { width: 180px !important; height: 230px !important; }
}
.lodge-app-root .text-primary { color: #24406E !important; }
.lodge-app-root .text-warning { color: #C9A24B !important; }
.lodge-app-root .portrait-img .bg-secondary { background: linear-gradient(160deg, #24406E, #14284B) !important; color: #C9A24B !important; }
