/* ==========================================================
   ZUBALLO 1.0
   Global Styles
   Zuh-BALL-oh. We made up the word. We make the rules.
   ========================================================== */


/* ==========================================================
   1. BRAND / GLOBAL VARIABLES
   ========================================================== */

:root {
  --bg: #f7f9fb;
  --card: #ffffff;

  --text: #17222d;
  --muted: #687680;

  /* Zuballo brand colors */
  --accent: #087fc4;
  --accent-dark: #08428c;
  --teal: #13b8c4;
  --warm: #ff9f1c;
  --yellow: #ffc52c;

  --border: #e1e8ed;

  --success-bg: #eef8f5;
  --error-bg: #fff0f0;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  --shadow: 0 6px 24px rgba(0, 40, 75, .06);
}


/* ==========================================================
   2. RESET / BASE
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

small,
.muted {
  color: var(--muted);
}


/* ==========================================================
   3. BASIC LAYOUT
   ========================================================== */

.wrap {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
  padding: 24px;
}

.grid {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 16px;
}


/* ==========================================================
   4. BRAND
   ========================================================== */

.brand {
  font-size: 1.45rem;
  font-weight: 800;

  text-decoration: none;
}

.tag {
  color: var(--muted);
}

.event-brand {
  color: var(--accent);
}


/* ==========================================================
   5. CARDS
   ========================================================== */

.card {
  padding: 22px;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: var(--card);

  box-shadow: var(--shadow);
}


/* ==========================================================
   6. BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border: 0;
  border-radius: 12px;

  background: var(--accent);
  color: #fff;

  font: inherit;
  font-weight: 750;

  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform .15s ease,
    background .15s ease,
    opacity .15s ease,
    box-shadow .15s ease;
}

.btn:hover {
  background: var(--accent-dark);

  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: #eef2f5;
  color: var(--text);
}

.btn.secondary:hover {
  background: #e3e9ed;
}

.accent-outline {
  border: 2px solid var(--accent);

  background: #fff !important;
  color: var(--accent) !important;
}

.accent-outline:hover {
  background:
    color-mix(
      in srgb,
      var(--accent) 6%,
      white
    ) !important;
}


/* Disabled means disabled.
   Revolutionary technology. */

.btn:disabled,
.btn.disabled {
  background: #d5dce1;
  color: #8a969e;

  cursor: not-allowed;

  opacity: .72;

  box-shadow: none;
  transform: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
  background: #d5dce1;

  transform: none;
}


/* ==========================================================
   7. FORMS
   ========================================================== */

input,
textarea,
select {
  width: 100%;

  padding: 12px;

  border: 1px solid #cfd7dc;
  border-radius: var(--radius-sm);

  background: #fff;
  color: var(--text);

  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline:
    3px solid
    color-mix(
      in srgb,
      var(--accent) 18%,
      transparent
    );

  border-color: var(--accent);
}

label {
  display: block;

  margin-top: 14px;
  margin-bottom: 6px;

  font-weight: 700;
}


/* ==========================================================
   8. NOTICES
   ========================================================== */

.notice {
  margin: 12px 0;
  padding: 12px 14px;

  border-radius: var(--radius-sm);

  background: var(--success-bg);
}

.error {
  background: var(--error-bg);
}


/* ==========================================================
   9. GENERIC HERO
   ========================================================== */

.hero {
  padding: 42px 12px;

  text-align: center;
}

.hero h1 {
  margin: .1em 0;

  font-size: clamp(2rem, 7vw, 4.2rem);
}


/* ==========================================================
   10. EVENT PAGE
   ========================================================== */

.event-wrap,
.upload-wrap {
  max-width: 980px;
}

.event-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-bottom: 16px;
}

