/* Hiking Fest v6.0.36.4 — reusable in-app photo studio */
.volunteer-card .volunteer-card__media > img,
.artist-card .artist-card__media > img {
  object-position: center 28% !important;
}

.hf-image-editor-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.hf-image-editor-tools,
.hf-image-editor-tools__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.hf-image-editor-tools {
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  margin-top: 8px;
}

.hf-image-editor-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(114, 240, 255, .28);
  border-radius: 12px;
  background: linear-gradient(125deg, rgba(22, 90, 104, .52), rgba(16, 55, 68, .58));
  color: #e9fbff;
  font: 800 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.hf-image-editor-tools button:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 244, 255, .56);
  background: linear-gradient(125deg, rgba(25, 111, 125, .66), rgba(16, 65, 74, .7));
}

.hf-image-editor-tools button:focus-visible {
  outline: 3px solid rgba(112, 233, 255, .38);
  outline-offset: 2px;
}

.hf-image-editor-tools button.is-secondary {
  border-color: rgba(133, 255, 169, .22);
  background: rgba(91, 225, 130, .08);
  color: #bffbd0;
}

.hf-image-editor-tools button i {
  color: #7feeff;
  font: 900 15px/1 Inter, system-ui;
  font-style: normal;
}

.hf-image-editor-tools__status {
  color: #829aa9;
  font: 650 10px/1.45 Inter, system-ui, sans-serif;
}

.hf-image-editor-tools__status.is-ok { color: #8becaa; }
.hf-image-editor-tools__status.is-error { color: #ff9aa6; }
.hf-image-editor-tools__status.is-working { color: #8de8fb; }

.hf-profile-photo-editor {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(122, 224, 255, .15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(11, 32, 47, .88), rgba(7, 19, 30, .92));
}

.hf-profile-photo-editor__preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #0a1720;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.hf-profile-photo-editor__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

.hf-profile-photo-editor__preview span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(120, 244, 255, .2);
  border-radius: 999px;
  background: rgba(3, 13, 21, .82);
  color: #a9efff;
  font: 850 8px/1 Inter, system-ui;
  letter-spacing: .07em;
  backdrop-filter: blur(10px);
}

.hf-profile-photo-editor__content > strong {
  display: block;
  color: #f3fbff;
  font: 850 16px/1.25 Inter, system-ui;
}

.hf-profile-photo-editor__content > p {
  max-width: 650px;
  margin: 7px 0 12px;
  color: #91a9b7;
  font: 550 12px/1.6 Inter, system-ui;
}

.hf-image-editor {
  width: min(calc(100% - 28px), 1180px);
  max-width: none;
  max-height: min(920px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(109, 224, 255, .25);
  border-radius: 25px;
  background: transparent;
  color: #f3fbff;
  box-shadow: 0 36px 120px rgba(0, 0, 0, .76), 0 0 50px rgba(59, 209, 255, .08);
}

.hf-image-editor::backdrop {
  background: rgba(0, 5, 11, .84);
  backdrop-filter: blur(10px);
}

.hf-image-editor[open] { display: block; }

.hf-image-editor__panel {
  display: flex;
  flex-direction: column;
  max-height: min(920px, calc(100dvh - 28px));
  background:
    radial-gradient(circle at 8% 0, rgba(40, 201, 255, .13), transparent 28%),
    radial-gradient(circle at 96% 80%, rgba(75, 239, 131, .08), transparent 28%),
    linear-gradient(145deg, #0a1c2b, #040b13 72%);
}

.hf-image-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.hf-image-editor__header span {
  display: block;
  margin-bottom: 6px;
  color: #75e7ff;
  font: 900 9px/1 Inter, system-ui;
  letter-spacing: .16em;
}

.hf-image-editor__header h2 {
  margin: 0;
  color: #fff;
  font: 900 clamp(23px, 3vw, 34px)/1.06 Inter, system-ui;
  letter-spacing: -.035em;
}

.hf-image-editor__header p {
  margin: 7px 0 0;
  color: #91a9b9;
  font: 550 12px/1.5 Inter, system-ui;
}

.hf-image-editor__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  background: rgba(255, 255, 255, .055);
  color: #dbeaf2;
  font: 400 26px/1 system-ui;
  cursor: pointer;
}

.hf-image-editor__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  min-height: 0;
  padding: 20px 24px;
  overflow: auto;
}

.hf-image-editor__stage { min-width: 0; }

.hf-image-editor__canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-height: 610px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(123, 226, 255, .2);
  border-radius: 18px;
  background:
    linear-gradient(45deg, #101d26 25%, transparent 25%),
    linear-gradient(-45deg, #101d26 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #101d26 75%),
    linear-gradient(-45deg, transparent 75%, #101d26 75%), #0b151d;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.hf-image-editor__canvas-wrap:focus-visible {
  outline: 3px solid rgba(113, 230, 255, .44);
  outline-offset: 3px;
}

.hf-image-editor__canvas-wrap.is-dragging { cursor: grabbing; }

.hf-image-editor__canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.hf-image-editor__grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, .2) 33.33%, transparent 33.5%, transparent 66.5%, rgba(255, 255, 255, .2) 66.66%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, .2) 33.33%, transparent 33.5%, transparent 66.5%, rgba(255, 255, 255, .2) 66.66%, transparent 66.8%);
  opacity: .62;
}

