/* =========================================================================
   Postmark Search Page, Modern Archival Form & Gallery Table
   ========================================================================= */

.search-page {
    max-width: 1680px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.search-header-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 243, 232, 0.95) 100%);
    border: 1px solid rgba(141, 116, 64, 0.28);
    border-radius: 18px;
    padding: 24px 28px 22px;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(36, 29, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.search-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #b8860b 50%, transparent 100%);
    border-radius: 2px;
}

.search-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.search-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c4320;
    background: rgba(184, 134, 11, 0.1);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lastupdate-back-link:hover,
#layoutBodyContent a.lastupdate-back-link:hover {
    background: #8b6b23;
    color: #ffffff !important;
    border-color: #8b6b23;
    text-decoration: none;
}

.lastupdate-back-link:hover svg {
    stroke: #ffffff;
}

/* --- Search Container & Form Card --- */
.search-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 28px auto;
}

.search-form-card {
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.25);
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 6px 20px rgba(45, 35, 20, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(141, 116, 64, 0.18);
}

.search-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    color: #8b6b23;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-card-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b1f13;
    margin: 0;
}

.search-card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #8b6b23;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.04em;
}

/* Primary Search Row (Megnevezés) */
.search-form-primary-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-form-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: #2b1f13;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon {
    position: absolute;
    left: 12px;
    color: #8b6b23;
    pointer-events: none;
}

.search-input-wrap input[type="text"] {
    width: 100%;
    padding: 10px 38px 10px 38px;
    font-size: 0.95rem;
    color: #2b1f13;
    background: #faf7f2;
    border: 1px solid rgba(141, 116, 64, 0.3);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.search-input-wrap input[type="text"]:focus {
    background: #ffffff;
    border-color: #8b6b23;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    outline: none;
}

.search-input-clear {
    position: absolute;
    right: 10px;
    width: 22px;
    height: 22px;
    background: #d8c8b4;
    color: #2b1f13;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.search-input-clear:hover {
    background: #8b6b23;
    color: #ffffff;
}

.search-field-hint {
    font-size: 0.78rem;
    font-style: italic;
    color: #7a6652;
}

#type-select option[value=""] {
    color: #8c6e3b;
    font-style: italic;
}

/* Filters Grid */
.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.search-filter-box {
    background: #faf7f2;
    border: 1px solid rgba(141, 116, 64, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.search-filter-box-full {
    grid-column: auto;
}

.search-filter-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b6b23;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(141, 116, 64, 0.12);
}

.search-filter-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-filter-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4a3e2f;
}

.search-filter-field select {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    font-size: 0.88rem;
    color: #2b1f13;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.25);
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-filter-field select:focus {
    border-color: #8b6b23;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
    outline: none;
}

@media (max-width: 960px) and (min-width: 769px) {
    .search-filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 12px;
    }
}

/* Quick Filter Preset Chips */
.search-quick-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #fdfbf7;
    border: 1px dashed rgba(141, 116, 64, 0.25);
    border-radius: 10px;
}

.quick-chips-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6a5323;
    margin-right: 4px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b4d1b;
    background: #ffffff;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.quick-chip:hover {
    background: #fbf5ea;
    border-color: #8b6b23;
    transform: translateY(-1px);
}

/* Form Action Buttons */
.search-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}

.search-btn-primary,
#layoutBodyContent button.search-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    height: 42px;
    padding: 0 24px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(180deg, #8b6b23 0%, #6f5417 100%);
    border: 1px solid #5a4310;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(111, 84, 23, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-btn-primary svg {
    stroke: #ffffff;
    flex-shrink: 0;
}

.search-btn-primary:hover,
#layoutBodyContent button.search-btn-primary:hover {
    background: linear-gradient(180deg, #9c7828 0%, #7d601a 100%);
    box-shadow: 0 6px 16px rgba(111, 84, 23, 0.38);
    transform: translateY(-1px);
}

.search-btn-primary.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.search-btn-secondary,
#layoutBodyContent button.search-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    padding: 0 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #5c4520 !important;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.3);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.search-btn-secondary:hover,
#layoutBodyContent button.search-btn-secondary:hover {
    background: #faf6f0;
    border-color: #8b6b23;
    text-decoration: none;
}

