/*
Theme Name: The Cam Traveler
Theme URI: https://example.com
Author: Carlos
Author URI: https://example.com
Description: A photography and portfolio blog theme inspired by davidduchemin.com, with custom branding.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-cam-traveler
Tags: photography, portfolio, blog, two-columns, right-sidebar
*/

/* =========================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================= */
:root {
  --color-bg:        #F2F2F2;
  --color-surface:   #FFFFFF;
  --color-text:      #0B1222;
  --color-heading:   #0B1222;
  --color-nav:       #0B1222;
  --color-nav-bg:    #FFFFFF;
  --color-accent:    #FF5F1F;   /* neon orange — buttons & links */
  --color-hover:     #D1FF28;   /* lemon lime — hover state */
  --color-lime:      #D1FF28;   /* lemon lime — dividers, underlines, categories */
  --color-muted:     #5a6275;
  --color-border:    #D1FF28;   /* dividers use lime */

  --font-heading:    'Montserrat', sans-serif;
  --font-body:       'Inter', sans-serif;

  --radius:          4px;
  --transition:      0.2s ease;
  --max-width:       1200px;
  --sidebar-width:   300px;
}

/* =========================================================
   PAGE PRELOADER
   ========================================================= */
.page-preloader {
  position: fixed;
  inset: 0;
  background: var(--color-text); /* dark navy */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page-preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ring + logo stacked in the same space */
.preloader-ring-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG ring rotated so progress starts from 12 o'clock */
.preloader-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.preloader-ring-track {
  stroke: rgba(255,255,255,0.1);
  stroke-width: 3;
}

/* r=155 → circumference ≈ 973.9 */
.preloader-ring-bar {
  stroke: var(--color-lime);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 973.9;
  stroke-dashoffset: 973.9; /* starts empty */
  transition: stroke-dashoffset 0.3s ease;
}

.preloader-logo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo img {
  max-height: 110px;
  max-width: 280px;
  width: auto;
  height: auto;
}

.preloader-site-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  max-width: 140px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* disables iOS long-press save menu */
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1.25rem; }

/* =========================================================
   LINKS
   ========================================================= */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--color-hover);
  text-decoration: underline;
  text-decoration-color: var(--color-hover);
}

/* =========================================================
   TICKER BAR
   ========================================================= */
.ticker-bar {
  background-color: var(--color-text);
  color: #fff;
  overflow: hidden;
  padding: 8px 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--color-lime);
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-track a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-track a span.ticker-label {
  color: var(--color-accent);
}

.ticker-track a:hover {
  color: var(--color-hover);
  text-decoration: none;
}

.ticker-track a:hover span.ticker-label {
  color: var(--color-hover);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================================
   SITE HEADER
   ========================================================= */
#masthead {
  background-color: var(--color-nav-bg);
  border-bottom: 3px solid var(--color-lime);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(11,18,34,0.08);
  /* Needed so the search dropdown positions relative to the header */
  overflow: visible;
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

/* Right column — nav on top, social below */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

/* Header social icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--color-muted);
  border-radius: 50%;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.header-social a:hover {
  color: var(--color-lime);
  background: rgba(11,18,34,0.06);
}

/* Logo */
.site-branding a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-branding img {
  max-height: 90px;
  max-width: 560px;
  width: auto;
  padding: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
}

.site-title a {
  color: var(--color-heading);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.site-description {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  margin-top: 2px;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-navigation ul li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-nav);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--color-hover);
  background-color: var(--color-text);
  text-decoration: none;
}

/* Dropdown */
.main-navigation ul li { position: relative; }

.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(11,18,34,0.12);
  border-top: 3px solid var(--color-lime);
  border-radius: 0 0 var(--radius) var(--radius);
  flex-direction: column;
  gap: 0;
  z-index: 200;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul { display: flex; }

.main-navigation ul ul li a {
  padding: 10px 16px;
  font-size: 0.8rem;
  border-radius: 0;
  border-bottom: 1px solid var(--color-bg);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-accent);
  color: var(--color-text);
  padding: 6px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background var(--transition), color var(--transition);
}

