/* ============================================================
   HORTIDA ADMIN – admin.css
   Premium dark green dashboard
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:          #0b1210;
  --bg2:         #101a15;
  --bg3:         #15231c;
  --card:        #192820;
  --card2:       #1f3228;
  --accent:      #52b788;
  --accent-d:    #40916c;
  --accent-l:    #74c69d;
  --accent-glow: rgba(82, 183, 136, 0.15);
  --text:        #ddeee5;
  --text2:       #8fb89f;
  --text3:       #567a65;
  --border:      #1e3528;
  --border2:     #2a4a38;
  --danger:      #f87171;
  --danger-d:    #dc2626;
  --warning:     #fbbf24;
  --success:     #4ade80;
  --sidebar-w:   240px;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --transition:  0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; }
body { background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-l); }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.hidden { display: none !important; }

/* ================================================================
   LOGIN SCREEN
   ================================================================ */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 40%, rgba(82,183,136,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(64,145,108,0.06) 0%, transparent 50%),
              var(--bg);
  padding: 24px;
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow), 0 0 60px rgba(82,183,136,0.05);
  animation: fadeInUp 0.5s ease;
}

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

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.login-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.login-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-l), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

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

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--transition), transform var(--transition);
  margin-top: 8px;
}

.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.login-error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
  display: none;
}

/* ================================================================
   ADMIN APP LAYOUT
   ================================================================ */

.admin-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-l), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.sidebar-user {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-username {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.sidebar-role {
  font-size: 11px;
  color: var(--text3);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all var(--transition);
  position: relative;
}

.nav-item svg { flex-shrink: 0; opacity: 0.8; }

.nav-item:hover {
  background: var(--card);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-l);
  font-weight: 600;
}

.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text3);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.sidebar-link:hover {
  background: var(--card);
  color: var(--text2);
}

.sidebar-link.logout-btn {
  color: var(--danger);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-link.logout-btn:hover {
  background: rgba(248,113,113,0.1);
  color: var(--danger);
}

/* ── Main Content ── */
.admin-main {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
}

.admin-tab {
  display: none;
  padding: 32px;
  min-height: 100%;
}

.admin-tab.active { display: block; }

/* ── Tab Header ── */
.tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-title { font-size: 24px; font-weight: 700; color: var(--text); }
.tab-subtitle { font-size: 14px; color: var(--text2); margin-top: 4px; }

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(82,183,136,0.3); }

.btn-secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--card); border-color: var(--accent); color: var(--accent-l); }

.btn-danger {
  background: rgba(248,113,113,0.1);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.2);
}
.btn-danger:hover { background: rgba(248,113,113,0.2); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--card); color: var(--text); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 8px; border-radius: 8px; }

/* ================================================================
   FORM ELEMENTS
   ================================================================ */

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  color: var(--text);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select { appearance: none; cursor: pointer; }

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

.form-hint { font-size: 12px; color: var(--text3); }

/* ── Card ── */
.admin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.admin-card + .admin-card { margin-top: 20px; }

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title svg { color: var(--accent); }

/* ================================================================
   GALLERY TAB
   ================================================================ */

.gallery-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg3);
  position: relative;
  margin-bottom: 16px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow);
}

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

.upload-icon { color: var(--accent); margin: 0 auto 12px; }
.upload-text { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.upload-hint { font-size: 12px; color: var(--text3); }

.upload-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
  border: 1px solid var(--border);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.gallery-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gallery-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg3);
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-img img { transform: scale(1.05); }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-card:hover .gallery-card-overlay { opacity: 1; }

.card-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.card-btn-edit { background: rgba(82,183,136,0.9); color: #fff; }
.card-btn-delete { background: rgba(248,113,113,0.9); color: #fff; }
.card-btn:hover { transform: scale(1.1); }

.gallery-card-info {
  padding: 10px 12px;
}

.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.cat-sadnja     { background: rgba(82,183,136,0.15); color: var(--accent-l); }
.cat-odrzavanje { background: rgba(251,191,36,0.15); color: var(--warning); }
.cat-navodnjavanje { background: rgba(96,165,250,0.15); color: #93c5fd; }
.cat-krajobraz  { background: rgba(167,139,250,0.15); color: #c4b5fd; }

.gallery-card-desc {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-date {
  font-size: 11px;
  color: var(--text3);
  display: block;
  margin-top: 2px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text3);
  font-size: 15px;
}

.empty-state-icon {
  margin: 0 auto 16px;
  color: var(--text3);
  opacity: 0.5;
}

/* ================================================================
   POSTS TAB
   ================================================================ */

.posts-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.post-list { display: flex; flex-direction: column; gap: 12px; }

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  transition: all var(--transition);
  align-items: flex-start;
}

.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-1px);
}

.post-card-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}

.post-card-img.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
}

.post-card-body { flex: 1; min-width: 0; }

.post-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.post-card-excerpt {
  font-size: 12px;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-status.published { background: rgba(74,222,128,0.15); color: var(--success); }
.post-status.draft { background: rgba(251,191,36,0.15); color: var(--warning); }

.post-card-date { font-size: 11px; color: var(--text3); }

.post-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Post Editor */
.post-editor { position: sticky; top: 24px; }

/* ================================================================
   USERS TAB
   ================================================================ */

.users-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.user-list { display: flex; flex-direction: column; gap: 10px; }

.user-row {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
}

.user-row:hover { border-color: var(--border2); }

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 14px; font-weight: 600; }
.user-date { font-size: 12px; color: var(--text3); }

.user-you {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-glow);
  color: var(--accent-l);
  margin-left: 6px;
}

/* ================================================================
   TOASTS / NOTIFICATIONS
   ================================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s ease;
  min-width: 260px;
  max-width: 360px;
}

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

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent); }

.toast svg { flex-shrink: 0; }
.toast.success svg { color: var(--success); }
.toast.error   svg { color: var(--danger); }
.toast.info    svg { color: var(--accent); }

/* ================================================================
   LOADING SPINNER
   ================================================================ */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(82,183,136,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   STATS CARDS (dashboard top)
   ================================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.green { background: rgba(82,183,136,0.15); color: var(--accent); }
.stat-icon.blue  { background: rgba(96,165,250,0.15); color: #60a5fa; }
.stat-icon.purple{ background: rgba(167,139,250,0.15); color: #a78bfa; }

.stat-num  { font-size: 26px; font-weight: 800; color: var(--text); }
.stat-label{ font-size: 12px; color: var(--text2); }

/* ================================================================
   MODAL (edit dialog)
   ================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.25s ease;
}

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

.modal-title { font-size: 18px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  color: var(--text3);
  padding: 4px;
  border-radius: 6px;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--card); color: var(--text); }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   UPLOAD PROGRESS
   ================================================================ */

.upload-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
  display: none;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progress-pulse 1.5s ease infinite alternate;
}

@keyframes progress-pulse {
  from { opacity: 0.8; }
  to   { opacity: 1; }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  .gallery-layout { grid-template-columns: 1fr; }
  .posts-layout { grid-template-columns: 1fr; }
  .users-layout { grid-template-columns: 1fr; }
  .post-editor { position: static; }
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    left: -100%;
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }
  .admin-sidebar.open { left: 0; }
  .admin-tab { padding: 20px 16px; }
  .tab-header { flex-direction: column; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