.beta-pill {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: #fff;

  color: var(--muted);

  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.polished-event-card {
  padding: 0;

  overflow: hidden;
}

.event-cover-wrap {
  background: #e9eef1;
}

.event-cover {
  display: block;

  width: 100%;
  max-height: 420px;

  margin: 0;

  object-fit: cover;

  border-radius: 0;
}

.event-content {
  padding: 26px;
}

.event-title {
  margin: 0 0 10px;

  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.03;
}

.event-description {
  max-width: 720px;

  font-size: 1.05rem;
  line-height: 1.6;
}

.event-accent-bar {
  width: 72px;
  height: 5px;

  margin: 0 0 18px;

  border-radius: 999px;

  background: var(--accent);
}

.event-card a:not(.btn) {
  color: var(--accent);
}

.event-note {
  padding-left: 12px;

  border-left: 4px solid var(--accent);
}

.primary-action {
  padding: 13px 20px;

  font-size: 1.03rem;
}

.upload-hint {
  margin: 12px 0;

  color: var(--muted);

  font-size: .92rem;
}


/* ==========================================================
   11. EVENT ACTIONS
   ========================================================== */

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 10px;

  margin-top: 18px;
}

.photo-count-badge {
  display: inline-flex;
  align-items: center;

  margin-top: 4px;
  padding: 7px 11px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 28%,
      white
    );

  border-radius: 999px;

  background:
    color-mix(
      in srgb,
      var(--accent) 12%,
      white
    );

  color: var(--accent);

  font-weight: 800;
}

.privacy-note {
  margin: 16px 0;
  padding: 12px 14px;

  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);

  background: #f7f9fa;
}

.password-form {
  max-width: 430px;
}

.lock-link {
  margin: 16px 0 0;

  font-size: .85rem;
}

.lock-link a {
  color: var(--muted) !important;
}


/* ==========================================================
   12. EVENT ACCENT PICKER
   ========================================================== */

.accent-display {
  display: flex;
  align-items: center;

  gap: 8px;

  margin: 8px 0;
}

.accent-swatch {
  display: inline-block;

  width: 18px;
  height: 18px;

  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;

  box-shadow: 0 0 0 2px #fff inset;
}

.accent-picker-row {
  display: flex;
  align-items: center;

  gap: 12px;
}

.accent-picker-row input[type="color"] {
  width: 62px;
  min-width: 62px;
  height: 44px;

  padding: 3px;

  cursor: pointer;
}

.accent-hex {
  padding: 8px 10px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: #f1f3f4;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;

  font-weight: 800;
}


/* Gallery photo count between event card and gallery */

.gallery-summary {
  margin: 14px 0 10px;
}


/* ==========================================================
   13. GALLERY
   ========================================================== */

.gallery {
  grid-template-columns:
    repeat(auto-fill, minmax(150px, 1fr));
}

.gallery img {
  display: block;

  width: 100%;

  aspect-ratio: 1 / 1;

  object-fit: cover;

  border-radius: var(--radius);
}

.photo-tile {
  display: block;

  width: 100%;

  padding: 0;

  border: 0;
  border-radius: var(--radius);

  background: transparent;

  cursor: pointer;

  overflow: hidden;
}

.photo-tile:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 3px;
}

.gallery-closed {
  border-top: 4px solid var(--accent);
}


/* ==========================================================
   14. LIGHTBOX / PHOTO VIEWER
   ========================================================== */

.lightbox {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 70px 64px 32px;

  background: rgba(9, 12, 14, .96);
  color: #fff;
}

.lightbox.open {
  display: flex;
}

.no-scroll {
  overflow: hidden;
}

.lightbox-top {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 16px;

  background: rgba(0, 0, 0, .45);

  font-weight: 700;
}

.lightbox-close {
  padding: 10px 13px;

  border: 0;
  border-radius: 10px;

  background: #fff;
  color: #111;

  font: inherit;
  font-weight: 800;

  cursor: pointer;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 14px;

  max-width: min(1100px, 100%);
  max-height: 100%;
}

.lightbox-stage img {
  display: block;

  max-width: 100%;
  max-height: calc(100vh - 165px);

  object-fit: contain;

  border-radius: 8px;
}

.lightbox-actions {
  min-height: 48px;
}

