/* Native controls supplement the preserved AuberFit design stylesheet. */
.gallery-photo-link {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.gallery-photo-label {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .375rem .75rem;
  background: #161616;
  color: #fff;
  font-size: .8125rem;
}

dialog[data-dialog].gallery-dialog {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
}

.gallery-dialog-header,
.gallery-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.gallery-dialog-header { margin-bottom: .75rem; }
.gallery-dialog-footer { margin-top: .75rem; }
.gallery-dialog-caption { flex: 1 1 16rem; }
.gallery-dialog-close { min-height: 44px; padding: .5rem .75rem; border: 1px solid currentColor; }
.gallery-dialog-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
  background: #161616;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.partner-card {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  text-align: center;
}

.partner-logo-frame {
  display: flex;
  width: 100%;
  height: 112px;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: 112px;
  object-fit: contain;
}

.partner-name {
  min-height: 2.8em;
  max-width: 100%;
  font-family: var(--font-barlow-condensed), sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.partner-card--name-only .partner-name {
  min-height: 0;
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Allow the layout to fit a 320 px screen, including a visible scrollbar. */
body {
  min-width: 0;
}

main :is(.grid, .article-header-grid) > * {
  min-width: 0;
}

.article-next-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 639px) {
  main :is(h1, h2, h3, dd) {
    overflow-wrap: anywhere;
  }

  main :is(button, a).whitespace-nowrap {
    max-width: 100%;
    min-height: 3rem;
    height: auto;
    padding-block: .625rem;
    white-space: normal;
    text-align: center;
  }
}

[hidden],
dialog:not([open]),
[data-install-app]:not([data-install-ready]) {
  display: none !important;
}

html.has-open-dialog {
  overflow: hidden;
  scrollbar-gutter: stable;
}

dialog[data-dialog] {
  position: fixed;
  inset: 0;
  width: min(448px, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 28px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border, #dedbd3);
  border-radius: 8px;
  color: var(--foreground, #1d1d1a);
  background: var(--card, #faf9f6);
  box-shadow: 0 1.5rem 5rem #0004;
  transform: none;
  translate: none;
}

dialog::backdrop {
  background: rgb(0 0 0 / 70%);
}

dialog[data-site-menu] {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(94vw, 30rem);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid #ffffff1f;
  border-radius: 0;
  overscroll-behavior: contain;
  transform: none;
  translate: none;
}

dialog[data-site-menu][open] {
  display: flex;
  flex-direction: column;
}

dialog[data-site-menu] > [data-dialog-close] {
  position: absolute;
  top: 1.35rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

input[type="checkbox"]:not([aria-hidden="true"]) {
  display: inline-block;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-block-start: .25rem;
  accent-color: var(--gold, #b7914d);
  cursor: pointer;
}

input.native-checkbox[type="checkbox"] {
  width: 20px;
  height: 20px;
}

select[data-filter-status],
select.native-select {
  min-width: 0;
  min-height: 2.5rem;
  padding: .5rem 2.25rem .5rem .75rem;
  color: inherit;
  background-color: var(--background, #f4f2ed);
  border: 1px solid var(--border, #dedbd3);
  border-radius: var(--radius-md, .5rem);
  font: inherit;
  font-size: .875rem;
}

select.native-select {
  width: 100%;
  height: 44px;
}

input[type="checkbox"]:focus-visible,
select[data-filter-status]:focus-visible,
select.native-select:focus-visible,
[data-dialog-close]:focus-visible,
[data-password-toggle]:focus-visible,
.native-button:focus-visible,
.native-dialog-close:focus-visible {
  outline: 3px solid var(--gold, #b7914d);
  outline-offset: 3px;
}

.native-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .625rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.native-button:disabled {
  pointer-events: none;
  opacity: .5;
}

.native-button svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.native-button-primary {
  color: var(--primary-foreground, #fffdf8);
  background: var(--gold, #a77927);
}

.native-button-primary:hover {
  background: color-mix(in srgb, var(--gold, #a77927) 90%, #000);
}

.native-button-outline {
  color: inherit;
  background: transparent;
  border-color: var(--border, #d4d0c7);
}

[data-site-menu] .native-button-outline {
  color: #fff;
  border-color: rgb(255 255 255 / 35%);
}

.native-button-outline:hover {
  color: var(--charcoal, #1d1d1a);
  background: var(--card, #faf9f6);
}

.header-donation-link {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: .4rem;
  padding: .5rem .3rem;
  color: #ffffffad;
  white-space: nowrap;
  font-size: .76rem;
  font-weight: 600;
}

.header-donation-link:hover {
  color: #fff;
}

.header-donation-link svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold, #b7914d);
}

@media (min-width: 640px) {
  .header-donation-link {
    display: inline-flex;
  }
}

.native-dialog-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.native-dialog-close:hover {
  background: rgb(127 127 127 / 12%);
}

.native-dialog > h2 {
  padding-right: 2.5rem;
}

[data-form-status]:not([hidden]):not(:empty) {
  margin-top: 1rem;
  padding: .875rem 1rem;
  border: 1px solid var(--border, #dedbd3);
  border-left: 3px solid var(--gold, #b7914d);
  border-radius: .5rem;
  font-size: .875rem;
  line-height: 1.6;
}

[data-form-status][data-state="error"] {
  border-left-color: #a63232;
  color: #8a2222;
}

.native-form-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid var(--input, #dedbd3);
  border-radius: .375rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 1px 2px #0000000d;
}

.native-form-input:focus-visible {
  outline: 2px solid var(--ring, #b7914d);
  outline-offset: 1px;
}

.native-form-input:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.native-form-textarea {
  min-height: 144px;
  resize: vertical;
}

.native-field-error {
  color: #8a2222;
  font-size: .875rem;
  line-height: 1.5;
}

[data-message-form] [aria-invalid="true"] {
  border-color: #a63232;
}

.native-form-retry {
  justify-self: start;
  min-height: 44px;
  padding: .5rem 0;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.native-form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.native-trial-section {
  scroll-margin-top: 7rem;
}

#don-helloasso {
  scroll-margin-top: 7rem;
}

.helloasso-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.helloasso-layout > * {
  min-width: 0;
}

.helloasso-embed {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

.helloasso-mobile-note {
  display: none;
}

/* The external compact form clips its controls below this available width. */
@media (max-width: 379px) {
  [data-helloasso-load],
  .helloasso-embed {
    display: none !important;
  }

  .helloasso-mobile-note {
    display: block;
  }

  .helloasso-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .625rem 1rem;
    border-radius: 8px;
    color: var(--primary-foreground, #fffdf8);
    background: var(--gold, #a77927);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
  }
}

@media (min-width: 1024px) {
  .helloasso-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  }
}

@media (min-width: 768px) {
  .native-form-input { font-size: .875rem; }
}

[aria-busy="true"] button[type="submit"] {
  cursor: progress;
  opacity: .65;
}

.native-dialog-action {
  margin-top: 1.5rem;
  padding: .65rem 1rem;
  border: 1px solid var(--border, #dedbd3);
  border-radius: .5rem;
  font-weight: 600;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  dialog,
  dialog::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
/* Event photos keep posters and portraits intact, including on small screens. */
.event-card-with-photo{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:start}.event-card-photo{display:block;width:150px;height:120px;object-fit:contain;background:var(--card,#f5f5f5);border:1px solid var(--border,#ddd);border-radius:4px}.event-photo-section{margin-top:56px}.event-photos-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:24px}.event-photos-grid figure{margin:0;min-width:0}.event-photo-main{grid-column:1/-1}.event-photo-link{display:block;background:var(--card,#f5f5f5);border:1px solid var(--border,#ddd);border-radius:4px;overflow:hidden}.event-photo-link img{display:block;width:100%;height:340px;object-fit:contain}.event-photo-main img{height:auto;max-height:640px}.event-photos-grid figcaption{margin-top:12px;line-height:1.6;overflow-wrap:anywhere}.event-photos-grid a:hover{border-color:var(--gold,#bc914e)}
@media(max-width:640px){.event-card-with-photo{grid-template-columns:1fr;gap:16px}.event-card-photo{width:100%;height:200px}.event-photos-grid{grid-template-columns:1fr;gap:20px}.event-photo-link img{height:auto;max-height:480px}.event-photo-section{margin-top:36px}}
