/*
Theme Name: Župnija Piran Modern
Theme URI: https://studiosf.eu
Description: Sodobna, odzivna in dostopna tema za spletno mesto Župnije Piran.
Author: Studio SF (studiosf.eu)
Version: 2.0
Text Domain: zupnija
*/

:root {
  --primary: #0c3267;          /* Classic Piran navy */
  --primary-dark: #072044;     /* Deep navy */
  --primary-light: #175c9a;    /* Adriatic blue */
  --accent: #b89047;           /* Warm antique gold */
  --bg-page: #0f3562;          /* Rich Mediterranean marine blue backdrop */
  --bg-card: #e5eff9;          /* Soft, cohesive Mediterranean sky-tinted card surface (no harsh pure white) */
  --bg-card-inner: #f2f7fc;    /* Gentle inner highlight */
  --bg-sidebar: #dbe8f5;       /* Harmonized sidebar card */
  --text-main: #1e293b;        /* Crisp readable text */
  --text-headings: #0c3267;    /* Deep classic navy headings */
  --text-muted: #4b6282;       /* Balanced slate secondary text */
  --border-color: rgba(12, 50, 103, 0.16); /* Cohesive navy borders */
  --shadow-sm: 0 2px 8px rgba(7, 32, 68, 0.12);
  --shadow-md: 0 8px 24px rgba(7, 32, 68, 0.18);
  --shadow-lg: 0 14px 36px rgba(7, 32, 68, 0.22);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #0e2c4e !important;
  background: #0e2c4e !important;
  min-height: 100%;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: transparent;
  line-height: 1.75;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout Container (Expansive Modern Width 1280px) */
.site-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1 0 auto;
}

/* Header Banner (Seamless connection with Nav) */
.site-header {
  background: transparent;
  margin-top: 0;
  position: relative;
}

.header-banner {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  line-height: 0;
  padding: 0;
}

.header-logo-link {
  display: block;
  width: 100%;
  max-width: 1280px;
  text-align: center;
  line-height: 0;
  margin: 0 auto;
}

.header-logo-img {
  width: 100%;
  max-width: 1280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 0;
}

/* Language Switcher Bar */
/* On desktop (>= 1360px): positioned in upper-right corner of entire page/screen */
@media (min-width: 1360px) {
  .top-utility-bar {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1000;
    margin: 0;
    padding: 0;
  }
  .lang-switch {
    background: rgba(14, 44, 78, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }
}

/* On screens under 1360px: drops into an intermediate strip between image and nav (Option A) */
@media (max-width: 1359px) {
  .top-utility-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 4px 6px 0;
    margin: 0;
    position: relative;
    z-index: 50;
  }
  .lang-switch {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
}

.lang-switch {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.lang-switch a {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.lang-switch a:hover {
  transform: scale(1.12);
}

.lang-switch img {
  width: 26px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  display: block;
}

/* Navigation Bar (Directly beneath Header Image) */
.site-nav {
  background: #0e2c4e;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 100;
  margin-top: 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  list-style: none;
  width: 100%;
  flex-wrap: nowrap;
}

.nav-menu li {
  flex: 1 1 auto;
  text-align: center;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.active a,
.nav-menu li.current-menu-item a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Main Grid Layout (Expansive 1280px Layout) */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 36px;
  margin-bottom: 40px;
}

/* Content Area */
.content-area {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 36px 42px;
}

.page-title, .entry-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--text-headings);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(22, 42, 69, 0.08);
  letter-spacing: -0.3px;
}

.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-headings);
  margin: 30px 0 16px 0;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1[id], h2[id], h3[id], a[name] {
  scroll-margin-top: 24px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.content-area p, .entry p {
  margin-bottom: 16px;
  line-height: 1.75;
}

/* Hide empty editor artifacts */
.content-area p:empty, .entry p:empty,
.content-area ul:empty, .entry ul:empty,
.content-area ol:empty, .entry ol:empty {
  display: none !important;
}

/* Content Area Lists (Aligned with text edge) */
.content-area ul, .content-area ol, .entry ul, .entry ol, .wp-block-list {
  padding-left: 20px;
  margin: 12px 0 20px 0;
}

.content-area ul li, .content-area ol li, .entry ul li, .entry ol li, .wp-block-list li {
  margin-bottom: 8px;
  line-height: 1.65;
  color: var(--text-main);
  padding-left: 4px;
}

/* Welcome Card */
.welcome-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.welcome-hero img {
  width: 240px;
  max-width: 40%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.welcome-text {
  flex: 1;
}

.welcome-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 8px;
}

.welcome-text p:last-child {
  margin-bottom: 0;
}

/* Tables & Mass Schedule (100% Full-Width Container) */
.wp-block-table, figure.wp-block-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 24px 0 32px 0 !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card-inner);
  display: block;
}

