.gallery-catalog-page {
  display: grid;
  gap: var(--page-flow-gap);
}

.gallery-catalog-page__grid-section {
  position: relative;
  padding-right: 0;
}

.gallery-catalog-page__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(30rem, 0.98fr);
  gap: var(--page-flow-gap);
  align-items: start;
}

.gallery-detail-page__facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.8rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-detail-page__facts .gallery-detail-page__fact-note {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1.05rem;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0.02em;
}

.gallery-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 2vw, 2.5rem);
  margin-top: clamp(3.2rem, 3.6vw, 5.2rem);
}

.gallery-catalog-grid--horizontal-fit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 2vw, 2.5rem);
  margin-top: clamp(3.2rem, 3.6vw, 5.2rem);
}

.gallery-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 0;
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
  text-align: left;
  gap: 1.6rem;
}

.gallery-catalog-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-0.4rem);
}

.gallery-catalog-card__media-link,
.gallery-catalog-card__title-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.gallery-catalog-card__media-link:focus-visible,
.gallery-catalog-card__title-link:focus-visible,
.gallery-catalog-card__action:focus-visible,
.gallery-catalog-card__buy:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.52);
  outline-offset: 0.4rem;
}

.gallery-catalog-card__picture {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  overflow: visible;
}

.gallery-catalog-card__picture--horizontal-fit {
  align-items: flex-start;
  justify-content: flex-start;
  object-fit: contain;
}

.gallery-catalog-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.gallery-catalog-card__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.2rem;
}

.gallery-catalog-card__header {
  display: grid;
  gap: 0.8rem;
}