.lightbox-nav {
  position: absolute;

  top: 50%;

  width: 50px;
  height: 64px;

  transform: translateY(-50%);

  border: 0;
  border-radius: 14px;

  background: rgba(255, 255, 255, .14);
  color: #fff;

  font-size: 44px;
  line-height: 1;

  cursor: pointer;
}

.lightbox-nav.prev {
  left: 10px;
}

.lightbox-nav.next {
  right: 10px;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, .24);
}


/* ==========================================================
   15. UPLOAD EXPERIENCE
   ========================================================== */

.upload-card {
  max-width: 720px;

  margin: 0 auto;

  text-align: center;
}

.upload-icon {
  margin: 4px 0 12px;

  font-size: 3rem;
  line-height: 1;
}

.upload-card h1 {
  margin: 0 0 8px;

  font-size: clamp(2rem, 6vw, 3rem);
}

.pretty-upload-form {
  margin-top: 22px;
}

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  min-height: 150px;

  padding: 24px;

  border:
    2px dashed
    color-mix(
      in srgb,
      var(--accent) 42%,
      #ccd3d6
    );

  border-radius: var(--radius-lg);

  background:
    color-mix(
      in srgb,
      var(--accent) 5%,
      white
    );

  cursor: pointer;

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.file-drop:hover {
  transform: translateY(-1px);

  border-color: var(--accent);

  background:
    color-mix(
      in srgb,
      var(--accent) 8%,
      white
    );
}

.file-drop-title {
  color: var(--accent);

  font-size: 1.15rem;
  font-weight: 850;
}

.file-drop-sub {
  color: var(--muted);

  font-size: .9rem;
}

.visually-hidden-file {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  opacity: 0 !important;

  pointer-events: none;
}

.selected-text {
  margin: 10px 0 0;
}

.upload-queue {
  margin-top: 22px;
  padding: 18px;

  border-radius: 16px;

  background: #f7f9fa;

  text-align: left;
}

.queue-head {
  display: flex;
  justify-content: space-between;

  gap: 16px;
}

.queue-track {
  height: 12px;

  margin-top: 9px;

  border-radius: 999px;

  background: #e5e8ea;

  overflow: hidden;
}

.queue-bar {
  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--accent),
      var(--teal)
    );

  transition: width .2s;
}

.queue-list {
  display: grid;

  gap: 5px;

  margin-top: 12px;
}

.upload-footnote {
  margin-top: 18px;

  font-size: .86rem;
}


/* ==========================================================
   16. PUBLIC FOOTER
   ========================================================== */

.public-beta-footer {
  display: grid;

  gap: 3px;

  margin: 28px auto 6px;
  padding: 18px;

  color: var(--muted);

  font-size: .88rem;
  text-align: center;
}

.public-beta-footer strong {
  color: var(--text);
}

.public-beta-footer a {
  color: var(--accent);

  font-weight: 800;
  text-decoration: none;
}


/* ==========================================================
   17. HOMEPAGE
   ========================================================== */

.home-wrap {
  max-width: 1400px;
}

.home-hero {
  width: 100%;
  padding: 24px 10px 36px;
  text-align: center;
  overflow: hidden;
}


/* Zuballo master logo */

.home-logo {
  display: block;

  width: min(100%, 700px);
  height: auto;

  margin: 0 auto 28px;
}

.home-brand {
  display: inline-block;

  margin-right: 8px;
}

.home-hero h1 {
  margin: .28em 0 .2em;

  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: .94;

  letter-spacing: -.045em;
}

.home-lead {
  max-width: 900px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 1.15rem;
  line-height: 1.6;
}


/* Homepage pricing promise */

.home-price-block {
  max-width: 650px;

  margin: 26px auto 0;
  padding: 20px 22px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--accent) 18%,
      white
    );

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      color-mix(
        in srgb,
        var(--accent) 7%,
        white
      ),
      color-mix(
        in srgb,
        var(--teal) 5%,
        white
      )
    );
}

