/* Global styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* Header styling */
header {
  text-align: center;
  padding: 1.5em 0;
  background-color: #333;
  color: white;
}

header h1 {
  font-size: 2em;
  margin: 0;
  font-weight: bold;
}

/* Navigation links styling */
.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0.5em 1em;
  background-color: #444;
  color: white;
}

.nav-links a {
  color: rgb(162, 162, 162);
  font-size: 1em;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ddd;
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  .nav-links a {
    margin: 0.5em 0;
  }
}


/* Controls */
.controls {
  display: flex;
  justify-content: center;   /* centers horizontally */
  flex-wrap: wrap;           /* allows wrapping on small screens */
  gap: 10px;                 /* space between buttons */
  margin: 20px auto;
  text-align: center;
}


.filter-btn.active,
.filter-btn:hover {
  background: #555;
}

.filter-btns {
  text-align: center;
  margin: 20px 0;
}

.filter-btn {
  background: #333;
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 5px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}



/* ==== Portfolio ==== */
.portfolio-container {
  margin: 0 auto;      /* center horizontally */
  padding: 0 10px;
}

.portfolio-grid {
  position: relative;
  margin: 0 auto;
}

/* Set the width of the columns */
.grid-sizer, .portfolio-item {
  width: 32%; /* roughly 3 columns */
}

/* Add responsive breakpoints */
@media (max-width: 800px) {
  .grid-sizer, .portfolio-item { width: 47%; } /* 2 columns */
}

/* Add responsive breakpoints */
@media (max-width: 300px) {
  .grid-sizer, .portfolio-item { width: 100%; } /* 2 columns */
}


/* Item styling */
.portfolio-item {
  margin-bottom: 20px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.portfolio-item:hover { transform: translateY(-5px); }

.portfolio-item img {
  width: 100%;
  display: block;
}

.caption {
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
  color: #555;
}


