body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: #f5f4f1;
  color: #222;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: #ece9e3;
}

.logo {
  font-size: 28px;
  font-weight: 600;
  color: #8a3a3a;
}

nav a {
  margin-left: 32px;
  text-decoration: none;
  color: #2f3b2f;
  font-size: 20px;
  transition: all 0.2s ease;
}

nav a:hover {
  font-style: italic;
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 80%;
}

.tile {
  position: relative;
  width: 100%;
  /*aspect-ratio: 1 / 1;*/
  overflow: hidden;
  background: #ddd;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  /*inset: 0;*/
  background: rgba(0,0,0,0.45);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.tile:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  font-style: italic;
  margin-bottom: 8px;
  font-size: 22px;
}

.overlay p {
  font-size: 15px;
  line-height: 1.4;
}

.page {
  max-width: 900px;
  margin: auto;
  padding: 48px 24px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav a {
    margin-left: 0;
    margin-right: 20px;
  }
  .portfolio-grid { grid-template-columns: 1fr; }
}