/* --- Results Summary Card --- */
.search-results-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.22);
    border-radius: 12px;
    padding: 12px 18px;
    margin: 20px 0 16px 0;
    box-shadow: 0 3px 10px rgba(45, 35, 20, 0.04);
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2b1f13;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 16px;
}

.summary-chips-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.summary-chips-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6a5323;
}

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3e301d;
    background: #f4ede2;
    border: 1px solid rgba(141, 116, 64, 0.25);
    border-radius: 12px;
}

.summary-chip-remove {
    background: transparent;
    border: none;
    color: #8b6b23;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-chip-remove:hover {
    color: #a82424;
}

.summary-clear-link,
#layoutBodyContent a.summary-clear-link {
    font-size: 0.78rem;
    color: #8b6b23 !important;
    text-decoration: underline;
    margin-left: 4px;
}

/* --- Empty Results State Card --- */
.search-empty-card {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
}

.search-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #faf4e8;
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.search-empty-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2b1f13;
    margin: 0 0 8px 0;
}

.search-empty-desc {
    font-size: 0.9rem;
    color: #6a5742;
    max-width: 500px;
    margin: 0 auto 20px auto;
}

.search-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-empty-btn-reset,
#layoutBodyContent a.search-empty-btn-reset {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    background: #8b6b23;
    border-radius: 8px;
    text-decoration: none;
}

.search-empty-btn-reset:hover,
#layoutBodyContent a.search-empty-btn-reset:hover {
    background: #735719;
}

.search-empty-btn-types,
#layoutBodyContent a.search-empty-btn-types {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b4d1b !important;
    background: #fbf5ea;
    border: 1px solid rgba(184, 134, 11, 0.35);
    border-radius: 8px;
    text-decoration: none;
}

.search-empty-btn-types:hover,
#layoutBodyContent a.search-empty-btn-types:hover {
    background: #f4ecdf;
}

/* --- Loading Animation --- */
.search-loading-card {
    padding: 40px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(141, 116, 64, 0.2);
    border-radius: 14px;
    margin: 20px 0;
}

.search-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(184, 134, 11, 0.2);
    border-top-color: #8b6b23;
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
    margin: 0 auto 12px auto;
}

@keyframes searchSpin {
    to { transform: rotate(360deg); }
}

.search-loading-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b4d1b;
    margin: 0;
}

/* Gallery & Pagination */
.gallery2 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 15px;
	margin: 20px 0;
	padding: 10px;
}

.gallery2 figure {
	margin: 0;
	padding: 0;
	border: 1px solid rgba(47, 35, 24, 0.14);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.3s, box-shadow 0.3s;
	cursor: pointer;
}

.gallery2 figure:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery2 a {
	display: block;
	position: relative;
	overflow: hidden;
	background: #f8f3ec;
	height: 120px;
}

.gallery2 img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 5px;
	display: block;
}

.gallery2 figcaption {
	padding: 8px;
	background: #f8f3ec;
	font-size: 12px;
	line-height: 1.3;
	word-break: break-word;
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #555;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 18px 0 6px;
	font-size: 13px;
	line-height: 1;
}

.pagination a,
.pagination strong {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid rgba(47, 35, 24, 0.18);
	background: #f7f1e7;
	color: #2f2318;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pagination a:hover,
.pagination a:focus {
	background: linear-gradient(180deg, #e9d7ab 0%, #d0ae68 100%);
	border-color: rgba(47, 35, 24, 0.28);
	color: #2f2318;
	transform: translateY(-1px);
}

.pagination strong.current-page {
	background: linear-gradient(180deg, #d4b36c 0%, #b98b3d 100%);
	border-color: rgba(47, 35, 24, 0.25);
	color: #fffaf2;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.pagination-dots {
	color: #6d5841;
	font-weight: 700;
	padding: 0 2px;
}

.pagination .arrow {
	font-size: 16px;
	font-weight: bold;
}

.pagination .prev-btn,
.pagination .next-btn {
	min-width: 32px;
	padding: 0 10px;
}

/* ==========================================================================
   3. Intro Page Modern Archival Styling
   ========================================================================== */

.intro {
	width: 100%;
	max-width: 1680px;
	padding: 10px 14px 30px;
	line-height: 1.7;
	font-size: 1rem;
	box-sizing: border-box;
}

.intro-header-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 243, 232, 0.94) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 18px;
	padding: 24px 28px 20px;
	margin-bottom: 22px;
	box-shadow: 0 10px 24px rgba(36, 29, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
}

.intro-header-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 40px;
	right: 40px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, #b8860b 50%, transparent 100%);
	border-radius: 2px;
}

.intro-kicker {
	display: inline-block;
	margin-bottom: 6px;
	color: #8c6820;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.intro-main-title {
	margin: 0 0 10px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.intro-lead {
	margin: 0 !important;
	color: #7a5a27;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.6;
}

.intro-section-title {
	margin: 0 0 14px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
	position: relative;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(141, 116, 64, 0.2);
}

.intro-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
	gap: 22px;
	align-items: stretch;
	margin-bottom: 24px;
}

.intro-about-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 244, 233, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
}

