:root {
  --gallery-bg: #f6f1eb;
  --gallery-card: #ffffff;
  --gallery-primary: #6f4e37;
  --gallery-primary-dark: #4a2f1c;
  --gallery-accent: #eec9a8;
  --gallery-text: #2f241d;
  --gallery-muted: #6f655e;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffaf5 0%, var(--gallery-bg) 100%);
  color: var(--gallery-text);
}

.site-header,
.navbar {
  background: linear-gradient(90deg, var(--gallery-primary-dark), var(--gallery-primary));
}

.site-footer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-section {
  background: linear-gradient(135deg, rgba(111, 78, 55, 0.95), rgba(175, 115, 80, 0.92));
}

.album-card,
.media-card,
.empty-state {
  background: var(--gallery-card);
  border-radius: 1.2rem;
}

.album-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(55, 34, 20, 0.12) !important;
}

.album-card-image,
.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #efe3d6;
}

.album-description {
  max-width: 60rem;
}

.video-shell {
  position: relative;
}

.video-play-badge {
  position: absolute;
  inset: auto 1rem 1rem auto;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.album-video-player {
  aspect-ratio: 16 / 9;
  background: #000;
  max-height: 320px;
}

.admin-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #efe3d6;
}

.admin-thumb-lg {
  width: 120px;
  height: 120px;
}

.table > :not(caption) > * > * {
  vertical-align: middle;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus,
.btn-close:focus {
  border-color: rgba(111, 78, 55, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(111, 78, 55, 0.18);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gallery-primary-dark);
  border-color: var(--gallery-primary-dark);
}

.btn-outline-primary {
  color: var(--gallery-primary);
  border-color: var(--gallery-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--gallery-primary);
  border-color: var(--gallery-primary);
}

.text-primary {
  color: var(--gallery-primary) !important;
}

@media (max-width: 991.98px) {
  .navbar .btn,
  .navbar form {
    width: 100%;
  }

  .navbar .d-flex.align-items-center.gap-2 {
    flex-direction: column;
    align-items: stretch !important;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    border-radius: 1rem !important;
  }

  .admin-thumb-lg {
    width: 96px;
    height: 96px;
  }
}