/* Private gallery sharing — warm, quiet controls that sit within the existing
   Photo Shoot identity without changing the surrounding gallery layout. */
.galleryResult {
  --gallery-share-ink: #352e28;
  --gallery-share-muted: #766f67;
  --gallery-share-line: #ded8ce;
  --gallery-share-paper: #fbfaf7;
  --gallery-share-wash: #f2ede5;
  --gallery-share-accent: #715239;
}
.galleryResult [hidden] { display: none !important; }
.galleryResult + .galleryResult { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gallery-share-line); }
.galleryResult .galleryShareCaption { box-sizing: border-box; width: 100%; min-height: 72px; font-size: 16px; }

.galleryResultActions,
.galleryShareActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.galleryResultActions .journeySecondary,
.galleryResultActions .galleryShareButton,
.galleryShareActions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gallery-share-line);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--gallery-share-wash);
  color: var(--gallery-share-ink);
  font: 700 14px/1.2 Arial, sans-serif;
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.galleryResultActions .galleryShareButton {
  border-color: #554238;
  background: #554238;
  color: #fbf8f2;
}

.galleryShareActions button {
  background: #fffdfa;
}

.galleryResultActions .journeySecondary:hover,
.galleryShareActions button:hover {
  border-color: #a98b6c;
  background: #f7f1e8;
}

.galleryResultActions .galleryShareButton:hover {
  border-color: #715239;
  background: #715239;
}

.galleryResultActions .journeySecondary:active,
.galleryResultActions .galleryShareButton:active,
.galleryShareActions button:active {
  transform: translateY(1px);
}

.galleryResultActions .journeySecondary:focus-visible,
.galleryResultActions .galleryShareButton:focus-visible,
.galleryShareActions button:focus-visible {
  outline: 3px solid #b99b7a;
  outline-offset: 3px;
}

.gallerySharePanel {
  margin: 14px 0 4px;
  padding: 16px;
  border: 1px solid var(--gallery-share-line);
  border-radius: 16px;
  background: var(--gallery-share-paper);
  color: var(--gallery-share-ink);
}

.gallerySharePanel[hidden] {
  display: none !important;
}

.galleryShareStatus {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #f2ede5;
  color: #51473e;
  font: 14px/1.45 Arial, sans-serif;
}

.gallerySharePreview {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #e8e1d7;
  border-radius: 12px;
  background: #fffdfa;
}

.galleryResult img.gallerySharePreview {
  display: block;
  width: min(480px, 100%);
  height: auto;
  aspect-ratio: auto;
  border-radius: 8px;
  object-fit: contain;
  background: var(--gallery-share-wash);
}

.galleryShareActions {
  margin: 0;
}

.galleryShareNote {
  display: block;
  margin-top: 12px;
  color: var(--gallery-share-muted);
  font: 14px/1.5 Arial, sans-serif;
}

@media (max-width: 480px) {
  .galleryResultActions,
  .galleryShareActions {
    align-items: stretch;
  }

  .galleryResultActions .journeySecondary,
  .galleryResultActions .galleryShareButton,
  .galleryShareActions button {
    width: 100%;
  }

  .gallerySharePanel {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .galleryResultActions .journeySecondary,
  .galleryResultActions .galleryShareButton,
  .galleryShareActions button {
    transition: none;
  }
}
