/* Keep the gallery controls visible while its photos scroll. Loaded after shahrul.css. */
.shahrul-page .customer-gallery {
  overflow: hidden;
}

.shahrul-page .customer-gallery-shell {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(min(90dvh, 1000px) - 2px);
}

.shahrul-page .customer-gallery-heading {
  flex: none;
}

.shahrul-page .customer-gallery-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-auto-rows: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .shahrul-page .customer-gallery[open] {
    animation: customer-gallery-enter 180ms ease-out both;
  }

  @keyframes customer-gallery-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
