:root {
  --bg-color: #ffffff;
  --text-primary: #1a1a1a;
  /* Darker for more vibrant text */
  --text-secondary: #666666;
  /* Slightly darker secondary */
  --accent: #000000;
  --font-main: "Manrope", sans-serif;
  --header-height: 100px;
  --sidebar-width: 25%;
  /* Narrower sidebar like reference */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Header */
.navbar {
  display: flex;
  align-items: center;
  /* Vertically center */
  padding: 1.25rem 1.5rem 1rem 1.5rem;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
}

.brand {
  font-family: Manrope, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: rgb(59, 59, 59);
  margin-right: auto;
  /* Pushes nav-group to the right */
  display: flex;
  align-items: center;
}

.site-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-group {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

/* Ensure WP menu <li> elements don't show bullets and render inline
   WP outputs <li> elements for menus; remove default list styles and
   make list items inline so the menu matches the static design. */
.nav-links,
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.nav-links li a {
  display: inline-block;
}

.nav-links a {
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: rgb(59, 59, 59);
  opacity: 0.7;
  /* Default opacity */
  transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  font-weight: 600;
}

.lang-switch,
.mobile-lang-switch {
  display: none !important;
}

.lang-btn {
  cursor: pointer;
  transition: opacity 0.3s, font-weight 0.3s;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn.active {
  font-weight: 700;
  opacity: 1;
}

/* Subheader */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  z-index: 201;
  /* Above overlay */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 200;
  padding: 0;
  /* Remove padding as we now have an internal header */
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  opacity: 0;
  visibility: hidden;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
}

.mobile-menu-overlay.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1.5rem;
  /* Restore side padding for content */
  margin-bottom: 3rem;
}

.mobile-nav-links a {
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 40px;
  font-weight: 500;
  /* Bolder as requested */
  color: #333;
  line-height: 1.2;
}

/* Extra safeguard: remove any list markers or pseudo bullets for mobile nav in theme CSS */
.mobile-nav-links,
.mobile-nav-links a {
  list-style: none !important;
}

.mobile-nav-links a::before,
.mobile-nav-links a::after {
  content: none !important;
}

.mobile-lang-switch {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  color: #000;
  font-weight: 500;
  margin-bottom: auto;
  padding: 0 1.5rem;
}

.mobile-contact-info {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
  margin: 0 1.5rem 1.5rem 1.5rem;
  /* Margin for separator */
}

.mobile-contact-info p {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  /* Match reference ~16px */
  color: #333;
  margin-bottom: 0.5rem;
}

.mobile-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0 1.5rem 2rem 1.5rem;
}

.mobile-social-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

.subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  border: none !important;
  /* Force no border */
  background: transparent !important;
  padding: 0 !important;
}

.search-icon-svg {
  opacity: 0.6;
  position: absolute;
  left: 0;
  pointer-events: none;
}

.search-input {
  border: none !important;
  /* Force no border */
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  padding-left: 1.5rem;
  width: 200px;
  transition: width 0.3s ease;
  border-bottom: 1px solid transparent !important;
  /* Optional: Keep underline if desired, or remove */
}

.search-input::placeholder {
  color: #999;
  opacity: 0;
  transition: opacity 0.3s;
}

.search-input:focus::placeholder {
  opacity: 1;
}

.search-input:focus {
  width: 250px;
  border-bottom: 1px solid #000 !important;
  /* Only show underline on focus if needed */
}

.filters {
  display: flex;
  gap: 0.5rem;
  /* Reduced from 1.5rem */
  margin-left: auto;
  /* Align to right */
}

.filter-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: rgb(59, 59, 59) !important;
  cursor: pointer;
  transition: color 0.3s;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  border-radius: 20px !important;
}