.home-price-line {
  margin: 0;

  color: var(--accent-dark);

  font-size: 1.18rem;
}

.home-price-line strong {
  font-weight: 900;
}

.home-price-sub {
  margin: 5px 0 0;

  font-size: 1.04rem;
  font-weight: 750;
}

.home-price-snark {
  margin: 9px 0 0;

  color: var(--muted);

  font-size: .92rem;
  font-style: italic;
}


/* Homepage features */

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  margin: 18px 0;
}

.home-feature {
  padding: 20px;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background: #fff;

  box-shadow:
    0 4px 16px
    rgba(0, 40, 75, .025);
}

.home-feature > span {
  font-size: 1.7rem;
}

.home-feature strong {
  display: block;

  margin: 8px 0 5px;

  font-size: 1.02rem;
}

.home-feature p {
  margin: 0;

  color: var(--muted);

  line-height: 1.5;
}


/* Homepage development / release card */

.home-beta {
  margin-top: 24px;

  text-align: center;
}

.home-beta h2 {
  margin-top: 0;
}

.home-beta a {
  color: var(--accent);

  font-weight: 800;
  text-decoration: none;
}

.home-beta a:hover {
  text-decoration: underline;
}

.home-beta span {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: .82rem;
}


/* Pronunciation Easter egg */

.home-pronounce {
  max-width: 600px;

  margin: 28px auto 10px;
  padding: 18px;

  color: var(--muted);

  text-align: center;
}

.home-pronounce p {
  margin: 0 0 4px;
}

.home-pronounce strong {
  color: var(--text);
}

.home-pronounce small {
  font-style: italic;
}

/* Homepage top navigation */

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
    padding: 18px 4px 0;
}

.home-topbar-brand {
    color: var(--accent-dark);

    font-size: 1.05rem;
    font-weight: 900;
    text-decoration: none;
}

.home-login-btn {
    padding: 9px 14px;
    font-size: .9rem;
}

/* ==========================================================
   18. SYSTEM ADMIN
   ========================================================== */

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
    margin-bottom: 24px;
}

.admin-header h1 {
    margin: 8px 0 2px;

    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.admin-header .tag {
    margin: 8px 0 0;
}

.admin-header > .btn {
    flex: 0 0 auto;
}

.admin-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;
}

.admin-actions .btn {
  padding: 8px 10px;

  border-radius: 9px;

  font-size: .78rem;
  line-height: 1.05;

  white-space: nowrap;
}

/* System Administration — event details */

.admin-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;

    margin: 10px 0 14px;

    color: var(--muted);
    font-size: .92rem;
}

.admin-event-meta strong {
    color: var(--text);
}

/* ==========================================================
   ADMIN — CUSTOMER INVITATIONS
   ========================================================== */

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.invite-result {
  margin-top: 22px;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: #f8fafb;
}

.invite-copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.invite-copy-row input {
  margin: 0;
}

.invite-list {
  display: grid;
  gap: 10px;
}

.invite-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: #fff;
}

.invite-status {
  flex: 0 0 auto;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.invite-status-pending {
  background: #fff3cd;
}

.invite-status-used {
  background: #dff5e7;
}

.invite-status-expired {
  background: #eceff1;
  color: var(--muted);
}


@media (max-width: 720px) {

  .invite-copy-row {
    grid-template-columns: 1fr;
  }

  .invite-copy-row .btn {
    width: 100%;
  }

  .invite-list-item {
    align-items: flex-start;
  }

}

/* ==========================================================
   ADMIN — EVENT TIMELINE
   ========================================================== */

.event-timeline {
  margin: 8px 0 24px;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: #f8fafb;
}

.event-timeline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 16px;
}

.event-timeline-heading h2 {
  margin: 8px 0 0;
  font-size: 1.25rem;
}

.event-timeline-heading p {
  margin: 0;
}

.event-timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.event-timeline-item {
  display: flex;
  gap: 10px;

  padding: 13px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: #fff;
}