.menu-toggle:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ── Search icon button ── */
.nav-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-nav);
  padding: 8px 10px;
  margin-left: 6px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background-color var(--transition);
}

.nav-search-toggle:hover,
.nav-search-toggle.is-active {
  color: var(--color-hover);
  background-color: var(--color-text);
}

/* ── Search dropdown form ── */
.nav-search-form {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--color-text);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  z-index: 300;
  border-bottom: 3px solid var(--color-lime);
}

.nav-search-form.is-open {
  max-height: 100px;
  padding: 16px 24px;
}

.nav-search-form .search-form {
  display: flex;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 10px;
}

.nav-search-form .search-field {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.nav-search-form .search-field::placeholder {
  color: rgba(255,255,255,0.45);
}

.nav-search-form .search-field:focus {
  border-color: var(--color-lime);
  background: rgba(255,255,255,0.15);
}

.nav-search-form .search-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.nav-search-form .search-submit:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

/* =========================================================
   FEATURED GALLERIES BAND
   ========================================================= */
/* =========================================================
   HOMEPAGE CAROUSEL
   ========================================================= */
.homepage-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-text);
  border-bottom: 3px solid var(--color-lime);
}

/* Each slide = a row of 4 cells */
.homepage-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.homepage-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Individual cell — 1/4 of the row */
.carousel-cell {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.carousel-cell a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Background layer — hidden, cover handles it all */
.carousel-img-bg {
  display: none;
}

/* Foreground — fills cell completely */
.carousel-img-fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-cell:hover .carousel-img-fg {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Dot indicators — above both image layers */
.homepage-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.is-active {
  background: var(--color-lime);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255,255,255,0.8);
}

/* =========================================================
   LAYOUT WRAPPER
   ========================================================= */
#page { width: 100%; }

.site-content-area {
  max-width: var(--max-width);
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
}

/* No sidebar — full width, 4-column photo grid */
.site-content-area.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 1400px;
}

.site-content-area.no-sidebar .photo-grid {
  grid-template-columns: repeat(4, 1fr);
}

.site-content-area.no-sidebar #secondary {
  display: none;
}

/* Single post — no sidebar — cap width and center content */
.single .site-content-area.no-sidebar #primary {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* =========================================================
   PHOTO GRID (homepage)
   ========================================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.photo-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-text);
}

.photo-grid-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.photo-grid-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Placeholder for posts without a featured image */
.photo-grid-placeholder {
  width: 100%;
  height: 140px;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-grid-placeholder span {
  color: rgba(255,255,255,0.4);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-align: center;
}

/* Overlay — hidden by default */
.photo-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11,18,34,0.88) 0%,
    rgba(11,18,34,0.4) 50%,
    rgba(11,18,34,0) 100%
  );
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.photo-grid-overlay-inner {
  padding: 20px 22px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.photo-grid-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}


.photo-grid-date {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-lime);
}

/* Hover state */
.photo-grid-item:hover .photo-grid-img {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.photo-grid-item:hover .photo-grid-overlay {
  opacity: 1;
}

.photo-grid-item:hover .photo-grid-overlay-inner {
  transform: translateY(0);
}

/* Placeholder for posts without featured image */
.photo-grid-placeholder {
  width: 100%;
  height: 140px;
  background: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* Infinite scroll sentinel & loader */
.photo-grid-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

.photo-grid-loader {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.photo-grid-loader.is-loading { display: flex; }

.photo-grid-loader .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(11,18,34,0.12);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.photo-grid-end {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 0 12px;
  display: none;
}

.photo-grid-end.is-visible { display: block; }

.photo-grid-portfolio-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid var(--color-accent);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(255,95,31,0.25);
}

.photo-grid-portfolio-btn:hover {
  background: var(--color-hover);
  color: var(--color-text);
  border-color: var(--color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(209,255,40,0.3);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 760px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  /* 4-col no-sidebar drops to 2 on small screens */
  .site-content-area.no-sidebar .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-content-area.no-sidebar .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   POSTS LOOP
   ========================================================= */
.posts-loop {}

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,18,34,0.05);
  border-bottom: 3px solid var(--color-lime);
  transition: box-shadow var(--transition);
}

.post-card:hover {
  box-shadow: 0 6px 24px rgba(11,18,34,0.10);
}

.post-card-thumbnail {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
}

.post-card-thumbnail img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.02);
}

