/*
Theme Name: Graveyard Archive
Theme URI: https://example.com
Author: Makso Herman
Description: Custom WordPress theme for cataloging and searching graveyard records.
Version: 1.0.0
Text Domain: graveyard
*/
@import url("https://fonts.googleapis.com/css2?family=Marcellus&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap");
:root {
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-color: #2b2d42;
  --primary-color: #4a5568;
  --border-color: #e2e8f0;
  --accent-color: #2d3748;
}

body {
  font-family: "Marcellus", serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Search Bar & Filters */
.search-filter-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.search-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-group input, .form-group button {
  font-family: "Marcellus", serif;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
}

.form-group button {
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  font-weight: bold;
  border: none;
}

/* Grid Layout */
.grave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grave-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.grave-card:hover {
  transform: translateY(-4px);
}

.grave-card img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}

.grave-card-body {
  padding: 1rem;
}

.grave-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

/* Single View */
.single-grave-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .single-grave-layout {
    grid-template-columns: 1fr;
  }
}
/* Container holds image bounds and sets the magnifying glass cursor */
.grave-image-main {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in; /* Displays magnifying glass cursor */
  display: inline-block;
  width: 100%;
}

/* Base image rules */
.grave-image-main img {
  max-width: 100%;
  max-height: 650px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  pointer-events: none; /* Prevents browser image dragging */
}

/* Active zoomed state */
.grave-image-main.is-zoomed {
  cursor: zoom-out;
}

.grave-image-main.is-zoomed img {
  transform: scale(2.5); /* Adjust zoom scale factor as needed */
}

.hebrew-text {
  direction: rtl;
  unicode-bidi: embed;
  font-family: "Heebo", sans-serif;
  font-size: 1.2rem;
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.note-content p, .hebrew-text p, .bio-content p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.note-content p:last-child, .hebrew-text p:last-child, .bio-content p:last-child {
  margin-bottom: 0;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 8rem;
  color: var(--primary-color);
}

/* Site Title & Logo Alignment */
.site-title a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.site-logo {
  height: 36px; /* Adjust height to fit header scale */
  width: auto;
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
}

/* Navigation Container */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent-color);
}

/* Polylang Language Switcher */
.lang-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
}

.lang-switcher li a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.lang-switcher li.current-lang a {
  color: var(--text-color);
  border-bottom: 2px solid var(--text-color);
}

.lang-switcher li a:hover {
  color: var(--accent-color);
}

/* Pagination Layout & Centering */
.grave-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1rem 0;
  width: 100%;
}

.grave-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.grave-pagination li a,
.grave-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.grave-pagination li a:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Active State */
.grave-pagination li.active span {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  font-weight: bold;
}

/* Disabled Controls */
.grave-pagination li.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

/* Ellipsis separator */
.grave-pagination li.dots span {
  border: none;
  background: transparent;
  min-width: 20px;
  color: var(--primary-color);
}

/* Front Page Intro Hero */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.intro-content h1 {
  margin-top: 0;
  color: var(--accent-color);
  margin-bottom: 0.1rem;
}
.intro-content h1:last-child {
  margin-bottom: 0;
}

.graveyard-hero-image img {
  width: 100%;
  height: 400px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .intro-section {
    grid-template-columns: 1fr;
  }
}
/* Navigation Menu Styling */
.header-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-menu-list li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.header-menu-list li a:hover {
  color: var(--accent-color);
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1000;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Active Hamburger Animation */
.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-header {
    position: relative; /* Container anchor for absolute menu */
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none; /* Hide nav drawer by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .header-menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .lang-switcher {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 1rem;
    width: 100%;
  }
}
/* Footer & Links */
.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* Cookie Notice Banner */
.cookie-notice {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 400px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: none; /* Controlled via JS */
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}

.cookie-notice p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-color);
}

.cookie-notice a {
  color: var(--primary-color);
  font-weight: bold;
}

.cookie-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.cookie-btn:hover {
  opacity: 0.9;
}

/* Location Card Map Styles */
.location-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.map-container {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  line-height: 0; /* Prevents tiny inline gap below iframe */
}

.map-container iframe {
  width: 100%;
  display: block;
}

/* Highlight Callout Box */
.highlight-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  padding: 1rem 1rem;
  margin: 1.5rem 2.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.highlight-box p {
  margin: 0 0 0.75rem 0;
  margin-bottom: 2rem;
}
.highlight-box p:last-child {
  margin-bottom: 0;
}
.highlight-box a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}
.highlight-box a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
.highlight-box {
  /* Optional variant if you want an extra subtle grey tint */
}
.highlight-box.tinted {
  background-color: #f1f5f9;
  border-left-color: var(--primary-color);
}

/* Biographies Accordion Index */
.bio-accordion-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-accordion-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.bio-accordion-item[open] {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}
.bio-accordion-item[open] .bio-accordion-icon::before {
  transform: rotate(180deg);
}

.bio-accordion-header {
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hides default browser triangle */
}
.bio-accordion-header::-webkit-details-marker {
  display: none; /* Hides Safari default arrow */
}
.bio-accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Custom Accordion Chevron Arrow */
.bio-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.bio-accordion-icon::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.bio-accordion-body {
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 1rem;
}
.bio-accordion-body .bio-grave-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}
.bio-accordion-body .bio-grave-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Single Grave Gallery Layout */
.grave-gallery-container {
  display: flex;
  justify-content: center; /* Centers portrait/landscape images neatly in the column */
  width: 100%;
}

.grave-image-main {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content; /* Hugs the natural width of the rendered image */
  max-width: 100%;
}
.grave-image-main img {
  max-width: 100%;
  max-height: 650px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  display: block;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  pointer-events: none;
}
.grave-image-main.is-zoomed {
  cursor: zoom-out;
}
.grave-image-main.is-zoomed img {
  transform: scale(2.5);
}

/* Gallery Arrows anchored to image boundaries */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.2s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
}
.gallery-arrow.prev {
  left: 10px;
}
.gallery-arrow.next {
  right: 10px;
}

/* Overlay dots inside bottom edge of image */
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 12px;
}
.gallery-dots .gallery-dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.gallery-dots .gallery-dot.active, .gallery-dots .gallery-dot:hover {
  background-color: #ffffff;
  transform: scale(1.2);
}/*# sourceMappingURL=style.css.map */