.attendee-photos,
.photo-album-card {
  --photos-text: #111827;
  --photos-muted: #6b7280;
  --photos-border: #e5e7eb;
  --photos-surface: #ffffff;
  --photos-soft: #f9fafb;
  --photos-tint: color-mix(in srgb, var(--event-app-primary, #1c64f2) 10%, #ffffff);
  --photos-stage: #15171c;
  color: var(--photos-text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.attendee-photos [hidden],
.photo-album-card [hidden] { display: none !important; }
.attendee-photos p:not(:where(.lexxy-content *)) { margin: 0; }
.attendee-photos a:not(:where(.lexxy-content *)) { text-decoration: none; }
.attendee-photos button,
.attendee-photos a,
.attendee-photos input,
.attendee-photos textarea,
.attendee-photos select { touch-action: manipulation; }
.attendee-photos :focus-visible { outline: 2px solid var(--event-app-primary, #1c64f2); outline-offset: 2px; }
.attendee-photos h1[tabindex="-1"]:focus,
.attendee-photos h2[tabindex="-1"]:focus { outline: none; }
.attendee-photos [role="status"]:empty { display: none; }
.attendee-photos :is(input, textarea, select) { font-size: 16px; max-width: 100%; }
.attendee-photos :is(button, input[type="submit"]) { cursor: pointer; }
.attendee-photos :disabled { cursor: default; opacity: .45; }
.attendee-photos h2:not(:where(.lexxy-content *)) { font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: #111827; }

.attendee-photos-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; container-type: inline-size; }
.attendee-photos .attendee-photos-browser { padding: .75rem; }
.attendee-photos-browser > .attendee-photos-stack { gap: .5rem; }
.attendee-photos-actions,
.attendee-photos-task-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.attendee-photos-actions > form,
.attendee-photos form.button_to { display: inline-flex; margin: 0; }
.attendee-photos-button,
.attendee-photos-primary,
.attendee-photos-icon {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 1px solid var(--photos-border);
  border-radius: .75rem;
  background: var(--photos-surface);
  color: #374151;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-align: center;
}
.attendee-photos-icon {
  min-width: 2.75rem;
  padding: .5rem;
  border-radius: 9999px;
  color: #4b5563;
}
.attendee-photos-primary {
  border-color: transparent;
  background: var(--event-app-primary, #1c64f2);
  color: var(--event-app-on-primary, #fff);
}
.attendee-photos-button[aria-current="page"] {
  border-color: transparent;
  background: var(--event-app-primary, #1c64f2);
  color: #fff;
}
.attendee-photos-muted { color: var(--photos-muted); font-size: .875rem; line-height: 1.5; }
.attendee-photos-notice {
  display: block;
  border-radius: .75rem;
  background: var(--photos-soft);
  color: #374151;
  padding: .75rem 1rem;
  font-size: .875rem;
  line-height: 1.5;
}
.attendee-photos-card {
  min-width: 0;
  border-radius: .75rem;
  background: var(--photos-soft);
  padding: 1rem;
}
.attendee-photos-field {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #d1d5db;
  border-radius: .75rem;
  padding: .75rem 1rem;
  background: var(--photos-surface);
  color: var(--photos-text);
}
.attendee-photos-field:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--event-app-primary, #1c64f2);
}
.attendee-photos :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--event-app-primary, #1c64f2); }
.attendee-photos-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.attendee-photos-filter-context { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block: -.5rem; }
.attendee-photos-filter-context .attendee-photos-back { min-width: 0; }
.attendee-photos-filter-context .attendee-photos-back svg { flex-shrink: 0; }
.attendee-photos-filter-context .attendee-photos-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendee-photos-clear-filters { display: inline-flex; align-items: center; min-height: 2.75rem; margin-left: auto; color: var(--photos-muted); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.attendee-photos .attendee-photos-clear-filters { text-decoration: underline; text-underline-offset: .1875rem; }
.attendee-photos-empty h2 { color: #111827; font-size: 1rem; }

.attendee-photos-tab {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: .5rem .25rem;
  border-radius: .5rem;
  color: var(--photos-muted);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
}
.attendee-photos-tab[aria-current] {
  background: var(--photos-surface);
  color: var(--photos-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
}
.attendee-photos-summary { color: var(--photos-muted); font-size: .75rem; line-height: 1.5; }
.attendee-photos-summary-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.attendee-photos-back {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  min-height: 2.75rem;
  color: var(--photos-muted);
  font-size: .8125rem;
  font-weight: 500;
}
.attendee-photos-album-heading h1,
.attendee-photos-album-name,
.attendee-photos-caption,
.attendee-photos-stage-header h1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.attendee-photos-album-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.attendee-photos-album-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: .5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--photos-muted);
}
.attendee-photos-album-details > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
.attendee-photos-album-details:focus-visible { outline: none; }
.attendee-photos-album-details:focus-visible > span { outline: 2px solid currentColor; outline-offset: 2px; }
.attendee-photos-album-banner {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 22rem;
  overflow: hidden;
  border-radius: .5rem .5rem 0 0;
  background: var(--photos-soft);
}
.attendee-photos-album-banner img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.attendee-photos-album-banner:has(img[hidden]) { display: none; }
.attendee-photos-album-banner::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / .85));
  pointer-events: none;
}
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) {
  margin: -.75rem -.75rem 0;
}
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-heading {
  position: absolute;
  inset: auto .75rem .75rem;
  padding: 0;
  color: #fff;
}
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-heading h1 {
  color: inherit;
  font-size: clamp(1.25rem, 4cqi, 1.75rem);
  text-shadow: 0 1px 2px rgb(0 0 0 / .4);
}
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-count { color: inherit; }
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-heading > a {
  background: transparent;
  color: inherit;
}
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-details { position: absolute; top: .375rem; right: .375rem; color: #fff; }
.attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-details > span { background: rgb(17 24 39 / .55); }
.attendee-photos-album-heading { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.attendee-photos-album-heading > a:first-child { flex-shrink: 0; width: 2.75rem; height: 2.75rem; box-shadow: none; }
.attendee-photos-add { flex-shrink: 0; min-width: 2.75rem; margin-left: auto; padding-inline: .75rem; white-space: nowrap; }
.attendee-photos-add svg { flex-shrink: 0; }
.attendee-photos-album-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.attendee-photos-album-heading-copy { display: flex; align-items: center; gap: .125rem; flex: 1; min-width: 0; }
.attendee-photos-album-intro .attendee-photos-album-heading-copy { flex-direction: column; align-items: stretch; }
.attendee-photos-album-heading h1 { margin: 0; color: var(--photos-text); font-size: 1.125rem; font-weight: 600; line-height: 1.375; }
.attendee-photos-about-facts { display: grid; gap: .625rem; font-size: .875rem; line-height: 1.5; }
.attendee-photos-about-facts > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .75rem; }
.attendee-photos-about-facts dt { color: var(--photos-muted); }
.attendee-photos-about-facts dd { margin: 0; }
.attendee-photos-about-section { display: grid; min-width: 0; gap: .375rem; border-top: 1px solid var(--photos-border); padding-top: .875rem; font-size: .875rem; line-height: 1.5; }
.attendee-photos-about-section > h3 { font-size: inherit; font-weight: 600; }
.attendee-photos-about-section > .lexxy-content { min-width: 0; max-width: 100%; overflow-x: auto; }
.attendee-photos-about .lexxy-content__table-wrapper { overflow-x: auto; }
.attendee-photos-albums-toolbar { margin-bottom: .5rem; }
.attendee-photos-albums { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
.attendee-photos-albums > .photo-album-card { margin-block: 0; }
.attendee-photos-album,
.attendee-photos-tile { min-width: 0; }
.attendee-photos-album-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--photos-border);
  border-radius: .75rem;
  background: var(--photos-surface);
  color: var(--photos-text);
  width: 100%;
  text-align: left;
  text-decoration: none;
}
.photo-album-card:focus-visible { outline: 2px solid var(--event-app-primary, #1c64f2); outline-offset: 2px; }
.attendee-photos-album-media {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem;
  aspect-ratio: 2 / 1;
  max-height: 14rem;
  overflow: hidden;
}
.attendee-photos-album-media:has(> .attendee-photos-album-cover):has(> .attendee-photos-album-preview) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attendee-photos-album-cover,
.attendee-photos-album-preview-image { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--photos-soft); }
.attendee-photos-album-media img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.attendee-photos-album-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; gap: .25rem; }
.attendee-photos-album-preview[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.attendee-photos-album-preview:is([data-count="3"], [data-count="4"]) { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.attendee-photos-album-preview[data-count="3"] > :first-child { grid-column: 1 / -1; }
.attendee-photos-album-preview[data-count="3"][data-orientation="portrait"] > :first-child { grid-column: auto; grid-row: 1 / -1; }
.attendee-photos-album-image-error { display: none; position: absolute; inset: 0; margin: auto; width: 1.5rem; height: 1.5rem; color: var(--photos-muted); }
.attendee-photos-album-media img[hidden] + .attendee-photos-album-image-error { display: block; }
.attendee-photos-album-body { display: flex; align-items: center; gap: .75rem; padding: .875rem; }
.attendee-photos-album-title { display: grid; flex: 1; min-width: 0; gap: .25rem; }
.attendee-photos-album-title .attendee-photos-album-name { margin: 0; color: var(--photos-text); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.attendee-photos-album-count { color: var(--photos-muted); font-size: .75rem; line-height: 1.5; }
.attendee-photos-album-chevron { flex-shrink: 0; width: 1.125rem; height: 1.125rem; color: var(--photos-muted); }
.attendee-photos-album-link:not(:has(.attendee-photos-album-media)) { border-color: transparent; border-bottom-color: var(--photos-border); border-radius: 0; }
.attendee-photos-album-link:not(:has(.attendee-photos-album-media)) .attendee-photos-album-body { padding-inline: 0; }
.photo-album-card-compact .attendee-photos-album-media { aspect-ratio: 3 / 1; max-height: 6rem; }
.photo-album-card-form { display: block; width: 100%; }
.attendee-photos-album-empty-icon { display: grid; place-items: center; flex-shrink: 0; width: 3.5rem; height: 3.5rem; border: 1px solid var(--photos-border); border-radius: .5rem; background: var(--photos-soft); color: var(--photos-muted); }
.attendee-photos-album-access svg { flex-shrink: 0; }
.attendee-photos-album-controls {
  position: sticky;
  top: calc(3.25rem + 1px + env(safe-area-inset-top) + var(--event-app-preview-offset, 0px));
  z-index: 20;
  margin: -.5rem -.75rem 0;
  padding: .5rem .75rem;
  background: var(--photos-surface);
  box-shadow: 0 1px 0 var(--photos-border);
}
.attendee-photos-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .5rem;
}
.attendee-photos-album-filter { flex: 1; min-width: 0; max-width: 24rem; }
.attendee-photos-album-filter .attendee-photos-field { height: 2.75rem; padding: .5rem 2rem .5rem .625rem; text-overflow: ellipsis; }
.attendee-photos-submission-group { display: grid; gap: .75rem; min-width: 0; padding-block: .5rem; }
.attendee-photos-submission-group + .attendee-photos-submission-group { margin-top: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--photos-border); }
.attendee-photos-submission-heading { display: grid; gap: .375rem; }
.attendee-photos .attendee-photos-submission-heading h2 { margin: 0; color: var(--photos-text); font-size: .875rem; font-weight: 600; line-height: 1.5; }
.attendee-photos-submission-hint { max-width: 40rem; color: var(--photos-muted); font-size: .8125rem; line-height: 1.5; }
.attendee-photos-upload-albums { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.attendee-photos-upload-albums li + li { border-top: 1px solid var(--photos-border); }
.attendee-photos-upload-albums a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding-block: .75rem; font-weight: 500; }
.attendee-photos-upload-albums svg { flex-shrink: 0; color: var(--photos-muted); }
.attendee-photos-album-navigation { flex: 0 0 auto; }
.attendee-photos-my-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .25rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: var(--photos-text);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
}
.attendee-photos-my-toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--photos-muted);
}
.attendee-photos-my-toggle-track::after {
  content: "";
  position: absolute;
  top: .125rem;
  left: .125rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
}
.attendee-photos-my-toggle[aria-checked="true"] .attendee-photos-my-toggle-track { background: var(--event-app-primary, #1c64f2); }
.attendee-photos-my-toggle[aria-checked="true"] .attendee-photos-my-toggle-track::after { transform: translateX(1rem); }
.attendee-photos-private-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1px solid var(--photos-border);
  border-radius: .75rem;
  background: var(--photos-surface);
  color: var(--photos-text);
  font-size: .8125rem;
}
.attendee-photos-private-note svg { flex-shrink: 0; }
.attendee-photos-private-note span { flex: 1; }
.attendee-photos-rows {
  --photos-row-height: 140;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .25rem;
}
.attendee-photos-rows-ready { display: flex; flex-wrap: wrap; align-items: flex-start; }
.attendee-photos-rows-ready .attendee-photos-tile { flex: 0 0 auto; }
.attendee-photos-rows-ready .attendee-photos-tile-image { height: max(2.75rem, var(--photo-row-height)); aspect-ratio: auto; }
.attendee-photos-rows-ready .attendee-photos-tile-image img { height: 100%; aspect-ratio: auto; }
.attendee-photos-tile {
  position: relative;
  border-radius: var(--radius-sm, .25rem);
}
.attendee-photos-tile-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  overflow: hidden;
  border-radius: var(--radius-sm, .25rem);
  background: var(--photos-soft);
}
.attendee-photos-tile-image:has(img[hidden]) { aspect-ratio: var(--photo-ratio, 1); background: var(--photos-soft); }
.attendee-photos-tile-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto var(--photo-ratio, 1);
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}
.attendee-photos-image-hint {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .5rem;
  background: rgb(17 24 39 / .65);
  color: white;
  opacity: 0;
  transition: opacity .15s;
}
.attendee-photos-tile-body { min-width: 0; padding-block: .375rem .5rem; }
.attendee-photos-tile-meta .attendee-photos-author { color: var(--photos-muted); font-weight: 500; }
.attendee-photos-tile-footer time { white-space: nowrap; }
.attendee-photos-attribution { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.attendee-photos-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.875rem;
  height: 1.875rem;
  border: 1px solid var(--photos-border);
  border-radius: 50%;
  background: var(--photos-soft);
  color: var(--photos-text);
  font-size: .625rem;
  font-weight: 700;
}
.attendee-photos-byline { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.attendee-photos-author {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--photos-text);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
}
.attendee-photos-byline time { color: var(--photos-muted); font-size: .75rem; line-height: 1.5; }
.attendee-photos-counts > *,
.attendee-photos-counts [aria-hidden] { display: inline-flex; align-items: center; gap: .25rem; }
.attendee-photos-counts svg { flex-shrink: 0; }
.attendee-photos-counts a {
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin-block: -.5rem;
  padding-inline: .375rem;
  border-radius: .375rem;
  color: inherit;
}
.attendee-photos-submission-album {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--photos-muted);
  font-size: .6875rem;
  line-height: 1rem;
}
.attendee-photos-checkbox {
  position: absolute;
  top: .625rem;
  right: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--photos-border);
  border-radius: .625rem;
  background: var(--photos-surface);
  box-shadow: 0 2px 8px rgb(15 23 42 / 12%);
  cursor: pointer;
}
.attendee-photos-checkbox input { width: 1.25rem; height: 1.25rem; }
.attendee-photos-tile:has(input:checked) { border-color: var(--event-app-primary, #1c64f2); box-shadow: 0 0 0 2px var(--event-app-primary, #1c64f2); }
.attendee-photos-selecting .attendee-photos-image-hint { display: none; }
.attendee-photos-button[aria-pressed="true"] { border-color: var(--event-app-primary, #1c64f2); background: var(--photos-tint); color: var(--event-app-primary, #1c64f2); }
.attendee-photos-selection {
  position: sticky;
  bottom: max(.75rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
  padding: .75rem;
  border: 1px solid var(--photos-border);
  border-radius: 1rem;
  background: var(--photos-surface);
  box-shadow: 0 8px 32px rgb(15 23 42 / 16%);
}
.attendee-photos-selection > p { flex-basis: 100%; font-size: .875rem; font-weight: 600; }
.attendee-photos-viewer-page { min-height: 100svh; background: #fff; }
.attendee-photos-viewer-page .attendee-photos-page { max-width: 80rem; padding: 0; }
.attendee-photos-viewer-panel {
  border: 0;
  border-radius: 0;
  padding: 0 0 max(1rem, env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: none;
}
.attendee-photos-viewer-panel > .attendee-photos-stack { margin-top: 0; }
.attendee-photos-detail { display: grid; align-items: start; gap: .75rem; }
.attendee-photos-view { display: contents; }
.attendee-photos-view > .attendee-photos-notice { grid-column: 1 / -1; }
.attendee-photos-details {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  min-width: 0;
  padding: 0 1rem;
}
.attendee-photos-details .attendee-photos-avatar { display: grid; width: 2.5rem; height: 2.5rem; font-size: .75rem; }
.attendee-photos-details .attendee-photos-author { font-size: .875rem; white-space: normal; }
.attendee-photos-details .attendee-photos-byline time { font-size: .75rem; }
.attendee-photos-full-caption { color: var(--photos-text); font-size: .9375rem; line-height: 1.7; }
.attendee-photos-detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.attendee-photos-detail-actions form.button_to { display: contents; }
.attendee-photos-detail-actions :is(a, button) { flex: 1 1 auto; padding-inline: .625rem; font-size: .8125rem; }
.attendee-photos-stage { min-width: 0; overflow: hidden; background: #fff; }
.attendee-photos-stage-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: max(.5rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right)) 0 max(.5rem, env(safe-area-inset-left));
}
.attendee-photos-stage-header h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--photos-text);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5rem;
}
.attendee-photos-stage-frame {
  position: relative;
  height: min(56svh, 36rem, max(12rem, calc(100svh - 22rem)));
  touch-action: pan-y pinch-zoom;
}
.attendee-photos .attendee-photos-viewer {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y pinch-zoom;
}
.attendee-photos-viewer > img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  user-select: none;
}
.attendee-photos-viewer > img.attendee-photos-zoomed { flex: none; max-width: none; max-height: none; margin: auto; }
.attendee-photos .attendee-photos-viewer:has(img.attendee-photos-zoomed) {
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
}
.attendee-photos-stage-frame:has(img.attendee-photos-zoomed) { touch-action: pan-x pan-y pinch-zoom; }
.attendee-photos-viewer:focus-visible { outline-offset: -3px; }
.attendee-photos-stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem max(.5rem, env(safe-area-inset-right)) 0 max(.5rem, env(safe-area-inset-left));
}
.attendee-photos-stage-nav,
.attendee-photos-stage-tools { display: flex; align-items: center; gap: .25rem; min-width: 0; }
.attendee-photos-stage-count {
  min-width: 0;
  padding: .375rem .25rem;
  color: var(--photos-muted);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.attendee-photos-stage-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--photos-text);
  text-decoration: none;
  transition: background-color .15s;
}
.attendee-photos-stage-button:disabled { opacity: .25; pointer-events: none; }
.attendee-photos-stage-button .attendee-photos-zoom-out { display: none; }
.attendee-photos-stage-button[aria-pressed="true"] .attendee-photos-zoom-in { display: none; }
.attendee-photos-stage-button[aria-pressed="true"] .attendee-photos-zoom-out { display: block; }
@media (min-width: 1024px) {
  @container (min-width: 48rem) {
    .attendee-photos-detail { grid-template-columns: minmax(0, 1fr) 19rem; gap: 1rem; }
    .attendee-photos-details { padding: 0; }
    .attendee-photos-stage-frame { height: calc(100svh - 13rem); }
  }
}

body:has(.attendee-photos-immersive) { overflow: hidden; }
.attendee-photos-immersive {
  position: fixed;
  inset: 0;
  z-index: 60;
  min-height: 0;
  overflow: hidden;
  background: #000;
}
.attendee-photos-immersive .attendee-photos-page { max-width: none; }
.attendee-photos-immersive .attendee-photos-viewer-panel { padding: 0; background: #000; }
.attendee-photos-immersive .attendee-photos-stack { container-type: normal; gap: 0; }
.attendee-photos-immersive .attendee-photos-detail { display: block; }
.attendee-photos-immersive .attendee-photos-view { display: contents; }
.attendee-photos-immersive .attendee-photos-stage { display: block; background: #000; }
.attendee-photos-immersive .attendee-photos-stage-frame { height: 100dvh; }
.attendee-photos-immersive .attendee-photos-viewer:focus-visible { outline-color: #fff; }
.attendee-photos-immersive .attendee-photos-view > .attendee-photos-notice,
.attendee-photos-immersive .attendee-photos-stage-header,
.attendee-photos-immersive .attendee-photos-stage-controls,
.attendee-photos-immersive .attendee-photos-details,
.attendee-photos-immersive .attendee-photos-stack > :not(.attendee-photos-detail) { display: none; }
.photo-comments { font-size: .875rem; line-height: 1.5; }
.photo-comments :is(button, textarea) { font-family: inherit; }
.photo-comments-preview { display: flex; align-items: center; gap: .75rem; padding: .625rem; border-radius: .75rem; background: var(--photos-soft); color: var(--photos-muted); }
.photo-comments-preview img { width: 3rem; height: 3rem; flex-shrink: 0; border-radius: .5rem; object-fit: cover; }
.photo-comments-preview-caption,
.photo-comments-preview-album { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-comments-preview-caption { color: var(--photos-text); font-size: .875rem; font-weight: 500; }
.photo-comments-preview-album { margin-top: .125rem; font-size: .75rem; }
.photo-comments-list { min-width: 0; }
.photo-comment { display: flex; gap: .625rem; padding-block: .75rem; scroll-margin-block: 5rem 15rem; }
.photo-comment + .photo-comment { border-top: 1px solid var(--photos-border); }
.photo-comment.photo-comment-pending { margin-block: .5rem; padding: .75rem; border: 1px solid var(--photos-border); border-radius: .75rem; background: var(--photos-soft); }
.photo-comment-avatar { display: grid; place-items: center; flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--photos-soft); color: var(--photos-muted); font-size: .6875rem; font-weight: 600; }
.photo-comment-content { flex: 1; min-width: 0; }
.photo-comment-heading { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .375rem; }
.photo-comment-author { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: .125rem .5rem; min-width: 0; }
.photo-comment-author strong { font-size: .875rem; font-weight: 600; }
.photo-comment-author time,
.photo-comment-note { color: var(--photos-muted); font-size: .75rem; line-height: 1.5; }
.photo-comment-more { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-block: -.625rem; border-radius: 50%; color: var(--photos-muted); }
.photo-comment-text { display: grid; gap: .5rem; font-size: .875rem; line-height: 1.6; }
.photo-comment-text :is(p, blockquote) { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.photo-comment-text blockquote { border-inline-start: 2px solid var(--photos-border); padding-inline-start: .75rem; color: var(--photos-muted); }
.photo-comment-more:hover,
.photo-comment-menu :is(a, button):hover { background: var(--photos-soft); }
.photo-comment [data-dropdown-target="menu"] { border-color: var(--photos-border); background: var(--photos-surface); color: var(--photos-text); }
.photo-comment-menu :is(a, button) { display: flex; align-items: center; width: 100%; min-height: 2.5rem; border-radius: .375rem; padding: .5rem .75rem; color: var(--photos-text); font-size: .875rem; text-align: left; }
.photo-comment-menu form.button_to { display: block; }
.photo-comment-menu .photo-comment-note { padding: .5rem .75rem; }
.photo-comment-menu .photo-comment-remove { color: #dc2626; }
.photo-comments-composer { position: sticky; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 10; display: grid; gap: .5rem; padding-block: .75rem; border-top: 1px solid var(--photos-border); background: var(--photos-surface); }
.photo-comments-composer textarea { field-sizing: content; min-height: 3.5rem; max-height: 9rem; resize: vertical; }
.photo-comments-composer-footer { display: flex; align-items: center; gap: .75rem; }
.photo-comments-composer-footer .attendee-photos-muted { font-size: .75rem; }
.photo-comments-composer-footer button { margin-left: auto; flex-shrink: 0; font-weight: 500; }
@media (min-width: 1024px) {
  .photo-comments-composer { bottom: 1rem; }
}

.attendee-photos-preview {
  width: 100%;
  max-height: 10rem;
  border-radius: .75rem;
  object-fit: contain;
  background: var(--photos-soft);
}
.attendee-photos-sheet {
  width: min(28rem, calc(100% - 2rem));
  max-height: min(85dvh, 40rem);
  margin: auto;
  overflow-y: auto;
  border: 1px solid var(--photos-border);
  border-radius: 1rem;
  padding: 0;
  background: var(--photos-surface);
  color: var(--photos-text);
  box-shadow: 0 20px 40px rgb(15 23 42 / 16%);
}
.attendee-photos-sheet::backdrop { background: rgb(17 24 39 / .5); }
.attendee-photos-sheet .attendee-photos-stack { padding: 1rem; }
.attendee-photos-sheet .attendee-photos-button,
.attendee-photos-sheet .attendee-photos-primary { width: 100%; }
.attendee-photos-about { overflow: hidden; }
.attendee-photos-about[open] { display: flex; flex-direction: column; }
.attendee-photos-about-header { flex-shrink: 0; border-bottom: 1px solid var(--photos-border); padding: 1rem; }
.attendee-photos-about-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.attendee-photos-about-body:focus-visible { outline-offset: -2px; }
.attendee-photos-about-footer { flex-shrink: 0; border-top: 1px solid var(--photos-border); padding: .75rem 1rem 1rem; }
body:has(.attendee-photos-about[open]) { overflow: hidden; }
.attendee-photos-tile > p { margin-top: .375rem; font-size: .75rem; }
.attendee-photos-preview-note { position: relative; flex-shrink: 0; }
.attendee-photos-stack .attendee-photos-preview-note > button { width: 1.5rem; height: 1.5rem; }
.attendee-photos-preview-note > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #6b7280;
}
.attendee-photos-preview-tip {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + .35rem);
  right: 0;
  width: min(18rem, 70vw);
  padding: .75rem;
  border: 1px solid var(--photos-border);
  border-radius: .75rem;
  background: var(--photos-surface);
  color: #4b5563;
  box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}
.attendee-photos-preview-note:hover .attendee-photos-preview-tip,
.attendee-photos-preview-note:focus-within .attendee-photos-preview-tip { display: block; }

body:has(.attendee-photos-selecting) [data-event-app-bottom-nav] { display: none; }
body:has(.attendee-photos) [data-feedback-target="trigger"] { display: none; }

@media (min-width: 640px) {
  .attendee-photos-selection > p { flex: 1; }
}

@media (hover: hover) {
  .attendee-photos-album-link:hover { background: var(--photos-soft); }
  .attendee-photos-button:not([aria-current="page"]):hover { background: var(--photos-soft); }
  .attendee-photos-primary:hover { filter: brightness(.95); }
  .attendee-photos-back:hover,
  .attendee-photos-tab:not([aria-current]):hover { color: var(--photos-text); }
  .attendee-photos-tile-image:hover .attendee-photos-image-hint { opacity: 1; }
  .attendee-photos-counts a:hover { background: var(--photos-soft); color: var(--photos-text); }
  .attendee-photos-stage-button:not(:disabled):hover { background: var(--photos-soft); }
  .attendee-photos-album-details:hover > span { background: color-mix(in srgb, currentColor 10%, transparent); }
  .attendee-photos-album-intro:has(.attendee-photos-album-banner img:not([hidden])) .attendee-photos-album-details:hover > span { background: rgb(17 24 39 / .75); }
}
@media (min-width: 1024px) {
  .attendee-photos-album-controls { top: calc(4rem + var(--event-app-preview-offset, 0px)); }
  .attendee-photos-viewer-page:not(.attendee-photos-immersive) { min-height: calc(100svh - 4rem); }
  .attendee-photos-viewer-panel { padding: 1rem; }
}
.attendee-photos-tile-image:focus-visible .attendee-photos-image-hint { opacity: 1; }
@container (min-width: 40rem) {
  .attendee-photos-rows { --photos-row-height: 200; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .attendee-photos-albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 40rem) {
  .attendee-photos-album-controls .attendee-photos-filter-button { width: 2.75rem; padding: .5rem; }
  .attendee-photos-album-controls .attendee-photos-filter-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .attendee-photos-album-controls .attendee-photos-filter-count { position: absolute; top: -.25rem; right: -.125rem; }
}
@container (max-width: 25rem) {
  .attendee-photos-album-thumbnail { width: 2.5rem; height: 2.5rem; border-radius: .5rem; }
  .attendee-photos-album-heading h1 { font-size: 1rem; }
  .attendee-photos-toolbar { gap: .25rem; }
  .attendee-photos-add { padding-inline: .625rem; font-size: .8125rem; }
  .attendee-photos-avatar { display: none; }
}
@container (max-width: 20rem) {
  .attendee-photos-rows { --photos-row-height: 120; }
  .attendee-photos-album-controls { padding-inline: .5rem; }
  .attendee-photos-my-toggle { gap: .375rem; font-size: .8125rem; }
  .attendee-photos-add { gap: .25rem; padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .attendee-photos-tile,
  .attendee-photos-image-hint,
  .attendee-photos-stage-button { transition: none; }
}
@container (min-width: 56rem) {
  .attendee-photos-rows { --photos-row-height: 220; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dark .attendee-photos:not(.attendee-photos-viewer-page),
.dark .photo-album-card {
  --photos-text: #f3f4f6;
  --photos-muted: #9ca3af;
  --photos-border: #374151;
  --photos-surface: #111827;
  --photos-soft: #1f2937;
  --photos-tint: color-mix(in srgb, var(--event-app-primary, #1c64f2) 18%, #111827);
}
.dark .attendee-photos:not(.attendee-photos-viewer-page) :is(h2, .attendee-photos-button, .attendee-photos-icon, .attendee-photos-notice) { color: #e5e7eb; }
