
/* --- Modern overrides for responsive & cleaner UI --- */

/* Typography & layout */
:root {
  --container-max: 1120px;
}
.container-fluid {
  max-width: var(--container-max);
}

/* Mobile-friendly navbar improvements */
.navbar-toggle {
  border: 0;
  background: transparent;
}
.navbar-toggle .icon-bar { background: currentColor; }

/* Responsive gallery using CSS Grid */
.portfolio-items.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.portfolio-items.grid > li {
  float: none;
  width: auto;
  padding: 0;
}

/* Cleaner figure without gradient frame (kept if original CSS remains) */
figure.effect-moses { background: transparent !important; }
figure.effect-moses img { opacity: 1 !important; }
figure.effect-moses h2,
figure.effect-moses p { border-top: none !important; color: inherit !important; }

/* Smooth cards look */
.portfolio-item figure {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.portfolio-item figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
}

/* Cookie banner: compact bar on bottom */
.cookies {
  box-shadow: 0 -3px 12px rgba(0,0,0,.2);
  padding-bottom: 16px;
}

/* Anti-drag / anti-select on images */
img, figure, .no-save {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Ensure modal image fits viewport on mobile */
.modal-content {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
}
