/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: #111;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.title {
  font-size: 2.4rem;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 1.5px;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; /* base row height */
  gap: 18px;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #222;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  /* border-radius: 6px; */
  display: block;
}

/* Special sizes */
.item.wide {
  grid-column: span 2; /* spans 2 columns */
}

.item.tall {
  grid-row: span 2; /* spans 2 rows */
}

.portfolio-section {
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px 40px;
  text-align: center;
}
.portfolio-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  /* margin-bottom: px; */
  font-weight: bold;
  /* color: antiquewhite; */
}

/* Filter Menu */
.filter-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 20px;
  margin-bottom: 80px;
  margin-top: 100px;
}
.filter-menu button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-menu button:hover,
.filter-menu button.active {
  color: #fff;
  text-decoration: underline;
}
.main {
  width: 94vw;
  display: flex;
  gap: 15px;
  padding-left: 80px;
}
#main1,
#main2,
#main3 {
  flex: 1;
}
#img1,
#img2,
#img3 {
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Tablet */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .title {
    font-size: 1.8rem;
  }
  .main {
    flex-direction: column;
    padding-left: 20px;
    width: 100%;
    text-align: center;
  }
  #main1,
  #main2,
  #main3 {
    width: 100%;
  }
  .filter-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin: 20px 0;
    padding-bottom: 10px;
    scrollbar-width: none; /* hide scrollbar in Firefox */
  }

  .filter-menu::-webkit-scrollbar {
    display: none; /* hide scrollbar in Chrome/Safari */
  }

  .filter-menu button {
    background: #222;
    color: #ccc;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .filter-menu button:hover,
  .filter-menu button.active {
    background: #444;
    color: #fff;
    text-decoration: none;
  }
}
