/* Coxy Events V5.128 - compact View Event attendee + Other Photos grids and shared lightbox. Natural-width card photos. */
html.coxy-event-page .coxy-event-attendee-grid,
html.coxy-event-page .coxy-event-other-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
  width: 100% !important;
}

html.coxy-event-page .coxy-event-attendee-card,
html.coxy-event-page .coxy-event-other-photo-card {
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  overflow: hidden;
}

html.coxy-event-page .coxy-event-attendee-card img[data-coxy-event-attendee-photo],
html.coxy-event-page .coxy-event-other-photo-card img[data-coxy-event-other-photo] {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 10px !important;
  cursor: zoom-in;
}

html.coxy-event-page .coxy-event-attendee-card [class*="name"],
html.coxy-event-page .coxy-event-attendee-card strong,
html.coxy-event-page .coxy-event-attendee-card p,
html.coxy-event-page .coxy-event-other-photo-card strong,
html.coxy-event-page .coxy-event-other-photo-card p {
  overflow-wrap: anywhere;
}

.coxy-event-attendee-lightbox[hidden] { display: none !important; }
.coxy-event-attendee-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: minmax(48px, 8vw) minmax(0, 1fr) minmax(48px, 8vw);
  grid-template-rows: 1fr auto;
  align-items: center;
  background: rgba(4, 18, 42, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 18px;
}

.coxy-event-attendee-lightbox-stage {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.coxy-event-attendee-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px !important;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.38);
}

.coxy-event-attendee-lightbox-nav,
.coxy-event-attendee-lightbox-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  background: rgba(29, 106, 210, .72);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background .16s ease, transform .16s ease;
}

.coxy-event-attendee-lightbox-nav:hover,
.coxy-event-attendee-lightbox-close:hover {
  background: rgba(29, 106, 210, .96);
}

.coxy-event-attendee-lightbox-nav:active,
.coxy-event-attendee-lightbox-close:active { transform: scale(.97); }

.coxy-event-attendee-lightbox-nav {
  width: 46px;
  height: 64px;
  font-size: 30px;
  justify-self: center;
}

.coxy-event-attendee-lightbox-prev { grid-column: 1; grid-row: 1; }
.coxy-event-attendee-lightbox-next { grid-column: 3; grid-row: 1; }

.coxy-event-attendee-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 25px;
  line-height: 1;
}

.coxy-event-attendee-lightbox-meta {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: min(900px, 94vw);
  color: #fff;
  text-align: center;
  padding: 10px 12px 2px;
}