.event-timeline-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.event-timeline-item strong,
.event-timeline-item span,
.event-timeline-item small {
  display: block;
}

.event-timeline-item strong {
  margin-bottom: 4px;
  font-size: .8rem;
}

.event-timeline-item div > span {
  font-weight: 800;
}

.event-timeline-item small {
  margin-top: 4px;

  color: var(--muted);

  font-size: .72rem;
  line-height: 1.3;
}


/* Mobile */

@media (max-width: 720px) {

  .event-timeline-heading {
    display: block;
  }

  .event-timeline-heading p {
    margin-top: 8px;
  }

  .event-timeline-grid {
    grid-template-columns: 1fr;
  }

  .event-timeline-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 10px;
  }

  .event-timeline-icon {
    display: block;
    width: 32px;
    margin: 0;
    text-align: center;
    font-size: 1.35rem;
  }

  .event-timeline-item > div {
    min-width: 0;
  }

}

@media screen and (max-width: 720px) {

/* System Administration */

.admin-header {
    gap: 12px;
    margin-bottom: 20px;
}

.admin-header > .btn {
    padding: 10px 13px;
}
.home-topbar {
    padding: 12px 0 0;
}

.home-login-btn {
    padding: 9px 12px;
}

} /* end max-width: 720px system-admin/mobile header rules */


/* ==========================================================
   19. MY ZUBALLO — EVENT ACTIONS
   ========================================================== */

.my-event-actions {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  align-items: stretch;
  width: 100%;
  gap: 10px;

  margin-top: 18px;
}

.my-event-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  min-height: 52px;

  margin: 0;
  padding: 10px 12px;

  box-sizing: border-box;

  line-height: 1.15;
  text-align: center;

  white-space: nowrap;
}

/* =========================================================
   MY ZUBALLO — CUSTOMER DASHBOARD
   ========================================================= */

.my-dashboard-heading {
    margin-bottom: 22px;
}

.my-dashboard-heading h1 {
    margin: 10px 0 4px;
}

.my-dashboard-heading p {
    margin: 0;
}

.my-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: #fff;
}

.my-event-info {
    min-width: 0;
}

.my-event-info h2 {
    margin: 0 0 6px;
}

.my-event-info p {
    margin: 0;
}

.my-dashboard-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;

    gap: 8px;
}

.my-dashboard-actions .btn {
    white-space: nowrap;
}

/* ==========================================================
   20. MY ZUBALLO — SETTINGS
   ========================================================== */

.my-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-bottom: 18px;
}

.my-page-back {
  min-width: 0;

  text-decoration: none;
}

.my-signout {
  flex: 0 0 auto;
}

.my-settings-card {
  max-width: 900px;
}

.my-settings-heading {
  margin-bottom: 24px;
}

.my-settings-heading h1 {
  margin: 10px 0 4px;

  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.my-settings-heading p {
  margin: 0;
}


/* Settings sections */

.my-settings-section {
  margin: 22px 0;
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: #f8fafb;
}

.my-settings-section h2 {
  margin: 0 0 6px;

  font-size: 1.2rem;
}

.my-settings-section > p {
  margin: 0 0 14px;
}

/* ==========================================================
   LOGIN
   ========================================================== */

.login-page-wrap {
  width: 100%;
  max-width: 480px;
  margin: 42px auto 0;
}

.login-back {
  display: inline-block;
  margin-bottom: 4px;
}


/* Save area */

.my-settings-save {
  display: flex;
  justify-content: flex-end;

  margin: 24px 0 0;
}

.my-settings-save .btn {
  min-width: 160px;
}


/* ==========================================================
   21. SLIDESHOW / TV MODE
   ========================================================== */

.slideshow-page {
  overflow: hidden;

  background: #000;
  color: #fff;
}

.slideshow-shell {
  position: fixed;
  inset: 0;

  background: #000;
}

.slideshow-stage {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
}

.slideshow-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  opacity: 0;

  background: #000;

  transition: opacity .8s ease;
}

