.search-wrap {
  position: relative;
}

.search-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  background: #111;
  border: 1px solid #3a3a3a;
  border-top: 3px solid var(--red);
  border-radius: 0 0 7px 7px;
  box-shadow: 0 16px 28px #000c;
  text-align: left;
}

.search-suggestions.hidden {
  display: none;
}

.search-suggestion {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #292929;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.search-suggestion:last-child {
  border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion.active {
  background: var(--red);
  color: #fff;
}

.viewer-bar {
  justify-content: flex-start;
}

.viewer-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border-top: 1px solid #292929;
  background: #090909;
}

.viewer-actions .download-photo {
  justify-content: center;
  width: min(100%, 320px);
}

@media (max-width: 570px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .card {
    aspect-ratio: 1;
    border-radius: 3px;
  }

  .card img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}