.coxy-event-attendee-lightbox-caption {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.coxy-event-attendee-lightbox-count {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: .78;
}

body.coxy-event-attendee-lightbox-open { overflow: hidden !important; }

@media (max-width: 980px) {
  html.coxy-event-page .coxy-event-attendee-grid,
  html.coxy-event-page .coxy-event-other-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  html.coxy-event-page .coxy-event-attendee-grid,
  html.coxy-event-page .coxy-event-other-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .coxy-event-attendee-lightbox { padding: 10px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .coxy-event-attendee-lightbox-nav { width: 40px; height: 54px; font-size: 26px; }
  .coxy-event-attendee-lightbox-image { max-height: calc(100vh - 135px); }
}

@media (max-width: 430px) {
  html.coxy-event-page .coxy-event-attendee-grid,
  html.coxy-event-page .coxy-event-other-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card img[data-coxy-event-attendee-photo],
  html.coxy-event-page .coxy-event-other-photo-card img[data-coxy-event-other-photo] { aspect-ratio: 1 / 1; }
  .coxy-event-attendee-lightbox {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    padding: 7px;
  }
  .coxy-event-attendee-lightbox-nav { width: 34px; height: 50px; font-size: 23px; }
  .coxy-event-attendee-lightbox-close { top: 8px; right: 8px; width: 38px; height: 38px; }
  .coxy-event-attendee-lightbox-caption { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .coxy-event-attendee-lightbox-nav,
  .coxy-event-attendee-lightbox-close { transition: none; }
}

/* V5.129.0 - professional View Event attendee-card spacing.
   Keep V5.128 natural-width images. Add a small card inset and organize the
   attendee labels/name/country as a compact, consistent information block. */
html.coxy-event-page .coxy-event-attendee-card {
  padding: 5px !important;
  box-sizing: border-box !important;
}
html.coxy-event-page .coxy-event-attendee-card > a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
html.coxy-event-page .coxy-event-attendee-card > a > img[data-coxy-event-attendee-photo],
html.coxy-event-page .coxy-event-attendee-card img[data-coxy-event-attendee-photo] {
  margin: 0 auto !important;
}
html.coxy-event-page .coxy-event-attendee-card > .info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 7px 1px 2px !important;
}
html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 5px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child .badge {
  margin: 0 !important;
  line-height: 1.05 !important;
}
html.coxy-event-page .coxy-event-attendee-card > .info > strong {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  overflow-wrap: anywhere !important;
}
html.coxy-event-page .coxy-event-attendee-card > .info > .small.muted {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

/* V5.130.0 - professional attendee identity block.
   Keep the 5px card padding and V5.128 natural-width image behavior.
   The two status chips are intentionally stacked, compact and single-line so
   "ADDED BY ORGANIZER" never breaks awkwardly across two lines. */
html.coxy-event-page .coxy-event-attendee-card > .info {
  gap: 3px !important;
  padding: 7px 2px 3px !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 4px !important;
  width: 100% !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
  min-height: 25px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child .badge + .badge {
  font-size: 9.5px !important;
  letter-spacing: .025em !important;
  padding-left: 9px !important;
  padding-right: 9px !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info > strong {
  margin-top: 2px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  color: inherit !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info > .small.muted {
  margin-top: 0 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: .035em !important;
  opacity: .78 !important;
}

@media (max-width: 430px) {
  html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child .badge {
    min-height: 23px !important;
    padding: 4px 8px !important;
    font-size: 9.5px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card > .info > div:first-child .badge + .badge {
    font-size: 9px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card > .info > strong {
    font-size: 13.5px !important;
  }
}

/* V5.132.0 - attendee label/name alignment.
   Row 1 puts the attendee name immediately after ATTENDEE. The name uses the
   same green visual language as the organizer-source badge. Row 2 keeps source
   and country compact, aligned and full-width. */
html.coxy-event-page .coxy-event-attendee-card > .info.coxy-event-attendee-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 6px 0 0 !important;
  box-sizing: border-box !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info.coxy-event-attendee-info > .coxy-event-attendee-primary-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html.coxy-event-page .coxy-event-attendee-card > .info.coxy-event-attendee-info > .coxy-event-attendee-secondary-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-meta,
html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-name {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 30px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
}

html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-role {
  justify-content: center !important;
  width: auto !important;
  padding: 5px 10px !important;
  white-space: nowrap !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .025em !important;
  text-transform: uppercase !important;
}

html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-name {
  justify-content: flex-start !important;
  width: 100% !important;
  padding: 6px 9px !important;
  border: 1px solid #a9d1b7 !important;
  background: #e3f3e9 !important;
  color: #286747 !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}

html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-source {
  justify-content: center !important;
  width: 100% !important;
  padding: 5px 7px !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: .02em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-country {
  justify-content: center !important;
  width: auto !important;
  min-width: 44px !important;
  padding: 5px 8px !important;
  border-color: #b8c9e2 !important;
  background: #eef3fb !important;
  color: #395472 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .05em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

@media (max-width: 430px) {
  html.coxy-event-page .coxy-event-attendee-card > .info.coxy-event-attendee-info > .coxy-event-attendee-primary-row,
  html.coxy-event-page .coxy-event-attendee-card > .info.coxy-event-attendee-info > .coxy-event-attendee-secondary-row {
    gap: 4px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-role {
    padding: 4px 7px !important;
    font-size: 8.5px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-name {
    padding: 5px 7px !important;
    font-size: 12px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-source {
    padding: 4px 5px !important;
    font-size: 8px !important;
  }
  html.coxy-event-page .coxy-event-attendee-card .coxy-event-attendee-country {
    min-width: 38px !important;
    padding: 4px 6px !important;
    font-size: 9px !important;
  }
}

/* V5.133.0 - Other Photos presentation on the public Event page.
   The photo itself gets a clean 5px inset without forcing width:100%.
   Captions are descriptive paragraph text, not bold labels/headings. */
html.coxy-event-page .coxy-event-other-photo-card {
  box-sizing: border-box !important;
}
html.coxy-event-page .coxy-event-other-photo-card > a {
  display: block !important;
  padding: 5px 5px 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
html.coxy-event-page .coxy-event-other-photo-card > a > img[data-coxy-event-other-photo],
html.coxy-event-page .coxy-event-other-photo-card img[data-coxy-event-other-photo] {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}
html.coxy-event-page .coxy-event-other-photo-card > .info {
  padding: 7px 10px 10px !important;
}
html.coxy-event-page .coxy-event-other-photo-card .event-photo-caption {
  display: block !important;
  margin: 6px 0 4px !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 430px) {
  html.coxy-event-page .coxy-event-other-photo-card > a {
    padding: 4px 4px 0 !important;
  }
  html.coxy-event-page .coxy-event-other-photo-card > .info {
    padding: 6px 8px 9px !important;
  }
  html.coxy-event-page .coxy-event-other-photo-card .event-photo-caption {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}
