[data-motion-size] {
  overflow: clip;
  overflow-clip-margin: 6px;
}

.faq-list > details > summary::after,
.faq-list > details[open] > summary::after {
  content: "";
  inline-size: .72em;
  block-size: .72em;
  background: linear-gradient(currentColor, currentColor) center / .64em 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px .64em no-repeat;
}

.faq-list > details[open]:not([data-motion-closing]) > summary::after {
  background-size: .64em 1px, 1px 0;
}

:is(.review-more, .gallery-more)[open][data-motion-closing] > summary > span,
.cities[open][data-motion-closing] > summary::after {
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: no-preference) {
  :is(.review-more, .gallery-more) > summary > span,
  .cities > summary::after {
    transition: transform 190ms ease;
  }

  .faq-list > details > summary::after {
    transition: background-size 190ms ease;
  }

  @supports selector(details::details-content) and (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
    details {
      --disclosure-duration: 255ms;
    }

    details:is(.review-more, .gallery-more, .cities) {
      --disclosure-duration: 400ms;
    }

    details::details-content {
      interpolate-size: allow-keywords;
      block-size: 0;
      overflow: clip;
      overflow-clip-margin: 6px;
      transition: block-size var(--disclosure-duration) ease,
        content-visibility var(--disclosure-duration) allow-discrete;
    }

    details[open]::details-content {
      block-size: auto;
    }
  }
}

.dialog-content[data-photo-stage] {
  height: min(81dvh, calc(100dvh - 76px));
  min-height: 0;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: clip;
}

.dialog-content[data-photo-stage] > img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