.hf-image-editor__canvas-wrap > small {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(2, 9, 15, .75);
  color: #d5e8f1;
  font: 750 9px/1 Inter, system-ui;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
}

.hf-image-editor__stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: #718b9b;
  font: 650 9px/1.4 Inter, system-ui;
}

.hf-image-editor__stage-meta span:first-child {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hf-image-editor__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.hf-image-editor__quick-actions button,
.hf-image-editor__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  color: #cfe3ed;
  font: 800 10px/1 Inter, system-ui;
  cursor: pointer;
}

.hf-image-editor__quick-actions button:first-child {
  border-color: rgba(121, 240, 255, .24);
  background: rgba(64, 210, 244, .08);
  color: #a9f1ff;
}

.hf-image-editor__quick-actions button.is-active {
  border-color: rgba(139, 255, 173, .36);
  color: #a9ffc0;
}

.hf-image-editor__quick-actions i { font-style: normal; }

.hf-image-editor__notice {
  min-height: 18px;
  margin: 10px 0 0;
  color: #7893a3;
  font: 700 10px/1.45 Inter, system-ui;
}

.hf-image-editor__notice.is-ok { color: #82e9a3; }
.hf-image-editor__notice.is-error { color: #ff929e; }
.hf-image-editor__notice.is-working { color: #83e8fb; }

.hf-image-editor__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(3, 12, 20, .56);
}

.hf-image-editor__select > span,
.hf-image-editor__range > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #aec2ce;
  font: 750 10px/1.2 Inter, system-ui;
}

.hf-image-editor__select select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  outline: none;
  background: #0d1d29;
  color: #edfaff;
  font: 750 11px/1 Inter, system-ui;
}

.hf-image-editor__select select:focus { border-color: rgba(111, 229, 255, .48); }

.hf-image-editor__range {
  display: block;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.hf-image-editor__range output {
  min-width: 40px;
  color: #7feaff;
  font: 850 10px/1 Inter, system-ui;
  text-align: right;
}

.hf-image-editor__range input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 5px 0;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, #45d7f2, #75f99d);
  accent-color: #6ee7f6;
  cursor: pointer;
}

.hf-image-editor__reset {
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.hf-image-editor__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(2, 9, 15, .72);
}

.hf-image-editor__footer button {
  min-height: 45px;
  padding: 0 17px;
  border-radius: 12px;
  font: 850 11px/1 Inter, system-ui;
  cursor: pointer;
}

.hf-image-editor__cancel {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .04);
  color: #b7ccd7;
}

.hf-image-editor__apply {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: linear-gradient(115deg, #75edff, #78ff9d);
  color: #031019;
  box-shadow: 0 12px 30px rgba(65, 227, 168, .15);
}

.hf-image-editor__apply:disabled { opacity: .68; cursor: wait; }
.hf-image-editor.is-applying .hf-image-editor__apply span { animation: hfImageEditorSpin .9s linear infinite; }

@keyframes hfImageEditorSpin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .hf-image-editor__workspace { grid-template-columns: 1fr; }
  .hf-image-editor__controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-image-editor__select,
  .hf-image-editor__reset { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hf-profile-photo-editor { grid-template-columns: 1fr; }
  .hf-profile-photo-editor__preview { width: min(100%, 310px); }
  .hf-image-editor { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
  .hf-image-editor__panel { max-height: 100dvh; min-height: 100dvh; }
  .hf-image-editor__header { padding: 16px; }
  .hf-image-editor__header p { display: none; }
  .hf-image-editor__workspace { padding: 14px 14px 18px; }
  .hf-image-editor__canvas-wrap > small { display: none; }
  .hf-image-editor__controls { grid-template-columns: 1fr; padding: 12px; }
  .hf-image-editor__select,
  .hf-image-editor__reset { grid-column: auto; }
  .hf-image-editor__footer { position: sticky; bottom: 0; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); }
  .hf-image-editor__footer button { flex: 1; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-image-editor-tools button { transition: none; }
  .hf-image-editor.is-applying .hf-image-editor__apply span { animation: none; }
}