.intro-about-card p {
	margin: 0 0 14px;
	line-height: 1.7;
}

.intro-about-card p:last-child {
	margin-bottom: 0;
}

.intro-contribute-card {
	background: linear-gradient(180deg, rgba(252, 248, 238, 0.98) 0%, rgba(246, 238, 222, 0.95) 100%);
	border: 1px solid rgba(184, 134, 11, 0.35);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
	display: flex;
	flex-direction: column;
}

.intro-contribute-title {
	margin: 0 0 12px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
}

.intro-contribute-card p {
	margin: 0 0 12px;
	font-size: 0.94rem;
	line-height: 1.6;
	color: #4a3a27;
}

.intro-email-cta {
	margin-top: auto;
	padding-top: 10px;
}

.intro-email-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border-radius: 24px;
	background: linear-gradient(135deg, #6b1d2f 0%, #4f1220 100%);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(110, 29, 36, 0.28);
	transition: all 0.2s ease;
}

.intro-email-btn:hover {
	background: linear-gradient(135deg, #8e2832 0%, #6e1d24 100%);
	box-shadow: 0 6px 16px rgba(110, 29, 36, 0.35);
	transform: translateY(-1px);
	color: #ffffff !important;
}

.intro-features-section {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 243, 232, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 22px 24px 20px;
	margin-bottom: 22px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
}

.intro-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 14px;
}

.intro-feature-item {
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(141, 116, 64, 0.2);
	border-radius: 12px;
	padding: 16px 18px;
	transition: all 0.2s ease;
}

.intro-feature-item:hover {
	background: #ffffff;
	border-color: rgba(141, 116, 64, 0.45);
	box-shadow: 0 6px 16px rgba(36, 29, 17, 0.08);
	transform: translateY(-2px);
}

.intro-feature-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(184, 134, 11, 0.14);
	color: #7b5810;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.intro-feature-item h3 {
	margin: 0 0 8px;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #2e2014;
}

.intro-feature-item p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #554432;
}

.intro-thanks-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 243, 232, 0.92) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 20px 24px;
	box-shadow: 0 8px 22px rgba(36, 29, 17, 0.05);
}

.intro-thanks-list {
	margin: 0;
	padding-left: 24px;
	color: #4c3c2b;
	line-height: 1.7;
}

.intro-thanks-list li + li {
	margin-top: 8px;
}

/* ==========================================================================
   4. Contact Page Modern Archival Styling
   ========================================================================== */

.contact-page {
	max-width: 1060px;
	padding: 10px 14px 30px;
	line-height: 1.6;
	font-size: 1rem;
	box-sizing: border-box;
}

.contact-header-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 243, 232, 0.94) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 18px;
	padding: 24px 28px 20px;
	margin-bottom: 22px;
	box-shadow: 0 10px 24px rgba(36, 29, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
}

.contact-header-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 40px;
	right: 40px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, #b8860b 50%, transparent 100%);
	border-radius: 2px;
}

.contact-kicker {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #996515;
	margin-bottom: 6px;
}

.contact-main-title {
	margin: 0 0 10px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.contact-lead {
	margin: 0 !important;
	color: #7a5a27;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.12rem;
	line-height: 1.6;
}

.contact-main-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: stretch;
	margin-bottom: 24px;
}

.contact-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf5eb 100%);
	border: 1px solid rgba(141, 116, 64, 0.25);
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 20px rgba(36, 29, 17, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.contact-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(141, 116, 64, 0.18);
}

