/* Modern - the gallery fills the whole screen and the panels float above it as glass. */
:root {
  --bg: #070b14;
  --surface: rgba(8, 14, 26, .58);
  --border: rgba(255, 255, 255, .14);
  --accent: #f2c35b;
  --accent-soft: rgba(242, 195, 91, .18);
  --accent-grad: linear-gradient(150deg, #f5cd6b, #d99a22);
  --ticker-bg: rgba(5, 9, 18, .72);
  --overlay-bg: radial-gradient(circle at 50% 30%, #1b2a55 0%, #060a16 80%);
}

html, body { background: #070b14; }

/* The stage escapes the grid and becomes the background. */
.theme-modern .p-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #070b14;
}

/* The modern stage is the whole backdrop, so it always keeps its shading. */
.theme-modern .p-stage:not(.on-image) .stage-shade { display: block; }

.theme-modern .stage-shade {
  background:
    linear-gradient(180deg, rgba(5, 9, 18, .78) 0, rgba(5, 9, 18, .1) 24%, rgba(5, 9, 18, .1) 55%, rgba(5, 9, 18, .82) 100%),
    linear-gradient(90deg, rgba(5, 9, 18, .55) 0, transparent 30%, transparent 70%, rgba(5, 9, 18, .55) 100%);
}

/* Caption/dots sit in the clear middle column, above the ticker. */
.theme-modern .stage-caption {
  left: 31rem;
  right: 29rem;
  bottom: 6.2rem;
  text-align: center;
}

.theme-modern .stage-caption h3 { font-size: 2.4rem; }
.theme-modern .stage-dots { bottom: 4.9rem; }

.theme-modern .slide-quote { padding: 8rem 33rem 8rem; background: radial-gradient(circle at 50% 40%, rgba(27, 42, 85, .55) 0, transparent 60%); }
.theme-modern .quote-ar { font-size: 3.6rem; }

.theme-modern .p-prayers,
.theme-modern .info-card { --fade: rgba(8, 14, 26, .85); }

.theme-modern .clock-time,
.theme-modern .brand-text h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }

.theme-modern .p-header { padding-top: 1.8rem; }

@media (max-aspect-ratio: 1/1), (max-width: 900px) {
  .theme-modern .p-stage {
    position: relative;
    inset: auto;
    z-index: 1;
    border-radius: 1.4rem;
  }

  .theme-modern .stage-caption { left: 1.4rem; right: 1.4rem; bottom: 2.4rem; text-align: left; }
  .theme-modern .stage-dots { bottom: .8rem; }
  .theme-modern .slide-quote { padding: 2rem 1.6rem 3rem; }
}
