.gallery-page {
  background: #000;
}
.gallery-container {
  width: calc(100% - 2 * var(--content-gutter));
  max-width: var(--content-max-width);
  margin-inline: auto;
}
.header-back {
  grid-column: 1;
  grid-row: 1;
  width: 24px;
}
.gallery-page .header-back img {
  filter: var(--gold-icon-filter);
  transform: rotate(90deg);
}
@media (max-width: 1099px) {
  .gallery-page .site-header__inner {
    grid-template-columns: 24px minmax(0, 1fr) 36px 36px;
    column-gap: 3px;
  }
  .gallery-page .brand {
    grid-column: 2;
    gap: 8px;
  }
  .gallery-page .brand__logo {
    width: clamp(88px, 27vw, 120px);
  }
  .gallery-page .brand__tagline {
    font-size: clamp(5.5px, 1.6vw, 7.4px);
    letter-spacing: 0.2em;
  }
  .gallery-page .search-toggle {
    grid-column: 3;
    width: 36px;
  }
  .gallery-page .menu-toggle {
    grid-column: 4;
    width: 36px;
  }
}
.gallery-hero {
  padding: calc(var(--site-header-height) + 58px) 0 18px;
  position: relative;
  isolation: isolate;
  background: #050605 url("../assets/images/gallery-hero-bg-mobile.webp") right
    top / cover no-repeat;
}
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.6) 56%,
    rgba(0, 0, 0, 0) 60%
  );
}
.gallery-hero__inner {
  position: relative;
}
.gallery-hero h1 {
  margin: 0;
  color: var(--color-gold);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.gallery-hero__subtitle {
  margin: 9px 0 24px;
  font-size: clamp(12px, 3.25vw, 18px);
  line-height: 1.5;
}
.gallery-hero__tagline {
  display: none;
}
.gallery-discovery .hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.gallery-discovery .hero-select,
.gallery-discovery .hero-filter-toggle,
.gallery-verified {
  height: 36px;
}
.gallery-discovery .hero-select {
  width: auto;
}
.gallery-discovery .hero-select select {
  font-size: 11px;
  padding-inline: 27px 18px;
}
.gallery-discovery .hero-select > .hero-icon:first-of-type {
  left: 8px;
  width: 14px;
  height: 14px;
}
.gallery-discovery .hero-select__chevron {
  right: 7px;
  width: 8px;
  height: 8px;
}
.gallery-discovery .hero-select--budget select {
  font-size: 10px;
  padding-left: 26px;
}
.gallery-discovery .hero-filter-toggle {
  grid-column: 3;
  justify-self: end;
  width: 44px;
}
.gallery-verified {
  display: inline-flex;
  align-items: center;
  justify-content: start;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  background: rgb(5 6 5 / 64%);
  color: #eee9df;
  font-size: 11px;
  width: fit-content;
}
.gallery-verified[aria-pressed="true"] {
  background: color-mix(in srgb, var(--color-gold) 24%, #050605);
  box-shadow: inset 0 0 0 1px var(--color-gold);
}
.gallery-verified .hero-icon {
  width: 16px;
  height: 16px;
}
.gallery-results {
  min-height: 60vh;
  padding: 0;
  background: #000;
}
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 17px 0;
}
.gallery-count {
  margin: 0 auto 0 0;
  font-size: 14px;
  white-space: nowrap;
}
.gallery-count__number {
  color: #ff8a3d;
  font-weight: 500;
}
.gallery-mode {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.gallery-mode__button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.gallery-mode__button[aria-pressed="true"] {
  background: #a69350;
}
.gallery-mode__button:disabled {
  opacity: 0.5;
  cursor: default;
}
.gallery-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  font-size: 11px;
  color: var(--color-gold);
}
.gallery-sort select {
  appearance: none;
  width: 56px;
  min-height: 32px;
  padding: 0 14px 0 0;
  border: 0;
  background: transparent;
  color: #eee9df;
  font-size: 11px;
  cursor: pointer;
}
.gallery-sort select option {
  background: #151410;
}
.gallery-sort > img:last-child {
  position: absolute;
  right: 0;
  pointer-events: none;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery-grid > li {
  min-width: 0;
}
.gallery-grid .profile-card {
  aspect-ratio: 0.56;
  height: auto;
  border-radius: 12px;
  border-width: 1.5px;
  box-shadow:
    inset 0 0 5px var(--color-gold-subtle),
    0 0 5px var(--color-gold-subtle);
}
.gallery-grid .profile-card--new {
  --card-hover-color: var(--color-new);
  border-color: #ffc6d3;
  box-shadow:
    inset 0 0 5px var(--color-new),
    0 0 7px var(--color-new);
}
.gallery-grid .profile-card--offer {
  border-color: #f0e2a6;
  box-shadow: 0 0 6px rgb(224 201 152 / 55%);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-grid .profile-card:hover {
    box-shadow:
      inset 0 0 5px var(--color-gold-subtle),
      0 0 14px
        color-mix(
          in srgb,
          var(--card-hover-color, var(--color-gold)) 55%,
          transparent
        );
  }
}
.gallery-grid .profile-card__details {
  padding: 50% 8px 10px;
  background: linear-gradient(
    transparent 48%,
    rgb(0 0 0 / 26%) 65%,
    rgb(0 0 0 / 95%) 95%
  );
}
.gallery-grid .profile-card__name {
  font-size: clamp(18px, 4.7vw, 28px);
  font-weight: 400;
  line-height: 1.15;
}
.gallery-grid .profile-card__meta {
  order: initial;
  margin-top: 5px;
  font-size: clamp(11px, 3.05vw, 17px);
}
.gallery-grid .profile-card__city {
  gap: 4px;
  margin-top: 8px;
  font-size: clamp(9px, 2.45vw, 14px);
}
.gallery-grid .profile-card__city > img {
  display: block;
  width: 13px;
  height: 15px;
}
.gallery-grid .profile-card__online {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: auto;
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  background: #050605;
  box-shadow: none;
  font-size: 9px;
}
.gallery-grid .profile-card__online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-online);
  box-shadow: 0 0 3px rgb(53 217 87 / 55%);
}
.gallery-grid .profile-card__online span {
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
}
.gallery-grid .profile-card__badge {
  top: 10px;
  left: 8px;
  max-width: calc(100% - 43px);
  padding: 5px 6px;
  font-size: 10px;
  border-radius: 9px;
}
.gallery-grid .profile-card__badge img {
  width: 12px;
  height: 12px;
}
.gallery-grid .profile-card__favorite {
  top: 8px;
  right: 4px;
  width: 30px;
  height: 32px;
}
.gallery-grid .profile-card__favorite img {
  width: 21px;
  height: 21px;
}
.gallery-search-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.gallery-search-summary button {
  border: 0;
  background: transparent;
  color: var(--color-gold);
  font-size: 24px;
}
.gallery-empty {
  padding: 48px 0;
  text-align: center;
}
.gallery-empty button {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--color-gold-subtle);
  border-radius: 6px;
  background: #080806;
  color: var(--color-gold);
}
.gallery-pagination {
  padding: 24px 0 18px;
  color: var(--color-gold);
}
.gallery-pagination__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}
.gallery-pagination__summary::before,
.gallery-pagination__summary::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}
.gallery-pagination__summary::after {
  transform: rotate(180deg);
}
.gallery-pagination__pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.gallery-pagination button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  background: rgb(0 0 0 / 65%);
  color: var(--color-gold);
  font-size: 16px;
  box-shadow: inset 0 0 2px var(--color-gold-subtle);
}
.gallery-pagination button[aria-current="page"] {
  background: linear-gradient(135deg, #ffe2a2, var(--color-gold));
  color: #15120a;
}
.gallery-pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-pagination__previous {
  transform: rotate(90deg);
}
.gallery-pagination__next {
  transform: rotate(-90deg);
}
.gallery-pagination__ellipsis {
  padding-inline: 2px;
}
.gallery-new {
  padding: 20px 0 40px;
  background:
    linear-gradient(rgb(0 0 0 / 97%), rgb(0 0 0 / 70%)),
    #050605 url("../assets/images/home-hero-bg-mobile.webp") center bottom /
      cover no-repeat;
}
.gallery-new .featured__intro h2 {
  font-size: clamp(19px, 5.4vw, 26px);
  letter-spacing: 0;
}
.gallery-new__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-new__grid > li {
  min-width: 0;
}
.gallery-new__empty {
  color: #cfcdc8;
  font-size: 14px;
}
@media (max-width: 374px) {
  .gallery-pagination__summary {
    font-size: 11px;
    gap: 10px;
  }
  .gallery-pagination__pages {
    gap: 6px;
  }
  .gallery-pagination button {
    min-width: 34px;
    padding-inline: 8px;
  }
}
@media (min-width: 900px) {
  .gallery-pagination {
    padding: 30px 0 24px;
  }
  .gallery-pagination__summary {
    gap: 32px;
    font-size: 16px;
  }
  .gallery-pagination__pages {
    gap: 12px;
  }
  .gallery-pagination button {
    min-width: 46px;
    height: 42px;
    font-size: 18px;
  }
  .gallery-new {
    padding: 24px 0 50px;
    background: transparent;
  }
  .gallery-new__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (hover: hover) {
  .gallery-pagination button:hover:not(:disabled):not([aria-current]) {
    background: var(--color-gold-subtle);
  }
}
.gallery-page main :focus-visible,
.gallery-page .header-back:focus-visible {
  outline: 1px solid #00000000;
}
@media (min-width: 375px) and (max-width: 599px) {
  .gallery-page {
    --content-gutter: 8px;
  }
  .gallery-grid {
    column-gap: 8px;
  }
  .gallery-toolbar {
    column-gap: 8px;
  }
  .gallery-mode,
  .gallery-sort,
  .gallery-sort select {
    font-size: 12px;
  }
  .gallery-mode__button {
    width: 28px;
    height: 28px;
  }
  .gallery-mode__button img {
    width: 21px;
    height: 21px;
  }
  .gallery-mode__button[data-shorts-toggle] img {
    width: 23px;
    height: 23px;
  }
  .gallery-sort > img:first-child {
    width: 18px;
    height: 18px;
  }
  .gallery-sort select {
    width: 60px;
  }
}
@media (min-width: 390px) and (max-width: 599px) {
  .gallery-mode,
  .gallery-sort,
  .gallery-sort select {
    font-size: 13px;
  }
  .gallery-mode__button {
    width: 30px;
    height: 30px;
  }
  .gallery-mode__button img {
    width: 22px;
    height: 22px;
  }
  .gallery-mode__button[data-shorts-toggle] img {
    width: 25px;
    height: 25px;
  }
  .gallery-sort select {
    width: 64px;
  }
}
@media (max-width: 374px) {
  .gallery-page {
    --content-gutter: 10px;
  }
  .gallery-mode > span {
    display: none;
  }
  .gallery-toolbar {
    gap: 8px;
  }
  .gallery-grid {
    gap: 10px 8px;
  }
  .gallery-grid .profile-card__details {
    padding-inline: 6px;
  }
  .gallery-grid .profile-card__city {
    gap: 3px;
    font-size: 8px;
  }
  .gallery-grid .profile-card__online {
    padding-inline: 4px;
    font-size: 8px;
  }
  .gallery-grid .profile-card__badge {
    font-size: 8px;
    left: 6px;
  }
  .gallery-discovery .hero-select select {
    padding-inline: 23px 14px;
    font-size: 10px;
  }
  .gallery-discovery .hero-select > .hero-icon:first-of-type {
    left: 6px;
    width: 12px;
    height: 12px;
  }
  .gallery-discovery .hero-select__chevron {
    right: 5px;
    width: 7px;
    height: 7px;
  }
  .gallery-discovery .hero-select--budget select {
    padding-left: 23px;
    font-size: 9px;
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .gallery-grid .profile-card {
    aspect-ratio: 0.7;
  }
  .gallery-discovery .hero-select select,
  .gallery-verified {
    font-size: 14px;
  }
  .gallery-toolbar {
    padding-block: 24px;
  }
  .gallery-mode {
    font-size: 13px;
  }
}
@media (min-width: 900px) {
  .gallery-hero {
    padding: calc(var(--site-header-height) + 64px) 0 24px;
    background-image:
      linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0) 90%
      ),
      url("../assets/images/gallery-hero-bg-desktop.webp");
    background-position: center 40%;
  }
  .gallery-hero h1 {
    font-size: clamp(48px, 4.7vw, 68px);
  }
  .gallery-hero__subtitle {
    margin: 8px 0 30px;
    font-size: 20px;
  }
  .gallery-hero__tagline {
    position: absolute;
    display: block;
    top: -5px;
    right: 16%;
    margin: 0;
    color: var(--color-gold);
    font:
      36px/0.95 "Ephesis",
      cursive;
    text-align: center;
    transform: rotate(-9deg);
    text-shadow: 0 2px 8px #000;
  }
  .gallery-hero__tagline span {
    padding-left: 20px;
  }
  .gallery-discovery .hero-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
  }
  .gallery-discovery .hero-select {
    flex: 0 1 155px;
    height: 44px;
  }
  .gallery-verified {
    flex: 0 1 120px;
    height: 44px;
  }
  .gallery-discovery .hero-select--budget {
    flex-basis: 188px;
  }
  .gallery-discovery .hero-select select,
  .gallery-verified {
    font-size: 14px;
  }
  .gallery-discovery .hero-select select {
    padding-inline: 36px 27px;
  }
  .gallery-discovery .hero-select > .hero-icon:first-of-type {
    left: 12px;
    width: 18px;
    height: 18px;
  }
  .gallery-discovery .hero-select__chevron {
    right: 12px;
    width: 10px;
    height: 10px;
  }
  .gallery-discovery .hero-filter-toggle {
    flex: 0 0 52px;
    height: 44px;
  }
  .gallery-content {
    background: #050403 url("../assets/images/gallery-cards-bg-desktop.webp")
      center top / 100% auto repeat-y;
  }
  .gallery-results {
    background: transparent;
  }
  .gallery-toolbar {
    padding: 22px 0;
  }
  .gallery-count {
    font-size: 22px;
  }
  .gallery-mode {
    display: none;
  }
  .gallery-sort,
  .gallery-sort select {
    font-size: 15px;
  }
  .gallery-sort select {
    width: 154px;
  }
  .gallery-sort {
    gap: 8px;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .gallery-grid .profile-card {
    aspect-ratio: 0.78;
  }
  .gallery-grid .profile-card__details {
    padding: 42% 13px 13px;
  }
  .gallery-grid .profile-card__name {
    font-size: clamp(20px, 2.1vw, 30px);
  }
  .gallery-grid .profile-card__meta {
    font-size: clamp(12px, 1.3vw, 18px);
  }
  .gallery-grid .profile-card__city {
    font-size: clamp(10px, 1.13vw, 15px);
  }
  .gallery-grid .profile-card__city > img {
    width: 17px;
    height: 19px;
  }
  .gallery-grid .profile-card__online {
    gap: 6px;
    padding: 3px 7px;
    font-size: clamp(9px, 1vw, 13px);
  }
  .gallery-grid .profile-card__online::before {
    width: 8px;
    height: 8px;
  }
  .gallery-grid .profile-card__badge {
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    font-size: clamp(11px, 1.1vw, 15px);
  }
  .gallery-grid .profile-card__badge img {
    width: 15px;
    height: 15px;
  }
  .gallery-grid .profile-card__favorite {
    top: 11px;
    right: 9px;
    width: 34px;
    height: 34px;
  }
  .gallery-grid .profile-card__favorite img {
    width: 25px;
    height: 25px;
  }
  .gallery-grid .profile-viewed {
    font-size: 10px;
    padding: 3px 5px;
  }
  .gallery-grid .profile-viewed img {
    width: 12px;
    height: 12px;
  }
}
@media (min-width: 1100px) {
  .header-back {
    display: none;
  }
}
@media (min-width: 1281px) {
  .gallery-hero {
    padding-top: calc(var(--site-header-height) + 40px);
  }
}

/* Photo browsing is created only for mobile cards in the main gallery. */
@media (max-width: 899px) {
  .gallery-grid .profile-card--photos {
    display: grid;
  }
  .profile-card--photos .profile-card__link,
  .card-photos__footer {
    grid-area: 1 / 1;
    min-width: 0;
    min-height: 0;
  }
  .profile-card--photos .profile-card__link {
    position: relative;
  }
  /* iOS WebKit does not stretch the grid row to the aspect-ratio height. */
  @supports (-webkit-touch-callout: none) {
    .profile-card--photos .profile-card__link,
    .card-photos__footer {
      position: absolute;
      inset: 0;
    }
  }
  .card-photos {
    position: absolute;
    inset: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y pinch-zoom;
    scrollbar-width: none;
  }
  .card-photos::-webkit-scrollbar {
    display: none;
  }
  .gallery-grid .card-photos .card-photos__image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    object-fit: cover;
    z-index: auto;
    transform: none;
    transition: none;
  }
  .card-photos__footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1;
    background: linear-gradient(
      transparent 48%,
      rgb(0 0 0 / 26%) 65%,
      rgb(0 0 0 / 95%) 95%
    );
    pointer-events: none;
  }
  .gallery-grid .profile-card--photos .profile-card__details {
    padding: 0 8px 10px;
    background: none;
  }
  .profile-card--photos .profile-card__favorite {
    z-index: 3;
  }
  .card-photos__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 6px 3px;
    pointer-events: auto;
  }
  .gallery-page .card-photos__dot:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: -2px;
    border-radius: 4px;
  }
}
@media (max-width: 374px) {
  .gallery-grid .profile-card--photos .profile-card__details {
    padding-inline: 6px;
  }
}