.contact-card-header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.contact-icon-bubble {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	box-shadow: 0 4px 10px rgba(107, 29, 47, 0.25);
}

.contact-icon-bubble.bubble-gold {
	background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
	box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25);
}

.contact-card-title {
	margin: 0 !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #2c241d;
	line-height: 1.25;
}

.contact-card-sub {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.82rem;
	color: #7a5a27;
	margin-top: 3px;
	line-height: 1.3;
}

.contact-desc {
	color: #4a3e33;
	font-size: 0.94rem;
	line-height: 1.55;
	margin-bottom: 16px !important;
	min-height: 48px;
}

.contact-middle-panel {
	margin-bottom: 16px;
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.contact-email-box {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(141, 116, 64, 0.2);
	border-radius: 10px;
	margin-bottom: 12px;
}

.contact-info-icon {
	color: #8a6428;
	flex: 0 0 20px;
}

.contact-info-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.contact-info-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #8c7355;
	margin-bottom: 2px;
}

.contact-info-value {
	font-family: 'Inter', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #6b1d2f !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	word-break: break-all;
	transition: color 0.15s ease;
}

.contact-info-value:hover {
	color: #8e273f !important;
	text-decoration: underline !important;
}

.contact-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 11px 20px;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff !important;
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(107, 29, 47, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-btn-primary:hover {
	background: linear-gradient(135deg, #7c2237 0%, #982843 100%);
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(107, 29, 47, 0.35);
}

.contact-specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(141, 116, 64, 0.2);
	border-radius: 10px;
	padding: 12px 14px;
}

.contact-spec-item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 0.85rem;
	color: #3d3227;
	line-height: 1.4;
}

.spec-bullet {
	color: #b8860b;
	font-weight: bold;
	font-size: 0.95rem;
	line-height: 1.25;
	flex: 0 0 14px;
}

.contact-callout-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.83rem;
	color: #735932;
	background: rgba(184, 134, 11, 0.08);
	border: 1px solid rgba(184, 134, 11, 0.18);
	border-radius: 8px;
	padding: 10px 12px;
	line-height: 1.45;
	margin-top: auto;
	min-height: 52px;
	box-sizing: border-box;
}

.contact-callout-note svg {
	flex: 0 0 16px;
	margin-top: 2px;
	color: #b8860b;
}

.contact-faq-section {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 241, 230, 0.9) 100%);
	border: 1px solid rgba(141, 116, 64, 0.24);
	border-radius: 16px;
	padding: 22px 26px;
	box-shadow: 0 6px 18px rgba(36, 29, 17, 0.04);
}

.contact-section-title {
	margin: 0 0 18px;
	color: #382414;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
	position: relative;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(141, 116, 64, 0.2);
}

.contact-faq-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.contact-faq-item {
	background: #ffffff;
	border: 1px solid rgba(141, 116, 64, 0.16);
	border-radius: 12px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
}

.contact-faq-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: rgba(184, 134, 11, 0.1);
	color: #996515;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.contact-faq-item h3 {
	margin: 0 0 8px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.contact-faq-item p {
	margin: 0;
	color: #5c4e40;
	font-size: 0.9rem;
	line-height: 1.55;
}

/* ==========================================================================
   5. Further Catalogues Page Modern Archival Styling
   ========================================================================== */

.catalogues-page {
	max-width: 100%;
	padding: 8px 12px 36px;
	box-sizing: border-box;
}

.catalogues-header-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 243, 232, 0.95) 100%);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 18px;
	padding: 24px 28px 22px;
	margin-bottom: 24px;
	box-shadow: 0 10px 24px rgba(36, 29, 17, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	position: relative;
}

.catalogues-header-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 40px;
	right: 40px;
	height: 3px;
	background: linear-gradient(90deg, transparent 0%, #b8860b 50%, transparent 100%);
	border-radius: 2px;
}

.cat-kicker {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #996515;
	margin-bottom: 6px;
}

.cat-main-title {
	margin: 0 0 10px;
	color: #2c241d;
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.6rem, 2.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.cat-lead {
	margin: 0 0 20px !important;
	color: #7a5a27;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.08rem;
	line-height: 1.6;
}

.cat-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(141, 116, 64, 0.2);
}

.cat-search-box {
	position: relative;
	width: 100%;
	max-width: 440px;
	height: 40px;
	flex: 0 1 440px;
}

