/* Sunset-dusk equipment photo profile dialog & card trigger.
   Matches the unified Chicago twilight/sunset glass theme across all views. */
.item-media .profile-trigger {
  display: block; position: absolute; inset: 0; border: 0; padding: 0;
  width: 100%; height: 100%; background: #171624; color: #f5f2ee;
  font: inherit; cursor: zoom-in;
}
.profile-trigger img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .24s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .profile-trigger:hover img { transform: scale(1.025); }
}
.profile-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: -4px; z-index: 3; }
.item-media .media-top-bar, .item-media .media-bottom-bar { pointer-events: none; }
.item-media .photo-dots { pointer-events: auto; }
.profile-gallery-hint {
  margin-left: auto;
  color: #f6f3ef;
  background: rgba(20, 19, 31, 0.84);
  border: 1px solid rgba(255, 214, 165, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 500;
}
.profile-gallery-hint::before { content: "↗"; margin-right: .3em; color: var(--gold); }
.profile-trigger-empty { display: block; padding: .5rem; font-size: .9rem; }

html:has(.equipment-profile[open]) { overflow: hidden; }
.equipment-profile {
  position: fixed; inset: 0; margin: auto; padding: 0; width: min(980px, calc(100vw - 32px));
  max-width: 100%; max-height: min(88vh, 88dvh); overflow: auto; overscroll-behavior: contain;
  color: #f5f2ee;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(232, 130, 52, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #221f31 0%, #171624 100%);
  border: 1px solid rgba(255, 206, 150, 0.22);
  border-radius: 18px;
  box-shadow: 0 32px 96px rgba(6, 5, 14, 0.82);
  color-scheme: dark;
  font-family: var(--sans);
}
.equipment-profile::backdrop {
  background: rgba(10, 9, 17, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.equipment-profile [hidden] { display: none !important; }
.profile-layout { min-width: 0; }
.profile-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 214, 170, 0.14);
}
.profile-header h2 {
  margin: 0; align-self: center;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
  color: #ffffff;
}
.profile-close, .profile-controls button {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 170, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font: 500 1.35rem/1 system-ui;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.profile-close:hover, .profile-controls button:hover {
  background: rgba(245, 165, 36, 0.18);
  border-color: rgba(245, 165, 36, 0.65);
}
.equipment-profile button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.profile-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.profile-gallery { margin: 0; min-width: 0; align-self: start; background: #13121d; }
.profile-stage {
  display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 0;
  color: #cfc8d8; background: #100f19; touch-action: pan-y pinch-zoom;
}
.profile-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.profile-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; padding: 8px 14px; color: #cfc8d8; font-size: .75rem;
}
.profile-photo-kind { font-weight: 600; color: #ffe0a6; }
.profile-controls { display: flex; align-items: center; gap: 9px; }
.profile-controls button { width: 42px; height: 42px; }
.profile-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile-details { min-width: 0; padding: 22px 24px; }
.profile-description { margin: 0; line-height: 1.58; color: #ebe6df; overflow-wrap: anywhere; }
.profile-specs { margin-top: 22px; }
.profile-specs h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f6b84c;
}
.profile-specs dl { margin: 0; display: grid; grid-template-columns: 1fr 1.25fr; }
.profile-specs dt, .profile-specs dd {
  margin: 0; padding: 8px 0;
  border-top: 1px solid rgba(255, 214, 170, 0.13);
  font-size: .84rem; line-height: 1.4; overflow-wrap: anywhere;
}
.profile-specs dt { padding-right: 9px; color: #bfb8cb; }
.profile-specs dd { font-weight: 600; color: #f6f3ef; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.profile-actions button { min-height: 44px; }
@media (max-width: 720px) {
  .equipment-profile { max-height: calc(100dvh - 16px); width: min(540px, calc(100vw - 16px)); border-radius: 14px; }
  .profile-header { position: sticky; top: 0; z-index: 1; align-items: center; padding: 12px 16px; background: rgba(28, 26, 41, 0.95); }
  .profile-content { grid-template-columns: minmax(0, 1fr); }
  .profile-stage { aspect-ratio: 3 / 2; }
  .profile-details { padding: 17px; }
}