.post-card-body {
  padding: 28px 32px 32px;
}

/* Post meta (categories, date, author) */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-meta a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

.post-meta a:hover { color: var(--color-hover); text-decoration: none; }

.post-meta .meta-sep {
  color: var(--color-muted);
}

.post-meta .meta-date,
.post-meta .meta-author {
  color: var(--color-muted);
}

/* Post title */
.post-card-title {
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.post-card-title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color var(--transition);
}

.post-card-title a:hover { color: var(--color-accent); text-decoration: none; }

/* Post excerpt */
.post-excerpt {
  color: var(--color-text);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Read more */
.read-more-link {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border: 2px solid var(--color-accent);
}

.read-more-link:hover {
  background: var(--color-hover);
  color: var(--color-text);
  border-color: var(--color-hover);
  text-decoration: none;
}

/* Divider between posts */
.post-divider {
  border: none;
  border-top: 2px solid var(--color-lime);
  margin: 0 0 40px 0;
  opacity: 0.45;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background: var(--color-hover);
  color: var(--color-text);
  border-color: var(--color-hover);
}

/* =========================================================
   SIDEBAR
   ========================================================= */
#secondary {
  position: sticky;
  top: 88px;
}

.widget {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--color-lime);
  box-shadow: 0 2px 8px rgba(11,18,34,0.05);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-lime);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(209,255,40,0.2);
  font-size: 0.88rem;
}

.widget ul li:last-child { border-bottom: none; }

.widget ul li a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.widget ul li a:hover { color: var(--color-accent); text-decoration: none; }

/* Search widget */
.widget_search .search-form {
  display: flex;
  gap: 8px;
}

.widget_search .search-field {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--color-bg);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}

.widget_search .search-field:focus {
  border-color: var(--color-accent);
}

.widget_search .search-submit {
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.widget_search .search-submit:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

/* About widget */
.about-widget-photo {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 3px solid var(--color-lime);
}

.about-widget-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: center;
}

.about-widget-text a {
  color: var(--color-accent);
}

.about-widget-text a:hover { color: var(--color-hover); }

/* Category list special styling */
.widget_categories ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post-header {
  background: var(--color-surface);
  padding: 48px 0 0;
  border-bottom: 3px solid var(--color-lime);
}

.single-post-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 16px;
}

.single-post-title {
  font-size: 2.6rem;
  margin-bottom: 10px; /* space between title and author/date below it */
}

/* Hide star-rating plugin output on single posts.
   Covers WP-PostRatings, GD Star Rating, kk Star Ratings,
   Rate My Post, Taqyeem, and generic [class/id*="rat"] patterns. */
.single .wp-postratings,
.single .wp-postratings-loading,
.single .post-ratings,
.single .post-ratings-loading,
.single [class*="rate-this"],
.single [class*="rate_this"],
.single [id*="post-ratings"],
.single [class*="star-rating"],
.single [class*="star_rating"],
.single [id*="star-rating"],
.single [class*="kk-star"],
.single [class*="gdsr"],
.single [class*="taqyeem"],
.single [class*="rmp-rating"],
.single [class*="wpdiscuz-rating"],
.single [class*="review-average"],
.single [class*="post-rating"],
.single [id*="post-rating"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
/* Remove any blank line left by the plugin via an empty <p> tag
   that sits right before the first real content element */
.single-post-content > p:first-child:empty,
.single-post-content > p:first-child:blank {
  display: none !important;
}

.single-post-featured-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-bottom: 4px solid var(--color-lime);
}

.single-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.single-post-content h2,
.single-post-content h3 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(209,255,40,0.3);
}

.single-post-content blockquote {
  border-left: 4px solid var(--color-lime);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(209,255,40,0.06);
  font-style: italic;
  color: var(--color-muted);
}

