/* Public Sizden Gelenler / guest gallery — scoped to body.guest-gallery-page */

body.guest-gallery-page {
  overflow-x: clip;
  --gallery-bg: #fbf7f2;
  --gallery-surface: #fffdf8;
  --gallery-cream: #f6efe7;
  --gallery-champagne: #eadbc8;
  --gallery-lilac: #eee8f3;
  --gallery-mauve: #b49ab1;
  --gallery-plum: #4b2f59;
  --gallery-plum-soft: #6f557a;
  --gallery-rose-muted: #b88c94;
  --gallery-gold: #c5a46d;
  --gallery-text: #2f2435;
  --gallery-muted: #7a6d7d;
  --gallery-border: rgba(75, 47, 89, 0.14);
  --gallery-font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --gallery-font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  background: var(--gallery-bg);
  color: var(--gallery-text);
}

body.guest-gallery-page .sg-page {
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.88), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(180, 154, 177, 0.16), transparent 26rem),
    radial-gradient(circle at 50% 100%, rgba(234, 219, 200, 0.35), transparent 32rem),
    var(--gallery-bg);
  min-height: 70vh;
}

/* ── Framed surface ── */

.sg-frame {
  position: relative;
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.15rem, 3.5vw, 2.75rem) clamp(2rem, 4vw, 3.25rem);
  border-radius: 1.65rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 252, 246, 0.94));
  border: 1px solid var(--gallery-border);
  box-shadow:
    0 1.25rem 2.8rem rgba(47, 36, 53, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  overflow: visible;
}

