/*
 * Design-system page only. Stash's own stylesheet positions card overlays,
 * stacks the rating stars and fixes the navbar to the window; this file stands
 * in for those few rules so the specimens below match Stash's layout, and
 * dresses the page itself. Everything Stash shows comes from citypop.css.
 */

/*
 * The caustic token holds url()s relative to citypop.css, and browsers
 * resolve a url() in a custom property against the stylesheet that uses it,
 * so this page's own swatches take a copy that points into the plugin folder.
 */
:root {
  --ds-caustic: image-set(
      url('../Theme-CityPop/assets/icons/caustic-1x.webp') 1x,
      url('../Theme-CityPop/assets/icons/caustic-2x.webp') 2x,
      url('../Theme-CityPop/assets/icons/caustic-3x.webp') 3x
    )
    0 0 / 200px 200px;
  --ds-glint: url('../Theme-CityPop/assets/icons/glint.svg');
}

/* Stash fixes its navbar and pads the page for it; here the bar is sticky */
body {
  font-family: var(--citypop-font-body);
  padding: 0 0 6rem;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.top-nav .nav-utility {
  margin-left: auto;
}

.top-nav .navbar-collapse {
  flex-wrap: wrap;
  gap: 0.25rem;
}

@media (width < 1200px) {
  .top-nav.navbar {
    flex-wrap: wrap;
  }

  .top-nav .navbar-toggler {
    margin-right: 0.5rem;
  }

  .top-nav .navbar-collapse {
    flex-basis: 100%;
    order: 3;
    padding: 0.4rem 0 0.2rem;
  }

  .top-nav .navbar-collapse.show {
    display: flex;
  }
}

/* On this page the bar stays at the top of a phone, with its band below */
@media (width <= 575.98px) and (orientation: portrait) {
  body {
    padding: 0 0 6rem;
  }

  .top-nav.navbar {
    box-shadow: 0 6px 0 rgb(4 3 22 / 45%);
    padding: 0.35rem 1rem calc(0.35rem + var(--citypop-band));
  }

  .top-nav.navbar::after {
    bottom: 0;
    top: auto;
  }
}

/* The "Try it" switches */
.ds-controls {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgb(12 14 48 / 86%);
  border-bottom: 1px solid var(--citypop-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 1rem 0.6rem;
  position: sticky;
  top: var(--citypop-nav-height);
  z-index: 1020;
}

.ds-controls .label {
  color: var(--citypop-dim);
  font-family: var(--citypop-font-label);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Below 1200px the demo navbar wraps, so the switches stop sticking under it */
@media (width < 1200px) {
  .ds-controls {
    position: static;
  }
}

/* Sections: each opens on the horizon, a hairline with the stripe band */
.ds-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 3.5rem 1rem 0;
}

.ds-section::before {
  background:
    var(--citypop-stripes) 0 0 / 9rem var(--citypop-band) no-repeat,
    linear-gradient(rgb(185 166 240 / 30%), rgb(185 166 240 / 30%)) 0 5px / 100%
      1px no-repeat;
  content: '';
  display: block;
  height: var(--citypop-band);
  margin-bottom: 2.5rem;
}

.ds-section > h2 {
  align-items: center;
  color: var(--citypop-text);
  display: flex;
  font-family: var(--citypop-font-display);
  font-size: 3.3rem;
  font-weight: 400;
  gap: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow:
    2px 2px 0 var(--citypop-magenta),
    4px 5px 0 rgb(4 3 22 / 55%);
  word-spacing: 0.2em;
}

.ds-section > h2 img {
  height: 2.8rem;
  object-fit: contain;
  width: 3.4rem;
}

.ds-lede {
  color: var(--citypop-muted);
  max-width: 68ch;
}

.ds-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* A navy panel to show specimens on */
.ds-panel {
  background: var(--citypop-panel-grad);
  border: 1px solid var(--citypop-edge);
  border-radius: var(--citypop-radius);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    var(--citypop-hard);
  padding: 1.25rem;
}

.ds-caption {
  color: var(--citypop-dim);
  font-size: 0.85rem;
}

/* Hero: the wordmark in chrome with a hard horizon, and a pile of sleeves */
.ds-hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 560px;
  padding: 3rem 1rem 1rem;
}

.ds-hero .kicker {
  color: var(--citypop-dim);
  font-family: var(--citypop-font-label);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ds-hero .wordmark {
  margin: 0 0 0 -0.15em;
  position: relative;
}

.ds-chrome {
  background: var(--citypop-chrome);
  background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 0.5px rgb(255 255 255 / 80%))
    drop-shadow(3px 3px 0 #c23a8e) drop-shadow(4px 5px 0 rgb(4 3 22 / 60%));
  font-family: var(--citypop-font-display);
  font-weight: 400;
  padding: 0.05em 0.3em 0.12em 0.15em;
  word-spacing: 0.2em;
}

.ds-hero .wordmark .ds-chrome {
  font-size: clamp(5rem, 13vw, 9.5rem);
  line-height: 1;
}

.ds-hero .wordmark::after {
  animation: ds-twinkle 4s ease-in-out infinite;
  background: var(--ds-glint) center / contain no-repeat;
  content: '';
  height: 3.2rem;
  left: 46%;
  position: absolute;
  top: 0.4rem;
  width: 3.2rem;
}

@keyframes ds-twinkle {
  0%,
  60%,
  100% {
    opacity: 0;
    transform: scale(0.2) rotate(-45deg);
  }

  75% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.ds-sub {
  align-items: center;
  color: var(--citypop-muted);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--citypop-font-label);
  font-size: 0.85rem;
  gap: 0.5rem 1rem;
  letter-spacing: 0.2em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.ds-sub [lang='ja'] {
  letter-spacing: 0.24em;
}

.ds-sub > [lang='ja'] {
  color: var(--citypop-text);
  font-size: 1.15rem;
}

/* A little FM dial, needle on 86.1 */
.ds-dial {
  background:
    linear-gradient(#ff7a6b, #ff7a6b) 62% 0 / 2px 100% no-repeat,
    repeating-linear-gradient(
        90deg,
        rgb(203 195 236 / 70%) 0 1px,
        transparent 1px 6px
      )
      0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(
        90deg,
        rgb(255 255 255 / 90%) 0 1px,
        transparent 1px 30px
      )
      0 100% / 100% 9px no-repeat;
  display: inline-block;
  height: 14px;
  width: 91px;
}

.ds-hero .tagline {
  color: var(--citypop-muted);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  max-width: 34rem;
}

/* Sizes in the hero art are in cqw so the obi can follow the sleeve */
.ds-hero-art {
  aspect-ratio: 1;
  container-type: inline-size;
  position: relative;
}

.ds-hero-art img {
  position: absolute;
}

/* The obi: the paper strip wrapped round the left edge of a Japanese LP */
.ds-hero-art::after {
  background:
    linear-gradient(
        180deg,
        #ffb36b 0 4px,
        transparent 4px 6px,
        #ff7a6b 6px 9px,
        transparent 9px 11px,
        #f5508a 11px 13px,
        transparent 13px
      )
      0 6px / 100% 13px no-repeat,
    linear-gradient(
      90deg,
      rgb(0 0 0 / 8%),
      transparent 30%,
      transparent 75%,
      rgb(0 0 0 / 10%)
    ),
    var(--citypop-cream);
  box-shadow: 2px 0 0 rgb(4 3 22 / 25%);
  color: var(--citypop-ink);
  content: '夕焼け';
  font-family: var(--citypop-font-ja);
  font-size: 4.6cqw;
  font-weight: 700;
  height: 61cqw;
  left: 2.6cqw;
  letter-spacing: 0.35em;
  padding-top: 7.5cqw;
  position: absolute;
  text-align: center;
  top: 5.4cqw;
  transform: rotate(-4deg);
  transform-origin: 29.4cqw 30.6cqw;
  width: 9cqw;
  writing-mode: vertical-rl;
  z-index: 1;
}

.ds-hero-art .cover {
  border: 7px solid var(--citypop-paper);
  box-shadow: 10px 12px 0 var(--citypop-drop);
  left: 0;
  top: 4%;
  transform: rotate(-4deg);
  width: 64%;
  z-index: 1;
}

.ds-hero-art .pinup {
  border: 6px solid var(--citypop-paper);
  box-shadow: 10px 12px 0 var(--citypop-drop);
  right: 0;
  top: 14%;
  transform: rotate(5deg);
  width: 40%;
  z-index: 2;
}

.ds-hero-art .tape {
  bottom: -2%;
  left: 6%;
  transform: rotate(-9deg);
  width: 58%;
  z-index: 3;
}

.ds-hero-art .shades {
  bottom: 10%;
  right: -2%;
  transform: rotate(10deg);
  width: 40%;
  z-index: 4;
}

.ds-hero-art .glint {
  animation: ds-twinkle 4s 2s ease-in-out infinite;
  left: 52%;
  top: 0;
  width: 13%;
  z-index: 5;
}

/* The pin-up is a figure, so Stash's SFW mode hides her */
.sfw-content-mode .ds-hero-art .pinup {
  display: none;
}

/* Palette */
.ds-swatches {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.ds-swatch {
  background: var(--citypop-panel-grad);
  border: 1px solid var(--citypop-edge);
  border-radius: var(--citypop-radius);
  box-shadow: 4px 4px 0 var(--citypop-drop);
  overflow: hidden;
}

.ds-swatch .chip {
  border-bottom: 1px solid var(--citypop-edge);
  height: 72px;
}

.ds-swatch .meta {
  padding: 0.6rem 0.75rem 0.75rem;
}

.ds-swatch code {
  color: var(--citypop-text);
  font-family: var(--citypop-font-label);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.ds-swatch .hex {
  color: var(--citypop-muted);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

.ds-swatch .role {
  color: var(--citypop-dim);
  font-size: 0.8rem;
}

.ds-chip-sunset {
  background: var(--citypop-sunset);
}

.ds-chip-pool {
  background: var(--ds-caustic), var(--citypop-pool-grad);
}

.ds-chip-night {
  background: linear-gradient(
    180deg,
    #0c0e30,
    #1c1650 55%,
    #3a1d5e 85%,
    #5b1f62
  );
}

/* Type */
.ds-type .specimen {
  border-bottom: 1px solid rgb(185 166 240 / 20%);
  padding: 1rem 0;
}

.ds-type .specimen:last-child {
  border-bottom: 0;
}

.ds-type .spec {
  color: var(--citypop-dim);
  font-family: var(--citypop-font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.ds-type .t-display {
  font-size: 4.4rem;
  line-height: 1.1;
}

.ds-type .t-voice {
  color: var(--citypop-coral);
  font-family: var(--citypop-font-label);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
}

.ds-type .t-voice + .t-voice {
  color: var(--citypop-text);
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

.ds-type .t-title {
  color: var(--citypop-text);
  font-family: var(--citypop-font-label);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.ds-type .t-label {
  color: var(--citypop-muted);
  font-family: var(--citypop-font-label);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ds-type .t-body {
  color: var(--citypop-muted);
}

/* Every Japanese word the theme draws, with its reading and meaning */
.ds-words {
  display: grid;
  gap: 0.6rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin: 0.3rem 0 0;
}

.ds-words div {
  border-left: 2px solid rgb(255 138 122 / 45%);
  padding-left: 0.8rem;
}

.ds-words dt {
  color: var(--citypop-coral);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.ds-words dd {
  color: var(--citypop-muted);
  font-size: 0.85rem;
  margin: 0;
}

.ds-words i {
  color: var(--citypop-text);
}

/* Motifs and glyphs */
.ds-motifs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  margin-bottom: 1.5rem;
}

.ds-motif {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ds-motif img {
  height: 130px;
  object-fit: contain;
  transition: transform var(--citypop-medium) var(--citypop-ease);
  width: 150px;
}

.ds-motif:hover img {
  transform: translateY(-4px) rotate(-3deg);
}

.ds-motif span {
  color: var(--citypop-muted);
  font-family: var(--citypop-font-label);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-glyph {
  background: var(--citypop-sunset);
  display: inline-block;
  height: 36px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 36px;
}

.ds-glyph.is-pool {
  background: var(--citypop-pool-grad);
}

.ds-glyph.is-unlit {
  background: var(--citypop-unlit);
}

.ds-glyph.is-white {
  background: #fff;
}

/* Cards, as Stash lays them out */
.ds-cards {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ds-cards .scene-card {
  width: 300px;
}

.ds-cards .performer-card {
  width: 220px;
}

.ds-cards .image-card {
  width: 240px;
}

.grid-card {
  display: flex;
  flex-direction: column;
}

.scene-card .video-section,
.performer-card .thumbnail-section,
.image-card .thumbnail-section {
  position: relative;
}

.scene-card-preview {
  align-items: center;
  aspect-ratio: 16 / 9;
  display: flex;
  justify-content: center;
  position: relative;
}

.performer-card-image {
  align-items: center;
  aspect-ratio: 2 / 3;
  display: flex;
  justify-content: center;
}

.image-card-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  display: flex;
  justify-content: center;
  position: relative;
}

.image-card-preview.portrait {
  aspect-ratio: 3 / 4;
}

.grid-card .card-controls {
  align-items: center;
  display: flex;
  position: absolute;
}

.grid-card .card-check {
  height: 1.2rem;
  opacity: 0;
  width: 1.2rem;
}

.grid-card .card-check:checked,
.grid-card:hover .card-check {
  opacity: 0.75;
}

.preview-button {
  display: flex;
  height: 100%;
  position: absolute;
  width: 100%;
}

.rating-banner {
  position: absolute;
}

.grid-card:hover .rating-banner {
  opacity: 0;
}

.studio-overlay {
  max-width: 50%;
  position: absolute;
  right: 0.7rem;
  text-align: right;
  top: 0.7rem;
  z-index: 8;
}

.overlay-resolution {
  text-transform: uppercase;
}

.scene-specs-overlay {
  bottom: 0.7rem;
  font-size: 0.8rem;
  position: absolute;
  right: 0.5rem;
  z-index: 2;
}

.grid-card .progress-bar {
  left: 0;
  position: absolute;
  right: 0;
}

.card-popovers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 0.4rem 0.3rem;
}

.card-popovers .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.3rem;
}

.ds-ico {
  fill: currentcolor;
  height: 14px;
  width: 14px;
}

.performer-card .favorite-button {
  padding: 0;
  position: absolute;
  right: 5px;
  top: 10px;
}

/* Rating stars, as Stash's Rating/styles.scss stacks them */
.rating-stars {
  display: inline-flex;
  font-size: 1.6rem;
  vertical-align: middle;
}

.rating-stars button {
  font-size: inherit;
  line-height: 1;
  padding: 0 0.1rem;
  position: relative;
}

.rating-stars .filled-star {
  height: 100%;
  left: 0.1rem;
  overflow: hidden;
  position: absolute;
  top: 0;
}

.rating-stars .star-fill-0 .filled-star {
  width: 0;
}

.rating-stars .star-fill-100 .filled-star {
  width: 1em;
}

.rating-stars svg {
  display: block;
  height: 1em;
  width: 1em;
}

.star-rating-number {
  margin-left: 0.5rem;
}

/* The performer page's header, as Stash lays it out */
.ds-jcard .detail-header {
  border-radius: var(--citypop-radius);
  overflow: hidden;
}

.ds-jcard .detail-item-value {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.ds-jcard .details-edit {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.ds-jcard .name-icons {
  align-items: center;
  display: inline-flex;
}

.ds-jcard .detail-header-image .ph {
  aspect-ratio: 2 / 3;
  display: block;
  width: var(--citypop-cover);
}

/* The list toolbar and pager, as Stash lays them out */
.filtered-list-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem 0;
}

.filtered-list-toolbar .search-term-input {
  display: flex;
  width: 220px;
}

.ds-scenes .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin: 1rem 0 1.5rem;
}

.ds-scenes .card-grid .scene-card {
  width: 300px;
}

.pagination-footer-container {
  display: flex;
  justify-content: center;
}

.pagination.btn-group {
  display: inline-flex;
}

/* Overlays shown in place rather than floating */
.ds-static .dropdown-menu,
.ds-static .toast,
.ds-static .modal-content,
.ds-static .tooltip {
  display: block;
  float: none;
  left: auto;
  opacity: 1;
  position: relative;
  top: auto;
}

.ds-static .tooltip-inner {
  display: inline-block;
}

.ds-overlays {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Bootstrap's spinner box */
.LoadingIndicator {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

/* Stash-box: the layout the Tagger and react-select give these */
.search-item {
  padding: 1rem;
}

.search-result {
  padding: 1rem 0;
}

.scene-metadata {
  margin-left: 1rem;
}

.ds-cover {
  aspect-ratio: 16 / 9;
  height: 7rem;
}

.ds-match {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.ds-match .entity-name {
  flex: 1 1 10rem;
}

.ds-match .react-select {
  width: 14rem;
}

.react-select__control {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 0.75rem;
}

.stash-id-pill {
  display: inline-flex;
  font-size: 90%;
  line-height: 1;
  white-space: nowrap;
}

.stash-id-pill span,
.stash-id-pill a {
  padding: 0.3em 0.65em;
}

.scrape-dialog {
  max-width: 760px;
}

/* The pagination line Stash prints above a list */
.paginationIndex {
  padding: 0.5rem 0;
  text-align: center;
}

/* Copy table */
.ds-copy {
  width: 100%;
}

.ds-copy td,
.ds-copy th {
  border-top: 1px solid rgb(185 166 240 / 20%);
  padding: 0.6rem 0.75rem;
}

.ds-copy th {
  color: var(--citypop-dim);
  font-family: var(--citypop-font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-copy td:first-child {
  color: var(--citypop-muted);
}

.ds-copy td:last-child {
  color: var(--citypop-coral);
  font-family: var(--citypop-font-label);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
}

.ds-footer {
  color: var(--citypop-dim);
  font-size: 0.85rem;
  margin: 4rem auto 0;
  max-width: 1180px;
  padding: 0 1rem;
}

.ds-footer a {
  color: var(--citypop-coral);
}

/*
 * Picture stand-ins: airbrushed dusk gradients in place of covers, so each
 * specimen frames something with a picture's light and shade. They are
 * colour only, drawn from the theme's own palette.
 */
.ph {
  background-color: #1a1848;
}

.ph-1 {
  background:
    radial-gradient(
      30% 40% at 70% 62%,
      #ffe08a 0,
      #ff9a6e 40%,
      transparent 72%
    ),
    linear-gradient(180deg, #2a1f6e 0%, #7a2f88 45%, #f5508a 70%, #ffb36b 100%);
}

.ph-2 {
  background:
    radial-gradient(60% 30% at 50% 100%, #7ff3ea 0, transparent 70%),
    linear-gradient(180deg, #121244 0%, #1596b0 60%, #4fe3da 100%);
}

.ph-3 {
  background:
    radial-gradient(40% 50% at 30% 40%, #ffc98a 0, transparent 70%),
    radial-gradient(50% 60% at 80% 70%, #c23a8e 0, transparent 72%),
    linear-gradient(150deg, #3a1d5e, #0c0e30 75%);
}

.ph-4 {
  background:
    radial-gradient(
      34% 44% at 55% 45%,
      #fff4ec 0,
      #ff8a7a 40%,
      transparent 74%
    ),
    linear-gradient(200deg, #6a3fb0, #1c1650 70%);
}

.ph-5 {
  background:
    radial-gradient(
      40% 54% at 50% 38%,
      #ffe7a0 0,
      #ff7a6b 46%,
      transparent 74%
    ),
    radial-gradient(70% 40% at 50% 100%, #1fa6bd 0, transparent 70%),
    linear-gradient(170deg, #45215f, #111344 75%);
}

.ph-6 {
  background:
    radial-gradient(
      36% 50% at 45% 55%,
      #b9a6f0 0,
      #6a3fb0 50%,
      transparent 76%
    ),
    radial-gradient(40% 40% at 82% 22%, #ffb36b 0, transparent 70%),
    linear-gradient(150deg, #1d185a, #0a0c2c 70%);
}

@media (width <= 720px) {
  .ds-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ds-hero-art {
    max-width: 340px;
  }

  .ds-section > h2 {
    font-size: 2.6rem;
  }

  .ds-type .t-display {
    font-size: 3.2rem;
  }

  .ds-motifs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-motif img {
    height: 100px;
    width: 120px;
  }

  .ds-cards .scene-card,
  .ds-cards .performer-card,
  .ds-cards .image-card,
  .ds-scenes .card-grid .scene-card {
    width: 100%;
  }

  .search-result .col-lg-5.d-flex {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .scene-metadata {
    margin-left: 0;
    min-width: 0;
  }
}