.single-post-content hr {
  border: none;
  border-top: 2px solid var(--color-lime);
  opacity: 0.4;
  margin: 2rem 0;
}

/* "Categories" / "Tags" label */
.post-taxonomy-label {
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 8px;
}

/* Post categories (bottom) */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--color-lime);
}

.post-categories a {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(11,18,34,0.06);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(11,18,34,0.15);
  text-decoration: none;
  transition: all var(--transition);
}

.post-categories a:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  text-decoration: none;
}

.post-categories .meta-sep {
  color: var(--color-muted);
  font-size: 0.7rem;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
}

.post-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,95,31,0.1);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--color-accent);
  text-decoration: none;
  transition: all var(--transition);
}

.post-tags a:hover {
  background: var(--color-hover);
  color: var(--color-text);
  border-color: var(--color-hover);
  text-decoration: none;
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--color-lime);
}

.post-navigation a {
  display: block;
  padding: 18px 22px;
  background: var(--color-surface);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--color-bg);
}

.post-navigation a:hover {
  border-color: var(--color-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.post-navigation .nav-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.post-navigation .nav-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

.nav-next { text-align: right; }

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 3px solid var(--color-lime);
}

.comments-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.comment-list { list-style: none; }

.comment {
  padding: 20px 0;
  border-bottom: 1px solid rgba(209,255,40,0.25);
}

.comment-author .fn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-heading);
}

.comment-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.comment-content { font-size: 0.95rem; }

.comment-reply-link {
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Comment form */
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--color-bg);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--color-accent);
}

.comment-form .submit {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.comment-form .submit:hover {
  background: var(--color-hover);
  color: var(--color-text);
}

/* =========================================================
   BUTTONS (global)
   ========================================================= */
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  padding: 11px 24px;
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--color-hover);
  color: var(--color-text);
  border-color: var(--color-hover);
  text-decoration: none;
}

/* =========================================================
   PAGE TEMPLATE
   ========================================================= */

/* Pages have no sidebar — cap width and center */
.page-main {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.page-header {
  padding: 48px 0 32px;
  border-bottom: 3px solid var(--color-lime);
  margin-bottom: 36px;
}

.page-title { font-size: 2.2rem; }

.page-content {
  font-size: 1.02rem;
  line-height: 1.85;
}

.page-content h2,
.page-content h3 {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(209,255,40,0.3);
}

/* =========================================================
   ARCHIVE
   ========================================================= */
.archive-header {
  padding: 36px 0 24px;
  border-bottom: 3px solid var(--color-lime);
  margin-bottom: 36px;
}

.archive-title {
  font-size: 2rem;
  margin-bottom: 6px;
}

.archive-description {
  color: var(--color-muted);
  font-size: 1rem;
}

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404 {
  text-align: center;
  padding: 80px 24px;
}

.error-404 .error-code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 900;
  color: var(--color-lime);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.error-404 h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--color-muted);
  margin-bottom: 24px;
}

/* =========================================================
   SEARCH RESULTS
   ========================================================= */
.search-header {
  padding: 36px 0 24px;
  border-bottom: 3px solid var(--color-lime);
  margin-bottom: 36px;
}

/* =========================================================
   PORTFOLIO INDEX PAGE (template-portfolio-index.php)
   ========================================================= */

/* Full-viewport split layout — hides site padding/margin */
.page-template-template-portfolio-index #content,
.page-template-template-portfolio-index .site-content-area {
  display: block;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.portfolio-index {
  display: flex;
  height: calc(100vh - 140px); /* full height minus sticky header */
  overflow: hidden;
  background: var(--color-text);
}

/* ── LEFT: Preview photo ── */
.portfolio-preview {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.portfolio-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.portfolio-preview-placeholder {
  width: 100%;
  height: 100%;
  background: #111;
}

/* Gradient overlay at bottom for title legibility */
.portfolio-preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 36px 32px;
  background: linear-gradient(
    to top,
    rgba(11,18,34,0.85) 0%,
    rgba(11,18,34,0) 100%
  );
  pointer-events: none;
}

.portfolio-preview-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

/* Invisible clickable overlay on preview */
.portfolio-preview-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
}