.slideshow-image.active {
  opacity: 1;
}

.slideshow-header {
  position: absolute;

  z-index: 5;

  top: 0;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  padding: 12px 16px;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .78),
      rgba(0, 0, 0, 0)
    );

  font-size: 1rem;
}

.slideshow-header span {
  opacity: .75;
}

.slideshow-header-actions {
  display: flex;
  align-items: center;

  gap: 10px;
}

.slideshow-header button {
  padding: 9px 12px;

  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 10px;

  background: rgba(0, 0, 0, .42);
  color: #fff;

  font: inherit;
  font-weight: 700;

  cursor: pointer;
}

.slideshow-footer {
  position: absolute;

  z-index: 5;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 22px 12px 10px;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, .72),
      rgba(0, 0, 0, 0)
    );

  font-size: .9rem;
  text-align: center;

  opacity: .8;
}

.slideshow-empty {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  color: #fff;

  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
}

.slideshow-page:fullscreen .slideshow-header,
.slideshow-page:fullscreen .slideshow-footer {
  opacity: .22;

  transition: opacity .25s;
}

.slideshow-page:fullscreen .slideshow-header:hover,
.slideshow-page:fullscreen .slideshow-footer:hover {
  opacity: 1;
}


/* ==========================================================
   22. RELEASE NOTES
   ========================================================== */

.release-notes-page {
  width: min(920px, calc(100% - 32px));

  margin: 0 auto;
  padding: 42px 0 70px;
}

.release-notes-page > header {
  margin-bottom: 32px;
}

.release-notes-page > header .home-topbar-brand {
  display: inline-block;
}

.release-hero {
  margin-bottom: 32px;
  text-align: center;
}

.release-brand {
  color: var(--accent-dark);

  font-weight: 800;
  text-decoration: none;
}

.release-kicker {
  display: table;

  margin: 28px auto 12px;
  padding: 7px 13px;

  border: 1px solid
    color-mix(in srgb, var(--accent) 25%, white);

  border-radius: 999px;

  background:
    color-mix(in srgb, var(--accent) 8%, white);

  color: var(--accent-dark);

  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.release-hero h1 {
  margin: 0 0 12px;

  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: .98;
}

.release-subtitle {
  max-width: 720px;
  margin: 0 auto;

  color: var(--muted);

  font-size: 1.05rem;
  line-height: 1.65;
}

.release-list {
  display: grid;

  gap: 16px;
}

.release-card {
  padding: 22px;

  border: 1px solid rgba(127, 127, 127, .22);
  border-radius: var(--radius-lg);

  background: rgba(127, 127, 127, .055);
}

.release-current {
  border:
    2px solid
    color-mix(
      in srgb,
      var(--accent) 50%,
      white
    );

  background:
    color-mix(
      in srgb,
      var(--accent) 4%,
      white
    );
}

.release-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 12px 24px;
}

.release-heading h2 {
  margin: 0;

  font-size: 1.18rem;
}

.release-heading h2 span {
  font-weight: 500;

  opacity: .7;
}

.release-heading time {
  font-size: .85rem;

  opacity: .65;
}

.release-card ul {
  margin: 16px 0 0;
  padding-left: 1.25rem;

  line-height: 1.65;
}

.release-aside {
  margin: 18px 0 0;
  padding-top: 14px;

  border-top: 1px solid rgba(127, 127, 127, .2);

  font-style: italic;

  opacity: .75;
}

.release-footer {
  padding-top: 30px;
}


/* ==========================================================
   23. TABLET / SMALL LAPTOP
   ========================================================== */

@media screen and (max-width: 900px) {

  .admin-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 9vw, 5rem);
  }

}


/* ==========================================================
   24. MOBILE
   ========================================================== */