.guest-gallery-floral {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.guest-gallery-floral img {
  display: block;
  width: 100%;
  height: auto;
}

.guest-gallery-floral--left {
  top: -3.15rem;
  left: -4.85rem;
  width: clamp(11.25rem, 26vw, 16.25rem);
  opacity: 0.8;
}

.guest-gallery-floral--right {
  top: -1.35rem;
  right: -5.35rem;
  width: clamp(9.25rem, 21vw, 13.5rem);
  opacity: 0.68;
  transform: rotate(7deg);
}

.guest-gallery-ornaments {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.guest-gallery-ornament {
  position: absolute;
  display: block;
  height: auto;
}

.guest-gallery-ornament--sprig {
  top: 0.15rem;
  left: clamp(-0.35rem, 4vw, 1.75rem);
  width: 2.55rem;
  opacity: 0.38;
  transform: rotate(-12deg);
}

.guest-gallery-ornament--butterfly {
  top: 0.55rem;
  right: clamp(0.15rem, 6vw, 2.4rem);
  width: 1.65rem;
  opacity: 0.42;
  transform: rotate(16deg);
}

.sg-hero,
.sg-header,
.sg-upload,
.sg-gallery,
.sg-footer {
  position: relative;
  z-index: 1;
}

/* ── Header ── */

.sg-hero,
.sg-header {
  text-align: center;
  margin-bottom: 1.85rem;
}

.sg-hero {
  padding: clamp(1.55rem, 4.4vw, 2.7rem) clamp(2.1rem, 11vw, 5.5rem) 0.45rem;
}

.sg-hero-kicker {
  margin: 0 0 0.2rem;
  color: var(--gallery-gold);
  font-family: var(--font-app-heading, "Cinzel", Georgia, serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sg-heart {
  display: inline-flex;
  color: var(--gallery-mauve);
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.sg-title {
  margin: 0;
  color: var(--gallery-plum);
  font-family: var(--gallery-font-display);
  font-size: clamp(2.55rem, 6.4vw, 3.65rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

.sg-subtitle {
  margin: 0.95rem auto 0;
  max-width: 34rem;
  color: var(--gallery-plum-soft);
  font-family: var(--gallery-font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.22rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
}

.sg-intro {
  margin: 0.7rem auto 0;
  max-width: 32rem;
  color: var(--gallery-muted);
  font-family: var(--gallery-font-body);
  font-size: 1rem;
  line-height: 1.6;
}

.sg-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.85rem auto 0;
  max-width: 16rem;
}

.sg-divider--sm {
  max-width: 10rem;
  margin-top: 0.55rem;
}

.sg-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 154, 177, 0.55), transparent);
}

.sg-divider-bloom,
.sg-divider-heart {
  flex-shrink: 0;
  color: var(--gallery-mauve);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sg-divider-bloom {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50% 50% 45% 55%;
  background: var(--gallery-mauve);
  opacity: 0.75;
  transform: rotate(35deg);
}

/* ── Buttons ── */

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  font-family: var(--font-app-heading, "Cinzel", Georgia, serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sg-btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #5a3a68 0%, var(--gallery-plum) 100%);
  color: #fffdf8;
  box-shadow: 0 0.55rem 1.25rem rgba(75, 47, 89, 0.22);
}

.sg-btn-primary:hover,
.sg-btn-primary:focus-visible {
  background: linear-gradient(180deg, #6a4678 0%, var(--gallery-plum-soft) 100%);
  color: #fff;
}

.sg-btn-outline {
  border: 1px solid rgba(75, 47, 89, 0.28);
  background: rgba(255, 253, 248, 0.92);
  color: var(--gallery-plum);
}

.sg-btn-outline:hover,
.sg-btn-outline:focus-visible {
  border-color: rgba(75, 47, 89, 0.45);
  background: var(--gallery-lilac);
  color: var(--gallery-plum);
}

.sg-btn-ghost {
  border: 1px solid transparent;
  background: transparent;
  color: var(--gallery-plum-soft);
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.sg-btn-ghost:hover,
.sg-btn-ghost:focus-visible {
  color: var(--gallery-plum);
  background: rgba(238, 232, 243, 0.55);
}

.sg-upload-btn {
  min-height: 2.85rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  width: 100%;
}

.sg-cta {
  min-height: 3rem;
  padding: 0.82rem 1.7rem;
  margin-top: 0.15rem;
}

/* ── Upload ── */

.sg-upload {
  margin: 0 auto 2.85rem;
  max-width: 34rem;
}

.sg-upload-card {
  padding: 1.35rem 1.2rem 1.4rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 241, 248, 0.78));
  border: 1px solid var(--gallery-border);
  box-shadow:
    0 0.85rem 1.8rem rgba(47, 36, 53, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sg-upload-card-head {
  text-align: center;
  margin-bottom: 0.95rem;
}

.sg-upload-eyebrow {
  margin: 0 0 0.2rem;
  color: var(--gallery-gold);
  font-family: var(--font-app-heading, "Cinzel", Georgia, serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sg-upload-card-title {
  margin: 0;
  color: var(--gallery-plum);
  font-family: var(--gallery-font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
}

.sg-upload-attribution,
.sg-upload-name-help {
  color: var(--gallery-muted);
  font-family: var(--gallery-font-body);
  font-size: 0.95rem;
  text-align: center;
}

.sg-upload-name-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gallery-plum-soft);
  font-family: var(--font-app-heading, Georgia, serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sg-upload-name-input {
  border: 1px solid var(--gallery-border);
  border-radius: 0.85rem;
  background: var(--gallery-surface);
  color: var(--gallery-text);
  min-height: 2.85rem;
}

.sg-upload-name-input:focus {
  border-color: rgba(180, 154, 177, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(180, 154, 177, 0.22);
}

.sg-upload-name-field {
  margin-bottom: 0.75rem;
}

.sg-upload-zone.wd-upload-zone {
  border: 1.5px dashed rgba(180, 154, 177, 0.58);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(238, 232, 243, 0.62), transparent 58%),
    rgba(255, 253, 248, 0.92);
  padding: 1.35rem 1.15rem 1.3rem;
  text-align: center;
}

.sg-upload-zone.wd-upload-zone.is-dragover {
  border-color: var(--gallery-plum-soft);
  background: rgba(238, 232, 243, 0.45);
}

.sg-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.55rem;
  border-radius: 999px;
  background: rgba(180, 154, 177, 0.18);
  color: var(--gallery-plum);
  box-shadow: inset 0 0 0 1px rgba(180, 154, 177, 0.18);
}

.sg-upload-label {
  margin: 0;
  color: var(--gallery-text);
  font-family: var(--gallery-font-body);
  font-size: 0.98rem;
  font-weight: 500;
}

.sg-upload-or {
  margin: 0.4rem 0;
  color: var(--gallery-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sg-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 22rem;
  margin: 0.75rem auto 0;
}

.sg-upload-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.95rem auto 0;
  max-width: 22rem;
}

.sg-upload-hint-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 1.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid rgba(180, 154, 177, 0.28);
  color: var(--gallery-plum-soft);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.sg-staging-area.wd-staging-area {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--gallery-border);
  background: rgba(255, 253, 248, 0.9);
}

.sg-upload-feedback {
  margin-top: 0.85rem;
  text-align: center;
  font-family: var(--gallery-font-body);
}

body.guest-gallery-page .sg-upload-feedback.is-success {
  background: rgba(180, 154, 177, 0.16);
  color: var(--gallery-plum);
  border: 1px solid rgba(180, 154, 177, 0.35);
}

body.guest-gallery-page .sg-upload-feedback.is-error {
  background: rgba(184, 140, 148, 0.16);
  color: #7a3d4a;
  border: 1px solid rgba(184, 140, 148, 0.4);
}

body.guest-gallery-page .sg-staging-area .wd-staging-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

body.guest-gallery-page .sg-staging-area .wd-staging-count {
  margin: 0 0 0.65rem;
  color: var(--gallery-plum-soft);
  font-family: var(--gallery-font-body);
  font-size: 0.92rem;
  text-align: center;
}

body.guest-gallery-page .wd-upload-spinner {
  border-color: rgba(180, 154, 177, 0.35);
  border-top-color: var(--gallery-plum);
}

/* ── Gallery collage ── */

.sg-gallery {
  margin-top: 0.2rem;
}

.sg-gallery-heading {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 1.2rem;
}

.sg-gallery-title {
  margin: 0;
  color: var(--gallery-plum);
  font-family: var(--gallery-font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 500;
}

.sg-gallery-load-more {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0.25rem;
}

.sg-gallery-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

body.guest-gallery-page .sg-collage.wd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.8rem;
  width: 100%;
  max-width: none;
  margin: 0.65rem auto 0;
  padding: 0.35rem 0 0.85rem;
  justify-items: stretch;
  align-items: start;
}

body.guest-gallery-page .sg-collage.wd-gallery-grid:empty,
body.guest-gallery-page .sg-collage.wd-gallery-grid:not(:has(.wd-gallery-item:not(.is-filter-hidden))) {
  display: none;
}

/* Polaroid cards */
body.guest-gallery-page .sg-collage .wd-gallery-item {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0.28rem;
  border: 0;
  background: #fffcf7;
  box-shadow:
    0 0.7rem 1.45rem rgba(47, 36, 53, 0.11),
    0 0.12rem 0.3rem rgba(47, 36, 53, 0.05);
  overflow: visible;
  padding: 0.55rem 0.55rem 0.95rem;
  margin: 0;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

body.guest-gallery-page .sg-collage .wd-gallery-item.is-filter-hidden {
  display: none !important;
}

body.guest-gallery-page .sg-collage .wd-gallery-item--video {
  background:
    linear-gradient(180deg, #fffdf9 0%, #f7f1f8 100%);
  padding-bottom: 1rem;
}

body.guest-gallery-page .sg-polaroid-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gallery-cream);
  border-radius: 0.1rem;
}

body.guest-gallery-page .sg-polaroid-media--video {
  background:
    radial-gradient(circle at 50% 38%, rgba(180, 154, 177, 0.42), transparent 58%),
    linear-gradient(165deg, #4a3556 0%, #2f2435 100%);
}

body.guest-gallery-page .sg-collage .wd-gallery-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

body.guest-gallery-page .sg-collage .wd-gallery-item img,
body.guest-gallery-page .sg-collage .wd-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

body.guest-gallery-page .sg-collage .wd-gallery-item--video video {
  object-fit: cover;
  background: transparent;
}

body.guest-gallery-page .sg-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 2.85rem;
  height: 2.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--gallery-plum);
  box-shadow: 0 0.45rem 1rem rgba(47, 36, 53, 0.22);
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

body.guest-gallery-page .sg-video-play:hover,
body.guest-gallery-page .sg-video-play:focus-visible {
  background: #fff;
  transform: scale(1.05);
}

body.guest-gallery-page .sg-polaroid-media--video.is-playing .sg-video-play {
  opacity: 0;
  pointer-events: none;
}

body.guest-gallery-page .sg-polaroid-media--video.is-playing .sg-video-badge,
body.guest-gallery-page .sg-polaroid-media--video.is-playing .sg-video-duration,
body.guest-gallery-page .sg-polaroid-media--video.is-playing::after {
  opacity: 0;
}

body.guest-gallery-page .sg-polaroid-meta {
  margin: 0.55rem 0.1rem 0;
  text-align: center;
}

body.guest-gallery-page .sg-polaroid-caption,
body.guest-gallery-page .sg-polaroid-uploader {
  margin: 0;
  color: var(--gallery-muted);
  font-family: var(--gallery-font-body);
  font-style: italic;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.guest-gallery-page .sg-polaroid-caption {
  color: var(--gallery-plum-soft);
  font-style: normal;
  font-size: 0.76rem;
}

body.guest-gallery-page .sg-polaroid-uploader {
  margin-top: 0.12rem;
  font-size: 0.7rem;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 1) {
    transform: rotate(-1.6deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 2) {
    transform: rotate(1.2deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 3) {
    transform: rotate(-0.9deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 4) {
    transform: rotate(1.5deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 5) {
    transform: rotate(-1.2deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 6) {
    transform: rotate(0.9deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 7) {
    transform: rotate(-0.7deg);
  }
  body.guest-gallery-page .sg-collage .wd-gallery-item:nth-child(8n + 8) {
    transform: rotate(1.35deg);
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item:hover {
    z-index: 2;
    transform: rotate(0deg) translateY(-0.35rem) scale(1.035);
    box-shadow:
      0 1.2rem 2.1rem rgba(47, 36, 53, 0.16),
      0 0.25rem 0.55rem rgba(47, 36, 53, 0.08);
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item:hover img {
    transform: scale(1.03);
  }
}

/* ── Empty state ── */

.sg-empty {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
}

.sg-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(180, 154, 177, 0.14);
  color: var(--gallery-plum-soft);
}

.sg-empty-title {
  margin: 0;
  color: var(--gallery-plum);
  font-family: var(--gallery-font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.sg-empty-cta {
  margin: 0.4rem 0 0;
  color: var(--gallery-muted);
  font-family: var(--gallery-font-body);
  font-size: 0.98rem;
  font-style: italic;
}

/* ── Footer CTA ── */

.sg-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  margin-top: 2.15rem;
  text-align: center;
}

/* ── Gallery grid breakpoints ── */

@media (min-width: 768px) {
  body.guest-gallery-page .sg-collage.wd-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem 0.95rem;
    padding: 0.7rem 0.1rem 1.15rem;
    justify-items: center;
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item {
    max-width: 13.5rem;
  }

  .sg-gallery-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem 0.95rem;
  }
}

@media (min-width: 1100px) {
  .sg-frame {
    max-width: 68rem;
  }

  .sg-hero,
  .sg-header {
    max-width: 42rem;
    margin-inline: auto;
  }

  body.guest-gallery-page .sg-collage.wd-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem 1.05rem;
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item {
    max-width: 13.75rem;
  }

  .sg-gallery-skeleton {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem 1.05rem;
  }
}

@media (min-width: 1400px) {
  .sg-frame {
    max-width: 74rem;
  }

  body.guest-gallery-page .sg-collage.wd-gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem 1.1rem;
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item {
    max-width: 13.25rem;
  }

  .sg-gallery-skeleton {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem 1.1rem;
  }
}

/* ── Mobile: clean grid, no tilt ── */

@media (max-width: 767.98px) {
  .sg-frame {
    border-radius: 1.25rem;
    padding: 1.45rem 1rem 1.85rem;
  }

  .guest-gallery-floral--left {
    top: -1.65rem;
    left: -4.55rem;
    width: clamp(5.6rem, 36vw, 7.35rem);
    opacity: 0.46;
  }

  .guest-gallery-floral--right {
    top: -0.85rem;
    right: -4.85rem;
    width: clamp(4.85rem, 32vw, 6.5rem);
    opacity: 0.4;
    transform: rotate(9deg);
  }

  .guest-gallery-ornaments {
    display: none;
  }

  body.guest-gallery-page .sg-collage.wd-gallery-grid {
    gap: 0.85rem;
    padding: 0;
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    transform: none !important;
  }

  .sg-upload-actions {
    max-width: none;
  }
}

@media (max-width: 379.98px) {
  body.guest-gallery-page .sg-collage.wd-gallery-grid {
    grid-template-columns: 1fr;
    max-width: 16rem;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.guest-gallery-page .sg-collage .wd-gallery-item,
  body.guest-gallery-page .sg-collage .wd-gallery-item img,
  .sg-btn {
    transition: none;
  }

  body.guest-gallery-page .sg-collage .wd-gallery-item {
    transform: none !important;
  }
}

/* ── Desktop camera modal ── */

body.guest-gallery-page .sg-camera-modal .modal-content,
.sg-camera-modal-content {
  border: 1px solid var(--gallery-border, rgba(75, 47, 89, 0.14));
  border-radius: 1.25rem;
  background: var(--gallery-surface, #fffdf8);
  box-shadow: 0 1.25rem 2.8rem rgba(47, 36, 53, 0.16);
  color: var(--gallery-text, #2f2435);
}

.sg-camera-modal-title {
  margin: 0;
  color: var(--gallery-plum, #4b2f59);
  font-family: var(--gallery-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.sg-camera-preview-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(180, 154, 177, 0.28), transparent 55%),
    #2f2435;
  aspect-ratio: 16 / 10;
}

.sg-camera-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #2f2435;
}

.sg-camera-status {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 253, 248, 0.94);
  color: var(--gallery-plum-soft, #6f557a);
  font-size: 0.88rem;
  text-align: center;
}

.sg-camera-status.is-error {
  color: #7a3d4a;
  background: rgba(255, 248, 248, 0.96);
}

.sg-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}

.sg-camera-actions .sg-btn {
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
}

@media (max-width: 575.98px) {
  .sg-camera-actions {
    flex-direction: column;
  }

  .sg-camera-actions .sg-btn {
    width: 100%;
  }

  .sg-camera-preview-wrap {
    aspect-ratio: 3 / 4;
  }
}

/* ── Android camera choice sheet ── */

.sg-android-camera-sheet .modal-dialog {
  max-width: 22rem;
  margin: 1.25rem auto;
}

.sg-android-camera-sheet-content {
  border: 1px solid var(--gallery-border, rgba(75, 47, 89, 0.14));
  border-radius: 1.15rem;
  background: var(--gallery-surface, #fffdf8);
  box-shadow: 0 1rem 2.4rem rgba(47, 36, 53, 0.14);
  color: var(--gallery-text, #2f2435);
}

.sg-android-camera-sheet-title {
  margin: 0;
  width: 100%;
  color: var(--gallery-plum, #4b2f59);
  font-family: var(--gallery-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 500;
  text-align: center;
}

.sg-android-camera-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sg-android-camera-actions .sg-btn {
  width: 100%;
}

/* ── Media filter tabs ── */

.sg-media-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  position: relative;
  z-index: 1;
}

.sg-media-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(75, 47, 89, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--gallery-plum-soft);
  font-family: var(--font-app-heading, "Cinzel", Georgia, serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sg-media-tab:hover,
.sg-media-tab:focus-visible {
  border-color: rgba(75, 47, 89, 0.32);
  background: var(--gallery-lilac);
  color: var(--gallery-plum);
}

.sg-media-tab.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, #5a3a68 0%, var(--gallery-plum) 100%);
  color: #fffdf8;
  box-shadow: 0 0.45rem 1rem rgba(75, 47, 89, 0.22);
}

.sg-media-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.22);
  font-size: 0.68rem;
  letter-spacing: 0;
}

.sg-media-tab:not(.is-active) .sg-media-tab-count {
  background: rgba(180, 154, 177, 0.2);
  color: var(--gallery-plum);
}

/* ── Loading skeleton ── */

.sg-gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 0.8rem;
  width: 100%;
  max-width: none;
  margin: 0.35rem auto 1rem;
}

.sg-gallery-skeleton[hidden],
.sg-gallery-end[hidden],
.sg-empty[hidden],
.sg-gallery-load-more[hidden] {
  display: none !important;
}

.sg-skeleton-card {
  aspect-ratio: 4 / 5;
  border-radius: 0.28rem;
  background:
    linear-gradient(90deg, rgba(238, 232, 243, 0.45) 0%, rgba(255, 253, 248, 0.92) 48%, rgba(238, 232, 243, 0.45) 100%);
  background-size: 180% 100%;
  animation: sg-skeleton-shimmer 1.4s ease-in-out infinite;
  box-shadow: 0 0.45rem 1rem rgba(47, 36, 53, 0.06);
}

@keyframes sg-skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -80% 0; }
}

.sg-gallery-end {
  margin: 0.85rem auto 0;
  max-width: 22rem;
  color: var(--gallery-plum-soft);
  font-family: var(--gallery-font-body);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}

.sg-load-more-btn {
  min-height: 2.85rem;
  padding: 0.7rem 1.45rem;
}

body.guest-gallery-page .sg-collage[data-filter="video"] .wd-gallery-item--video {
  width: 100%;
}

body.guest-gallery-page .sg-video-badge,
body.guest-gallery-page .sg-video-duration {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--font-app-heading, "Cinzel", Georgia, serif);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

body.guest-gallery-page .sg-video-badge {
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.22rem 0.5rem;
  background: rgba(47, 36, 53, 0.72);
  color: #fffdf8;
}

body.guest-gallery-page .sg-video-duration {
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.18rem 0.45rem;
  background: rgba(255, 253, 248, 0.92);
  color: var(--gallery-plum);
}

body.guest-gallery-page .sg-polaroid-media--video::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2.15rem;
  background: linear-gradient(180deg, transparent, rgba(47, 36, 53, 0.28));
  pointer-events: none;
}

@media (min-width: 576px) {
  .sg-upload-actions {
    flex-direction: row;
    max-width: none;
  }

  .sg-upload-actions .sg-upload-btn {
    width: auto;
    flex: 1 1 0;
  }

  body.guest-gallery-page .sg-staging-area .wd-staging-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  body.guest-gallery-page .sg-staging-area .wd-staging-actions .sg-btn {
    width: auto;
  }
}

@media (max-width: 767.98px) {
  .sg-hero {
    padding: 1.25rem 1.05rem 0.2rem;
  }

  .sg-upload-card {
    padding: 1.15rem 0.9rem 1.2rem;
  }

  .sg-media-tabs {
    max-width: none;
    gap: 0.4rem;
  }

  .sg-media-tab {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 379.98px) {
  .sg-gallery-skeleton {
    grid-template-columns: 1fr;
    max-width: 16rem;
  }

  .sg-media-tabs {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-skeleton-card {
    animation: none;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .guest-gallery-floral--left {
    top: -2.25rem;
    left: -3.65rem;
    width: clamp(9.25rem, 22vw, 12.5rem);
    opacity: 0.7;
  }

  .guest-gallery-floral--right {
    top: -1.05rem;
    right: -4.05rem;
    width: clamp(7.85rem, 18vw, 10.75rem);
    opacity: 0.6;
    transform: rotate(8deg);
  }

  .guest-gallery-ornament--butterfly {
    opacity: 0.34;
  }
}


