:root {
  /* Dark Theme (Default) */
  --bg-color: #050505;
  --text-color: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dim: #777777;
  --text-body: #c6c6c6;
  --accent-color: #d3a96a;
  --border-color: #252525;
  --border-light: #333333;
  --card-bg: #080808;
  --card-hover: #0f0f0f;
  --card-hover-border: #3a3a3a;
  --input-bg: #050505;
  --button-text: #050505;
  --button-bg: #f5f5f5;
  --lightbox-overlay: rgba(0, 0, 0, 0.9);
  --lightbox-bg: #050505;
  --success-color: #7fd38f;
  --error-color: #ff7777;
  --white: #ffffff;
}

.cool-light-theme {
  /* Light Theme Overrides */
  --bg-color: #f9f9f9;
  --text-color: #1a1a1a;
  --text-muted: #666666;
  --text-dim: #888888;
  --text-body: #333333;
  --accent-color: #b8860b;
  --border-color: #e5e5e5;
  --border-light: #dcdcdc;
  --card-bg: #f0f0f0;
  --card-hover: #e8e8e8;
  --card-hover-border: #cccccc;
  --input-bg: #ffffff;
  --button-text: #ffffff;
  --button-bg: #1a1a1a;
  --lightbox-overlay: rgba(255, 255, 255, 0.95);
  --lightbox-bg: #ffffff;
}

.warm-beige-theme {
  /* Warm Beige Theme */
  --bg-color: #F2E9D8;
  --text-color: #5C3A2E;
  --text-muted: #8B5A3C;
  --text-dim: #A67C52;
  --text-body: #6B4423;
  --accent-color: #8B4513;
  --border-color: #C9A882;
  --border-light: #D4B896;
  --card-bg: #E8DCC8;
  --card-hover: #DED1BB;
  --card-hover-border: #B8936D;
  --input-bg: #FAF5ED;
  --button-text: #F2E9D8;
  --button-bg: #5C3A2E;
  --lightbox-overlay: rgba(92, 58, 46, 0.9);
  --lightbox-bg: #F2E9D8;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1180px, 100% - 3rem);
  margin: 0 auto;
}

body.admin-page .container {
  width: 100%;
  max-width: none;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 2rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  height: 2.5rem;
  width: auto;
  display: block;
}
/* Darken logo for light themes */
.cool-light-theme .site-logo,
.warm-beige-theme .site-logo {
  filter: brightness(0.3) saturate(1.2);
}

.branding-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.15rem;
}

.main-nav a {
  margin-left: 1.8rem;
  font-size: 0.75rem;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

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

.main-nav a.active {
  color: var(--accent-color);
}

.section-header {
  padding: 2.75rem 0 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-header h2 {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sort-select {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  outline: none;
}

.sort-select:hover {
  border-color: #555555;
}

.sort-select:focus {
  border-color: var(--accent-color);
}

.section-header p {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 360px;
}

.gallery-section {
  padding-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.gallery-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.gallery-item::after {
  display: none;
}

.gallery-item figcaption {
  padding: 0.9rem 1rem 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.piece-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.piece-meta {
  display: flex;
  gap: 0.4rem;
  font-size: 0.75rem;
}

.piece-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.piece-value {
  color: var(--text-body);
}

.piece-meta--compact {
  font-size: 0.65rem;
  margin-top: 0.25rem;
}

.piece-meta--compact .piece-label {
  font-size: 0.65rem;
}

.piece-meta--compact .piece-value {
  font-size: 0.65rem;
}

.piece-availability {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-body);
  font-weight: 600;
}

.piece-availability--unavailable {
  color: #6f6f6f;
}

.gallery-item:hover {
  background: var(--card-hover);
  border-color: var(--card-hover-border);
}

.about-section,
.contact-section {
  padding-bottom: 3rem;
}

.about-content p,
.contact-content p {
  color: var(--text-body);
  max-width: 700px;
  font-size: 0.95rem;
}

.contact-content ul {
  list-style: none;
  margin-top: 0.9rem;
}

.contact-content li+li {
  margin-top: 0.35rem;
}

.about-page main,
.contact-page main {
  padding-bottom: 3rem;
}

.about-page-hero,
.contact-page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border-color);
}

.about-eyebrow,
.contact-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-page-hero h1,
.contact-page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-lede,
.contact-lede {
  color: var(--text-body);
  max-width: 720px;
  font-size: 1rem;
}

.about-page-body {
  border-bottom: 1px solid var(--border-color);
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.about-column h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-column p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-column p+p {
  margin-top: 1rem;
}

.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.about-focus-item {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  background: var(--card-bg);
}

.about-focus-item h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.about-focus-item p {
  color: var(--text-body);
  font-size: 0.9rem;
}

.contact-info-card {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-info-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.contact-info-value {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--text-color);
}

.contact-info-value:hover {
  color: var(--accent-color);
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0 2rem;
  margin-top: 1.5rem;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  max-width: min(1400px, 95vw);
  max-height: 95vh;
  z-index: 101;
  padding: 0;
  background: var(--card-bg);
  border-radius: 0;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.lightbox-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: fit-content;
  height: fit-content;
}

.lightbox-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: fit-content;
  height: fit-content;
}

.lightbox-image-left,
.lightbox-image-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 2;
}

.lightbox-image-left {
  left: 0;
}

.lightbox-image-right {
  right: 0;
}

.lightbox img {
  max-width: calc(95vw - 320px);
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  z-index: 3;
  mix-blend-mode: difference;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.lightbox-dot:hover {
  background: var(--white);
}

.lightbox-dot.active {
  background: var(--white);
  width: 10px;
  height: 10px;
}

.lightbox-sidebar {
  width: 320px;
  min-width: 280px;
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--border-color);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 95vh;
}

.lightbox-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  line-height: 1.3;
}

