.photo-pin[data-photo-id] {
  position: relative;
}

.photo-pin figcaption > .photo-caption {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  overflow: hidden;
  white-space: normal;
}

.photo-caption-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-pin-tags {
  display: flex;
  max-width: 100%;
  gap: 4px;
  overflow: hidden;
}

.photo-pin-tags > span {
  flex: none;
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf2f0;
  color: #2f6759;
  font-size: 10px;
  line-height: 1.2;
}

.auras-photo-heart,
.auras-photo-options {
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #627587;
  cursor: pointer;
}

.auras-photo-heart {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  color: #5f7181;
  background: #f4f6f8ed;
  box-shadow: 0 2px 12px #152a3d24;
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, color 150ms ease;
}

.photo-pin-open:hover ~ .auras-photo-heart,
.auras-photo-heart:hover,
.photo-pin:focus-within .auras-photo-heart {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.auras-photo-heart[aria-pressed='true'] {
  color: #d94456;
}

.auras-photo-heart[aria-pressed='true'] path {
  fill: currentColor;
}

.auras-photo-heart:disabled {
  cursor: wait;
}

.auras-photo-options {
  width: 30px;
  height: 30px;
  margin: -4px -3px -4px 0;
}

.auras-photo-options:hover,
.auras-photo-options[aria-expanded='true'] {
  background: #f5f8fade;
  color: #273e51;
}

.auras-photo-heart:focus-visible,
.auras-photo-options:focus-visible,
.auras-photo-menu button:focus-visible,
.auras-photo-report :is(button, select):focus-visible {
  outline: 2px solid #416a8c;
  outline-offset: 2px;
}

.auras-photo-menu,
.auras-photo-report {
  box-sizing: border-box;
  color: #263b4b;
  background: #f8fafbf7;
  border: 1px solid #ffffff;
  box-shadow: 0 14px 42px #233e552b, 0 2px 8px #233e5512;
}

.auras-photo-menu {
  position: fixed;
  inset: auto;
  z-index: 80;
  margin: 0;
  padding: 8px;
  width: min(270px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  border-radius: 17px;
  backdrop-filter: blur(16px);
}

.auras-photo-menu-note {
  margin: 0 3px 5px;
  padding: 6px 7px 10px;
  border-bottom: 1px solid #d6dfe6;
  color: #546c80;
  font-size: 12px;
  line-height: 1.55;
}

.auras-photo-menu-actions {
  display: grid;
  gap: 2px;
}

.auras-photo-menu-actions button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.auras-photo-menu-actions button:hover,
.auras-photo-menu-actions button:focus-visible {
  background: #e4edf4;
}

.auras-photo-menu-actions button svg,
.auras-photo-return svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.auras-photo-return {
  background: #f4f8fb9c;
  color: #47657b;
}

.auras-photo-report {
  width: min(360px, calc(100vw - 36px));
  padding: 20px;
  border-radius: 19px;
}

.auras-photo-report::backdrop {
  background: #172b4173;
}

.auras-photo-report form,
.auras-photo-report label {
  display: grid;
  gap: 9px;
}

.auras-photo-report :is(h2, p) {
  margin: 0;
}

.auras-photo-report h2 {
  font-size: 17px;
}

.auras-photo-report p,
.auras-photo-report label {
  font-size: 13px;
}

.auras-photo-report label {
  margin-top: 5px;
}

.auras-photo-report select {
  width: 100%;
  border: 1px solid #cedbe4;
  border-radius: 9px;
  background: #fff;
  color: inherit;
  font: inherit;
  padding: 8px 10px;
}

.auras-photo-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.auras-photo-report-actions button {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #e5edf3;
  color: #294456;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.auras-photo-report-actions button[type='submit'] {
  background: #2c4861;
  color: #fff;
}

.auras-photo-report-actions button:disabled {
  opacity: .55;
  cursor: default;
}

.auras-photo-report-error {
  color: #9d2435;
}

.auras-photo-feedback {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 9px 14px;
  border-radius: 11px;
  background: #2b4358;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 5px 20px #25405836;
  pointer-events: none;
}

.auras-photo-feedback:empty {
  opacity: 0;
}

@media (hover: none) {
  .auras-photo-heart { opacity: 1; transform: none; pointer-events: auto; }
}

@media (max-width: 900px) {
  .photo-heading-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .auras-photo-heart { transition: none; }
}