.filter-btn:hover {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.filter-btn.active {
  background: transparent !important;
  color: #000 !important;
  font-weight: 700 !important;
}

/* Main Grid */
.gallery-container {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  grid-column-gap: 10rem;
  grid-row-gap: 10rem;
  padding-right: 2.5rem;
  position: relative;
  min-height: calc(100vh - 140px);
}

/* Sidebar */
.sidebar {
  width: 100%;
  /* Full width of the grid cell */
  padding: 1.5rem 1rem 2rem 1rem;
  /* Tighter padding all around */
  height: calc(100vh - 140px);
  position: sticky;
  top: 140px;
  overflow-y: auto;
  direction: rtl;
  /* Reverse direction to put scrollbar on left */
  /* No border-right in the exact screenshot, just whitespace separation */
}

/* Reset text direction for content */
.sidebar > * {
  direction: ltr;
}

.category-group {
  margin-bottom: 3rem;
}

.category-title {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  /* Tighter spacing */
  letter-spacing: 0.8px;
  /* More letter spacing */
}

@media (max-width: 768px) {
  .category-title {
    font-size: 16px;
  }

  /* Hide filter tabs and search on mobile */
  .filters,
  .search-container {
    display: none !important;
  }

  .subheader {
    justify-content: center;
    padding-bottom: 0;
    border-bottom: none;
  }
}

.art-item {
  cursor: pointer;
  padding: 0.5rem 0;
  /* Slightly tighter */
  font-size: 0.88rem;
  color: var(--text-secondary);
  /* Lighter gray by default */
  transition: color 0.2s ease;
  line-height: 1.5;
  font-weight: 400;
}

.art-item:hover {
  color: #000;
  font-weight: 500;
}

.art-item.active {
  color: #000;
  font-weight: 600;
  /* Bold for active */
  text-decoration: underline;
  /* Assuming generic active state, or just bold */
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Display Area */
.display-area {
  /* flex: 1; removed */
  padding: 1.5rem 0 2rem 0;
  /* align with grid edge */
  position: relative;
  max-width: 100%;
  /* Fill the grid cell */
  /* width constraints handled by grid */
}

/* Content Header */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #000;
  /* Solid black line as seen in screenshot */
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  /* More space below header */
  height: auto;
}

.content-category-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.close-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  min-width: auto !important;
  color: #000 !important;
  /* Force black color */
}

.close-btn svg {
  stroke: #000 !important;
  /* Force visible stroke */
  width: 24px !important;
  height: 24px !important;
}

.close-btn:hover {
  opacity: 1;
  background: transparent !important;
}

/* Artwork View */
.artwork-view {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
  display: flex;
  flex-direction: column;
}

.art-image {
  width: 100%;
  height: 80vh;
  /* Increased for large screens */
  max-height: 800px;
  min-height: 500px;
  display: block;
  object-fit: cover;
  /* Fills space */
}

.expand-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px);
  border: none !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
  /* Always visible */
  transition: opacity 0.3s;
  z-index: 10;
  box-shadow: none !important;
  margin: 0 !important;
}

.expand-icon svg {
  stroke: white;
}

/* Cursor-following Navigation */
.cursor-nav {
  position: absolute;
  /* Fixed handled by JS usually, but absolute to wrapper works if wrapper relative */
  pointer-events: none;
  display: flex;
  /* Controlled by JS/CSS interaction */
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.6rem 1.1rem;
  border-radius: 24px;
  color: #333;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
  z-index: 20;
}

/* Ensure image wrapper triggers hover */
.image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  background: #f5f5f5;
  overflow: hidden;
  cursor: none;
  /* Hide default cursor when nav is active */
}

/* Restored Navigation Styles */
.cursor-nav.prev {
  flex-direction: row-reverse;
}

.cursor-nav svg {
  transition: transform 0.3s ease;
}

.cursor-nav.prev svg {
  transform: rotate(180deg);
}

.cursor-nav .nav-text {
  transition: opacity 0.2s ease;
}

/* Preview Mode for Hover interaction (optional) */
.preview-mode .content-header,
.preview-mode .art-details,
.preview-mode .expand-icon {
  display: none !important;
}

.preview-mode .artwork-view {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
}

