* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #141312;
  color: #F3EFE7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

a { color: inherit; }

/* Top bar */
.bp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #2a2722;
}
.bp-brand {
  font-family: Georgia, serif;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.bp-accent { color: #C9742F; }
.bp-login {
  font-size: 11px;
  color: #8A8378;
  text-decoration: none;
  border: 1px solid #3a3530;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.bp-login:hover { color: #F3EFE7; border-color: #C9742F; }

.bp-menu-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
}
.bp-menu-btn span {
  width: 20px;
  height: 2px;
  background: #C9B8A0;
}

/* Layout */
.bp-body { display: flex; min-height: calc(100vh - 65px); }

.bp-side {
  width: 150px;
  flex-shrink: 0;
  padding: 24px 0 24px 22px;
  border-right: 1px solid #2a2722;
  display: flex;
  flex-direction: column;
}
.bp-side-group { display: flex; flex-direction: column; gap: 18px; }
.bp-side-group a {
  color: #C9B8A0;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color .2s;
}
.bp-side-group a:hover { color: #F3EFE7; }
.bp-divider { height: 1px; background: #2a2722; margin: 22px 18px 22px 0; }
.bp-eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6b655c;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.bp-cat { display: flex; flex-direction: column; gap: 14px; }
.bp-cat-btn {
  background: none;
  border: none;
  color: #C9B8A0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  padding: 2px 18px 2px 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  font-family: inherit;
}
.bp-cat-btn:hover { color: #F3EFE7; }
.bp-cat-btn.active { color: #C9742F; }
.bp-cat-btn.active::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: #C9742F;
}
.bp-count { color: #5f594f; font-size: 10px; }

.bp-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Hero slideshow */
.bp-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-bottom: 1px solid #2a2722;
  transition: height .4s ease;
}
.bp-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.bp-hero-slide.show { opacity: 1; }
.bp-hero-cap {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  z-index: 2;
}
.bp-hero-cap .bp-fr { color: #C9742F; font-size: 11px; }
.bp-hero-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.bp-hero-dots span { width: 5px; height: 5px; border-radius: 50%; background: #5a544c; }
.bp-hero-dots span.on { background: #C9742F; }

/* Grid */
.bp-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #141312;
}
.bp-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.bp-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.bp-tile:hover img { transform: scale(1.04); }
.bp-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C9B8A0;
  background: rgba(0,0,0,.5);
  padding: 3px 7px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .2s;
}
.bp-tile:hover .bp-pill { opacity: 1; }
.bp-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  transform: translateY(100%);
  transition: transform .25s ease;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.bp-tile:hover .bp-caption { transform: translateY(0); }
.bp-caption .bp-fr { color: #C9742F; }

.bp-empty {
  padding: 60px 22px;
  text-align: center;
  color: #6b655c;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .bp-menu-btn { display: flex; }
  .bp-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 230px;
    background: #1a1816;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease;
    padding-top: 80px;
  }
  .bp-side.open { transform: translateX(0); }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-hero { height: 220px; }
}

.bp-hero.bp-hero-large {
  height: 600px;
}

.bp-ig {
  border-top: 1px solid #2a2722;
  padding: 22px;
}
.bp-ig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bp-ig-title {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #C9B8A0;
}
.bp-ig-follow {
  font-size: 11px;
  color: #C9742F;
  text-decoration: none;
}
.bp-ig-follow:hover { color: #F3EFE7; }
.bp-ig-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.bp-ig-tile {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: block;
}
.bp-ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* Content pages (About/Rates/Contact/Blog) */
.bp-page { padding: 40px 36px; max-width: 720px; }
.bp-page h1 { font-family: Georgia, serif; font-size: 28px; margin-bottom: 20px; }
.bp-page h2 { font-family: Georgia, serif; font-size: 18px; margin-bottom: 6px; }
.bp-page p { line-height: 1.6; color: #C9B8A0; margin-bottom: 14px; }
.bp-rate-card { border: 1px solid #2a2722; border-radius: 2px; padding: 18px 20px; margin-bottom: 16px; }
.bp-price { color: #C9742F; font-size: 15px; }
.bp-note { font-size: 12px; color: #8A8378; }
.bp-contact-list { list-style: none; margin-bottom: 14px; }
.bp-contact-list li { margin-bottom: 8px; }
.bp-side-group a.active { color: #C9742F; }
.bp-back { font-size: 12px; color: #8A8378; text-decoration: none; display: inline-block; margin-top: 12px; }
.bp-back:hover { color: #F3EFE7; }

/* Split-screen login */
.bp-split {
  display: flex;
  min-height: 100vh;
}
.bp-split-form {
  width: 420px;
  flex-shrink: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.bp-split-title {
  font-family: Georgia, serif;
  font-size: 32px;
  margin-top: 60px;
}
.bp-split-sub {
  color: #8A8378;
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 24px;
}
.bp-split-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bp-split-form-fields label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #C9B8A0;
  text-transform: uppercase;
}
.bp-split-form-fields input {
  background: #1f1c19;
  border: 1px solid #3a3530;
  color: #F3EFE7;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 2px;
}
.bp-split-form-fields input:focus {
  outline: none;
  border-color: #C9742F;
}
.bp-forgot {
  font-size: 12px;
  color: #C9742F;
  text-decoration: none;
  margin-top: -4px;
}
.bp-forgot:hover { color: #F3EFE7; }
.bp-split-form-fields button {
  margin-top: 10px;
  background: #C9742F;
  color: #141312;
  border: none;
  padding: 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s;
}
.bp-split-form-fields button:hover { background: #dba055; }
.bp-error {
  color: #d9714e;
  font-size: 13px;
  margin-bottom: 4px;
}
.bp-split-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .bp-split { flex-direction: column; }
  .bp-split-form { width: 100%; }
  .bp-split-image { height: 260px; }
}

/* Admin panel */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #2a2722;
}
.bp-photoprism-link {
  font-size: 12px;
  color: #C9742F;
  text-decoration: none;
  border: 1px solid #3a3530;
  padding: 6px 12px;
  border-radius: 2px;
}
.bp-photoprism-link:hover { color: #F3EFE7; border-color: #C9742F; }

/* Admin panel */
.bp-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.bp-admin-head h1 {
  font-family: Georgia, serif;
  font-size: 28px;
}
.bp-photoprism-link {
  font-size: 12px;
  color: #C9742F;
  text-decoration: none;
  border: 1px solid #3a3530;
  padding: 8px 14px;
  border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.bp-photoprism-link:hover { color: #F3EFE7; border-color: #C9742F; }

.bp-success, .bp-error {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.bp-success { background: rgba(201,116,47,0.12); color: #C9742F; }
.bp-error { background: rgba(217,113,78,0.12); color: #d9714e; }

.bp-admin-card {
  background: #1a1816;
  border: 1px solid #2a2722;
  border-radius: 4px;
  padding: 22px;
  margin-bottom: 22px;
}
.bp-admin-card h2 {
  font-family: Georgia, serif;
  font-size: 18px;
  margin-bottom: 14px;
}
.bp-admin-form-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bp-admin-form-inline label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #C9B8A0;
  text-transform: uppercase;
}
.bp-admin-form-inline input {
  background: #141312;
  border: 1px solid #3a3530;
  color: #F3EFE7;
  padding: 9px 12px;
  font-size: 13px;
  border-radius: 2px;
  flex: 1;
  max-width: 320px;
}
.bp-admin-form-inline input:focus { outline: none; border-color: #C9742F; }
.bp-admin-form-inline button {
  background: #C9742F;
  color: #141312;
  border: none;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s;
  white-space: nowrap;
}
.bp-admin-form-inline button:hover { background: #dba055; }
.bp-admin-form-small { margin-top: 10px; }
.bp-admin-form-small input { max-width: 160px; }

.bp-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bp-admin-table th {
  text-align: left;
  color: #8A8378;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2722;
}
.bp-admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #2a2722;
  vertical-align: top;
}
.bp-album-pill {
  display: inline-block;
  background: #2a2722;
  color: #C9B8A0;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 2px;
  margin: 0 4px 4px 0;
}
.bp-danger-btn {
  background: transparent;
  color: #d9714e;
  border: 1px solid #5a3530;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.bp-danger-btn:hover { background: #d9714e; color: #141312; }

.bp-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #C9B8A0;
}
.bp-logout-btn {
  background: none;
  border: 1px solid #3a3530;
  color: #8A8378;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 2px;
  transition: color .2s, border-color .2s;
}
.bp-logout-btn:hover { color: #F3EFE7; border-color: #C9742F; }

/* Add Album form inside table cell — don't stretch inputs, wrap cleanly */
.bp-admin-form-small { flex-wrap: wrap; margin-top: 10px; max-width: 360px; }
.bp-admin-form-small input { flex: 0 0 150px; width: 150px; max-width: 150px; }
.bp-admin-form-small button { flex: 0 0 auto; }
.bp-album-pills { margin-bottom: 8px; }
.bp-album-pills:empty { margin-bottom: 0; }

/* Dark-themed album View button + page footer links */
.bp-album-link {
  display: inline-block;
  margin-top: 10px;
  background: #C9742F;
  color: #141312;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s;
}
.bp-album-link:hover { background: #dba055; }
.bp-page-foot { margin-top: 18px; font-size: 13px; }
.bp-page-foot a { color: #C9742F; text-decoration: none; }
.bp-page-foot a:hover { color: #F3EFE7; }

/* Legal pages: language toggle, footer, prose */
.bp-lang-toggle { display: inline-flex; gap: 4px; }
.bp-lang-toggle button {
  background: #1a1816; color: #8A8378; border: 1px solid #2a2722;
  padding: 5px 12px; font-size: 12px; letter-spacing: 0.04em;
  cursor: pointer; border-radius: 2px; transition: all .2s;
}
.bp-lang-toggle button.active { background: #C9742F; color: #141312; border-color: #C9742F; }
.bp-legal { max-width: 760px; line-height: 1.7; }
.bp-legal h2 { font-family: Georgia, serif; font-size: 18px; margin: 28px 0 10px; color: #F3EFE7; }
.bp-legal p, .bp-legal li { color: #C9B8A0; font-size: 14px; }
.bp-legal ul { margin: 10px 0 10px 20px; }
.bp-legal li { margin-bottom: 8px; }
.bp-legal a { color: #C9742F; text-decoration: none; }
.bp-legal a:hover { color: #F3EFE7; }
.bp-legal-date { margin-top: 28px; font-size: 12px; color: #6f6a62; }
.bp-footer {
  border-top: 1px solid #2a2722; margin-top: 60px; padding: 22px 40px;
  display: flex; gap: 22px; justify-content: center;
}
.bp-footer a { color: #8A8378; text-decoration: none; font-size: 12px; letter-spacing: 0.04em; }
.bp-footer a:hover { color: #C9742F; }
.bp-legal-nav { margin-top: 4px; }
.bp-legal-nav a { display: block; font-size: 12px; color: #8A8378; text-decoration: none; padding: 3px 0; transition: color .2s; }
.bp-legal-nav a:hover, .bp-legal-nav a.active { color: #C9742F; }

/* Administrator-only inline content editor */
.bp-inline-editor {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px dashed rgba(201, 155, 102, 0.65);
  border-radius: 4px;
}

.bp-inline-editor form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.bp-inline-editor input,
.bp-inline-editor textarea,
.bp-inline-editor select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem;
  font: inherit;
}

.bp-inline-editor textarea {
  resize: vertical;
}

.bp-inline-editor button {
  justify-self: start;
}

.bp-inline-editor summary {
  cursor: pointer;
  font-weight: 600;
}

.bp-editor-actions {
  display: flex;
  gap: 0.75rem;
}

.bp-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bp-checkbox input {
  width: auto;
}

.bp-admin-hidden {
  opacity: 0.65;
  border-style: dashed;
}

.bp-admin-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border: 1px solid currentColor;
  font-size: 0.8rem;
}

.bp-blog-list {
  display: grid;
  gap: 1.5rem;
}

.bp-blog-card {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.bp-blog-card h2 a {
  color: inherit;
}

.bp-prose {
  max-width: 55rem;
}

/* ===== Admin editing controls ===== */

.bp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bp-page-header h1 {
  margin: 0;
}

.bp-admin-toolbar,
.bp-admin-card-actions,
.bp-admin-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bp-admin-btn,
.bp-admin-btn-secondary,
.bp-admin-btn-danger,
.bp-modal-close {
  appearance: none;
  border: 1px solid rgba(208, 160, 103, 0.42);
  border-radius: 999px;
  background: rgba(208, 160, 103, 0.08);
  color: inherit;
  padding: 0.55rem 0.95rem;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.bp-admin-btn:hover,
.bp-admin-btn-secondary:hover,
.bp-modal-close:hover {
  background: rgba(208, 160, 103, 0.16);
  border-color: rgba(208, 160, 103, 0.72);
}

.bp-admin-btn-danger {
  border-color: rgba(190, 80, 80, 0.45);
  background: rgba(190, 80, 80, 0.08);
}

.bp-admin-btn-danger:hover {
  background: rgba(190, 80, 80, 0.18);
}

.bp-modal-open {
  overflow: hidden;
}

.bp-modal {
  display: none;
}

.bp-modal.is-open {
  display: block;
}

.bp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(3px);
}

.bp-modal-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  padding: 1.5rem;
  border: 1px solid rgba(208, 160, 103, 0.3);
  border-radius: 14px;
  background: #121212;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.bp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bp-modal-head h2 {
  margin: 0;
}

.bp-modal-close {
  background: transparent;
}

.bp-admin-form {
  display: grid;
  gap: 1rem;
}

.bp-admin-field {
  display: grid;
  gap: 0.4rem;
}

.bp-admin-field label {
  font-weight: 600;
}

.bp-admin-form input,
.bp-admin-form textarea,
.bp-admin-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #191919;
  color: inherit;
  font: inherit;
}

.bp-admin-form input:focus,
.bp-admin-form textarea:focus,
.bp-admin-form select:focus {
  outline: none;
  border-color: rgba(208, 160, 103, 0.78);
  box-shadow: 0 0 0 3px rgba(208, 160, 103, 0.12);
}

.bp-admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.bp-admin-form-actions {
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.bp-prose {
  max-width: 52rem;
}

.bp-prose p {
  line-height: 1.7;
}

/* Final dark-theme form overrides */
.bp-modal-panel,
.bp-modal-panel form,
.bp-admin-form {
  color: #e7d7c4;
}

.bp-modal-panel input,
.bp-modal-panel textarea,
.bp-modal-panel select,
.bp-admin-form input,
.bp-admin-form textarea,
.bp-admin-form select {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  background: #171513 !important;
  color: #e7d7c4 !important;
  border: 1px solid #3a3028 !important;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  caret-color: #d6a15f;
}

.bp-modal-panel input::placeholder,
.bp-modal-panel textarea::placeholder {
  color: #8f8174;
  opacity: 1;
}

.bp-modal-panel input:focus,
.bp-modal-panel textarea:focus,
.bp-modal-panel select:focus {
  outline: none;
  border-color: #b77a38 !important;
  box-shadow: 0 0 0 3px rgba(183, 122, 56, 0.16);
}

.bp-modal-panel select option {
  background: #171513;
  color: #e7d7c4;
}

.bp-modal-panel textarea {
  min-height: 130px;
  resize: vertical;
}

.bp-admin-btn,
.bp-admin-btn-secondary,
.bp-modal-close {
  background: #1b1713;
  color: #e7d7c4;
  border-color: #4a392b;
}

.bp-admin-btn:hover,
.bp-admin-btn-secondary:hover,
.bp-modal-close:hover {
  background: #2a211a;
}

.bp-modal-panel {
  background: #11100f;
}

/* Visitor analytics dashboard */
.bp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.bp-stat-card {
  padding: 1.25rem;
  border: 1px solid rgba(208, 160, 103, 0.25);
  border-radius: 12px;
  background: rgba(208, 160, 103, 0.05);
}

.bp-stat-card span {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.72;
}

.bp-stat-card strong {
  font-size: 2rem;
  font-weight: 600;
}

.bp-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bp-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.bp-admin-table th,
.bp-admin-table td {
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .bp-stat-grid,
  .bp-analytics-grid {
    grid-template-columns: 1fr;
  }

  .bp-admin-card {
    overflow-x: auto;
  }
}

.bp-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bp-admin-head h1 {
  margin-bottom: 0.35rem;
}

.bp-admin-analytics-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.bp-admin-analytics-card h2 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .bp-admin-head,
  .bp-admin-analytics-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Analytics dashboard revision 2 */
.bp-stat-grid-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-admin-btn.active {
  background: rgba(208, 160, 103, 0.23);
  border-color: rgba(208, 160, 103, 0.85);
}

.bp-analytics-back {
  margin: 0 0 0.5rem;
}

.bp-analytics-back a {
  color: inherit;
  opacity: 0.72;
  text-decoration: none;
}

.bp-analytics-back a:hover {
  opacity: 1;
}

.bp-analytics-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.bp-analytics-section-head h2 {
  margin-bottom: 0.25rem;
}

.bp-analytics-trend-card {
  margin-bottom: 1.5rem;
}

.bp-trend-chart {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.bp-trend-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(140px, 1fr) 4.5rem;
  align-items: center;
  gap: 0.8rem;
}

.bp-trend-date,
.bp-trend-value {
  font-size: 0.84rem;
  opacity: 0.75;
}

.bp-trend-value {
  text-align: right;
}

.bp-trend-bars {
  display: grid;
  gap: 0.22rem;
}

.bp-trend-bar {
  min-width: 2px;
  height: 0.38rem;
  border-radius: 999px;
}

.bp-trend-bar-visits {
  background: #c58a48;
}

.bp-trend-bar-pageviews {
  background: #d8c8b5;
  opacity: 0.7;
}

.bp-admin-table td strong,
.bp-admin-table td small {
  display: block;
}

.bp-admin-table td small {
  margin-top: 0.18rem;
  opacity: 0.55;
  font-size: 0.78rem;
}

.bp-breakdown-list {
  display: grid;
  gap: 1rem;
}

.bp-breakdown-row {
  display: grid;
  gap: 0.4rem;
}

.bp-breakdown-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bp-breakdown-label span:last-child {
  opacity: 0.68;
}

.bp-breakdown-track {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bp-breakdown-fill {
  min-width: 2px;
  height: 100%;
  border-radius: inherit;
  background: #c58a48;
}

.bp-table-scroll {
  overflow-x: auto;
}

.bp-recent-visits-card {
  margin-top: 1.5rem;
}

@media (max-width: 1050px) {
  .bp-stat-grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .bp-stat-grid-six {
    grid-template-columns: 1fr;
  }

  .bp-trend-row {
    grid-template-columns: 3.8rem minmax(100px, 1fr) 3.6rem;
    gap: 0.5rem;
  }
}

/* Public contact-message form */
.bp-message-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  appearance: none;
  border: 1px solid rgba(208, 160, 103, 0.72);
  border-radius: 999px;
  background: #c58a48;
  color: #11100f;
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.bp-message-button:hover {
  transform: translateY(-2px);
  background: #d39a58;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.44);
}

.bp-message-modal-panel {
  width: min(680px, calc(100vw - 2rem));
}

.bp-message-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bp-message-field-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.62;
}

.bp-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bp-message-status {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: min(420px, calc(100vw - 3rem));
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #171513;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.48);
}

.bp-message-success {
  border: 1px solid rgba(90, 170, 115, 0.58);
}

.bp-message-error {
  border: 1px solid rgba(190, 80, 80, 0.62);
}

.bp-message-status button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.bp-message-status button:hover {
  opacity: 1;
}

@media (max-width: 650px) {
  .bp-message-form-grid {
    grid-template-columns: 1fr;
  }

  .bp-message-button {
    right: 1rem;
    bottom: 1rem;
  }

  .bp-message-status {
    top: 4.5rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* Three required contact fields: name, email and phone */
.bp-message-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 850px) {
  .bp-message-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Required field indicators */
.bp-required-marker {
  color: #d86464;
  font-weight: 700;
}

.bp-required-note {
  margin: -0.2rem 0 0.2rem;
  font-size: 0.82rem;
  opacity: 0.72;
}

.bp-required-note .bp-required-marker {
  margin-right: 0.2rem;
}

/* Create-client album assignment */
.bp-create-client-form {
  display: grid;
  gap: 1.4rem;
  max-width: 900px;
}

.bp-create-client-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(197, 138, 72, 0.25);
  border-radius: 10px;
}

.bp-create-client-form legend {
  padding: 0 0.45rem;
  font-weight: 600;
}

.bp-album-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(220px, 1fr)
  );
  gap: 0.7rem;
}

.bp-album-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.75rem;
  border: 1px solid rgba(197, 138, 72, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
}

.bp-album-checkbox:hover {
  border-color: rgba(197, 138, 72, 0.55);
  background: rgba(197, 138, 72, 0.045);
}

.bp-album-checkbox:has(input:checked) {
  border-color: rgba(197, 138, 72, 0.85);
  background: rgba(197, 138, 72, 0.1);
}

.bp-album-checkbox input {
  margin-top: 0.2rem;
}

.bp-album-checkbox-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.bp-album-checkbox-text strong,
.bp-album-checkbox-text small {
  overflow-wrap: anywhere;
}

.bp-album-checkbox-text small {
  opacity: 0.58;
}

.bp-new-album-fields .bp-note {
  margin-top: 0;
}

.bp-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 720px) {
  .bp-admin-form-grid {
    grid-template-columns: 1fr;
  }

  .bp-album-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* PhotoPrism album search */
.bp-album-search {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  max-width: 420px;
}

.bp-album-search label {
  font-weight: 600;
}

.bp-album-search input {
  width: 100%;
}

.bp-album-checkbox[hidden] {
  display: none;
}

.bp-album-selector .bp-album-checkbox-grid {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

/* Existing-client album assignment */
.bp-client-album-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.bp-client-album-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.4fr)
    minmax(160px, 1fr)
    auto;
  gap: 0.55rem;
  align-items: center;
}

.bp-client-album-row select,
.bp-client-album-row input,
.bp-manual-album input {
  width: 100%;
  min-width: 0;
}

.bp-manual-album {
  font-size: 0.85rem;
  opacity: 0.78;
}

.bp-manual-album[open] {
  display: grid;
  gap: 0.5rem;
}

.bp-manual-album summary {
  cursor: pointer;
}

@media (max-width: 900px) {
  .bp-client-album-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive client-management cards */
.bp-clients-section {
  width: 100%;
  max-width: none;
}

.bp-client-list {
  display: grid;
  gap: 1rem;
}

.bp-client-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(197, 138, 72, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
}

.bp-client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.bp-client-card-header h3 {
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.bp-client-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.58;
}

.bp-client-created {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  opacity: 0.62;
}

.bp-client-albums {
  display: grid;
  gap: 0.55rem;
}

.bp-client-albums h4 {
  margin: 0;
}

.bp-client-album-form {
  display: grid;
  gap: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 138, 72, 0.18);
}

.bp-client-album-fields {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.5fr)
    minmax(180px, 1fr)
    auto;
  gap: 0.85rem;
  align-items: end;
}

.bp-client-album-fields select,
.bp-client-album-fields input,
.bp-manual-album input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(197, 138, 72, 0.28);
  border-radius: 8px;
  background: #181614;
  color: #eee7de;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.bp-client-album-fields select {
  color-scheme: dark;
  cursor: pointer;
}

.bp-client-album-fields select:focus,
.bp-client-album-fields input:focus,
.bp-manual-album input:focus {
  outline: 2px solid rgba(197, 138, 72, 0.55);
  outline-offset: 2px;
  border-color: rgba(197, 138, 72, 0.75);
}

.bp-client-album-submit {
  display: flex;
  align-items: flex-end;
}

.bp-client-album-submit .bp-admin-btn {
  min-height: 46px;
  white-space: nowrap;
}

.bp-manual-album {
  margin-top: 0;
  opacity: 1;
}

.bp-manual-album summary {
  width: fit-content;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.7;
}

.bp-manual-album[open] {
  display: grid;
  gap: 0.75rem;
}

.bp-manual-album[open] summary {
  margin-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .bp-client-album-fields {
    grid-template-columns: 1fr 1fr;
  }

  .bp-client-album-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .bp-client-card-header {
    display: grid;
  }

  .bp-client-album-fields {
    grid-template-columns: 1fr;
  }

  .bp-client-album-submit {
    grid-column: auto;
  }

  .bp-client-album-submit .bp-admin-btn {
    width: 100%;
  }
}

/* Internal landing-page photo viewer */

/* Hero: preserve the full photograph */
.bp-hero {
  background: #0b0a09;
}

.bp-hero-slide {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.bp-hero-backdrop {
  position: absolute;
  inset: -35px;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: blur(24px) brightness(0.42) saturate(0.8);
  transform: scale(1.08);
}

.bp-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0.16) 65%,
    rgba(0, 0, 0, 0.58)
  );
}

.bp-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Gallery tiles are internal viewer buttons */
button.bp-tile {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #141312;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

button.bp-tile:focus-visible {
  z-index: 2;
  outline: 3px solid #c9742f;
  outline-offset: -3px;
}

.bp-tile img {
  transition: transform 0.35s ease;
}

button.bp-tile:hover img {
  transform: scale(1.025);
}

.bp-lightbox {
  display: none;
}

.bp-lightbox.is-open {
  display: block;
}

.bp-lightbox-open {
  overflow: hidden;
}

.bp-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(4, 4, 4, 0.95);
  backdrop-filter: blur(10px);
}

.bp-lightbox-shell {
  position: fixed;
  inset: 0;
  z-index: 20001;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 1rem;
  box-sizing: border-box;
  pointer-events: none;
}

.bp-lightbox-toolbar,
.bp-lightbox-stage {
  pointer-events: auto;
}

.bp-lightbox-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.4rem 0 1rem;
}

.bp-lightbox-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}

.bp-lightbox-meta h2 {
  margin: 0;
  max-width: min(56vw, 850px);
  overflow: hidden;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-lightbox-category {
  color: #c9742f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bp-lightbox-year,
.bp-lightbox-counter {
  color: #aaa096;
  font-size: 0.85rem;
}

.bp-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.bp-lightbox-close {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid #58422f;
  border-radius: 999px;
  background: #171310;
  color: #eee7de;
  font: inherit;
  cursor: pointer;
}

.bp-lightbox-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}

.bp-lightbox-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.bp-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.bp-lightbox-image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.bp-lightbox-loading {
  position: absolute;
  color: #aaa096;
  font-size: 0.9rem;
}

.bp-lightbox-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #58422f;
  border-radius: 50%;
  background: rgba(23, 19, 16, 0.92);
  color: #eee7de;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.bp-lightbox-nav:hover,
.bp-lightbox-nav:focus-visible,
.bp-lightbox-close:hover,
.bp-lightbox-close:focus-visible {
  border-color: #c9742f;
  background: #292018;
}

.bp-lightbox-nav:disabled {
  visibility: hidden;
}

@media (max-width: 700px) {
  .bp-lightbox-shell {
    padding: 0.65rem;
  }

  .bp-lightbox-meta {
    display: grid;
    gap: 0.15rem;
  }

  .bp-lightbox-meta h2 {
    max-width: 52vw;
  }

  .bp-lightbox-year {
    display: none;
  }

  .bp-lightbox-stage {
    grid-template-columns: 1fr;
    position: relative;
  }

  .bp-lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
  }

  .bp-lightbox-prev {
    left: 0.3rem;
  }

  .bp-lightbox-next {
    right: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-hero-slide,
  .bp-lightbox-image,
  .bp-tile img {
    transition: none;
  }
}

/* Refined portfolio hero */
.bp-hero {
  height: clamp(380px, 52vw, 680px);
  max-height: calc(100vh - 90px);
  background: #090807;
}

.bp-hero-slide {
  padding: 0;
  box-sizing: border-box;
  background: #090807;
}

.bp-hero-backdrop {
  display: none;
}

.bp-hero-slide::after {
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(0, 0, 0, 0.55)
  );
}

.bp-hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #090807;
}

.bp-hero-cap {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

@media (max-width: 800px) {
  .bp-hero {
    height: clamp(300px, 70vw, 520px);
    max-height: none;
  }
}

@media (max-width: 520px) {
  .bp-hero {
    height: 360px;
  }
}

/* Landing featured-card hero override */
.bp-hero {
  width: min(560px, calc(100% - 2rem));
  height: clamp(340px, 42vw, 560px);
  max-height: none;
  margin: 1rem 1rem 1.25rem 1rem;
  border: 1px solid rgba(197, 138, 72, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: #0e0c0b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  position: relative;
}

.bp-hero-slide {
  background: #0e0c0b;
}

.bp-hero-backdrop {
  display: none !important;
}

.bp-hero-slide::after {
  content: none !important;
}

.bp-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #0e0c0b;
}

.bp-hero-cap {
  left: 0.9rem;
  right: auto;
  bottom: 0.9rem;
  max-width: calc(100% - 6.5rem);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(14, 12, 11, 0.68);
  backdrop-filter: blur(6px);
}

.bp-hero-dots {
  right: 0.9rem;
  left: auto;
  bottom: 1rem;
}

.bp-hero-dots button,
.bp-hero-dots .dot,
.bp-hero-dot {
  opacity: 0.7;
}

.bp-hero-dots button.active,
.bp-hero-dots .active,
.bp-hero-dot.active {
  opacity: 1;
}

@media (min-width: 1400px) {
  .bp-hero {
    width: 620px;
    height: 620px;
  }
}

@media (max-width: 900px) {
  .bp-hero {
    width: calc(100% - 1.25rem);
    height: clamp(300px, 62vw, 520px);
    margin: 0.85rem 0.625rem 1rem 0.625rem;
  }
}

@media (max-width: 560px) {
  .bp-hero {
    width: calc(100% - 1rem);
    height: 380px;
    margin: 0.75rem 0.5rem 0.9rem 0.5rem;
    border-radius: 10px;
  }

  .bp-hero-cap {
    max-width: calc(100% - 5.5rem);
    font-size: 0.82rem;
  }

  .bp-hero-dots {
    bottom: 0.8rem;
    right: 0.75rem;
  }
}

/* German featured editorial panel */
.bp-featured-section {
  display: grid;
  grid-template-columns:
    minmax(420px, 600px)
    minmax(380px, 560px);
  align-items: center;
  justify-content: start;
  gap: clamp(3rem, 6vw, 7rem);
  min-height: 620px;
  padding: 1.25rem clamp(1rem, 3vw, 3rem);
  box-sizing: border-box;
  border-bottom: 1px solid #24211e;
  background:
    radial-gradient(
      circle at 62% 45%,
      rgba(197, 116, 47, 0.035),
      transparent 38%
    ),
    #11100f;
}

.bp-featured-media {
  min-width: 0;
}

.bp-featured-media .bp-hero {
  width: 100%;
  height: min(600px, 63vw);
  max-height: 600px;
  min-height: 440px;
  margin: 0;
}

.bp-featured-intro {
  display: grid;
  align-content: center;
  max-width: 540px;
}

.bp-featured-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.55rem;
  color: #c9742f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bp-featured-kicker-line {
  width: 40px;
  height: 1px;
  background: #c9742f;
}

.bp-featured-intro h1 {
  margin: 0;
  color: #eee7de;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.bp-featured-heading-line {
  width: 54px;
  height: 1px;
  margin: 1.4rem 0 1.35rem;
  background: #3d3731;
}

.bp-featured-description {
  max-width: 490px;
  margin: 0;
  color: #b7ada2;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}

.bp-featured-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.bp-featured-primary,
.bp-featured-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 52px;
  padding: 0.75rem 1.35rem;
  box-sizing: border-box;
  border-radius: 5px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.bp-featured-primary {
  border: 1px solid #c9742f;
  background: linear-gradient(
    135deg,
    #c96e2b,
    #a94c18
  );
  color: #fff6ed;
}

.bp-featured-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    #db7d36,
    #b95820
  );
}

.bp-featured-secondary {
  border: 1px solid #8b4c27;
  background: transparent;
  color: #d67e3d;
}

.bp-featured-secondary:hover {
  transform: translateY(-1px);
  border-color: #c9742f;
  background: rgba(201, 116, 47, 0.08);
}

.bp-featured-details {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid #2b2723;
  color: #9d9287;
  font-size: 0.9rem;
}

.bp-featured-detail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bp-featured-detail svg {
  flex: 0 0 auto;
  color: #c9742f;
}

.bp-featured-detail-divider {
  width: 1px;
  height: 26px;
  background: #39332d;
}

@media (max-width: 1180px) {
  .bp-featured-section {
    grid-template-columns:
      minmax(360px, 520px)
      minmax(320px, 1fr);
    gap: 3rem;
    min-height: 560px;
  }

  .bp-featured-media .bp-hero {
    height: 520px;
    min-height: 420px;
  }

  .bp-featured-intro h1 {
    font-size: clamp(2.35rem, 4.7vw, 3.8rem);
  }
}

@media (max-width: 900px) {
  .bp-featured-section {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    min-height: 0;
    padding: 1rem;
  }

  .bp-featured-media .bp-hero {
    width: min(100%, 620px);
    height: min(620px, 85vw);
    margin: 0 auto;
  }

  .bp-featured-intro {
    max-width: 620px;
    padding: 0.5rem 0.35rem 1.5rem;
  }

  .bp-featured-intro h1 br {
    display: none;
  }
}

@media (max-width: 580px) {
  .bp-featured-section {
    padding: 0.65rem;
  }

  .bp-featured-media .bp-hero {
    height: 390px;
    min-height: 390px;
  }

  .bp-featured-intro {
    padding: 0.6rem 0.2rem 1.2rem;
  }

  .bp-featured-intro h1 {
    font-size: 2.35rem;
  }

  .bp-featured-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bp-featured-primary,
  .bp-featured-secondary {
    width: 100%;
  }

  .bp-featured-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .bp-featured-detail-divider {
    display: none;
  }
}

/* Embedded centered Contact page */
.bp-contact-page {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  padding: clamp(2rem, 4vw, 4.5rem);
  box-sizing: border-box;
  justify-content: center;
  background:
    radial-gradient(
      circle at 70% 32%,
      rgba(197, 138, 72, 0.055),
      transparent 34%
    );
}

.bp-contact-shell {
  display: grid;
  grid-template-columns:
    minmax(300px, 0.82fr)
    minmax(520px, 1.3fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  width: min(1240px, 100%);
  margin: auto;
}

.bp-contact-intro {
  display: grid;
  align-content: center;
  min-width: 0;
}

.bp-contact-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: #c9742f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-contact-kicker span {
  width: 34px;
  height: 1px;
  background: currentColor;
}

.bp-contact-title-row {
  display: grid;
  gap: 1rem;
}

.bp-contact-title-row h1 {
  margin: 0;
  color: #f1ebe2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.bp-contact-copy {
  max-width: 530px;
  margin-top: 1.6rem;
}

.bp-contact-copy p {
  margin: 0 0 1rem;
  color: #b8aca0;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
}

.bp-contact-methods {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
}

.bp-contact-method {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.bp-contact-method-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #4b392a;
  border-radius: 50%;
  color: #c9742f;
  background: rgba(197, 138, 72, 0.04);
}

.bp-contact-method > span:last-child {
  display: grid;
  gap: 0.1rem;
}

.bp-contact-method small {
  color: #81786f;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bp-contact-method strong {
  color: #ded5cb;
  font-size: 0.95rem;
  font-weight: 500;
}

.bp-contact-method:hover strong {
  color: #c9742f;
}

.bp-contact-note {
  margin: 1.5rem 0 0;
  color: #81786f;
  font-size: 0.85rem;
  line-height: 1.6;
}

.bp-contact-availability {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #2b2723;
  color: #978d83;
  font-size: 0.85rem;
}

.bp-contact-availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9742f;
  box-shadow: 0 0 0 5px rgba(201, 116, 47, 0.1);
}

.bp-contact-form-card {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid rgba(197, 138, 72, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.022),
      rgba(255, 255, 255, 0.008)
    ),
    #12110f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.bp-contact-form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.bp-contact-form-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #c9742f;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bp-contact-form-heading h2 {
  margin: 0;
  color: #eee7de;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 400;
}

.bp-contact-form-heading .bp-required-note {
  flex: 0 0 auto;
  margin: 0 0 0.25rem;
}

.bp-contact-form {
  display: grid;
  gap: 1rem;
}

.bp-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.bp-contact-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.bp-contact-field label {
  color: #ddd2c6;
  font-size: 0.9rem;
  font-weight: 600;
}

.bp-contact-field input,
.bp-contact-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #3a3028;
  border-radius: 9px;
  background: #181614;
  color: #eee7de;
  padding: 0.82rem 0.9rem;
  font: inherit;
  caret-color: #d6a15f;
}

.bp-contact-field input {
  min-height: 48px;
}

.bp-contact-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.55;
}

.bp-contact-field input::placeholder,
.bp-contact-field textarea::placeholder {
  color: #7f756c;
  opacity: 1;
}

.bp-contact-field input:focus,
.bp-contact-field textarea:focus {
  outline: none;
  border-color: #b77a38;
  box-shadow: 0 0 0 3px rgba(183, 122, 56, 0.16);
}

.bp-contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.bp-contact-submit-row p {
  max-width: 330px;
  margin: 0;
  color: #776f67;
  font-size: 0.76rem;
  line-height: 1.5;
}

.bp-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 205px;
  min-height: 52px;
  border: 1px solid #c9742f;
  border-radius: 7px;
  background: linear-gradient(
    135deg,
    #d17b38,
    #a94f1c
  );
  color: #fff8f0;
  padding: 0.75rem 1.3rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(169, 79, 28, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.bp-contact-submit:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    #df8b47,
    #bc5e25
  );
  box-shadow: 0 15px 36px rgba(169, 79, 28, 0.3);
}

.bp-contact-status {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 11000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  width: min(430px, calc(100vw - 3rem));
  box-sizing: border-box;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #171513;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.bp-contact-status > div {
  display: grid;
  gap: 0.2rem;
}

.bp-contact-status strong {
  color: #eee7de;
}

.bp-contact-status span {
  color: #a99e93;
  font-size: 0.85rem;
  line-height: 1.45;
}

.bp-contact-status-success {
  border: 1px solid rgba(92, 170, 115, 0.55);
}

.bp-contact-status-error {
  border: 1px solid rgba(190, 80, 80, 0.6);
}

.bp-contact-status button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a99e93;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .bp-contact-shell {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
  }

  .bp-contact-intro {
    max-width: 680px;
  }

  .bp-contact-title-row h1 {
    font-size: clamp(2.7rem, 8vw, 4.6rem);
  }
}

@media (max-width: 680px) {
  .bp-contact-page {
    padding: 1rem;
  }

  .bp-contact-form-grid {
    grid-template-columns: 1fr;
  }

  .bp-contact-form-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .bp-contact-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .bp-contact-submit-row p {
    max-width: none;
  }

  .bp-contact-submit {
    width: 100%;
  }

  .bp-contact-status {
    top: 4.5rem;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

/* Portfolio Picture-in-Picture control */
.bp-lightbox-pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid #58422f;
  border-radius: 999px;
  background: #171310;
  color: #eee7de;
  font: inherit;
  cursor: pointer;
}

.bp-lightbox-pip:hover,
.bp-lightbox-pip:focus-visible,
.bp-lightbox-pip.is-active {
  border-color: #c9742f;
  background: #292018;
}

.bp-lightbox-pip:disabled {
  cursor: wait;
  opacity: 0.55;
}

.bp-pip-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.bp-pip-icon span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 7px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
}

@media (max-width: 620px) {
  .bp-lightbox-pip {
    width: 44px;
    padding: 0;
  }

  .bp-lightbox-pip > span:last-child {
    display: none;
  }
}

/* Clickable featured slideshow */
.bp-hero-slide {
  cursor: zoom-in;
}

.bp-hero-slide:focus-visible {
  outline: 3px solid #c9742f;
  outline-offset: -3px;
}

.bp-hero-slide:not(.show) {
  pointer-events: none;
}

.bp-hero-slide.show {
  pointer-events: auto;
}

.bp-hero-image {
  pointer-events: none;
}

/* Hide featured section for populated categories */
.bp-featured-section.bp-featured-section-hidden {
  display: none;
}

/*
 * When the featured section is hidden, the category gallery starts
 * directly below the site header instead of retaining hero spacing.
 */
.bp-featured-section-hidden + #bpGrid,
.bp-featured-section-hidden ~ #bpGrid {
  margin-top: 0;
}


/* Featured hero category state v2 */
.bp-featured-section:not(.bp-featured-section-hidden)
  .bp-featured-media {
  display: block;
}

.bp-featured-section:not(.bp-featured-section-hidden)
  .bp-hero {
  visibility: visible;
  opacity: 1;
}

.bp-featured-section.bp-featured-section-hidden {
  display: none !important;
}


/* Site-wide DE EN language switch */
.bp-site-language {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 0.8rem;
  color: #6f675f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.bp-site-language button {
  appearance: none;
  min-width: 34px;
  min-height: 34px;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #8f867d;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
}

.bp-site-language button:hover,
.bp-site-language button:focus-visible {
  border-color: rgba(201, 116, 47, 0.55);
  color: #eee7de;
}

.bp-site-language button.active {
  border-color: #c9742f;
  background: rgba(201, 116, 47, 0.12);
  color: #d98a4a;
}

html[lang="de"] .lang-en,
html[lang="en"] .lang-de {
  display: none !important;
}

@media (max-width: 620px) {
  .bp-site-language {
    margin-right: 0.45rem;
  }

  .bp-site-language button {
    min-width: 30px;
    min-height: 30px;
    padding: 0.2rem 0.3rem;
  }
}

/* Standalone login language switch */
.bp-login-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bp-login-topline .bp-site-language {
  margin: 0;
}


/* Bilingual blog editor */
.bp-blog-editor-card {
  margin-top: 1.5rem;
}

.bp-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bp-blog-editor-meta {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.bp-blog-editor-languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.bp-blog-language-panel {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.bp-blog-language-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bp-blog-language-head strong {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #eee7de;
}

.bp-blog-language-head span {
  color: #9a9086;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-blog-language-panel textarea {
  width: 100%;
  resize: vertical;
}

.bp-blog-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bp-admin-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #171513;
  color: #eee7de;
}

@media (max-width: 900px) {
  .bp-blog-editor-languages,
  .bp-blog-editor-meta {
    grid-template-columns: 1fr;
  }

  .bp-admin-card-head {
    flex-direction: column;
  }
}

/* Blog sidebars */
.bp-blog-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
}

.bp-blog-public-main {
  min-width: 0;
}

.bp-blog-guest-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1.1rem;
}

.bp-blog-side-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.bp-blog-side-photo-link {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
}

.bp-blog-side-photo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.bp-blog-side-photo-link:hover img {
  transform: scale(1.025);
}

.bp-blog-side-card-body {
  padding: 1.25rem;
}

.bp-blog-side-kicker,
.bp-blog-card-kicker {
  margin: 0 0 0.55rem;
  color: #c9742f;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-blog-side-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.bp-blog-side-card p {
  line-height: 1.65;
}

.bp-blog-side-link,
.bp-blog-read-link,
.bp-blog-article-end a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d98a4a;
  font-weight: 650;
  text-decoration: none;
}

.bp-blog-related-list {
  display: grid;
  gap: 1rem;
}

.bp-blog-related-item + .bp-blog-related-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bp-blog-related-item a {
  color: #eee7de;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.bp-blog-related-item p {
  margin: 0.45rem 0 0;
  color: #aaa097;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bp-blog-side-cta {
  border-color: rgba(201, 116, 47, 0.34);
  background:
    linear-gradient(
      145deg,
      rgba(201, 116, 47, 0.13),
      rgba(255, 255, 255, 0.025)
    );
}

.bp-blog-side-cta-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 8px;
  background: #c9742f;
  color: #130f0c;
  font-weight: 700;
  text-decoration: none;
}

.bp-blog-card {
  padding: 1.5rem 0;
}

.bp-blog-card + .bp-blog-card {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-blog-card h2 {
  margin-top: 0;
}

.bp-blog-card h2 a {
  color: #eee7de;
  text-decoration: none;
}

.bp-blog-card > p:not(.bp-blog-card-kicker) {
  max-width: 760px;
  color: #b4aaa1;
  line-height: 1.65;
}

.bp-blog-post-back {
  margin-bottom: 1.5rem;
}

.bp-blog-post-back a {
  color: #aaa097;
  text-decoration: none;
}

.bp-blog-post h1 {
  max-width: 850px;
}

.bp-blog-article-body {
  max-width: 790px;
}

.bp-blog-article-body p {
  line-height: 1.82;
}

.bp-blog-article-end {
  max-width: 790px;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* Admin Blog assistant */
.bp-admin-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  align-items: start;
  gap: 1.5rem;
}

.bp-admin-blog-content {
  min-width: 0;
}

.bp-admin-blog-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 1rem;
}

.bp-admin-assistant-card {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.bp-admin-assistant-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.bp-admin-prompt {
  width: 100%;
  margin: 0.7rem 0;
  resize: vertical;
  font-size: 0.82rem;
  line-height: 1.5;
}

.bp-admin-prompt-copy,
.bp-admin-sidebar-link {
  width: 100%;
  justify-content: center;
}

.bp-admin-copy-status {
  min-height: 1.25rem;
  margin: 0.5rem 0 0;
  color: #9bc69b;
  font-size: 0.85rem;
}

.bp-admin-checklist {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.bp-admin-checklist li {
  position: relative;
  padding-left: 1.55rem;
  color: #a79d94;
}

.bp-admin-checklist li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #746c65;
}

.bp-admin-checklist li.is-complete {
  color: #d9d1c8;
}

.bp-admin-checklist li.is-complete::before {
  content: "●";
  color: #c9742f;
}

.bp-admin-writing-stats {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.bp-admin-writing-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bp-admin-writing-stats span {
  color: #978d84;
}

.bp-admin-writing-guide {
  padding-left: 1.2rem;
  color: #aaa097;
  line-height: 1.65;
}

.bp-admin-form.is-active-editor {
  outline: 1px solid rgba(201, 116, 47, 0.45);
  outline-offset: 7px;
  border-radius: 6px;
}

@media (max-width: 1050px) {
  .bp-blog-public-layout,
  .bp-admin-blog-layout {
    grid-template-columns: 1fr;
  }

  .bp-blog-guest-sidebar,
  .bp-admin-blog-sidebar {
    position: static;
  }

  .bp-blog-guest-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bp-blog-side-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .bp-blog-guest-sidebar {
    grid-template-columns: 1fr;
  }

  .bp-blog-side-cta {
    grid-column: auto;
  }
}

/* Correct public Blog width and admin separation */
.bp-page:has(.bp-blog-public-layout) {
  width: 100%;
  max-width: 1320px;
  box-sizing: border-box;
}

.bp-blog-public-layout {
  width: 100%;
  max-width: 1180px;
  grid-template-columns:
    minmax(480px, 760px)
    minmax(280px, 340px);
  justify-content: space-between;
  column-gap: clamp(2.5rem, 5vw, 5rem);
}

.bp-blog-public-main {
  width: 100%;
  max-width: 760px;
}

.bp-blog-public-layout .bp-blog-guest-sidebar {
  width: 100%;
  max-width: 340px;
  justify-self: end;
}

.bp-blog-admin-public-view {
  width: 100%;
  max-width: 760px;
}

.bp-blog-admin-public-view .bp-blog-public-main {
  max-width: 760px;
}

@media (max-width: 1050px) {
  .bp-page:has(.bp-blog-public-layout) {
    max-width: 820px;
  }

  .bp-blog-public-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .bp-blog-public-layout .bp-blog-guest-sidebar {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  .bp-page:has(.bp-blog-public-layout) {
    width: auto;
  }

  .bp-blog-public-layout {
    width: 100%;
  }
}

/* Role-aware Blog sidebar positioning */
.bp-page:has(.bp-blog-public-layout) {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.bp-blog-public-layout {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns:
    minmax(0, 760px)
    minmax(290px, 340px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(2.5rem, 5vw, 6rem);
}

.bp-blog-public-layout > .bp-blog-public-main {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.bp-blog-public-layout > .bp-blog-guest-sidebar {
  width: 100%;
  max-width: 340px;
  justify-self: end;
  margin-left: auto;
}

.bp-blog-admin-side-card {
  border-color: rgba(201, 116, 47, 0.32);
  background:
    linear-gradient(
      145deg,
      rgba(201, 116, 47, 0.09),
      rgba(255, 255, 255, 0.025)
    );
}

.bp-blog-client-side-card {
  border-color: rgba(208, 160, 103, 0.26);
}

.bp-blog-admin-side-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.bp-blog-side-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(208, 160, 103, 0.28);
  border-radius: 8px;
  color: #d0a067;
  font-weight: 650;
  text-decoration: none;
}

.bp-blog-side-secondary-button:hover {
  background: rgba(208, 160, 103, 0.08);
}

@media (max-width: 1180px) {
  .bp-blog-public-layout {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(280px, 320px);
    gap: 2.5rem;
  }
}

@media (max-width: 920px) {
  .bp-page:has(.bp-blog-public-layout) {
    max-width: 780px;
  }

  .bp-blog-public-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .bp-blog-public-layout > .bp-blog-guest-sidebar {
    max-width: none;
    justify-self: stretch;
    margin-left: 0;
  }
}

/* Wide Admin Blog editor */
.bp-page:has(.bp-admin-blog-layout) {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.bp-page:has(.bp-admin-blog-layout) > .bp-admin-head {
  width: 100%;
  max-width: none;
}

.bp-admin-blog-layout {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns:
    minmax(720px, 1100px)
    minmax(310px, 350px);
  align-items: start;
  justify-content: space-between;
  gap: clamp(2.5rem, 5vw, 7rem);
}

.bp-admin-blog-content {
  width: 100%;
  max-width: 1100px;
  min-width: 0;
}

.bp-admin-blog-sidebar {
  width: 100%;
  max-width: 350px;
  justify-self: end;
  margin-left: auto;
  position: sticky;
  top: 88px;
}

.bp-admin-blog-content .bp-admin-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.bp-admin-blog-content .bp-admin-form {
  width: 100%;
  max-width: none;
}

.bp-admin-blog-content .bp-blog-editor-meta {
  grid-template-columns:
    minmax(300px, 2fr)
    minmax(200px, 1fr);
  gap: 1.25rem;
}

.bp-admin-blog-content .bp-blog-editor-languages {
  grid-template-columns:
    repeat(2, minmax(320px, 1fr));
  gap: 1.5rem;
}

.bp-admin-blog-content .bp-blog-language-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bp-admin-blog-content .bp-admin-field input,
.bp-admin-blog-content .bp-admin-field textarea,
.bp-admin-blog-content .bp-admin-field select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.bp-admin-blog-content .bp-blog-language-panel textarea[name="excerpt"],
.bp-admin-blog-content .bp-blog-language-panel textarea[name="excerpt_en"] {
  min-height: 120px;
}

.bp-admin-blog-content .bp-blog-language-panel textarea[name="body"],
.bp-admin-blog-content .bp-blog-language-panel textarea[name="body_en"] {
  min-height: 440px;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card {
  width: 100%;
  box-sizing: border-box;
}

.bp-admin-blog-sidebar .bp-admin-prompt {
  min-height: 320px;
  box-sizing: border-box;
}

@media (max-width: 1350px) {
  .bp-admin-blog-layout {
    grid-template-columns:
      minmax(620px, 1fr)
      minmax(290px, 330px);
    gap: 2.5rem;
  }

  .bp-admin-blog-content .bp-blog-editor-languages {
    grid-template-columns:
      repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 1050px) {
  .bp-page:has(.bp-admin-blog-layout) {
    max-width: 820px;
  }

  .bp-admin-blog-layout {
    grid-template-columns: 1fr;
    max-width: 820px;
  }

  .bp-admin-blog-content {
    max-width: 820px;
  }

  .bp-admin-blog-sidebar {
    position: static;
    max-width: none;
    justify-self: stretch;
    margin-left: 0;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .bp-admin-blog-sidebar .bp-admin-assistant-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .bp-admin-blog-content .bp-blog-editor-meta,
  .bp-admin-blog-content .bp-blog-editor-languages,
  .bp-admin-blog-sidebar {
    grid-template-columns: 1fr;
  }

  .bp-admin-blog-sidebar .bp-admin-assistant-card:first-child {
    grid-column: auto;
  }

  .bp-admin-blog-content .bp-blog-language-panel textarea[name="body"],
  .bp-admin-blog-content .bp-blog-language-panel textarea[name="body_en"] {
    min-height: 320px;
  }
}

/* Admin Blog assistant: prompt and checks side by side */
.bp-admin-blog-layout {
  grid-template-columns:
    minmax(700px, 1fr)
    minmax(620px, 760px);
  gap: clamp(2rem, 4vw, 5rem);
}

.bp-admin-blog-sidebar {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  justify-self: end;
  margin-left: auto;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card {
  min-width: 0;
  height: 100%;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(1) {
  grid-column: 1;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(2) {
  grid-column: 2;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(3) {
  grid-column: 1 / -1;
  height: auto;
}

.bp-admin-blog-sidebar .bp-admin-prompt {
  min-height: 310px;
  max-height: 420px;
}

.bp-admin-blog-sidebar .bp-admin-writing-guide {
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 1450px) {
  .bp-admin-blog-layout {
    grid-template-columns:
      minmax(620px, 1fr)
      minmax(540px, 640px);
    gap: 2rem;
  }

  .bp-admin-blog-sidebar {
    max-width: 640px;
  }
}

@media (max-width: 1180px) {
  .bp-admin-blog-layout {
    grid-template-columns: 1fr;
    max-width: 920px;
  }

  .bp-admin-blog-sidebar {
    position: static;
    max-width: none;
    justify-self: stretch;
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .bp-admin-blog-sidebar {
    grid-template-columns: 1fr;
  }

  .bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(1),
  .bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(2),
  .bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(3) {
    grid-column: 1;
  }

  .bp-admin-blog-sidebar .bp-admin-writing-guide {
    columns: 1;
  }
}

/* Admin Blog assistant vertical corrections */
.bp-admin-blog-sidebar {
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card {
  height: auto;
  min-height: 0;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(1),
.bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(2) {
  align-self: start;
}

.bp-admin-blog-sidebar .bp-admin-prompt {
  min-height: 250px;
  height: 300px;
  max-height: 360px;
}

.bp-admin-blog-sidebar .bp-admin-assistant-card:nth-child(3) {
  display: block;
  clear: both;
  overflow: visible;
}

.bp-admin-blog-sidebar .bp-admin-writing-guide {
  columns: 2;
  column-gap: 3rem;
  margin-bottom: 1.25rem;
}

.bp-admin-blog-sidebar .bp-admin-writing-guide li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.bp-admin-blog-sidebar .bp-admin-sidebar-link {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin-top: 1rem;
  clear: both;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1181px) {
  .bp-admin-blog-sidebar {
    transform: translateY(-24px);
  }
}

@media (max-width: 1180px) {
  .bp-admin-blog-sidebar {
    max-height: none;
    overflow: visible;
    padding-right: 0;
    transform: none;
  }
}

@media (max-width: 760px) {
  .bp-admin-blog-sidebar .bp-admin-writing-guide {
    columns: 1;
  }
}

/* BOMBASEI LIGHTBOX VIEWPORT FIX START
 *
 * Prevents the lower edge of portrait and tall images from being clipped,
 * especially where mobile browser chrome changes the usable viewport.
 */
.bp-lightbox-backdrop,
.bp-lightbox-shell {
  width: 100%;
  width: 100dvw;
  height: 100%;
  height: 100dvh;
}

.bp-lightbox-shell {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.bp-lightbox-toolbar {
  min-height: 0;
}

.bp-lightbox-stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.bp-lightbox-image-wrap {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.bp-lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 700px) {
  .bp-lightbox-shell {
    padding:
      max(0.5rem, env(safe-area-inset-top))
      max(0.5rem, env(safe-area-inset-right))
      max(0.5rem, env(safe-area-inset-bottom))
      max(0.5rem, env(safe-area-inset-left));
  }

  .bp-lightbox-toolbar {
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .bp-lightbox-stage {
    min-height: 0;
  }

  .bp-lightbox-image-wrap {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bp-lightbox-image {
    max-height: calc(
      100dvh
      - 5.5rem
      - env(safe-area-inset-top)
      - env(safe-area-inset-bottom)
    );
  }
}

@supports not (height: 100dvh) {
  .bp-lightbox-backdrop,
  .bp-lightbox-shell {
    height: 100vh;
  }

  @media (max-width: 700px) {
    .bp-lightbox-image {
      max-height: calc(100vh - 5.5rem);
    }
  }
}
/* BOMBASEI LIGHTBOX VIEWPORT FIX END */

/* BOMBASEI SECURE CLIENT GALLERY START */

.bp-client-album-list {
  display: grid;
  gap: 1rem;
}

.bp-client-album-card {
  margin-bottom: 0;
}

.bp-client-album-unavailable {
  color: #8a8378;
  font-size: 0.875rem;
}

.bp-client-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bp-client-gallery-head h1 {
  margin: 0.25rem 0;
}

.bp-client-gallery-back,
.bp-client-gallery-count {
  margin: 0;
  color: #8a8378;
  font-size: 0.8125rem;
}

.bp-client-gallery-back a {
  color: #c9742f;
  text-decoration: none;
}

.bp-client-gallery {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.bp-client-photo-card {
  min-width: 0;
  overflow: hidden;
  background: #1a1816;
  border: 1px solid #2a2722;
  border-radius: 4px;
}

.bp-client-photo-preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #111;
  border: 0;
  cursor: zoom-in;
}

.bp-client-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-client-photo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.75rem;
}

.bp-client-photo-title {
  min-width: 0;
  overflow: hidden;
  color: #c9b8a0;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-client-download {
  flex: 0 0 auto;
  color: #141312;
  background: #c9742f;
  padding: 0.5rem 0.7rem;
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.bp-client-download:hover,
.bp-client-download:focus-visible {
  background: #dba055;
}

html.bp-viewer-open {
  overflow: hidden;
}

.bp-client-viewer[hidden] {
  display: none;
}

.bp-client-viewer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
}

.bp-client-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
}

.bp-client-viewer-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding:
    max(0.75rem, env(safe-area-inset-top))
    max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(0.75rem, env(safe-area-inset-left));
}

.bp-client-viewer-image {
  display: block;
  align-self: center;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.bp-client-viewer-title {
  min-height: 1.25rem;
  margin: 0.5rem 3rem 0;
  color: #c9b8a0;
  font-size: 0.8125rem;
  text-align: center;
}

.bp-client-viewer-close {
  position: absolute;
  z-index: 2;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  color: #f3efe7;
  background: rgba(20, 19, 18, 0.8);
  border: 1px solid #4a443d;
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

@supports not (height: 100dvh) {
  .bp-client-viewer {
    height: 100vh;
  }
}

/* BOMBASEI SECURE CLIENT GALLERY END */

/* BOMBASEI DOWNLOAD ALL START */

.bp-client-gallery-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bp-client-download-all {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  color: #141312;
  background: #c9742f;
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.bp-client-download-all:hover,
.bp-client-download-all:focus-visible {
  background: #dba055;
}

/* BOMBASEI DOWNLOAD ALL END */

/* BOMBASEI REQUEST FILE START */

.bp-client-request-file {
  flex: 0 0 auto;
  padding: 0.5rem 0.7rem;
  color: #c9b8a0;
  background: transparent;
  border: 1px solid #665d52;
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.bp-client-request-file:hover,
.bp-client-request-file:focus-visible {
  color: #f3efe7;
  border-color: #c9742f;
}

/* BOMBASEI REQUEST FILE END */

/* BOMBASEI WATERMARK UI START */

.bp-watermark-default-field {
  margin-top: 1rem;
}

.bp-watermark-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  cursor: pointer;
}

.bp-watermark-checkbox input {
  width: 1.1rem;
  height: 1.1rem;
}

.bp-watermark-policy-form,
.bp-album-watermark-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.bp-small-admin-btn {
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  color: #141312;
  background: #c9742f;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.bp-assigned-album-list {
  display: grid;
  gap: 0.75rem;
}

.bp-assigned-album-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid #38332e;
  border-radius: 3px;
}

.bp-assigned-album-row small {
  display: block;
  margin-top: 0.2rem;
  color: #8a8378;
}

.bp-album-watermark-form {
  margin-top: 0;
}

.bp-watermark-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.65rem;
  color: #d7c7b1;
  border: 1px solid #665d52;
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .bp-assigned-album-row {
    align-items: stretch;
    flex-direction: column;
  }

  .bp-album-watermark-form {
    align-items: stretch;
    flex-direction: column;
  }
}

/* BOMBASEI WATERMARK UI END */

/* BOMBASEI CLIENT GALLERY WIDE LAYOUT START */

/*
 * Client album pages may use the full area remaining beside the sidebar.
 * Normal content pages retain their existing readable 720px width.
 */
.bp-page.bp-page-wide {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-right: clamp(1.25rem, 3vw, 3rem);
  padding-left: clamp(1.25rem, 3vw, 3rem);
}

.bp-page-wide .bp-client-gallery-head {
  width: 100%;
}

.bp-page-wide .bp-client-gallery {
  width: 100%;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(0.75rem, 1.25vw, 1.25rem);
}

/*
 * Avoid excessively large cards on very wide screens while still filling
 * horizontal space. Four or five columns will normally fit on desktop.
 */
@media (min-width: 1500px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns:
      repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 2100px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns:
      repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 900px) {
  .bp-page.bp-page-wide {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .bp-page-wide .bp-client-gallery {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns: 1fr;
  }
}

/* BOMBASEI CLIENT GALLERY WIDE LAYOUT END */

/* BOMBASEI CLIENT GALLERY FIVE-COLUMN CAP START */

/*
 * Responsive client gallery:
 * - maximum of 5 cards on wide desktops
 * - progressively fewer columns on smaller screens
 */
.bp-page-wide .bp-client-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1650px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns: 1fr;
  }
}

/* BOMBASEI CLIENT GALLERY FIVE-COLUMN CAP END */

/* BOMBASEI CLIENT GALLERY FLUID MAX FIVE START */

/*
 * Fluid responsive gallery with a hard maximum of five columns.
 *
 * The calculated minimum width is never smaller than one fifth of
 * the available gallery width. This prevents a sixth column while
 * still allowing the cards to resize continuously when the browser
 * window or zoom level changes.
 */
.bp-page-wide .bp-client-gallery {
  --bp-gallery-gap: clamp(0.75rem, 1.15vw, 1.25rem);
  --bp-card-minimum: 230px;

  display: grid;
  width: 100%;
  gap: var(--bp-gallery-gap);

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        min(
          100%,
          max(
            var(--bp-card-minimum),
            calc(
              (
                100% - 4 * var(--bp-gallery-gap)
              ) / 5
            )
          )
        ),
        1fr
      )
    );
}

@media (max-width: 700px) {
  .bp-page-wide .bp-client-gallery {
    --bp-card-minimum: 210px;
  }
}

@media (max-width: 480px) {
  .bp-page-wide .bp-client-gallery {
    grid-template-columns: 1fr;
  }
}

/* BOMBASEI CLIENT GALLERY FLUID MAX FIVE END */


/* BOMBASEI ACCESSIBILITY RESPONSIVE FIX START */

/*
 * Keep transformed mobile navigation from expanding the document canvas on
 * narrow devices. The sidebar itself remains available when opened.
 */
html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

.bp-body,
.bp-main,
.bp-page {
  min-width: 0;
  max-width: 100%;
}

/* Sidebar text must meet WCAG AA contrast against the dark background. */
.bp-eyebrow {
  color: #aaa197;
}

.bp-count {
  color: #b3a99d;
}

.bp-legal-nav a,
.bp-back,
.bp-login,
.bp-footer a {
  color: #aaa197;
}

/*
 * Inline links must be identifiable without relying only on colour.
 */
.bp-legal a,
.bp-page p a,
.bp-page li a,
.bp-contact-submit-row a {
  color: #e3a15f;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.bp-legal a:hover,
.bp-legal a:focus-visible,
.bp-page p a:hover,
.bp-page p a:focus-visible,
.bp-page li a:hover,
.bp-page li a:focus-visible {
  color: #f3efe7;
}

/*
 * Consistent visible keyboard focus. Existing component-specific focus rules
 * may remain more prominent.
 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #e3a15f;
  outline-offset: 3px;
}

/*
 * Restore an explicit outline where older component rules removed it.
 */
.bp-split-form-fields input:focus-visible,
.bp-contact-field input:focus-visible,
.bp-contact-field textarea:focus-visible,
.bp-admin-form input:focus-visible,
.bp-admin-form textarea:focus-visible,
.bp-admin-form select:focus-visible,
.bp-modal-panel input:focus-visible,
.bp-modal-panel textarea:focus-visible,
.bp-modal-panel select:focus-visible {
  outline: 3px solid #e3a15f;
  outline-offset: 2px;
}

/* Provide practical touch areas on mobile navigation and controls. */
@media (max-width: 768px) {
  .bp-side {
    width: min(230px, 86vw);
    max-width: 100vw;
    visibility: hidden;
    pointer-events: none;
  }

  .bp-side.open {
    visibility: visible;
    pointer-events: auto;
  }

  .bp-menu-btn {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .bp-side-group a,
  .bp-legal-nav a,
  .bp-back,
  .bp-cat-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 360px) {
  .bp-top {
    padding-right: 10px;
    padding-left: 10px;
    gap: 6px;
  }

  .bp-brand {
    font-size: 17px;
  }

  .bp-page {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Do not animate major interface transitions when reduced motion is set. */
@media (prefers-reduced-motion: reduce) {
  .bp-side,
  .bp-hero-slide,
  .bp-cat-btn,
  .bp-side-group a,
  .bp-login {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* BOMBASEI ACCESSIBILITY RESPONSIVE FIX END */

/* BOMBASEI MOBILE HEADER OVERFLOW FIX START */

/*
 * Keep the header inside the available viewport. All flexible children must
 * be allowed to shrink rather than increasing the document width.
 */
.bp-top {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.bp-top > * {
  min-width: 0;
}

.bp-brand {
  flex: 0 1 auto;
  min-width: 0;
}

.bp-login,
.bp-identity {
  flex: 0 1 auto;
  min-width: 0;
}

/*
 * Use a genuine fixed off-canvas navigation panel on mobile. It no longer
 * participates in page layout or document-width calculations.
 */
@media (max-width: 768px) {
  .bp-side {
    position: fixed;
    top: var(--bp-top-height, 64px);
    bottom: 0;
    left: 0;
    z-index: 1000;

    width: min(230px, 86vw);
    max-width: 86vw;
    height: auto;

    transform: translateX(-105%);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  .bp-side.open {
    transform: translateX(0);
  }

  /*
   * Authenticated controls need to wrap instead of preserving their desktop
   * width. This keeps login state usable on phones.
   */
  .bp-identity {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 8px;

    width: auto;
    max-width: calc(100vw - 110px);
  }

  .bp-identity form {
    flex: 0 0 auto;
    margin: 0;
  }

  .bp-photoprism-link,
  .bp-logout-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/*
 * On narrow phones, prioritise the wordmark and menu button. The login link
 * remains available but uses less horizontal padding.
 */
@media (max-width: 420px) {
  .bp-top {
    padding-right: 8px;
    padding-left: 8px;
    gap: 6px;
  }

  .bp-brand {
    font-size: clamp(15px, 4.6vw, 18px);
    white-space: nowrap;
  }

  .bp-login {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 12px;
    white-space: nowrap;
  }

  .bp-identity {
    max-width: calc(100vw - 100px);
    gap: 3px 5px;
  }

  .bp-photoprism-link,
  .bp-logout-btn {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }
}

/*
 * At the minimum supported width, avoid long authenticated identity text.
 * Links remain named through their existing accessible text/labels.
 */
@media (max-width: 350px) {
  .bp-login {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bp-identity {
    max-width: calc(100vw - 92px);
  }

  .bp-photoprism-link {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* BOMBASEI MOBILE HEADER OVERFLOW FIX END */

/* BOMBASEI LIGHTBOX DEFINITIVE VIEWPORT FIT START
 *
 * Keeps the complete image inside the visible browser viewport on desktop
 * and mobile, with breathing room below the image and space for controls.
 */
.bp-lightbox-shell {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.bp-lightbox-stage {
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: 100%;
  overflow: hidden;
}

.bp-lightbox-image-wrap {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding-bottom: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.bp-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  object-fit: contain;
  object-position: center center;
}

@media (max-width: 700px) {
  .bp-lightbox-image-wrap {
    padding-bottom:
      max(0.5rem, env(safe-area-inset-bottom));
  }

  .bp-lightbox-image {
    max-width: 100%;
    max-height: calc(
      100dvh
      - 5.75rem
      - env(safe-area-inset-top)
      - env(safe-area-inset-bottom)
    );
  }
}

@supports not (height: 100dvh) {
  .bp-lightbox-image {
    max-height: calc(100vh - 7rem);
  }

  @media (max-width: 700px) {
    .bp-lightbox-image {
      max-height: calc(100vh - 5.75rem);
    }
  }
}
/* BOMBASEI LIGHTBOX DEFINITIVE VIEWPORT FIT END */

/* Invitation-created confirmation */
.bp-invite-created {
  width: min(100%, 880px);
}

.bp-invite-created-head {
  margin-bottom: 1.5rem;
}

.bp-invite-created-eyebrow {
  margin: 0 0 0.45rem;
  color: #c9742f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bp-invite-created-head h1 {
  margin: 0 0 0.65rem;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.bp-invite-link-card label {
  display: block;
  margin: 1.25rem 0 0.5rem;
  color: #c9b8a0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-invite-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

.bp-invite-link-row input {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  color: #f3efe7;
  background: #141312;
  border: 1px solid #3a3530;
  border-radius: 2px;
  font: inherit;
  font-size: 0.88rem;
}

.bp-invite-link-row input:focus {
  outline: 2px solid #c9742f;
  outline-offset: 2px;
}

.bp-invite-link-row .bp-small-admin-btn {
  white-space: nowrap;
}

.bp-invite-copy-status {
  min-height: 1.25rem;
  margin: 0.55rem 0 0;
  color: #c9b8a0;
  font-size: 0.82rem;
}

.bp-invite-created-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bp-admin-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  box-sizing: border-box;
  padding: 0.45rem 0.85rem;
  color: #c9742f;
  background: transparent;
  border: 1px solid #3a3530;
  border-radius: 2px;
  text-decoration: none;
}

.bp-admin-secondary-btn:hover {
  color: #f3efe7;
  border-color: #c9742f;
}

@media (max-width: 640px) {
  .bp-invite-link-row {
    grid-template-columns: 1fr;
  }

  .bp-invite-link-row .bp-small-admin-btn {
    width: 100%;
  }

  .bp-invite-created-actions {
    display: grid;
  }
}

/* bp-compact-client-admin-v1 */

.bp-client-search-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
}

.bp-client-search-field {
  display: grid;
  gap: 0.35rem;
}

.bp-client-search-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bp-client-search-field input {
  width: 100%;
  min-height: 2.65rem;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  color: inherit;
  background: #171614;
  border: 1px solid #3a342d;
  border-radius: 2px;
  font: inherit;
}

.bp-client-search-field input:focus {
  outline: 2px solid #c67d35;
  outline-offset: 2px;
}

.bp-client-search-count {
  align-self: center;
  min-width: 8rem;
  color: #a99a87;
  font-size: 0.8rem;
  text-align: right;
}

.bp-client-compact-entry {
  margin: 0.65rem 0;
  background: #171614;
  border: 1px solid #332f2a;
  border-radius: 3px;
}

.bp-client-compact-entry[hidden] {
  display: none;
}

.bp-client-compact-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 3.5rem;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.bp-client-compact-summary::-webkit-details-marker {
  display: none;
}

.bp-client-compact-summary::before {
  content: "▸";
  display: inline-block;
  width: 1rem;
  margin-right: 0.4rem;
  color: #c67d35;
  transition: transform 120ms ease;
}

.bp-client-compact-entry[open]
  > .bp-client-compact-summary::before {
  transform: rotate(90deg);
}

.bp-client-compact-summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.bp-client-compact-summary:focus-visible {
  outline: 2px solid #c67d35;
  outline-offset: 2px;
}

.bp-client-compact-identity {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  min-width: 0;
}

.bp-client-compact-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-client-compact-identity span {
  overflow: hidden;
  color: #a99a87;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-client-compact-meta {
  color: #a99a87;
  font-size: 0.78rem;
  white-space: nowrap;
}

.bp-client-compact-body {
  padding: 0 0.8rem 0.8rem;
  border-top: 1px solid #2d2925;
}

.bp-client-compact-body > article,
.bp-client-compact-body > .bp-client-card {
  margin: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 760px) {
  .bp-client-search-controls {
    grid-template-columns: 1fr;
  }

  .bp-client-search-count {
    text-align: left;
  }

  .bp-client-compact-summary {
    grid-template-columns: 1fr;
  }

  .bp-client-compact-identity {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .bp-client-compact-meta {
    padding-left: 1.4rem;
  }
}

/* bp-native-client-list-v1 */

.bp-client-native-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
}

.bp-client-native-search .bp-admin-field {
  margin: 0;
}

.bp-client-native-search input[type="search"] {
  width: 100%;
  min-height: 2.65rem;
  box-sizing: border-box;
}

.bp-client-search-count {
  align-self: center;
  min-width: 5rem;
  color: #a99a87;
  font-size: 0.8rem;
  text-align: right;
}

.bp-client-native-entry {
  margin: 0.65rem 0;
  background: #171614;
  border: 1px solid #332f2a;
  border-radius: 3px;
}

.bp-client-native-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 3.5rem;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  list-style: none;
}

.bp-client-native-summary::-webkit-details-marker {
  display: none;
}

.bp-client-native-summary::before {
  content: "▸";
  display: inline-block;
  width: 1rem;
  margin-right: 0.35rem;
  color: #c9742f;
}

.bp-client-native-entry[open]
  > .bp-client-native-summary::before {
  content: "▾";
}

.bp-client-native-summary:hover {
  background: rgba(255, 255, 255, 0.025);
}

.bp-client-native-summary:focus-visible {
  outline: 2px solid #c9742f;
  outline-offset: 2px;
}

.bp-client-native-identity {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  min-width: 0;
}

.bp-client-native-identity strong,
.bp-client-native-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-client-native-identity span,
.bp-client-native-meta {
  color: #a99a87;
  font-size: 0.8rem;
}

.bp-client-native-meta {
  white-space: nowrap;
}

.bp-client-native-body {
  padding: 0 0.8rem 0.8rem;
  border-top: 1px solid #2d2925;
}

.bp-client-native-body > .bp-client-card {
  margin: 0;
  border: 0;
  border-radius: 0;
}

@media (max-width: 760px) {
  .bp-client-native-search {
    grid-template-columns: 1fr;
  }

  .bp-client-search-count {
    text-align: left;
  }

  .bp-client-native-summary {
    grid-template-columns: 1fr;
  }

  .bp-client-native-identity {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .bp-client-native-meta {
    padding-left: 1.35rem;
  }
}

/* Native client list alignment fix */
.bp-client-native-summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.bp-client-native-summary::before {
  grid-column: 1;
  margin-right: 0;
}

.bp-client-native-identity {
  grid-column: 2;
  justify-self: start;
  width: 100%;
  text-align: left;
}

.bp-client-native-meta {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

@media (max-width: 760px) {
  .bp-client-native-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .bp-client-native-meta {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
    text-align: left;
  }
}
