/* SINGLE POST & PAGE */

/* Glass navbar on post and page templates */
.post-template .site-header,
.page-template .site-header {
  background-color: rgba(245, 241, 232, 0.85); /* Light Warm Off-white */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 201, 173, 0.5); /* Soft Sand border */
  box-shadow: 0 4px 20px rgba(41, 40, 36, 0.05); /* Subtle charcoal shadow */
  padding: 0.25rem 0;
}

.post-template .site-header .site-header-inner,
.page-template .site-header .site-header-inner {
  height: 80px;
}

.post-template .site-header .site-logo,
.post-template .site-header .site-nav .nav-list a,
.post-template .site-header .site-nav .nav-dropdown-toggle,
.post-template .site-header .header-controls button,
.page-template .site-header .site-logo,
.page-template .site-header .site-nav .nav-list a,
.page-template .site-header .site-nav .nav-dropdown-toggle,
.page-template .site-header .header-controls button {
  color: var(--color-text);
}

.post-template .site-header .site-nav .nav-list a:hover,
.page-template .site-header .site-nav .nav-list a:hover {
  color: var(--color-red-ochre);
}

.single-post-container {
  max-width: var(--article-max-width);
  margin: var(--space-6) auto;
}
.post-header {
  text-align: center;
  margin-bottom: 0;
}
.post-tag {
  color: var(--color-red-ochre);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
  display: block;
}
.post-title {
  display: inline-block;
  font-size: 2.5rem;
  color: var(--color-forest-green);
  background: #ffffff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--space-1);
  margin-top: 0;
}

/* Glass box styling removed as the parent container now handles it */
.page-template .post-header .post-title {
  margin-bottom: var(--space-0);
}

.post-header-overlay {
  background: rgba(247, 244, 236, 0.45); /* Translucent base paper color */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  display: inline-block;
  width: 90%;
  max-width: 800px;
}
.post-meta-details {
  color: var(--color-stone);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}
.post-feature-image {
  margin: var(--space-5) 0;
}
.post-feature-image img {
  width: 100%;
  border-radius: var(--radius-md);
}
.post-content h2,
.post-content h3 {
  margin-top: var(--space-5);
}

.post-content > :first-child {
  margin-top: var(--space-3) !important;
}
.post-content p {
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  margin-bottom: var(--space-4);
}
.post-content ul,
.post-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
}
.post-content li {
  margin-bottom: var(--space-2);
}

/* Ghost Koenig Editor Classes */
.kg-width-wide {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.kg-width-full {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* TEAM MEMBER BIO LAYOUT */
.team-bio-grid {
  display: block;
  margin-top: var(--space-4);
}

.team-bio-photo-column {
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .team-bio-grid::after {
    content: "";
    display: table;
    clear: both;
  }
  .team-bio-photo-column {
    float: left;
    width: 35%;
    max-width: 350px;
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
  }
  .team-bio-grid.no-image {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

.team-bio-grid.no-image .post-header {
  text-align: center !important;
}

.team-bio-polaroid {
  background: var(--color-bg);
  padding: 16px 16px 32px 16px;
  box-shadow: none;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.team-bio-polaroid:hover {
  transform: rotate(0deg);
}

.team-bio-polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee;
}

.team-bio-content-column {
  display: block;
}

.team-bio-role {
  font-size: 1rem;
  color: var(--color-red-ochre);
  letter-spacing: 0.05em;
  font-weight: 600;
  text-align: center;
}

/* HIGHLIGHT UPLOADED PDFS */
.post-content a[href$=".pdf"]:not(.kg-file-card-container) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(145, 56, 50, 0.1);
  color: var(--color-red-ochre-dark);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(145, 56, 50, 0.3);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.post-content a[href$=".pdf"]:not(.kg-file-card-container):hover {
  background-color: rgba(145, 56, 50, 0.2);
  transform: translateY(-1px);
}

.post-content a[href$=".pdf"]:not(.kg-file-card-container)::before {
  content: "ðŸ“„";
  font-size: 1.1em;
}

/* Highlight Ghost File Cards specifically (when they are PDFs or generally) */
.post-content .kg-file-card {
  background-color: rgba(145, 56, 50, 0.05);
  border: 2px solid rgba(145, 56, 50, 0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  transition: all 0.3s ease;
}

.post-content .kg-file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(145, 56, 50, 0.15);
  background-color: rgba(145, 56, 50, 0.08);
  border-color: var(--color-red-ochre);
}

.post-content .kg-file-card-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none !important;
  color: var(--color-text);
  background: transparent !important;
  border: none !important;
}

.post-content .kg-file-card-title {
  font-family: var(--font-heading);
  font-weight: 1;
  font-size: 1.3rem;
  color: var(--color-red-ochre-dark);
  margin-bottom: 4px;
}

.post-content .kg-file-card-metadata {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
  display: inline-block;
  margin-bottom: var(--space-1);
}
/* Ghost Gallery Default Styles (for pages without Swiper) */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.kg-gallery-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.kg-gallery-image img {
  display: block;
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.kg-gallery-row:not(:first-of-type) {
  margin: 0.75em 0 0 0;
}
.kg-gallery-image:not(:first-of-type) {
  margin: 0 0 0 0.75em;
}
.kg-gallery-card figcaption {
  margin: 1.0rem auto 0;
  font-size: 0.85rem;
  color: var(--color-stone);
  text-align: center;
  font-style: italic;
}

/* Custom Gallery Module (Swiper 3D Slider) */
.custom-gallery-module {
  margin: 1rem auto 1.5rem;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.gallery-title {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}



.gallery-subtitle {
  font-size: 1rem;
  color: var(--color-stone);
  margin-top: 0.25rem;
  font-style: italic;
}

.highlight-number {
  color: var(--color-red-ochre-dark);
  font-weight: 1;
  font-size: 1.1em;
  font-style: normal;
}

.gallery-swiper {
  width: 100%;
  padding-top: 10px;
  padding-bottom: 40px;
}

.gallery-swiper .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px; /* Reduced width to fit screen better */
  max-width: 80vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
  background-color: transparent;
}

/* Dim non-active slides slightly for depth */
.gallery-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.6;
}

.gallery-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh; /* Prevents tall images from blowing past screen height */
  object-fit: contain; /* Shows the full image without cropping */
  border-radius: var(--radius-lg);
}

.gallery-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-btn-prev,
.gallery-btn-next {
  background: transparent;
  border: 1px solid var(--color-stone);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.gallery-btn-prev:hover,
.gallery-btn-next:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