.preview-mode .image-wrapper {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.preview-mode .art-image {
  width: auto;
  max-width: 35%;
  /* Smaller preview size to match reference */
  max-height: 35vh;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-close:hover {
  color: #bbb;
  text-decoration: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Details Modal - Full Screen Popup */
.mobile-details-modal {
  display: none;
  position: fixed;
  z-index: 999999999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

.mobile-modal-content {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Mobile Modal Header with Series Title */
.mobile-modal-header {
  position: relative;
  width: 100%;
  padding: 1rem 3.5rem 1rem 1rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

#mobile-series-title {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: center;
  flex: 1;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-modal-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: #1a1a1a;
  z-index: 11;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile Modal Image Container */
.mobile-image-container {
  width: 100%;
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-modal-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

/* Mobile Modal Details Section */
.mobile-details-modal .art-details {
  padding: 1.5rem;
  background: #fff;
}

.mobile-details-modal .art-title-block h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
}

.mobile-details-modal .art-meta-block {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
}

.mobile-details-modal .art-meta-block p {
  margin: 0.3rem 0;
}

/* Filters Visibility fix */
.filters {
  display: flex !important;
  /* Force display */
  gap: 0.5rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  .filters {
    display: none !important;
    /* Hide on mobile */
  }
}

/* Details Footer */
.art-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 0;
  gap: 2rem;
  /* Space between title and metadata */
}

.art-title-block h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0;
  line-height: 1.4;
}

.art-meta-block {
  text-align: right;
  font-size: 0.8rem;
  color: #aaa;
  /* Lighter grey */
  line-height: 1.6;
  font-weight: 400;
}

.art-meta-block p {
  margin: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Category Overview Styles */
.category-view {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.5s forwards;
  width: 100%;
}

.cat-image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 2.5rem;
  /* Increased spacing */
  background: #f5f5f5;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cat-image-wrapper:hover .cat-image {
  transform: scale(1.02);
}

.view-gallery-text {
  position: absolute;
  color: white;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 500;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cat-image {
  width: 100%;
  height: 240px;
  /* Smaller height to match design */
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cat-image-wrapper .expand-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  z-index: 20;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.cat-image-wrapper:hover .expand-icon {
  opacity: 1;
}

.cat-content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  /* Wider text column like reference */
  gap: 4rem;
  /* Large gap */
  align-items: start;
  /* Top align everything */
}

.cat-description {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  /* Specific size */
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
  /* Reduced to bring links closer */
  max-width: 95%;
}

.cat-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cat-link-row {
  font-size: 15px;
  color: #333;
  margin: 0;
}

.cat-link-row a {
  color: #333;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cat-link-row a:hover {
  opacity: 0.7;
}

.cat-year {
  margin-top: 2rem;
  /* Space before year */
  font-weight: 400;
  font-size: 15px;
  color: #333;
}

.see-artworks-btn {
  background: none;
  border: none;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  transition: opacity 0.2s;
  justify-content: flex-end;
  /* Align right */
  width: 100%;
  margin-top: 0.2rem;
  /* Align with top text line visually */
}

.see-artworks-btn:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .cat-content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .see-artworks-btn {
    margin-left: auto;
    /* Push to right */
    margin-top: 1rem;
    justify-content: flex-end;
    /* Right align on mobile as per screenshot */
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .gallery-container {
    grid-column-gap: 5rem;
  }
}

@media (max-width: 900px) {
  .gallery-container {
    display: flex;
    /* Fallback to flex or single col grid */
    flex-direction: column;
    grid-template-columns: 1fr;
    grid-gap: 0;
    padding-right: 0;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
  }

  .display-area {
    width: 100%;
    height: auto;
    padding: 2rem;
  }

  .art-details {
    flex-direction: column;
    gap: 1rem;
  }

  .art-meta-block {
    text-align: left;
  }

  .navbar {
    flex-direction: row;
    /* Match reference: Brand left, Menu right */
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 1.5rem;
  }

  .brand {
    margin-bottom: 0;
  }

  .desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile Detail View Behavior - STRICT OVERRIDE */
  body.mobile-view-active .sidebar {
    display: none !important;
  }

  body.mobile-view-active .navbar {
    display: none !important;
    /* Hide header for full screen */
  }

  body.mobile-view-active .display-area {
    display: block !important;
    width: 100% !important;
    padding: 1.5rem !important;
    min-height: 100vh;
    z-index: 100;
    background: white;
    position: fixed;
    /* Fix content to top */
    top: 0;
    left: 0;
    overflow-y: auto;
    /* Allow scrolling inside */
  }

  /* Adjust main layout for mobile list view reference */
  .sidebar {
    border: none;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 500;
    /* High z-index to ensure clickability */
    pointer-events: auto !important;
  }

  .sidebar * {
    pointer-events: auto !important;
    /* Force children to accept clicks */
  }

  .category-title {
    font-size: 16px;
    /* Larger on mobile */
    font-weight: 700;
    /* Bolder */
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
  }

  /* Simulate 'Open' text on mobile categories if needed, or just keep simple list */

  .art-item {
    font-size: 16px;
    /* Larger readable size on mobile */
    padding: 0.8rem 0;
    /* More spacing */
    border-bottom: 1px solid #f5f5f5;
    /* Subtle separation */
    color: #666;
  }

  .filters {
    display: none;
  }
}

/* Contact Sidebar */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.contact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.contact-sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 3rem 3rem 0 3rem;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

.sidebar-close {
  background: none;
  border: none;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.sidebar-close:hover {
  color: #000;
}

.sidebar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3rem;
  padding-top: 3rem;
  -webkit-overflow-scrolling: touch;
}

.sidebar-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: auto;
  max-width: 90%;
}

.sidebar-contact-details {
  margin-top: 3rem;
}

.contact-row {
  margin-bottom: 2rem;
}

.contact-phone,
.contact-email-link {
  display: block;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.contact-address,
.footer-address {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-other-info,
.footer-other-info {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-info-label,
.footer-info-label {
  font-weight: 500;
  margin-right: 0.5rem;
}

.contact-info-value,
.footer-info-value {
  color: #666;
}

.sidebar-social {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.sidebar-social a {
  text-decoration: none;
  color: #666;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.sidebar-social a:hover {
  color: #000;
}

/* Contact Form Styles */
.contact-form {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
  font-family: "Manrope", sans-serif;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: "Manrope", sans-serif;
  color: #333;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
  margin-top: 1rem;
}

.form-submit-btn:hover:not(:disabled) {
  background: #333;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-messages {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: "Manrope", sans-serif;
}

.form-messages.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message {
  margin: 0;
}

@media (max-width: 600px) {
  .contact-sidebar {
    width: 100%;
    padding: 0;
  }
  
  .sidebar-header {
    padding: 2rem 2rem 0 2rem;
  }
  
  .sidebar-content {
    padding: 2rem;
    padding-top: 2rem;
  }
  
  .contact-form {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
}

/* Shared Footer Styles */
.static-footer {
  width: 100%;
  background-color: #fff;
  padding: 0rem 3rem 0.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 4rem;
  /* Spacing from content */
}

.footer-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: auto;
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.footer-extra {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  max-width: 60ch;
}

.footer-extra a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.footer-legal-links a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #000;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #000;
}
.footer-divider {
  border: none;
  border-top: 1px solid #bfbfbf;
  width: 100%;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 0;
}

.footer-bottom .contact-info,
.footer-bottom .social-links {
  flex: 1 1 0;
  min-width: 0;
}

.footer-bottom .footer-legal-links {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.contact-info p a,
.contact-info .footer-copyright a,
.footer-info-value a {
  color: #666;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.contact-info p a:hover,
.contact-info .footer-copyright a:hover,
.footer-info-value a:hover,
.footer-extra a:hover {
  color: #000;
}

.contact-info .footer-address {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.contact-info .footer-other-info {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.contact-info .footer-info-label {
  font-weight: 500;
  color: #333;
  margin-right: 0.5rem;
}

.contact-info .footer-info-value {
  color: #666;
}

.contact-info .footer-copyright {
  margin: 0.9rem 0 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.social-links a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #000;
}

/* Responsive Shared Footer */
@media (max-width: 900px) {
  .static-footer {
    padding: 1.5rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: none;
  }

  .social-links {
    align-items: flex-start;
  }

  /* Improve readability on mobile footer links/text (no faded look) */
  .contact-info p,
  .contact-info .footer-address,
  .contact-info .footer-other-info,
  .contact-info .footer-copyright,
  .contact-info .footer-info-value,
  .contact-info .footer-info-label,
  .social-links a,
  .footer-extra,
  .footer-extra a,
  .contact-info p a,
  .contact-info .footer-copyright a,
  .footer-info-value a {
    color: #333 !important;
    opacity: 1;
    text-shadow: none;
  }
}

/* Category Heading (Bold) */
.category-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
}

/* Sidebar Footer Link */
.next-page-link {
  font-weight: 500;
  transition: opacity 0.2s;
}

.next-page-link:hover {
  opacity: 0.7;
}

/* View Gallery Text */
.view-gallery-text {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}

/* Mobile Modal Refinements - Consolidated above at line 672 */

/* Category View - Series Title */
#mobile-series-title {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

/* Sidebar Footer Link */
.next-page-link {
  font-weight: 500;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.next-page-link:hover {
  opacity: 0.7;
}

/* View Gallery Overlay */
.cat-image-wrapper {
  position: relative;
}

.view-gallery-text {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ensure Bold Categories */
.category-heading {
  font-weight: 700 !important;
  /* Force bold */
}

/* Standard / Policy pages - centered content */
.standard-page-container {
  padding: 120px 1.5rem 4rem;
  min-height: 70vh;
  display: flex;
  justify-content: center;
}

.standard-page-inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.standard-page-article .entry-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.standard-page-article .entry-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  text-align: center;
}

.standard-page-article .entry-content p,
.standard-page-article .entry-content li {
  margin-bottom: 1rem;
}

.standard-page-article .entry-content ul,
.standard-page-article .entry-content ol {
  display: inline-block;
  text-align: left;
  margin: 0 auto 1rem;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.privacy-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.privacy-consent-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
  cursor: pointer;
}

.privacy-consent-label a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}