.wp-block-table table, table {
  width: 100% !important;
  min-width: 100% !important;
  border-collapse: collapse;
  margin: 0 !important;
  border: 0 !important;
  table-layout: auto !important;
  background: transparent !important;
}

.wp-block-table table th, .wp-block-table table td,
table th, table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(12, 50, 103, 0.08);
  font-size: 0.98rem;
  line-height: 1.65;
}

.wp-block-table table tr:last-child td,
table tr:last-child td {
  border-bottom: 0;
}

.wp-block-table table tr:nth-child(even) td,
table tr:nth-child(even) td {
  background: rgba(14, 44, 78, 0.03);
}

.wp-block-table table tr:hover td,
table tr:hover td {
  background: rgba(14, 44, 78, 0.06);
}

.wp-block-table table td strong,
table td strong {
  color: var(--text-headings);
}

/* Mass schedule specific column balance */
.wp-block-table table td:first-child,
table td:first-child {
  width: 28%;
  font-weight: 600;
  color: #1e3a60;
  border-right: 1px solid rgba(12, 50, 103, 0.08);
}

.wp-block-table table td:nth-child(2),
table td:nth-child(2) {
  width: 72%;
}

@media (max-width: 640px) {
  .wp-block-table, figure.wp-block-table {
    display: block;
    overflow-x: auto;
  }
  .wp-block-table table th, .wp-block-table table td,
  table th, table td {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

/* Video & Webcam Cards */
.media-card {
  margin: 16px 0 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.webcam-wrapper {
  text-align: center;
  background: #0a192f;
  padding: 8px;
}

.webcam-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}

/* Info Cards */
.info-card {
  background: var(--bg-card-inner);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 16px 0 24px 0;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.info-card p {
  margin-bottom: 8px;
  line-height: 1.65;
  color: #334155;
}

.info-card strong {
  color: var(--text-headings);
}

/* Dividers & Separators */
hr, hr.wp-block-separator, .divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 28px 0;
  clear: both;
}

/* Inline Floating Figures (Editorial Text Flow) */
.church-section {
  clear: both;
  margin-top: 24px;
}
.church-section::after {
  content: "";
  display: table;
  clear: both;
}

.inline-figure-right {
  float: right;
  margin: 4px 0 16px 24px;
  max-width: 250px;
  text-align: center;
}

.inline-figure-left {
  float: left;
  margin: 4px 24px 16px 0;
  max-width: 250px;
  text-align: center;
}

.inline-figure-right img,
.inline-figure-left img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
}

.inline-figure-right figcaption,
.inline-figure-left figcaption {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .inline-figure-right,
  .inline-figure-left {
    float: none;
    margin: 16px auto;
    max-width: 100%;
  }
}

/* Photo Grid & Galleries (Sacral Heritage) */
.photo-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0 24px 0;
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 20px 0 24px 0;
}

.photo-card {
  text-align: center;
  margin: 0;
}

.photo-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card.natural-height img {
  height: auto;
  max-height: 380px;
}

.photo-card img:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.photo-card figcaption {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 6px;
}

/* Quote Card / Mission Callout */
blockquote, .quote-card {
  background: var(--bg-card-inner);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1e3a60;
  box-shadow: var(--shadow-sm);
}

/* Headings inside content */
.content-area h2.wp-block-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-headings);
  margin: 32px 0 16px 0;
  letter-spacing: 1px;
}

.content-area h3.wp-block-heading {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text-headings);
  margin: 24px 0 14px 0;
}