.lightbox-title-text {
  flex-shrink: 0;
}

.lightbox-availability {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-color);
}

.lightbox-availability--unavailable {
  color: #6f6f6f;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.lightbox-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lightbox-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.lightbox-meta-value {
  font-size: 0.85rem;
  color: var(--text-body);
}

.lightbox-description {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
}

.lightbox-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 102;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent-color);
}

.admin-main {
  padding-bottom: 3rem;
}

.admin-layout {
  padding-top: 2rem;
}

.admin-list-panel {
  width: 100%;
}

.admin-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.piece-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.form-label input,
.form-label textarea {
  font: inherit;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.6rem;
  color: var(--text-color);
}

.form-label textarea {
  resize: vertical;
}

.form-help {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-primary,
.btn-ghost {
  font: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.btn-primary {
  border: 1px solid #f5f5f5;
  background: #f5f5f5;
  color: #050505;
}

.btn-primary:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-ghost {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-color);
}

.btn-ghost:hover {
  border-color: #555555;
}

.btn-small {
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.form-message[data-type="success"] {
  color: var(--success-color);
}

.form-message[data-type="error"] {
  color: var(--error-color);
}

.pieces-empty {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.admin-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 0.75rem;
}

.admin-controls .form-message {
  margin-top: 0;
}

.table-wrapper {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  overflow-x: auto;
}

.pieces-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.pieces-table th:nth-child(1),
.pieces-table td:nth-child(1) {
  min-width: 120px;
}

.pieces-table th:nth-child(2),
.pieces-table td:nth-child(2) {
  min-width: 100px;
}

.pieces-table th:nth-child(3),
.pieces-table td:nth-child(3) {
  min-width: 100px;
}

.pieces-table th:nth-child(4),
.pieces-table td:nth-child(4) {
  min-width: 200px;
}

.pieces-table th:nth-child(5),
.pieces-table td:nth-child(5) {
  min-width: 100px;
  white-space: nowrap;
}

.pieces-table th:nth-child(6),
.pieces-table td:nth-child(6) {
  min-width: 220px;
}

.pieces-table th:nth-child(7),
.pieces-table td:nth-child(7) {
  min-width: 160px;
}

.pieces-table th:nth-child(8),
.pieces-table td:nth-child(8) {
  min-width: 130px;
  white-space: nowrap;
}

.pieces-table th,
.pieces-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.pieces-table th:first-child,
.pieces-table td:first-child {
  padding-left: 0;
}

.pieces-table th:last-child,
.pieces-table td:last-child {
  padding-right: 0;
}

.pieces-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text-muted);
}

.piece-row {
  cursor: default;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.piece-row:not(.dragging):hover {
  background-color: var(--card-bg);
}

.piece-row[draggable="true"] {
  cursor: move;
}

.piece-row input,
.piece-row textarea,
.piece-row button,
.piece-row .thumb-item,
.piece-row .thumb-delete {
  cursor: auto;
}

.piece-row.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.piece-row.drag-over-top {
  border-top: 2px solid var(--accent-color);
}

.piece-row.drag-over-bottom {
  border-bottom: 2px solid var(--accent-color);
}

.piece-row.drag-over-top td:first-child::before,
.piece-row.drag-over-bottom td:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
}