.cat-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: #996515;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cat-search-box input {
	width: 100%;
	height: 40px;
	padding: 0 34px 0 34px;
	background: #ffffff;
	border: 1px solid rgba(141, 116, 64, 0.3);
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 0.92rem;
	color: #2c241d;
	outline: none;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.cat-search-box input:focus {
	border-color: #b8860b;
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.18);
}

.cat-search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 18px;
	color: #996515;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
}

.cat-filter-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(141, 116, 64, 0.28);
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 0.84rem;
	font-weight: 600;
	color: #4a3e33;
	cursor: pointer;
	transition: all 0.15s ease;
}

.cat-chip:hover {
	background: #ffffff;
	border-color: #b8860b;
	color: #2c241d;
}

.cat-chip.is-active {
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	border-color: #6b1d2f;
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(107, 29, 47, 0.28);
}

.chip-count {
	font-size: 0.75rem;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.08);
}

.cat-chip.is-active .chip-count {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.cat-results-bar {
	padding: 8px 14px;
	margin-bottom: 16px;
	background: rgba(184, 134, 11, 0.1);
	border: 1px solid rgba(184, 134, 11, 0.25);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 0.86rem;
	font-weight: 600;
	color: #7a5a27;
}

.cat-section {
	margin-bottom: 32px;
}

.cat-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(141, 116, 64, 0.22);
}

.cat-section-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	box-shadow: 0 4px 10px rgba(107, 29, 47, 0.22);
}

.cat-section-icon.icon-gold {
	background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
	box-shadow: 0 4px 10px rgba(184, 134, 11, 0.25);
}

