/* Behance /gallery/* project detail — light, media-first */
.ac-behance-gallery {
  background: #fff;
  color: #191919;
  padding-bottom: 48px;
}
.ac-bh-project-hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 24px 8px;
  border-bottom: 1px solid #e8e8e8;
}
.ac-bh-back {
  font-size: 13px;
  font-weight: 600;
  color: #696969;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.ac-bh-back:hover { color: #0057ff; }
.ac-bh-project-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}
.ac-bh-creator-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
}
.ac-bh-creator {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.ac-bh-creator img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}
.ac-bh-creator-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.ac-bh-creator-meta span {
  font-size: 13px;
  color: #696969;
}
.ac-bh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ac-bh-btn {
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #191919;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ac-bh-btn:hover {
  border-color: #191919;
  color: #191919;
}
.ac-bh-btn--primary {
  background: #0057ff;
  border-color: #0057ff;
  color: #fff;
}
.ac-bh-btn--primary:hover {
  background: #0046d1;
  border-color: #0046d1;
  color: #fff;
}
.ac-bh-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: #696969;
}
.ac-bh-stats-bar b { color: #191919; font-weight: 700; }
.ac-bh-media-stack {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0;
}
.ac-bh-media-block {
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}
.ac-bh-media-block + .ac-bh-media-block {
  margin-top: 8px;
}
.ac-bh-media-block a {
  display: block;
  line-height: 0;
}
.ac-bh-media-block img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  object-position: center;
  background: #f0f0f0;
}
.ac-bh-media-block figcaption {
  padding: 10px 24px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #191919;
  line-height: 1.4;
  background: #fff;
}
.ac-bh-media-meta {
  padding: 0 24px 8px;
  font-size: 12px;
  color: #696969;
  background: #fff;
}
.ac-bh-cover-only img {
  object-fit: cover;
  max-height: 70vh;
}
.ac-bh-project-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}
.ac-bh-project-body h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #696969;
  margin: 0 0 12px;
}
.ac-bh-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
  white-space: pre-wrap;
  margin: 0 0 24px;
}
.ac-bh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.ac-bh-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #191919;
  text-decoration: none;
}
.ac-bh-tag:hover { background: #e0e0e0; }
.ac-bh-details dt {
  font-size: 12px;
  font-weight: 700;
  color: #696969;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.ac-bh-details dd {
  margin: 0 0 16px;
  font-size: 14px;
  color: #191919;
}
.ac-bh-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid #e8e8e8;
}
.ac-bh-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}
.ac-bh-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ac-bh-related-card {
  text-decoration: none;
  color: inherit;
}
.ac-bh-related-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}
.ac-bh-related-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 4px;
  line-height: 1.3;
}
.ac-bh-related-card p {
  margin: 0;
  font-size: 12px;
  color: #696969;
}
@media (max-width: 768px) {
  .ac-bh-project-hero, .ac-bh-project-body { padding-left: 16px; padding-right: 16px; }
  .ac-bh-media-block figcaption { padding-left: 16px; padding-right: 16px; }
}
/* Channel detail modal */
.ac-channel-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ac-channel-modal[hidden] { display: none !important; }
.ac-channel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}
.ac-channel-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%);
  max-height: 100vh;
  background: #fff;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}
.ac-channel-modal-x {
  position: sticky;
  top: 0;
  z-index: 5;
  float: right;
  margin: 10px 12px 0 0;
  width: 40px;
  height: 40px;
  border: 1px solid #d4d4d4;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #191919;
}
.ac-channel-modal-x:hover { border-color: #191919; }
.ac-channel-modal-loading {
  padding: 48px 24px;
  text-align: center;
  color: #696969;
  font-weight: 600;
}
.behance-theme.ac-modal-open { overflow: hidden; }
.ac-behance-gallery--modal .ac-bh-back {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
