/* ======================================================
   Gallery Browse — 40/60 layout (matches editor)
====================================================== */

body.single-member_gallery .softform-frame {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}

body.single-member_gallery .gallery-browse-frame {
  max-width: 1200px;
  margin: 28px auto 0;
  border-radius: 16px;
}

body.single-member_gallery .gallery-browse-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 32px;
  align-items: start;
  padding: 24px 28px;
}

/* Hero frame — mirror editor “mat” feel */
body.single-member_gallery .gallery-hero-view {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #eae3d1;
  border: 6px solid rgba(255,255,255,0.85);
  box-sizing: border-box;
}

body.single-member_gallery .gallery-hero-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #eae3d1;
}

body.single-member_gallery .gallery-hero-missing {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f6a5c;
  font-weight: 600;
}

/* Right side */
body.single-member_gallery .gallery-browse-row {
  margin-bottom: 10px;
  color: #1a3b2e;
}

body.single-member_gallery .gallery-browse-desc {
  margin-top: 16px;
}

/* Mobile */
@media (max-width: 900px) {
  body.single-member_gallery .gallery-browse-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   Gallery Mobile Browse Bar
   ============================================================ */

@media (max-width: 768px) {
  body.single-member_gallery .gallery-mobile-browse-bar {
    position: fixed;
    left: 50%;
    bottom: env(safe-area-inset-bottom, 12px);
    transform: translateX(-50%);

    width: calc(100% - 24px);
    max-width: 520px;

    display: flex;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 14px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 999999;
  }

  body.single-member_gallery {
    padding-bottom: 100px;
  }
}
