/* Shorts is a mobile gallery mode; profile content still uses profile-modal.css. */
@media (min-width: 900px) {
  [data-shorts-toggle] {
    display: none;
  }
}
html.shorts-open {
  overflow: hidden;
}
.gallery-shorts {
  --sheet-height: 220px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100dvh;
  overflow: hidden;
  background: #13100d;
  color: #fff;
}
.shorts-feed {
  height: 100%;
  overflow: hidden auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.shorts-photos {
  display: flex;
  width: 100%;
  height: calc(100% - 90px);
  overflow: auto hidden;
  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.shorts-feed::-webkit-scrollbar,
.shorts-photos::-webkit-scrollbar {
  display: none;
}
.shorts-photos > img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center 25%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.shorts-badges {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  pointer-events: none;
}
.shorts-badges > * {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  background-color: rgb(5 6 5 / 88%);
  backdrop-filter: blur(12px);
}
.shorts-badges img {
  width: 17px;
  height: 17px;
}
.shorts-tools {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 12px;
  display: grid;
  gap: 9px;
}
.shorts-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 50%;
  background: rgb(20 18 14 / 30%);
  color: #fff;
  backdrop-filter: blur(12px);
}
.shorts-button > svg {
  width: 100%;
  height: 100%;
}
.shorts-button > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.shorts-button .menu-toggle__lines {
  width: 21px;
}
.shorts-heart {
  position: absolute;
  right: 12px;
  bottom: calc(var(--sheet-height) + 96px);
  width: 50px;
  height: 50px;
}
.shorts-heart[aria-pressed="true"] {
  border-color: var(--color-new);
}
.shorts-heart[aria-pressed="true"] img {
  filter: none;
}
.shorts-bottom {
  position: absolute;
  bottom: calc(var(--sheet-height) + 6px);
  left: 10px;
  right: 10px;
  pointer-events: none;
}
.shorts-photo-dots {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  pointer-events: auto;
}
.shorts-photo-dots .card-photos__dot {
  width: 28px;
  height: 28px;
}
.shorts-progress {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  background: rgb(5 6 5 / 72%);
  backdrop-filter: blur(14px);
  font-size: 13px;
  pointer-events: auto;
}
.shorts-total {
  padding-right: 14px;
  border-right: 1px solid rgb(255 255 255 / 40%);
}
.shorts-position {
  margin-right: auto;
  white-space: nowrap;
}
.shorts-progress .shorts-button {
  width: 44px;
  height: 44px;
  padding: 15px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.shorts-previous img {
  transform: rotate(180deg);
}
.shorts-button:disabled {
  opacity: 0.3;
  cursor: default;
}
.shorts-shade {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 50%);
}
.shorts-empty {
  position: absolute;
  top: 45%;
  left: 24px;
  right: 24px;
  text-align: center;
}
.shorts-empty button {
  padding: 12px 20px;
  border: 1px solid var(--color-gold);
  border-radius: 30px;
  color: var(--color-gold);
  background: #16130e;
}
.shorts-overlay {
  padding: 22px;
}
.shorts-overlay .extra-filters__actions {
  margin-top: 6px;
}
.shorts-overlay--menu {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) 20px 24px;
  border: 0;
  border-bottom: 1px solid var(--color-gold-subtle);
  border-radius: 0 0 20px 20px;
  background: rgb(5 6 5 / 25%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
.shorts-overlay--menu::backdrop {
  background: rgb(0 0 0 / 12%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.shorts-menu .header-nav__link {
  width: 100%;
}
.gallery-shorts :focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -3px;
}

.profile-sheet-toggle {
  display: none;
}
.profile-modal--shorts[open] {
  z-index: 1100;
  inset: auto 0 0;
  height: auto;
  max-height: 65dvh;
  border: 1px solid rgb(224 201 152 / 35%);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #050605;
  box-shadow: 0 -8px 30px rgb(0 0 0 / 18%);
}
.profile-modal--shorts .profile-modal__surface {
  margin: 0;
  padding: 0 0 max(12px, env(safe-area-inset-bottom));
  border-radius: 0;
  box-shadow: none;
}
.profile-modal--shorts .profile-modal__close,
.profile-modal--shorts .profile-modal__column--left,
.profile-modal--shorts .profile-modal__footer {
  display: none;
}
.profile-modal--shorts .profile-sheet-toggle {
  position: sticky;
  top: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: 30px;
  padding: 0;
  border: 0;
  background: #050605;
  touch-action: none;
}
.profile-sheet-toggle::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: auto;
  background: #c8c6c2;
  border-radius: 10px;
}
/* All content typography and spacing come from the shared profile modal.
   Only remove the overlap intended for the regular modal's photo section. */
.profile-modal--shorts .profile-modal__info {
  margin-top: 0;
}
.profile-modal--shorts:not(.is-expanded)
  .profile-modal__column--right
  > :not(.profile-modal__info),
.profile-modal--shorts:not(.is-expanded) .profile-modal__next-reviews {
  display: none;
}
/* Shorts puts the price beside the name; city and languages share the row below. */
.profile-modal--shorts .profile-modal__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
}
.profile-modal--shorts .profile-modal__info > * {
  grid-column: 1 / -1;
}
.profile-modal--shorts .profile-modal__info > .profile-modal__heading {
  grid-area: 1 / 1;
  column-gap: 8px;
}
.profile-modal--shorts .profile-modal__info > .profile-modal__meta {
  grid-area: 2 / 1;
}
.profile-modal--shorts .profile-modal__info > .profile-modal__price {
  grid-area: 1 / 2 / 3 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}
.profile-modal__price-amount {
  color: var(--color-new);
  font-size: 11px;
  line-height: calc(clamp(23px, 6.5vw, 30px) * 1.2);
}
.profile-modal__price-amount strong {
  font-size: 20px;
  font-weight: 500;
}
.profile-modal__price-note {
  margin-top: 9px;
  color: #bdbbb5;
  font-size: 10px;
  line-height: 24px;
}
/* The collapsed sheet shows only name, status, city, price and languages. */
.profile-modal--shorts:not(.is-expanded) .profile-modal__actions,
.profile-modal--shorts:not(.is-expanded) .profile-modal__notice,
.profile-modal--shorts:not(.is-expanded) .profile-modal__attributes {
  display: none;
}
/* Reserve vertical gestures before the browser starts scrolling. Applying this
   to the scroll container also covers touches that begin on summary buttons. */
.profile-modal--shorts:not(.is-expanded) .profile-modal__scroller {
  touch-action: pinch-zoom;
  overflow-y: hidden;
}
.profile-modal--shorts.is-expanded {
  height: 84dvh;
  max-height: 84dvh;
  justify-content: flex-start;
}
.profile-modal--shorts.is-expanded .profile-modal__scroller {
  flex: 1;
}
.profile-modal--shorts.is-reviews-view .profile-modal__surface {
  margin: 0;
  padding: 0 14px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.profile-modal--shorts .profile-modal__all-reviews {
  padding: 0 14px 16px;
}
@media (max-height: 600px) {
  .shorts-tools {
    gap: 5px;
  }
  .shorts-tools .shorts-button {
    width: 40px;
    height: 40px;
    padding: 10px;
  }
}
