/* GALLERI — tre hela bilder på dator, svepbar bildrad på mobil. */
.showcase-hint { display: none; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  width: 80%;
  margin-inline: auto;
  min-width: 0;
  border-radius: var(--radius);
}

.showcase-grid:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.showcase-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}

.showcase-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

html[data-customized] .showcase-item { border-width: var(--custom-border-width); }

@media (max-width: 600px) {
  .showcase-hint {
    display: block;
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: .875rem;
  }

  .showcase-grid {
    width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 69%;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    border-radius: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--accent-soft);
  }

  .showcase-item { scroll-snap-align: start; }

  .showcase-grid::-webkit-scrollbar { height: 8px; }
  .showcase-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--accent-soft);
  }
  .showcase-grid::-webkit-scrollbar-thumb {
    border: 2px solid var(--accent-soft);
    border-radius: 999px;
    background: var(--accent);
  }
}
