.event-collection-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  overflow: visible;
  margin-bottom: 24px;
}
.event-collection-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: normal;
  min-height: 40px;
}
.event-collection-tabs svg {
  width: 16px;
  height: 16px;
}
.event-detail-tabs {
  gap: 0 26px;
  margin: 0 0 26px;
}
.event-detail-tabs a {
  gap: 7px;
  min-height: 46px;
  font-size: 15.6px;
}
.event-detail-tabs svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.chapter-event-editor,
.event-gallery-page {
  padding-top: 30px;
}
.event-gallery-page > .back-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chapter-event-editor {
  max-width: 940px;
}
.chapter-event-editor > .back-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.event-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 26px;
}
.event-page-heading > div,
.event-page-heading h1 {
  min-width: 0;
}
.event-page-heading h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.event-context {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #467468;
  font-size: 14.4px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.event-context svg,
.event-gallery-meta svg,
.chapter-event-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.event-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.event-review-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6c532b;
  background: #fff7e8;
  padding: 12px 16px;
  border-left: 3px solid #ec8b23;
  font-size: 15.6px;
  margin: 0 0 22px;
}
.event-review-state svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.event-form-section {
  padding: 26px 0;
  border-top: 1px solid #e1e8e5;
}
.event-form-section h2,
.event-gallery-upload h2 {
  margin: 0 0 20px;
  font-size: 20.4px;
}
.event-cover-preview {
  margin: 0 0 20px;
  width: 100%;
  max-width: 600px;
  background: #f2f4f3;
}
.event-cover-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.chapter-event-form .form-grid {
  gap: 20px;
}
.chapter-event-form .form-field {
  min-width: 0;
}
.chapter-event-form .form-field label,
.event-gallery-upload-form .form-field label {
  font-size: 14.4px;
}
.chapter-event-form input[type='file'],
.event-gallery-upload-form input[type='file'] {
  width: 100%;
  min-width: 0;
  font-size: 15.6px;
}
.event-publication-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.event-publication-section > .form-field {
  flex: 1;
  max-width: 300px;
  margin: 0;
}
.event-gallery-meta,
.chapter-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #63766e;
  font-size: 14.4px;
}
.event-gallery-meta {
  margin-top: 18px;
}
.event-gallery-meta > span,
.event-gallery-meta > a,
.chapter-event-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.event-gallery-upload {
  padding: 24px 0;
  border-top: 1px solid #e1e8e5;
  border-bottom: 1px solid #e1e8e5;
  margin-bottom: 30px;
}
.event-gallery-upload-fields {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 1fr) auto;
  align-items: end;
  gap: 18px;
}
.event-gallery-upload-fields .form-field {
  margin: 0;
  min-width: 0;
}
.event-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.event-gallery-photo {
  margin: 0;
  min-width: 0;
}
.event-gallery-photo > a {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f2f4f3;
}
.event-gallery-photo > a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.event-gallery-photo figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  min-height: 48px;
}
.event-gallery-photo figcaption p {
  margin: 0;
  color: #536960;
  font-size: 15.6px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.event-gallery-delete {
  flex-shrink: 0;
}
.event-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  font-size: 15.6px;
}
.event-photo-dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid #e1e8e5;
  border-radius: 6px;
  margin: auto;
  overflow: auto;
  background: #fff;
}
.event-photo-dialog::backdrop {
  background: rgb(18 31 27 / 80%);
}
.event-photo-dialog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.event-photo-dialog-toolbar strong {
  min-width: 0;
  font-size: 16.8px;
  overflow-wrap: anywhere;
}
.event-photo-dialog .icon-btn {
  flex-shrink: 0;
}
.event-photo-dialog figure {
  margin: 0;
}
.event-photo-dialog [data-gallery-preview] {
  display: block;
  width: 100%;
  height: min(60dvh, 600px);
  max-height: 75vh;
  object-fit: contain;
  background: #f2f4f3;
}
.event-photo-dialog [data-gallery-caption] {
  max-height: 80px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  font-size: 15.6px;
  line-height: 1.6;
  padding-top: 14px;
}
.event-photo-dialog [data-gallery-caption]:empty {
  display: none;
}
.event-photo-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 14px;
}
.chapter-profile-page .chapter-events {
  padding: 32px 0;
  border-bottom: 1px solid #e1e8e5;
  scroll-margin-top: 90px;
}
.chapter-events .chapter-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.chapter-events .chapter-section-heading h2 svg {
  width: 21px;
  height: 21px;
  color: #137e6c;
}
.chapter-events .chapter-section-heading > .text-link {
  font-size: 14.4px;
}
.chapter-event-list {
  margin-top: 22px;
}
.chapter-event-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  border-top: 1px solid #e1e8e5;
  padding: 22px 0;
}
.chapter-event-item:first-child {
  border-top: 0;
}
.chapter-event-date {
  min-height: 64px;
  background: #edf6f2;
  color: #176e5e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 4px;
}
.chapter-event-date strong {
  font-size: 30px;
  line-height: 1;
}
.chapter-event-date span {
  font-size: 13.2px;
}
.chapter-event-information {
  min-width: 0;
}
.chapter-event-information h3 {
  font-size: 21.6px;
  line-height: 1.5;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.chapter-event-information p {
  font-size: 15.6px;
  line-height: 1.6;
  color: #526c60;
  margin: 6px 0 12px;
  overflow-wrap: anywhere;
}
.chapter-event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.admin-event-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 0 22px;
  font-size: 15.6px;
}
.admin-event-context > span,
.admin-event-context > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.admin-event-context svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.admin-event-chapter {
  font-size: 14.4px;
  display: block;
  margin-top: 5px;
  color: #476c60;
  overflow-wrap: anywhere;
}
.member-profile-page .member-profile-state .member-profile-create-event {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .event-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-page-heading {
    flex-wrap: wrap;
  }
  .event-heading-actions {
    justify-content: flex-start;
  }
  .event-gallery-upload-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-gallery-upload-fields > button {
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .event-collection-tabs {
    gap: 4px 18px;
  }
  .event-collection-tabs a {
    font-size: 14.4px;
  }
  .event-page-heading h1 {
    font-size: 31.2px;
  }
  .event-photo-grid,
  .event-gallery-upload-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-heading-actions {
    flex-shrink: 1;
    width: 100%;
  }
  .chapter-event-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }
  .chapter-event-date {
    min-height: 58px;
  }
  .chapter-event-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .chapter-event-information h3 {
    font-size: 19.2px;
  }
  .chapter-events .chapter-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .event-publication-section > .form-field {
    flex-basis: 100%;
    max-width: none;
  }
  .chapter-event-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .event-photo-dialog {
    padding: 14px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  .event-photo-dialog [data-gallery-preview] {
    height: 50dvh;
  }
}
@media (max-width: 480px) {
  .chapter-event-form input,
  .chapter-event-form select,
  .chapter-event-form textarea,
  .event-gallery-upload-form input {
    font-size: 19.2px;
  }
}
