/* ---------- PROFILE DETAILS & DYNAMIC GALLERY ---------- */
.about-page {
  max-width: 750px;
  margin: 0 auto;
}

.about-card-hero {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.about-card-hero h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
}

.about-bio {
  font-size: 16px;
  line-height: 1.6;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.action-card-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
}

.action-card-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.action-icon { font-size: 28px; }
.action-text h3 { font-size: 16px; margin-bottom: 2px; font-weight: 600; }
.action-text p { font-size: 12px; }

.support-card:hover {
  border-color: rgba(219, 108, 71, 0.5);
  box-shadow: 0 4px 15px rgba(219, 108, 71, 0.15);
}

.social-section {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 12px;
}

.social-section h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.social-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.social-links li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.soc-icon { font-size: 16px; }

/* DYNAMIC PORTFOLIO MATRIX */
.gallery-section { width: 100%; }
.gallery-heading { font-size: 16px; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; width: 100%; }
.gallery-item { position: relative; height: 220px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); padding: 20px 12px 12px 12px; opacity: 0; transition: opacity 0.2s ease; display: flex; align-items: flex-end; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #ffffff; font-size: 13px; font-weight: 500; line-height: 1.3; }

.gallery-item {
  position: relative;
  /* Removed the fixed height so the box adapts to the image shape */
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2); /* Keeps a nice translucent dark backdrop backing */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-img {
  width: 100%;
  height: auto;          /* Let the height shrink/scale naturally */
  display: block;
  object-fit: contain;   /* Ensures the entire image shrinks to fit inside the viewport */
  transition: transform 0.3s ease;
}

.gallery-grid {
  /* Replaces the old grid settings with a responsive column split */
  column-count: 3;       /* Divides the gallery into 3 columns on desktop */
  column-gap: 16px;
  width: 100%;
}

.gallery-item {
  position: relative;
  width: 100%;
  margin-bottom: 16px;   /* Adds spacing below items since rows are now fluid columns */
  break-inside: avoid;   /* Prevents a single card from splitting across two columns */
  
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optional Mobile Breakpoint: Drop to 2 columns on mobile screens */
@media (max-width: 600px) {
  .gallery-grid {
    column-count: 2;
  }
}