/* ── RIGHT: Gallery list panel ── */
.portfolio-panel {
  width: 300px;
  flex-shrink: 0;
  background: var(--color-text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 3px solid var(--color-lime);
}

/* Panel header — shows active gallery name */
.portfolio-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: rgba(255,255,255,0.06);
  border-bottom: 2px solid var(--color-lime);
  flex-shrink: 0;
}

.portfolio-panel-arrow {
  font-size: 1.6rem;
  color: var(--color-lime);
  line-height: 1;
  font-weight: 300;
}

.portfolio-panel-active {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrollable gallery list */
.portfolio-panel-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-lime) rgba(255,255,255,0.05);
}

.portfolio-panel-list::-webkit-scrollbar { width: 4px; }
.portfolio-panel-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.portfolio-panel-list::-webkit-scrollbar-thumb { background: var(--color-lime); border-radius: 2px; }

.portfolio-panel-item {
  display: block;
  padding: 16px 24px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
  position: relative;
}

.portfolio-panel-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.portfolio-panel-item:hover,
.portfolio-panel-item:focus,
.portfolio-panel-item.is-active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  padding-left: 30px;
  text-decoration: none;
}

.portfolio-panel-item:hover::before,
.portfolio-panel-item:focus::before,
.portfolio-panel-item.is-active::before {
  transform: scaleY(1);
}

.portfolio-panel-item.is-active {
  color: var(--color-lime);
}

.portfolio-panel-item.is-active::before {
  background: var(--color-lime);
}

/* ── RESPONSIVE ── */
@media ( max-width: 860px ) {
  .portfolio-index {
    flex-direction: column;
    height: auto;
  }

  .portfolio-preview {
    height: 55vw;
    min-height: 260px;
  }

  .portfolio-panel {
    width: 100%;
    border-left: none;
    border-top: 3px solid var(--color-lime);
    max-height: 340px;
  }

  .portfolio-preview-title { font-size: 1.4rem; }
}

@media ( max-width: 480px ) {
  .portfolio-preview-title { font-size: 1.1rem; }
  .portfolio-panel-item { padding: 13px 20px; font-size: 0.75rem; }
  .portfolio-panel-item:hover,
  .portfolio-panel-item.is-active { padding-left: 26px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
#colophon {
  background-color: var(--color-text);
  color: rgba(255,255,255,0.6);
  border-top: 4px solid var(--color-lime);
  margin-top: 80px;
}

.footer-widgets {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-widget-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(209,255,40,0.3);
}

.footer-widget p,
.footer-widget li { font-size: 0.88rem; line-height: 1.7; }

.footer-widget ul { list-style: none; padding: 0; }

.footer-widget ul li { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-widget ul li:last-child { border-bottom: none; }

.footer-widget a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-widget a:hover { color: var(--color-hover); text-decoration: none; }

.site-info {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-radius: 50%;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--color-hover);
  color: var(--color-text);
  text-decoration: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .site-content-area {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #secondary { position: static; }

  .footer-widgets { grid-template-columns: 1fr 1fr; }

  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
}

@media (max-width: 640px) {
  .site-header-inner { height: 80px; }
  .header-social { display: none; }

  .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: var(--color-surface); padding: 16px; box-shadow: 0 8px 24px rgba(11,18,34,0.12); border-top: 3px solid var(--color-lime); }

  .main-navigation ul.toggled { display: flex; }

  .menu-toggle { display: block; }

  .single-post-title, h1 { font-size: 1.8rem; }

  .footer-widgets { grid-template-columns: 1fr; }

  .site-info { flex-direction: column; gap: 12px; text-align: center; }

  .homepage-carousel { height: 140px; }
  .homepage-carousel-slide { gap: 2px; }

  .ticker-bar { font-size: 0.72rem; }
}

/* =========================================================
   GALLERY SLIDESHOW (single-portfolio_gallery.php)
   ========================================================= */

/* Override page layout — full dark immersive screen */
.single-portfolio_gallery #page,
.single-portfolio_gallery body {
  background: #000;
  overflow: hidden;
}

.single-portfolio_gallery #masthead,
.single-portfolio_gallery #colophon,
.single-portfolio_gallery .ticker-bar,
.single-portfolio_gallery .homepage-carousel {
  display: none !important;
}

.slideshow-page {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

/* ── Image loading overlay ── */
.slideshow-loading {
  position: absolute;
  inset: 0;
  background: var(--color-text);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.slideshow-loading.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-loading .preloader-logo img {
  max-height: 80px;
  max-width: 260px;
}

/* ── Toolbar ── */
.slideshow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  background: rgba(11,18,34,0.92);
  border-bottom: 2px solid var(--color-lime);
  flex-shrink: 0;
  transition: opacity 0.3s ease;
  z-index: 30;
  position: relative;
}

.slideshow-toolbar.is-hidden { opacity: 0; pointer-events: none; }

.slideshow-toolbar-left,
.slideshow-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slideshow-back-link {
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color var(--transition);
}
.slideshow-back-link:hover { color: var(--color-lime); text-decoration: none; }

.slideshow-gallery-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.slideshow-counter {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-lime);
  letter-spacing: 0.08em;
}

.slideshow-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.slideshow-btn svg {
  width: 24px;
  height: 24px;
}

.slideshow-btn:hover,
.slideshow-btn.is-active,
.slideshow-btn.is-playing {
  color: var(--color-lime);
  background: rgba(255,255,255,0.08);
}

/* ── Stage ── */
.slideshow-stage {
  position: absolute;
  top: 64px;   /* below toolbar */
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.slideshow-photo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slideshow-photo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Prev / Next nav buttons ── */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11,18,34,0.55);
  border: none;
  color: rgba(255,255,255,0.9);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: background var(--transition), color var(--transition);
  opacity: 1;
}

