/* portfolio.css */

/* =====================
   == Portfolio Page Blocks (portfolio.php)
   ===================== */

.portfolio-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.portfolio-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.portfolio-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.portfolio-highlights .highlight {
  flex: 1 1 300px;
  max-width: 45%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  text-align: left;
}

/* =====================
   == Gallery Item Blocks (Updated)
   ===================== */

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  row-gap: 3rem;
  column-gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.media-item {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(227,238,255,1) 16%, rgba(255,255,255,1) 100%);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 250px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 128, 96, 0.15);
}

/* Hover enhancements */
.media-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 128, 96, 0.35);
}

.media-item video,
.media-item audio,
.media-item img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.media-video {
  background: linear-gradient(180deg, #ffffff 0%, #e0f7ff 16%, #ffffff 100%);
}

.media-audio {
  background: linear-gradient(180deg, #ffffff 0%, #f3e0ff 16%, #ffffff 100%);
}

.media-image {
  background: linear-gradient(180deg, #ffffff 0%, #fffde0 16%, #ffffff 100%);
}

.media-caption {
  font-size: 1rem;
  color: #0000cc;
  margin-bottom: 1rem;
  max-width: 90%;
  word-wrap: break-word;
}

/* =====================
   == Responsive Tweaks
   ===================== */

@media (max-width: 768px) {
  .portfolio-highlights .highlight,
  .media-item {
    width: 100%;
    max-width: 100%;
  }

  .gallery-container {
    grid-template-columns: 1fr;
  }
}

/* =====================
   == For Individual Portfolio Pages
   ===================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.portfolio-item h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.portfolio-item p {
  margin: 0.5rem 0 0;
}