.gallery-detail-page__eyebrow {
  color: var(--color-gray);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-catalog-card__header h2 {
  font-size: clamp(2.2rem, 2.2vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.96;
  text-transform: uppercase;
}

.gallery-catalog-card__subtitle,
.gallery-detail-page__subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.gallery-catalog-card__description {
  color: rgba(255,255,255,0.85);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0;
}

.gallery-catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.gallery-catalog-card__action,
.gallery-catalog-card__buy {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.gallery-catalog-card__action {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.gallery-catalog-card__buy {
  cursor: pointer;
  background: var(--color-white);
  color: var(--color-black);
}

.gallery-catalog-card__buy:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.gallery-detail-page {
  display: grid;
  gap: var(--page-flow-gap);
}

.gallery-detail-page__header {
  display: block;
}

.gallery-detail-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(30rem, 0.92fr);
  gap: var(--page-flow-gap);
  align-items: start;
}

.gallery-detail-page__figure {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery-detail-page__figure:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  outline-offset: 1rem;
}

.gallery-detail-page__figure picture {
  display: block;
  width: 100%;
}

.gallery-detail-page__figure img {
  display: block;
  width: 100%;
  max-height: 78rem;
  object-fit: cover;
}

.gallery-detail-page__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-detail-page__figure-callout {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(9, 9, 9, 0.74);
  backdrop-filter: blur(18px);
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-detail-page__figure-callout strong {
  font-size: 1.8rem;
  line-height: 1;
}

.gallery-detail-page__panel {
  display: grid;
  gap: var(--page-panel-gap);
}

.gallery-detail-page__label-title,
.gallery-detail-page__section-label,
.gallery-detail-page__pager-label {
  color: var(--color-gray);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.gallery-detail-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.gallery-detail-page__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-panel-gap);
}

.gallery-detail-page__section {
  display: grid;
  gap: 1.4rem;
  min-height: 22rem;
  padding: var(--page-card-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
}

.gallery-detail-page__label-card {
  display: grid;
  gap: 1.4rem;
  max-width: var(--text-measure);
  padding: var(--page-card-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
}

.gallery-detail-page__section p {
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.9rem;
  line-height: 1.45;
}

.gallery-detail-page__section-title {
  font-size: clamp(2.2rem, 2.2vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}

.gallery-detail-page__pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-panel-gap);
}

.gallery-detail-page__pager-item {
  display: grid;
  gap: 0.9rem;
  min-height: 18rem;
  padding: var(--page-card-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.gallery-detail-page__pager-item strong {
  font-size: clamp(2.2rem, 2.5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
}

.gallery-detail-page__pager-item span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.5rem;
  line-height: 1.35;
}

.gallery-detail-page__pager-item--next {
  text-align: right;
}

.gallery-detail-page__pager-item:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.gallery-detail-page--painting {
  gap: 5.6rem;
}

.gallery-detail-page--painting .gallery-detail-page__hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(32rem, 0.72fr);
  gap: 4.8rem;
  align-items: start;
}

.gallery-slab-swap-enter-active,
.gallery-slab-swap-leave-active {
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slab-swap-enter-from {
  opacity: 0;
  transform: translateY(1.6rem);
}

.gallery-slab-swap-leave-to {
  opacity: 0;
  transform: translateY(-1.2rem);
}

.gallery-detail-page--painting .gallery-detail-page__media {
  position: sticky;
  top: 10.8rem;
  align-self: start;
  min-width: 0;
}

.gallery-detail-page--painting .gallery-detail-page__figure {
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.gallery-detail-page--painting .gallery-detail-page__figure-picture,
.gallery-detail-page--painting .gallery-detail-page__figure picture {
  display: block;
  width: min(100%, calc((100dvh - 15rem) * var(--painting-image-ratio, 1)));
  max-width: 100%;
  max-height: calc(100dvh - 15rem);
  margin: 0 auto;
}

.gallery-detail-page--painting .gallery-detail-page__figure-img,
.gallery-detail-page--painting .gallery-detail-page__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 15rem);
  object-fit: contain;
}

.gallery-detail-page--painting .gallery-detail-page__panel {
  display: grid;
  gap: 2.4rem;
  max-width: none;
}

.gallery-detail-page--painting .gallery-detail-page__panel-intro {
  display: grid;
  gap: 1.8rem;
}

.gallery-detail-page--painting .gallery-detail-page__title {
  max-width: none;
  margin-top: 0;
  font-size: clamp(4.4rem, 5.2vw, 8.2rem);
  line-height: 0.92;
}

.gallery-detail-page--painting .gallery-detail-page__facts {
  gap: 0.8rem;
}

.gallery-detail-page--painting .gallery-detail-page__description {
  max-width: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(2rem, 2.1vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.gallery-detail-page--painting .gallery-detail-page__body,
.gallery-detail-page--painting .gallery-detail-page__pager {
  gap: 3.2rem;
}

.gallery-detail-page--painting .gallery-detail-page__body--painting {
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.gallery-detail-page--painting .gallery-detail-page__section,
.gallery-detail-page--painting .gallery-detail-page__pager-item {
  min-height: auto;
  padding: 2.1rem 0 0;
  background: transparent;
}

.gallery-detail-page--painting .gallery-detail-page__section p {
  max-width: none;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1.45rem, 1.15vw, 1.7rem);
  line-height: 1.42;
}

.gallery-detail-page--painting .gallery-detail-page__actions--painting {
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-detail-page--painting .gallery-detail-page__pager-item:hover {
  background: transparent;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 5, 5, 0.96);
  overflow: hidden;
}

.gallery-lightbox--immersive {
  background:
    radial-gradient(circle at 50% 50%, rgba(28, 28, 28, 0.28), rgba(0, 0, 0, 0) 42%),
    rgba(3, 3, 3, 0.985);
  backdrop-filter: blur(16px);
  cursor: default;
}

.gallery-lightbox__toolbar {
  position: absolute;
  top: calc(1.6rem + env(safe-area-inset-top, 0px));
  left: clamp(1.6rem, 2.4vw, 2.4rem);
  right: clamp(1.6rem, 2.4vw, 2.4rem);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.gallery-lightbox__controls {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 8, 8, 0.78);
  box-shadow: 0 2rem 4.8rem rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.gallery-lightbox__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  min-height: 4.8rem;
  padding: 0 1.6rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.gallery-lightbox__control:first-child {
  border-left: 0;
}

.gallery-lightbox__control:hover:not(:disabled),
.gallery-lightbox__control:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}

.gallery-lightbox__control:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.gallery-lightbox__control--status {
  min-width: 8rem;
  padding: 0 1.8rem;
  font-variant-numeric: tabular-nums;
}

.gallery-lightbox__control--close {
  min-width: 4.8rem;
  padding: 0;
}

.gallery-lightbox__control-icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
  pointer-events: none;
}

.gallery-lightbox__viewport--immersive {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding:
    calc(8.8rem + env(safe-area-inset-top, 0px))
    clamp(1.6rem, 2.4vw, 2.4rem)
    calc(9.8rem + env(safe-area-inset-bottom, 0px));
}

.gallery-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-lightbox__media-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.gallery-lightbox__media-shell.is-pannable {
  cursor: grab;
}

.gallery-lightbox__media-shell.is-dragging {
  cursor: grabbing;
}

.gallery-lightbox__media {
  position: relative;
  display: grid;
  place-items: center;
  transform-origin: center center;
  will-change: transform;
}

.gallery-lightbox__viewport picture {
  display: block;
  pointer-events: none;
}

.gallery-lightbox__picture {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.4);
}

.gallery-lightbox__viewport img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__footer {
  position: absolute;
  left: clamp(1.6rem, 2.4vw, 2.4rem);
  right: clamp(1.6rem, 2.4vw, 2.4rem);
  bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.gallery-lightbox__buy {
  width: min(100%, 32rem);
  min-width: min(100%, 32rem);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.painting-inquiry-dialog {
  width: 100vw;
  max-width: none;
  min-width: 0;
  height: 100dvh;
  max-height: none;
  padding: clamp(1.6rem, 2.4vw, 2.8rem);
  border: none;
  margin: 0;
  background: transparent;
  color: var(--color-white);
  overflow: hidden;
}

.painting-inquiry-dialog[open] {
  display: grid;
  place-items: center;
}

.painting-inquiry-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.painting-inquiry-dialog__panel {
  position: relative;
  width: min(100%, 62rem);
  max-height: calc(100dvh - (2 * clamp(1.6rem, 2.4vw, 2.8rem)));
  display: grid;
  gap: 2rem;
  padding: clamp(2.2rem, 2.8vw, 3rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.painting-inquiry-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.painting-inquiry-dialog__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #000;
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.painting-inquiry-dialog__dismiss:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.painting-inquiry-dialog__title {
  max-width: none;
  font-size: clamp(2.8rem, 3vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
}

.painting-inquiry-dialog__text {
  max-width: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.6rem, 1.8vw, 1.8rem);
  line-height: 1.45;
}

.painting-inquiry-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.painting-inquiry-dialog__actions > * {
  flex: 1 1 22rem;
}

@media (max-width: 1023px) {

  .gallery-catalog-page__grid-section {
    padding-right: 0;
  }

  .gallery-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-catalog-grid--horizontal-fit {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-detail-page,
  .gallery-detail-page__body,
  .gallery-detail-page__hero,
  .gallery-detail-page__pager {
    gap: 3rem;
  }

  .gallery-detail-page__hero,
  .gallery-detail-page__body,
  .gallery-detail-page__pager {
    grid-template-columns: 1fr;
  }

  .gallery-detail-page__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-lightbox__toolbar {
    justify-content: flex-end;
  }

  .gallery-detail-page__figure img {
    max-height: none;
  }

  .gallery-detail-page--painting,
  .gallery-detail-page--painting .gallery-detail-page__hero,
  .gallery-detail-page--painting .gallery-detail-page__body,
  .gallery-detail-page--painting .gallery-detail-page__pager {
    gap: 2.4rem;
  }

  .gallery-detail-page--painting .gallery-detail-page__hero {
    grid-template-columns: 1fr;
  }

  .gallery-detail-page--painting .gallery-detail-page__media {
    position: static;
    top: auto;
  }

  .gallery-detail-page--painting .gallery-detail-page__title {
    font-size: clamp(3.8rem, 10vw, 6rem);
  }

  .gallery-detail-page--painting .gallery-detail-page__description {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
  }

  .gallery-detail-page--painting .gallery-detail-page__figure-picture,
  .gallery-detail-page--painting .gallery-detail-page__figure picture,
  .gallery-detail-page--painting .gallery-detail-page__figure-img,
  .gallery-detail-page--painting .gallery-detail-page__figure img {
    width: 100%;
    max-height: min(72svh, 64rem);
  }

  .gallery-detail-page--painting .gallery-detail-page__panel {
    gap: 2.4rem;
  }

  .gallery-detail-page--painting .gallery-detail-page__panel-intro {
    gap: 1.2rem;
  }

  .gallery-detail-page--painting .gallery-detail-page__description {
    line-height: 1.28;
  }

  .gallery-detail-page__section,
  .gallery-detail-page__pager-item {
    min-height: auto;
  }

  .gallery-detail-page__pager-item--next {
    text-align: left;
  }

  .gallery-lightbox__controls {
    margin-left: auto;
  }

  .gallery-detail-page__section,
  .gallery-detail-page__pager-item {
    padding: 1.8rem;
  }

  .gallery-detail-page--painting .gallery-detail-page__panel,
  .gallery-detail-page--painting .gallery-detail-page__body,
  .gallery-detail-page--painting .gallery-detail-page__pager {
    gap: 1.8rem;
  }

  .gallery-detail-page--painting .gallery-detail-page__section,
  .gallery-detail-page--painting .gallery-detail-page__pager-item {
    padding: 2rem 0 0;
  }

  .gallery-detail-page--painting .gallery-detail-page__actions > * {
    width: 100%;
  }

  .gallery-detail-page__figure-callout {
    right: 1.2rem;
    bottom: 1.2rem;
    gap: 1rem;
    padding: 1rem 1.2rem;
  }

  .gallery-detail-page__section p {
    font-size: 1.7rem;
  }

  .gallery-lightbox__toolbar {
    top: calc(1.2rem + env(safe-area-inset-top, 0px));
    left: 1.6rem;
    right: 1.6rem;
  }

  .gallery-lightbox__viewport {
    padding:
      calc(7.6rem + env(safe-area-inset-top, 0px))
      1.6rem
      calc(8.8rem + env(safe-area-inset-bottom, 0px));
  }

  .gallery-lightbox__controls {
    margin-left: auto;
  }

  .gallery-lightbox__control {
    min-width: 4.4rem;
    min-height: 4.4rem;
  }

  .gallery-lightbox__control--status {
    min-width: 7.2rem;
    padding: 0 1.4rem;
  }

  .gallery-lightbox__buy {
    width: 100%;
  }

  .gallery-lightbox__footer {
    left: 1.6rem;
    right: 1.6rem;
    bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {

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

  .gallery-catalog-grid--horizontal-fit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.4rem;
  }

  .gallery-catalog-card__description {
    font-size: 1.45rem;
    line-height: 1.38;
  }

  .painting-inquiry-dialog__panel {
    padding: 2.2rem 1.8rem;
  }

  .painting-inquiry-dialog__header {
    flex-direction: column;
    align-items: stretch;
  }

  .painting-inquiry-dialog__dismiss {
    min-width: 0;
  }

  .painting-inquiry-dialog__actions {
    flex-direction: column;
  }
}
