body.mode-guest {
  background: #fcf8f5;
  color: #2d2031;
}
.mode-guest .top {
  justify-content: space-between;
  background: #fffdfbee;
}
.mode-guest .evm-guest-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  min-height: 332px;
  overflow: hidden;
  color: #fff;
  background: #38213e;
  padding: clamp(20px, 5vw, 52px);
}
.evm-guest-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #25122df7, #321a3e80 68%, #321a3e26);
}
.evm-hero-image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 46%;
}
.mode-guest .evm-guest-hero .eyebrow,
.mode-guest .evm-guest-hero p,
.mode-guest .evm-guest-hero h1 {
  color: #fff;
}
.mode-guest .evm-guest-hero h1 {
  font-size: clamp(32px, 6vw, 68px);
  max-width: 18ch;
  margin: 9px 0;
  overflow-wrap: anywhere;
}
.evm-guest-hero .toolbar { margin: 10px 0 15px; }
.mode-guest .evm-guest-hero .stat {
  color: #fff;
  background: #3a214bc9;
  border: 1px solid #fff5;
}
.mode-guest button.evm-hero-cta,
.mode-guest .mobile-nav .nav-upload,
.mode-host #upload [type=submit],
.mode-guest #upload [type=submit] {
  background: #ac175c !important;
  color: #fff !important;
  font-weight: 750;
}
.mode-guest button.evm-hero-cta { box-shadow: 0 8px 25px #180a2a60; }
.mode-guest .mobile-nav button[aria-current="page"] { color: #86134a; }
.mode-guest button:disabled,
.mode-host button:disabled { cursor: default; opacity: .58; }
.mode-guest .album-side picture img { aspect-ratio: 4 / 3; }
.evm-gallery-heading {
  padding: 2px 0 12px;
  scroll-margin-top: 85px;
}
.evm-gallery-heading .feed-toolbar h2 { margin: 0; }
.evm-gallery-heading .view-toggle button[aria-pressed="true"],
.evm-gallery-heading .media-filters button[aria-pressed="true"],
.evm-gallery-heading .filters button[aria-pressed="true"] {
  color: #83204e !important;
  background: #f9e3ed !important;
  border-color: #e7bdd0 !important;
}
.evm-gallery-heading .evm-bulk { margin: 4px 0 12px; }
.evm-gallery-heading .people { scrollbar-width: thin; }
.mode-guest .gallery.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.mode-guest .gallery.grid .photo {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 10px;
  margin: 0;
  overflow: hidden;
}
.mode-guest .gallery.grid .post-image,
.mode-guest .gallery.grid .post-image img,
.mode-guest .gallery.grid .post-image video {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
}
.evm-clip {
  position: relative;
  display: block;
  height: 100%;
  min-height: 80px;
  background: linear-gradient(140deg, #513850, #22172f);
}
.evm-clip video { width: 100%; display: block; }
.evm-clip > span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 7px;
  color: #fff;
  background: #2b172be8;
  border-radius: 8px;
  font-size: 12px;
}
.evm-host-hero .evm-hero-copy { max-width: 680px; }
.mode-host #feed { scroll-margin-top: 110px; }
.mode-host .share-box .toolbar h2 { margin: 0; }
#lightbox:has(.evm-viewer-top) {
  width: min(820px, calc(100% - 20px));
  max-height: 92dvh;
  margin: auto;
  padding: 12px;
  border: 0;
  border-radius: 24px;
  background: #201827;
  color: #fff;
  text-align: center;
}
.evm-viewer-top,
.evm-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#lightbox .evm-viewer-top button,
#lightbox .evm-viewer-nav button,
#lightbox #view-publication {
  position: static;
  min-height: 44px;
  min-width: 44px;
  color: #fff;
  background: #3e3047;
  border: 1px solid #796584;
}
#lightbox:has(.evm-viewer-top) img,
#lightbox:has(.evm-viewer-top) video {
  display: block;
  max-height: min(62dvh, 630px);
  width: 100%;
  margin: 6px auto;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
#lightbox img[hidden],
#lightbox video[hidden] { display: none !important; }
#lightbox #download-photo,
#lightbox #view-publication { margin: 8px 2px 0; }
.composer .upload-box {
  background: transparent;
  box-shadow: none;
  border: 0;
  margin: 0;
  padding: 0;
}
.evm-upload-intro {
  margin: 4px 0 14px;
  color: #645267;
  font-size: .9rem;
}
.evm-pickers {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.composer .evm-file-picker,
.composer .evm-camera {
  position: relative;
  display: grid;
  align-content: center;
  text-align: center;
  gap: 3px;
  margin: 0;
  min-height: 88px;
  border-radius: 16px;
  cursor: pointer;
}
.composer .evm-file-picker {
  flex: 1;
  color: #6c1b4b;
  background: #fcf0f7;
  border: 1px dashed #c274a0;
}
.composer .evm-camera {
  padding: 10px;
  color: #49324f;
  background: #f1eaf7;
  border: 1px solid #e1d6ea;
}
.evm-file-picker input,
.evm-camera input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.evm-file-picker:focus-within,
.evm-camera:focus-within { outline: 2px solid #8c2156; outline-offset: 2px; }
.evm-queue {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}
.evm-queue-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eddfeb;
}
.evm-queue-card img,
.evm-queue-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.composer .evm-queue-card button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: white;
  background: #36213bd9;
  border: 0;
  border-radius: 0 0 0 12px;
  font-size: 22px;
}
.evm-formats summary { font-size: .9rem; cursor: pointer; }
.evm-submit { padding-top: 9px; }
.evm-submit button { width: 100%; }
#file-feedback:empty { display: none; }
@media (max-width: 740px) {
  .mode-guest .evm-guest-hero { min-height: 268px; padding: 20px; margin-bottom: 17px; }
  .mode-guest .gallery.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mode-guest .gallery.feed { gap: 16px; }
  .evm-gallery-heading .feed-toolbar { gap: 4px; }
  .evm-gallery-heading .feed-toolbar h2 { font-size: clamp(19px, 5vw, 24px); }
  .mode-guest .mobile-nav { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  #upload-dialog.composer {
    width: 100%;
    max-width: 100%;
    max-height: 90dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  }
}
@media print {
  .mode-host .share-box .print-card img { print-color-adjust: exact; }
}