@media screen and (max-width: 720px) {


  /* --------------------------------------------------------
     General
     -------------------------------------------------------- */

  .wrap {
    padding: 14px;
  }


  /* --------------------------------------------------------
     Homepage
     -------------------------------------------------------- */

  .home-hero {
    padding: 34px 2px 26px;
  }

  .home-logo {
    width: 92%;
    max-width: 520px;

    margin: 0 auto 22px;
  }

  .home-hero h1 {
    margin-top: .35em;

    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: .96;

    letter-spacing: -.035em;
  }

  .home-lead {
    padding: 0 6px;

    font-size: 1.05rem;
  }

  .home-price-block {
    margin-top: 22px;
    padding: 18px 14px;
  }

  .home-price-line {
    font-size: 1.08rem;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }


  /* --------------------------------------------------------
     Public Event Page
     -------------------------------------------------------- */

  .polished-event-card {
    height: auto;
    min-height: 0;

    padding: 0;

    border-radius: 18px;

    overflow: hidden;
  }

  .polished-event-card .event-cover-wrap {
    width: 100%;
    height: 170px;
    max-height: 170px;

    overflow: hidden;

    border-radius: 18px 18px 0 0;
  }

  .polished-event-card .event-cover {
    display: block;

    width: 100%;
    height: 170px;
    max-height: 170px;

    margin: 0;

    object-fit: cover;
    object-position: center;

    border-radius: 0;
  }


  /*
   * This is the spacing we settled on:
   * top 18px
   * sides 16px
   * bottom 2px
   */

  .polished-event-card .event-content {
    height: auto;
    min-height: 0;

    padding: 18px 16px 2px;
  }

  .polished-event-card .event-accent-bar {
    margin: 0 0 14px;
  }

  .polished-event-card .event-title {
    margin: 0 0 8px;

    line-height: 1;
  }

  .polished-event-card .event-description {
    margin: 0 0 14px;

    line-height: 1.45;
  }

  .polished-event-card .event-actions {
    height: auto;
    min-height: 0;

    margin-top: 12px;
    margin-bottom: 0;

    gap: 8px;
  }

  .polished-event-card .event-actions .btn {
    width: 100%;
    min-height: 0;

    padding: 11px 14px;
  }

  .polished-event-card .upload-hint {
    margin: 10px 0 0;
    padding: 0;

    line-height: 1.35;
  }

  .polished-event-card .photo-count-badge {
    margin: 0;

    padding: 6px 10px;
  }

  .polished-event-card .lock-link {
    margin: 10px 0 0;
  }

  .gallery-summary {
    margin: 12px 2px 10px;
  }


  /* --------------------------------------------------------
     My Zuballo Event Actions
     2 × 2 on normal phones
     -------------------------------------------------------- */

  .my-event-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
  }

  .my-event-actions .btn {
        width: 100%;

        height: 52px;

        min-height: 52px;

        margin: 0;

        align-items: center;

        justify-content: center;

        text-align: center;
  }

.my-event-card {
    display: block;
}

.my-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
    margin-top: 16px;
}

.my-dashboard-actions .btn {
    width: 100%;
}

  /* --------------------------------------------------------
     My Zuballo Settings
     -------------------------------------------------------- */

  .my-page-header {
    gap: 10px;
  }

  .my-page-back {
    font-size: 1.25rem;
  }

  .my-signout {
    padding: 10px 13px;
  }

  .my-settings-card {
    padding: 18px 16px;
  }

  .my-settings-heading {
    margin-bottom: 20px;
  }

  .my-settings-heading h1 {
    font-size: 2rem;
  }

  .my-settings-section {
    margin: 18px 0;
    padding: 16px;
  }

  .my-settings-save {
    display: block;
  }

  .my-settings-save .btn {
    width: 100%;
  }


  /* --------------------------------------------------------
     Upload
     -------------------------------------------------------- */

  .upload-card {
    padding: 20px 16px;
  }


  /* --------------------------------------------------------
     Lightbox
     -------------------------------------------------------- */

  .lightbox {
    padding: 64px 8px 18px;
  }

  .lightbox-stage img {
    max-height: calc(100vh - 155px);

    border-radius: 4px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;

    z-index: 2;

    width: 48px;
    height: 48px;

    transform: none;

    font-size: 36px;
  }

  .lightbox-nav.prev {
    left: 10px;
  }

  .lightbox-nav.next {
    right: 10px;
  }

  .lightbox-actions .btn {
    padding: 11px 14px;
  }

  .lightbox-top {
    min-height: 62px;

    padding-top:
      max(
        10px,
        env(safe-area-inset-top)
      );
  }


  /* --------------------------------------------------------
     Slideshow
     -------------------------------------------------------- */

  .slideshow-header {
    align-items: flex-start;

    font-size: .9rem;
  }

  .slideshow-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .slideshow-header button {
    padding: 8px 10px;
  }

  .slideshow-footer {
    font-size: .8rem;
  }

}


