/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --bg-2: #181818;
  --bg-3: #242424;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #c8a96e;
  --accent-hover: #d4b87a;
  --danger: #c0392b;
  --success: #27ae60;
  --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 4px;
  --transition: 0.2s ease;
  --header-height: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Header ───────────────────────────────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: rgba(28,28,28,0.98); z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--border); }

.site-header.scrolled { background: rgba(13,13,13,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: none; }

.site-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color var(--transition);
}
.site-logo:hover { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-3); }

.nav-link.admin-btn {
  color: var(--accent);
  border: 1px solid rgba(200,169,110,0.3);
}
.nav-link.admin-btn:hover { background: rgba(200,169,110,0.1); }

/* ─── Main Content ─────────────────────────────────────────────────────────── */
.main-content { padding-top: var(--header-height); min-height: 100vh; }

/* ─── Hero / Intro ─────────────────────────────────────────────────────────── */
.site-hero {
  padding: 64px 32px 48px;
  text-align: center;
}

.site-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 12px;
}

.site-hero p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Album Tabs ───────────────────────────────────────────────────────────── */
.album-tabs {
  display: flex;
  gap: 4px;
  padding: 0 32px 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.album-tab {
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  font-family: var(--font);
  white-space: nowrap;
}
.album-tab:hover { color: var(--text); border-color: var(--border); }
.album-tab.active {
  color: var(--text);
  background: var(--bg-3);
  border-color: var(--border);
}

/* ─── Jawed Style Grid ──────────────────────────────────────────────────────── */
.photo-grid { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; max-width: 100%; margin: 0 auto; }

.photo-item {
  position: relative;
  flex: 1 1 300px; /* Grow to fill space, base width 300px */
  height: 380px; /* Uniform height for the row */
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-item:hover img {
  transform: scale(1.02); /* Subtle jawed zoom effect */
}

/* Responsive height for mobile */
@media (max-width: 768px) {
  .photo-grid { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; max-width: 100%; margin: 0 auto; }
  .photo-item {
    height: 250px;
    flex: 1 1 100%;
  }
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}
.photo-item:hover .photo-overlay { opacity: 1; }

.photo-title {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 32px;
  color: var(--text-dim);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.3; }
.empty-state p { font-size: 15px; }

/* ─── Loading Spinner ──────────────────────────────────────────────────────── */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 32px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-info {
  margin-top: 12px;
  text-align: center;
  color: var(--text-muted);
}
.lightbox-info h3 { color: var(--text); font-size: 16px; margin-bottom: 4px; font-weight: 500; }
.lightbox-info p { font-size: 13px; }

/* ⓘ Info button (top-left, like jawed.com) */
.lb-info-btn { /* Overridden by inline styles */ }
.lb-info-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lb-info-btn.active { color: #fff; }

/* Close button */
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition), background var(--transition);
  font-size: 18px;
  line-height: 1;
  z-index: 1100;
}
.lightbox-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Nav arrows */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
  transition: background var(--transition);
  z-index: 1100;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Main area: panel + image wrapper */
.lb-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Sliding info panel (left side, like jawed.com) */
.lb-panel {
  width: 0;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  background: rgba(10,10,10,0.96);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), min-width 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  z-index: 1050;
}
.lb-panel.open {
  width: 240px;
  min-width: 240px;
}
.lb-panel-body {
  padding: 80px 24px 24px 24px;
  width: 240px;
  flex-shrink: 0;
  text-align: center;
}
.lb-panel-icon {
  color: rgba(255,255,255,0.2);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.lb-panel-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}
.lb-panel-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
.lb-panel-date {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  margin-top: 8px;
}

/* Image wrapper */
.lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

/* View in Full button (bottom-right of image, like jawed.com) */
.lb-view-full {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-family: var(--font);
}
.lb-view-full:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(10,10,10,0.9);
}

/* Lightbox counter */
.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  z-index: 1100;
}



/* ─── Load More ────────────────────────────────────────────────────────────── */
.load-more-wrap {
  text-align: center;
  padding: 32px;
}
.load-more-btn {
  padding: 10px 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.load-more-btn:hover { color: var(--text); border-color: var(--text-dim); }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  letter-spacing: 0.04em;
}

/* ─── Admin Login Page ─────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-card {
  width: 360px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}

.login-logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  width: 100%;
  justify-content: center;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--text-dim); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.3);
}
.btn-danger:hover { background: rgba(192,57,43,0.1); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* ─── Admin Dashboard ──────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 24px; }

.sidebar-label {
  padding: 0 20px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font);
  text-align: left;
}
.sidebar-link:hover { color: var(--text); background: var(--bg-3); }
.sidebar-link.active { color: var(--text); background: var(--bg-3); border-right: 2px solid var(--accent); }

.admin-main {
  margin-left: 220px;
  flex: 1;
  padding: 32px;
  max-width: calc(100vw - 220px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title {
  font-size: 22px;
  font-weight: 500;
}

/* ─── Upload Zone ──────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin-bottom: 32px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(200,169,110,0.04);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.upload-zone h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.upload-zone p { font-size: 13px; color: var(--text-muted); }

/* ─── Upload Progress ──────────────────────────────────────────────────────── */
.upload-queue {
  margin-bottom: 24px;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.upload-item:last-child { border-bottom: none; }

.upload-item-thumb {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--bg-3);
  flex-shrink: 0;
}