.slideshow-nav svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.slideshow-nav:hover {
  background: var(--color-accent);
  color: #fff;
}

.slideshow-nav-prev { left: 20px; }
.slideshow-nav-next { right: 20px; }

/* ── Caption ── */
.slideshow-caption {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 70%;
  z-index: 4;
  color: #ffffff;
  transition: color 0.3s ease;
  pointer-events: none; /* caption wrapper is non-clickable */
}

.slideshow-caption-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slideshow-go-to-post {
  flex: none;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
  pointer-events: all; /* re-enable clicks just for the link */
  transition: background 0.2s ease, color 0.2s ease, border-color 0.3s ease;
}

.slideshow-go-to-post:hover {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* ── Keyboard shortcuts help modal ── */
.slideshow-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.slideshow-help-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.slideshow-help-box {
  background: #0d1526;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 28px 32px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.slideshow-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.slideshow-help-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-lime);
}
.slideshow-help-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: color var(--transition);
}
.slideshow-help-close:hover { color: #fff; }
.slideshow-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slideshow-help-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slideshow-help-list span {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.slideshow-help-list kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Grid overlay ── */
.slideshow-grid-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 20;
  display: none;
  overflow-y: auto;
  padding: 32px 24px;
}

.slideshow-grid-overlay.is-open { display: block; }

.slideshow-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.slideshow-grid-thumb {
  position: relative;
  background: #111;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
  aspect-ratio: 1;
}

.slideshow-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.slideshow-grid-thumb:hover { border-color: var(--color-accent); transform: scale(1.02); }
.slideshow-grid-thumb.is-active { border-color: var(--color-lime); }
.slideshow-grid-thumb:hover img { transform: scale(1.05); }

/* ── Empty state ── */
.slideshow-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  padding: 40px;
}

/* ── Responsive ── */
@media ( max-width: 640px ) {
  .slideshow-gallery-title { font-size: 0.72rem; }
  .slideshow-photo-wrap { padding: 12px 52px; }
  .slideshow-nav { width: 40px; height: 40px; }
  .slideshow-grid-inner { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; }
}


/* =========================================================
   TCT CATEGORY INFO TABLES
   =========================================================
   Usage: wrap with .tct-table plus a category modifier:
     .tct-table--fauna | --flora | --food
     --cars | --landscapes | --architecture
   ========================================================= */