.cat-section-icon.icon-wine {
	background: linear-gradient(135deg, #442a18 0%, #613e24 100%);
	box-shadow: 0 4px 10px rgba(68, 42, 24, 0.22);
}

.cat-section-title {
	margin: 0 !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #2c241d;
	line-height: 1.25;
}

.cat-section-sub {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.84rem;
	color: #7a5a27;
	margin-top: 2px;
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cat-grid.cat-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cat-card {
	background: linear-gradient(180deg, #ffffff 0%, #faf5ea 100%);
	border: 1px solid rgba(141, 116, 64, 0.25);
	border-radius: 14px;
	padding: 20px 22px;
	box-shadow: 0 6px 18px rgba(36, 29, 17, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-card:hover {
	transform: translateY(-3px);
	border-color: rgba(184, 134, 11, 0.6);
	box-shadow: 0 12px 28px rgba(36, 29, 17, 0.12);
}

.cat-card-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.cat-badge {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 6px;
	line-height: 1.2;
}

.badge-pdf {
	background: rgba(107, 29, 47, 0.1);
	border: 1px solid rgba(107, 29, 47, 0.25);
	color: #6b1d2f;
}

.badge-ebook {
	background: rgba(184, 134, 11, 0.12);
	border: 1px solid rgba(184, 134, 11, 0.3);
	color: #996515;
}

.badge-museum {
	background: rgba(44, 33, 19, 0.08);
	border: 1px solid rgba(44, 33, 19, 0.2);
	color: #3b2817;
}

.cat-meta-date,
.cat-meta-domain {
	font-family: 'Inter', sans-serif;
	font-size: 0.78rem;
	font-weight: 600;
	color: #8c7148;
}

.cat-card-title {
	margin: 0 0 6px !important;
	font-family: 'Lora', Georgia, serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #2c241d;
	line-height: 1.35;
}

.cat-card-author {
	font-family: 'Inter', sans-serif;
	font-size: 0.82rem;
	font-weight: 600;
	color: #7a5a27;
	margin-bottom: 10px;
}

.cat-card-desc {
	margin: 0 0 16px !important;
	color: #4a3e33;
	font-size: 0.92rem;
	line-height: 1.55;
	flex: 1 1 auto;
}

.cat-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(141, 116, 64, 0.16);
}

.cat-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	padding: 0 16px;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
	cursor: pointer;
	box-sizing: border-box;
}

.cat-btn.full-width {
	width: 100%;
}

.cat-btn-primary {
	flex: 1;
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%);
	color: #ffffff !important;
	border: none;
	box-shadow: 0 3px 8px rgba(107, 29, 47, 0.22);
}

.cat-btn-primary:hover {
	background: linear-gradient(135deg, #7c2237 0%, #982843 100%);
	box-shadow: 0 6px 14px rgba(107, 29, 47, 0.35);
	transform: translateY(-1px);
}

.cat-btn-secondary {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(141, 116, 64, 0.3);
	color: #4a3e33 !important;
	padding: 0 12px;
}

.cat-btn-secondary:hover {
	background: #ffffff;
	border-color: #b8860b;
	color: #2c241d !important;
	transform: translateY(-1px);
}

.cat-empty-card {
	background: #ffffff;
	border: 2px dashed rgba(141, 116, 64, 0.3);
	border-radius: 14px;
	padding: 40px 20px;
	text-align: center;
	color: #8c7355;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 20px 0;
}

.cat-empty-card svg {
	color: #b8860b;
	opacity: 0.7;
}

.cat-empty-card p {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

/* ==========================================================================
   6. Fancybox Archival & Document Reader Customizations
   ========================================================================== */

.fancybox__container {
	--fancybox-zIndex: 99999;
	z-index: 99999;
	--fancybox-bg: #ffffff;
	--fancybox-color: #2c241d;
	--fancybox-accent-color: #b8860b;
	--fancybox-content-color: #334155;
	--fancybox-content-bg: transparent;
	--fancybox-thumbs-width: 76px;
	--fancybox-thumbs-ratio: 1;
	--carousel-button-svg-filter: none;
	display: flex;
	flex-direction: row;
}

.fancybox__leftCol {
	flex: 1 1 auto;
	width: 100%;
	min-height: 1px;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	background: #ffffff;
	box-sizing: border-box;
}

.fancybox__slide .fancybox__content,
.fancybox__slide.has-image .fancybox__content,
.fancybox__slide.has-image .fancybox__content img,
.fancybox__image {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent !important;
}

/* Desktop Centered Navigation Arrows */
.fancybox__leftCol .carousel__button.is-prev,
.fancybox__leftCol .carousel__button.is-next {
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.94) !important;
	border: 1px solid rgba(141, 116, 64, 0.3) !important;
	color: #2c1e10 !important;
	box-shadow: 0 4px 14px rgba(36, 29, 17, 0.14) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.fancybox__leftCol .carousel__button.is-prev {
	left: 20px !important;
}

.fancybox__leftCol .carousel__button.is-next {
	right: 20px !important;
}

.fancybox__leftCol .carousel__button.is-prev:hover,
.fancybox__leftCol .carousel__button.is-next:hover {
	background: linear-gradient(135deg, #6b1d2f 0%, #85223a 100%) !important;
	border-color: #6b1d2f !important;
	color: #ffffff !important;
	transform: translateY(-50%) scale(1.08) !important;
	box-shadow: 0 6px 18px rgba(107, 29, 47, 0.35) !important;
}

.fancybox__toolbar {
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(141, 116, 64, 0.2);
	padding: 6px 14px;
	text-shadow: none;
}

.fancybox__toolbar .carousel__button {
	color: #2c1e10 !important;
}

/* Mobile: Move navigation arrows to bottom of section so they don't cover the picture */
@media screen and (max-width: 860px) {
	.fancybox__leftCol .carousel__button.is-prev,
	.fancybox__leftCol .carousel__button.is-next {
		top: auto !important;
		bottom: 14px !important;
		transform: none !important;
		width: 42px !important;
		height: 42px !important;
	}

	.fancybox__leftCol .carousel__button.is-prev {
		left: 14px !important;
	}

	.fancybox__leftCol .carousel__button.is-next {
		right: 14px !important;
	}

	.fancybox__leftCol .carousel__button.is-prev:hover,
	.fancybox__leftCol .carousel__button.is-next:hover {
		transform: scale(1.08) !important;
	}
}

.fancybox__slide.has-iframe {
	padding: 12px 16px !important;
}

.fancybox__content.is-type-iframe,
.fancybox__slide.has-iframe .fancybox__content,
.fancybox__slide .fancybox__iframe,
.fancybox__iframe {
	width: 94vw !important;
	height: 92vh !important;
	max-width: 1440px !important;
	max-height: 94vh !important;
	border-radius: 8px !important;
	border: 1px solid rgba(141, 116, 64, 0.3) !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
	background: #ffffff !important;
}

