/* Our Images — the image-style switcher reuses the passport `.style-selector`
   component; only the tab panels and the icon grid/tiles are page-specific. */

.oi-panel[hidden] {
  display: none;
}
.oi-panel:focus {
  outline: none;
}
.oi-panel__desc {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 1.5rem;
  color: var(--km-text-muted);
  font-size: var(--km-text-md);
}

/* Icon grid + tiles */
.oi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 18px;
}
.oi-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  min-width: 0;
  margin: 0;
}
.oi-tile__frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 95, 131, 0.12);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 75, 105, 0.06);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.oi-tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.oi-tile:hover .oi-tile__frame,
.oi-tile:focus-within .oi-tile__frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 75, 105, 0.16);
  border-color: var(--km-primary);
}
.oi-tile__name {
  font-size: var(--km-text-xs);
  color: var(--km-text-muted);
  line-height: 1.2;
}

/* Text-only ("No images") style */
.oi-tile--text .oi-tile__frame {
  background: var(--km-soft);
}
.oi-tile--text .oi-tile__label {
  font-family: var(--km-font-heading);
  font-weight: 600;
  color: var(--km-primary);
  font-size: var(--km-text-sm);
  line-height: 1.25;
  padding: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .oi-tile__frame {
    transition: none;
  }
}