.pieces-table input,
.pieces-table textarea {
  width: 100%;
  font: inherit;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  color: var(--text-color);
  padding: 0.25rem 0.35rem;
  resize: vertical;
}

.pieces-table textarea {
  min-height: 3rem;
}

.pieces-table .images-input {
  font-size: 0.72rem;
}

.images-gallery-cell {
  min-width: 200px;
}

.images-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 60px;
  padding: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.thumb-item {
  position: relative;
  width: 56px;
  height: 56px;
  cursor: move;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumb-item:hover {
  transform: scale(1.05);
}

.thumb-item.dragging {
  opacity: 0.5;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-light);
  pointer-events: none;
}

.thumb-delete {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border: none;
  background: var(--error-color);
  color: var(--text-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  transition: background 0.2s ease;
}

.thumb-delete:hover {
  background: #ff6666;
}

.thumb-placeholder {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #555555;
  background: var(--card-bg);
}

.upload-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.thumb-upload-input {
  font-size: 0.7rem;
}

@media (max-width: 1000px) {
  .lightbox-content {
    flex-direction: column;
    max-width: 95vw;
  }

  .lightbox-sidebar {
    width: 100%;
    min-width: auto;
    border-left: none;
    border-top: 1px solid var(--border-color);
    max-height: 40vh;
  }

  .lightbox-main {
    width: 100%;
  }

  .lightbox-image-wrapper {
    padding: 0;
    width: 100%;
    justify-content: center;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
  }
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    height: 2rem;
  }

  color: var(--text-muted);
}

.piece-row {
  cursor: default;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.piece-row:not(.dragging):hover {
  background-color: var(--card-bg);
}

.piece-row[draggable="true"] {
  cursor: move;
}

.piece-row input,
.piece-row textarea,
.piece-row button,
.piece-row .thumb-item,
.piece-row .thumb-delete {
  cursor: auto;
}

.piece-row.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.piece-row.drag-over-top {
  border-top: 2px solid var(--accent-color);
}

.piece-row.drag-over-bottom {
  border-bottom: 2px solid var(--accent-color);
}

.piece-row.drag-over-top td:first-child::before,
.piece-row.drag-over-bottom td:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
}

.pieces-table input,
.pieces-table textarea {
  width: 100%;
  font: inherit;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  color: var(--text-color);
  padding: 0.25rem 0.35rem;
  resize: vertical;
}

.pieces-table textarea {
  min-height: 3rem;
}

.pieces-table .images-input {
  font-size: 0.72rem;
}

.images-gallery-cell {
  min-width: 200px;
}

.images-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 60px;
  padding: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.thumb-item {
  position: relative;
  width: 56px;
  height: 56px;
  cursor: move;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumb-item:hover {
  transform: scale(1.05);
}

.thumb-item.dragging {
  opacity: 0.5;
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-light);
  pointer-events: none;
}

.thumb-delete {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border: none;
  background: var(--error-color);
  color: var(--text-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
  transition: background 0.2s ease;
}

.thumb-delete:hover {
  background: #ff6666;
}

.thumb-placeholder {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #555555;
  background: var(--card-bg);
}

.upload-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.thumb-upload-input {
  font-size: 0.7rem;
}

@media (max-width: 1000px) {
  .lightbox-content {
    flex-direction: column;
    max-width: 95vw;
  }

  .lightbox-sidebar {
    width: 100%;
    min-width: auto;
    border-left: none;
    border-top: 1px solid var(--border-color);
    max-height: 40vh;
  }

  .lightbox-main {
    width: 100%;
  }

  .lightbox-image-wrapper {
    padding: 0;
    width: 100%;
    justify-content: center;
  }

  .lightbox img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
  }
}

@media (max-width: 700px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    height: 2rem;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 1.2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* Contact Form Styles */
.contact-form-container {
  padding: 3rem 0;
  max-width: 600px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  color: var(--text-color);
  transition: border-color 0.2s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.contact-submit-btn {
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.75rem 1.5rem;
  border: 1px solid #f5f5f5;
  background: #f5f5f5;
  color: #050505;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  align-self: flex-start;
}

.contact-submit-btn:hover:not(:disabled) {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.contact-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact-message-status {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: none;
}

.contact-message-status.success {
  display: block;
  background: rgba(127, 211, 143, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.contact-message-status.error {
  display: block;
  background: rgba(255, 119, 119, 0.1);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}