/* Sidebar Area */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-card, .widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
}

.widget-title, .widgettitle {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headings);
  letter-spacing: -0.2px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(22, 42, 69, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.widget-list, .widget ul {
  list-style: none;
}

.widget-list li, .widget ul li {
  margin-bottom: 10px;
  line-height: 1.45;
}

.widget-list a, .widget a {
  color: #1e3a60;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-block;
}

.widget-list a:hover, .widget a:hover {
  color: #2563eb;
  transform: translateX(3px);
}

/* News List Specifics */
.news-item a {
  display: block;
}

.news-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Collapsible Archive Folders */
.archive-tree {
  list-style: none;
}

.archive-folder {
  margin-bottom: 4px;
}

.archive-folder details {
  background: transparent;
  border: none;
}

.archive-folder summary {
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  transition: background 0.15s ease;
}

.archive-folder summary:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.archive-sublist {
  list-style: disc;
  padding-left: 24px;
  margin: 4px 0 6px 0;
}

.archive-sublist li {
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.archive-sublist a {
  color: #1e3a8a;
  text-decoration: none;
}

.archive-sublist a:hover {
  text-decoration: underline;
}

/* Harmonized Partner Logos */
.partner-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}

.partner-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logos a:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.partner-logos img {
  max-width: 180px;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Footer (Unified 1280px Card matching Nav & Header) */
.site-footer {
  background: #0e2c4e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  color: #cbd5e1;
  margin: 20px auto 40px auto;
  max-width: 1280px;
  width: calc(100% - 48px);
  padding: 36px 40px 24px 40px;
}

.site-footer .site-wrapper {
  padding: 0;
  max-width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #a0b2cc;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #8fa3bf;
}

.footer-bottom a {
  color: #e2c07a;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .header-inner {
    padding: 20px;
  }
  .header-titles h1 {
    font-size: 1.5rem;
  }
  .main-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-wrapper {
    padding: 0 10px;
  }
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .header-brand {
    flex-direction: column;
    gap: 10px;
  }
  .nav-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: #061730;
    font-size: 0.95rem;
    font-weight: 600;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu li a {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: flex-start;
  }
  .welcome-hero {
    flex-direction: column;
    text-align: center;
  }
  .welcome-hero img {
    width: 100%;
    max-width: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Article & Image Post Styles */
.content-area img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-sm);
}
.post-meta-badge {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 20px;
  margin-bottom: 10px;
}
.image-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 16px;
}

/* Heritage Banner Card (Styled like Sakralna dediščina action buttons) */
.heritage-banner-card {
  margin: 18px 0 24px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.heritage-banner-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}
.heritage-banner-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--primary, #0c3267);
  padding: 9px 20px;
  text-decoration: none !important;
  text-align: center;
  color: #ffffff !important;
  transition: background-color 0.2s ease;
}
.heritage-banner-link:hover {
  background-color: var(--primary-light, #175c9a);
  color: #ffffff !important;
  text-decoration: none !important;
}
.heritage-banner-link h3 {
  font-family: inherit;
  font-size: 1.05rem !important;
  font-weight: 600;
  color: #ffffff !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.3;
  letter-spacing: normal;
}
.heritage-banner-link p {
  font-family: inherit;
  font-size: 0.84rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  margin: 0 !important;
  line-height: 1.3;
  font-weight: 400;
}








/* ==========================================================================
   Heritage, Photo Pairs & Content Layout Helper Classes
   ========================================================================== */

/* Spacing and Typography in Entry Content */
.entry h3, .entry-content h3 {
  margin-top: 52px !important;
  margin-bottom: 22px !important;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-headings, #0c3267);
  clear: both;
  line-height: 1.35;
}
.entry hr, .entry-content hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid rgba(12, 50, 103, 0.14);
}
.entry p, .entry-content p {
  margin-bottom: 16px;
  line-height: 1.75;
}

