body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fffdf5;
}

.portfolio-section {
  background: #fff8e1;
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.8rem;
  color: #b8860b;
  margin-bottom: 40px;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.image-item {
  flex: 0 1 calc(33.333% - 30px);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  background: white;
}

.image-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.image-item:hover img {
  transform: scale(1.05);
}

.caption {
  background: rgba(0, 0, 0, 0.5);
  color: #fff8dc;
  text-align: center;
  padding: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  animation: zoom 0.4s;
}

@keyframes zoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff8dc;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .image-item {
    flex: 0 1 100%;
  }
}

.back-button-container {
  text-align: center;
  margin: 20px 0;
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #252525;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #555;
}