/* ==========================================================
   25. SMALL MOBILE
   ========================================================== */

@media screen and (max-width: 480px) {

  .home-logo {
    width: 94%;
  }

  .home-hero h1 {
    font-size:
      clamp(
        2.25rem,
        11.5vw,
        2.85rem
      );
  }

  .home-hero h1 {
    white-space: nowrap;
  }

  .home-price-snark {
    font-size: .88rem;
  }

  .card {
    padding: 18px;
  }


  /*
   * Public event card must remain padding:0.
   * Otherwise the generic .card mobile rule above
   * adds space around the cover image.
   */

  .polished-event-card {
    padding: 0;
  }

  .event-title {
    font-size: 2rem;
  }

  .file-drop {
    min-height: 135px;

    padding: 20px 14px;
  }

}


/* ==========================================================
   26. VERY NARROW MOBILE
   ========================================================== */

@media screen and (max-width: 380px) {

  /*
   * If the phone becomes too narrow to comfortably
   * hold the 2 × 2 My Zuballo buttons, stack them.
   */

  .my-event-actions {
    grid-template-columns: 1fr;
  }

  .my-event-actions .btn {
    width: 100%;
  }

}


/* =========================================================
   FINAL — MY ZUBALLO DASHBOARD BUTTONS
   Keep this at the VERY BOTTOM of style.css
   ========================================================= */

.dashboard-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;

    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
}

.dashboard-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 10px !important;

    border: 0 !important;
    border-radius: 12px !important;

    font-family: inherit !important;
    font-size: 1rem !important;
    font-weight: 750 !important;
    line-height: 1 !important;

    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    box-sizing: border-box !important;
}

.dashboard-primary {
    background: var(--accent) !important;
    color: #fff !important;
}

.dashboard-secondary {
    background: #eef2f5 !important;
    color: var(--text) !important;
}


/* PHONE */

@media screen and (max-width: 720px) {

    .dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        column-gap: 12px !important;
        row-gap: 12px !important;
    }

    .dashboard-action {
        height: 54px !important;
        min-height: 54px !important;

        margin: 0 !important;
        padding: 0 8px !important;

        font-size: .95rem !important;
    }
    
    /* Homepage top Zuballo link — mobile */
    
    .home-topbar-brand {
      font-size: 1rem;
      padding: 8px 11px;
      white-space: nowrap;
    }
    
  .login-page-wrap {
    margin-top: 18px;
  }

  .home-topbar-brand.login-back {
    font-size: 1rem;
    padding: 0;
    margin-bottom: 10px;
    white-space: nowrap;
  }
  
  /* Admin event cards */

  .admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 12px;
  }

  .admin-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
    font-size: .8rem;
    text-align: center;
    white-space: nowrap;
  }

  /* Last button spans the row when there are 5 */
  
  .admin-actions .btn:last-child {
    grid-column: 1 / -1;
  }
}


/* TINY PHONE */

@media screen and (max-width: 360px) {

    .dashboard-actions {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================
   ADMIN ACTIONS — MOBILE FINAL
   ========================================================== */

@media screen and (max-width: 720px) {

  .card .admin-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;

    margin-top: 14px !important;
  }

  .card .admin-actions .btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 10px 8px !important;

    font-size: .8rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

}