/* Full Width Banners & Images */
.fig-full {
  margin: 24px 0 20px 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  clear: both;
  display: block;
}
.fig-full a {
  display: block;
  width: 100%;
}
.fig-img-full {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Float Left and Float Right Images */
.fig-float-left {
  float: left;
  margin: 0 22px 14px 0;
  text-align: center;
}
.fig-float-left.wide {
  margin: 0 24px 14px 0;
}
.fig-float-right {
  float: right;
  margin: 0 0 14px 24px;
  text-align: center;
}
.fig-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}

/* Photo Pairs (Equal Height Side-by-Side Flex Layout) */
.photo-pair {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  width: 100%;
  clear: both;
}
.photo-pair__item {
  flex: 1;
}
.photo-pair__item a {
  display: block;
  width: 100%;
}
.photo-pair__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
}

/* Museum Action Button */
.museum-btn-wrap {
  margin: 20px 0 24px 0;
  clear: both;
}
.museum-btn {
  display: inline-block;
  background-color: var(--primary, #0c3267);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.museum-btn:hover {
  background-color: var(--primary-light, #175c9a);
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Centered Museum Showcase */
.fig-center {
  margin: 24px 0 32px 0;
  text-align: center;
}
.fig-center figcaption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 6px;
}
.fig-img-center {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}
.fig-img-center.wide {
  max-width: 680px;
}
.fig-logo {
  text-align: center;
  margin: 10px 0 24px 0;
}
.fig-logo img {
  max-width: 280px;
  height: auto;
}

/* Flickr / Album Cards */
.flickr-card {
  display: block;
  background: var(--bg-card-inner, #f2f7fc);
  border: 1px solid var(--border-color, rgba(12,50,103,0.16));
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  margin: 20px 0 32px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flickr-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, #b89047);
}
.flickr-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a192f;
}
.flickr-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flickr-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.96);
  color: #0c3267;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.2px;
}
.flickr-card__body {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flickr-card__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-headings, #0c3267);
  line-height: 1.3;
}
.flickr-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary, #0c3267);
  white-space: nowrap;
}
.flickr-card:hover .flickr-card__cta {
  color: var(--accent, #b89047);
}

@media (max-width: 640px) {
  .fig-float-left, .fig-float-right {
    float: none;
    margin: 16px auto;
    max-width: 100% !important;
  }
  .photo-pair {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   News Listing (Archive / Blogroll) & Single Post Enhancements
   ========================================================================== */

/* News Grid / Blogroll */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 12px 0 36px 0;
}

.news-card {
  background: var(--bg-card-inner, #f2f7fc);
  border: 1px solid var(--border-color, rgba(12, 50, 103, 0.16));
  border-radius: var(--radius-md, 10px);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent, #b89047);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* News Date Badge */
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent, #b89047);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.news-date::before {
  content: '📅';
  font-size: 0.82rem;
}

/* Impressive Serif Title */
.news-card-title,
.news-card h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 2px 0 8px 0;
}

.news-card-title a,
.news-card h4 a {
  color: var(--text-headings, #0c3267) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.news-card-title a:hover,
.news-card h4 a:hover {
  color: var(--accent, #b89047) !important;
  border-bottom-color: var(--accent, #b89047);
}

/* Entry Summary */
.news-card .entry-summary {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main, #1e293b);
  margin: 4px 0 8px 0;
}

.news-card .entry-summary p {
  margin-bottom: 0;
}

/* Link Arrow / Read More CTA */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 6px 14px;
  background: rgba(12, 50, 103, 0.06);
  border: 1px solid rgba(12, 50, 103, 0.12);
  border-radius: var(--radius-sm, 6px);
  color: var(--primary, #0c3267) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.link-arrow:hover {
  background: var(--primary, #0c3267);
  color: #ffffff !important;
  transform: translateX(2px);
}

/* Single Post Images & Spacing */
.single-article .entry-content figure.wp-block-image,
.single-article .entry-content .wp-block-image,
.single-article .entry-content figure,
.single-article .entry-content p > img {
  margin-top: 26px !important;
  margin-bottom: 28px !important;
  clear: both;
}

.single-article .entry-content figure.wp-block-image img,
.single-article .entry-content .wp-block-image img,
.single-article .entry-content p > img,
.single-article .entry-content a.post-image-popup img {
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-sm);
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-article .entry-content a.post-image-popup:hover img {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}