.upload-item-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-status { color: var(--text-dim); font-size: 12px; white-space: nowrap; }
.upload-item-status.done { color: var(--success); }
.upload-item-status.error { color: var(--danger); }

.progress-bar-wrap {
  background: var(--bg-3);
  border-radius: 100px;
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* ─── Admin Photo Grid ─────────────────────────────────────────────────────── */
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.admin-photo-card {
  position: relative;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.admin-photo-card:hover { border-color: var(--text-dim); }
.admin-photo-card.selected { border-color: var(--accent); }

.admin-photo-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.admin-photo-info {
  padding: 8px 10px;
}

.admin-photo-title {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.admin-photo-album {
  font-size: 11px;
  color: var(--text-dim);
}

.admin-photo-actions {
  position: absolute;
  top: 6px; right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}
.admin-photo-card:hover .admin-photo-actions { opacity: 1; }

.icon-btn {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: rgba(0,0,0,0.75);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  font-size: 13px;
  color: #fff;
  transition: background var(--transition);
}
.icon-btn:hover { background: rgba(0,0,0,0.9); }
.icon-btn.danger:hover { background: rgba(192,57,43,0.85); }

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  width: 480px;
  max-width: 95vw;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-title { font-size: 17px; font-weight: 500; }

.modal-body { margin-bottom: 24px; }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Albums Panel ─────────────────────────────────────────────────────────── */
.album-list { display: flex; flex-direction: column; gap: 8px; }

.album-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.album-row-name { font-size: 14px; }
.album-row-count { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.album-row-actions { display: flex; gap: 6px; }

/* ─── Toolbar ──────────────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar-select {
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  cursor: pointer;
}
.toolbar-select:focus { border-color: var(--accent); }

.search-input {
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  width: 220px;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

.badge {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ─── Toast Notifications ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: slideIn 0.2s ease;
  max-width: 320px;
}
.toast.success { border-color: rgba(39,174,96,0.4); }
.toast.error { border-color: rgba(192,57,43,0.4); }

@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Overlay panel for mobile instead of squishing */
  .lb-panel {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 240px !important;
    min-width: 240px !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: none;
    z-index: 1050;
  }
  .lb-panel.open {
    transform: translateX(0);
  }
  .lightbox-nav { display: flex; }
  .lightbox-prev { left: 10px; width: 36px; height: 36px; }
  .lightbox-next { right: 10px; width: 36px; height: 36px; }
    .site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: rgba(28,28,28,0.98); z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--border); }
  .photo-grid { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; max-width: 100%; margin: 0 auto; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; max-width: 100%; }
  
  .album-tabs { padding: 0 20px 20px; }
  .site-hero { padding: 40px 20px 32px; }
}

@media (max-width: 480px) {
  .photo-grid { display: flex; flex-wrap: wrap; gap: 3px; padding: 0; max-width: 100%; margin: 0 auto; }
  .admin-photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* --- Anti-Theft & Security -------------------------------------------------- */
@media print { html, body { display: none !important; opacity: 0; visibility: hidden; } }
.noselect { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.photo-item { pointer-events: auto; }
.photo-item::after { content: ''; position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.lb-img-wrap::after { content: ''; position: absolute; inset: 0; z-index: 10; pointer-events: none; }

.lb-info-btn, .lightbox-close, .lightbox-nav, .lightbox-counter, .lb-view-full { pointer-events: none; }
.lightbox-overlay.open .lb-info-btn, .lightbox-overlay.open .lightbox-close, .lightbox-overlay.open .lightbox-nav, .lightbox-overlay.open .lightbox-counter, .lightbox-overlay.open .lb-view-full { pointer-events: auto; }
/* -- Fullscreen mode: image fills the entire screen -- */
:fullscreen .lightbox-img,
:-webkit-full-screen .lightbox-img,
:-moz-full-screen .lightbox-img,
:-ms-fullscreen .lightbox-img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: auto !important;
  height: 100vh !important;
  object-fit: contain;
  border-radius: 0 !important;
}

:fullscreen .lb-img-wrap,
:-webkit-full-screen .lb-img-wrap,
:-moz-full-screen .lb-img-wrap,
:-ms-fullscreen .lb-img-wrap {
  background: #000;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

:fullscreen .lb-main,
:-webkit-full-screen .lb-main,
:-moz-full-screen .lb-main,
:-ms-fullscreen .lb-main {
  width: 100vw;
  height: 100vh;
}

:fullscreen .lb-panel,
:-webkit-full-screen .lb-panel {
  display: none !important;
}
/* -- JS-class based fullscreen (more reliable) -- */
.lightbox-overlay.is-fullscreen .lightbox-img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  height: 100vh !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}
.lightbox-overlay.is-fullscreen .lb-img-wrap {
  background: #000 !important;
  width: 100vw !important;
  height: 100vh !important;
}
.lightbox-overlay.is-fullscreen .lb-panel {
  display: none !important;
}
.lightbox-overlay.is-fullscreen .lb-main {
  width: 100vw !important;
  height: 100vh !important;
}