/* ── Outer wrapper ── */
.tct-table {
  --tct-navy:       #F2F2F2;
  --tct-text:       #0B1222;
  --tct-label:      rgba(0,0,0,0.5);
  --tct-divider:    rgba(0,0,0,0.08);
  --tct-title-bg:   rgba(255,255,255,0.04);
  --tct-title-clr:  #ffffff;
  --tct-sec-clr:    #D1FF28;
  --tct-sec-bg:     rgba(209,255,40,0.06);
  --tct-sec-border: rgba(209,255,40,0.2);
  --tct-border:     rgba(0,0,0,0.15);
  --tct-hover:      rgba(0,0,0,0.03);
  --tct-lime:       #D1FF28;
  --tct-orange:     #FF5F1F;
  --tct-value:      #0B1222;
  --tct-accent:     #888;

  font-family: var(--font-body, 'Inter', sans-serif);
  background: var(--tct-navy);
  border: 1px solid var(--tct-border);
  border-radius: 0 6px 6px 6px;
  overflow: visible;
  width: 100%;
  margin: 2rem 0 1.6rem;
  color: var(--tct-text);
  font-size: 0.88rem;
  position: relative;
}


/* ── Per-category accent colour tokens (must come AFTER .tct-table to win the cascade) ── */
.tct-table--fauna        { --tct-accent: #c97d3a; }
.tct-table--flora        { --tct-accent: #2d7a3a; }
.tct-table--food         { --tct-accent: #a82020; }
.tct-table--cars         { --tct-accent: #c9a800; }
.tct-table--landscapes   { --tct-accent: #4a9fd4; }
.tct-table--architecture { --tct-accent: #6a4a8a; }

/* ── Category tab (top-left, sits above the table) ── */
.tct-table__header {
  background: var(--tct-accent);
  padding: 5px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: absolute;
  top: -29px;
  left: -1px;
  border-radius: 5px 5px 0 0;
  white-space: nowrap;
}

.tct-table__header-icon {
  font-size: 13px;
  line-height: 1;
}

.tct-table__header-label {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Subject title row (below tab) ── */
.tct-table__title {
  text-align: center;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(209,255,40,0.25);
  background: #1a1a2e;
}

/* ── Section title (// Basic ID, // Size, etc.) ── */
.tct-table__section {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D1FF28;
  background: #1a1a2e;
  border-top: 1px solid rgba(209,255,40,0.2);
  border-bottom: 1px solid rgba(209,255,40,0.15);
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tct-table__section-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tct-table__header-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Data rows ── */
.tct-table__row {
  display: grid;
  grid-template-columns: 44% 56%;
  border-bottom: 1px solid var(--tct-divider);
  transition: background 0.15s ease;
}

.tct-table__row:last-child { border-bottom: none; }
.tct-table__row:hover { background: var(--tct-hover); }

/* ── Label cell (left) ── */
.tct-table__label {
  padding: 7px 16px 7px 16px;
  color: var(--tct-label);
  font-size: 0.8rem;
  border-right: 1px solid var(--tct-divider);
  display: flex;
  align-items: center;
}

/* ── Value cell (right) ── */
.tct-table__value {
  padding: 7px 14px;
  color: var(--tct-value);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 36px;
}

/* Empty / placeholder value */
.tct-table__value:empty::after,
.tct-table__value--empty::after {
  content: "—";
  color: rgba(0,0,0,0.2);
  font-size: 0.8rem;
}

/* ── Accent colour strip on left edge of each row via the section ── */
.tct-table__header + .tct-table__row,
.tct-table__section + .tct-table__row {
  border-top: none;
}

/* ── Responsive: stack label/value on narrow screens ── */
@media ( max-width: 560px ) {
  .tct-table__row {
    grid-template-columns: 1fr;
  }
  .tct-table__label {
    border-right: none;
    border-bottom: 1px solid var(--tct-divider);
    padding-bottom: 3px;
    font-size: 0.72rem;
    color: var(--tct-label);
    opacity: 1;
  }
  .tct-table__value {
    padding-top: 3px;
    padding-left: 16px;
  }
}
