body {
    color: white;
}
main {
  background-color: #fff;
  color: #333;
  height: 100%;
  min-height: 90vh;
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #333;
}

 .portfolio-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

/* Inherit Instagram grid styles from home */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 auto;
}

.portfolio-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    aspect-ratio: 1/1;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
}

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

@media (max-width: 500px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Style scrollbar khusus untuk portfolio-section */
.portfolio-section {
  scrollbar-width: thin;                /* Firefox */
  scrollbar-color: rgba(100,100,100,0.5) transparent;
}

/* Chrome, Edge, Safari */
.portfolio-section::-webkit-scrollbar {
  width: 6px;                           /* Lebar bar */
}

.portfolio-section::-webkit-scrollbar-track {
  background: transparent;              /* Latar belakang track */
}

.portfolio-section::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.5); /* Warna batang */
  border-radius: 10px;
}

.portfolio-section::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 100, 100, 0.8);
}