/* Store photographs follow the shared subpage typography and fluid gutters. */
.subpage-page--salon .salon-gallery {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}

.subpage-page--salon .salon-gallery figure {
  min-width: 0;
  margin: 0;
}

.subpage-page--salon .salon-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px);
}

.subpage-page--salon .salon-gallery__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: clamp(14px, 1.5vw, 20px);
  object-fit: cover;
  background: #e8e8e6;
}

.subpage-page--salon .salon-gallery__photo-frame--consultation {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: clamp(14px, 1.5vw, 20px);
}

/* Crop the photograph's white correction margins without changing the gallery ratio. */
.subpage-page--salon .salon-gallery__photo-frame--consultation .salon-gallery__photo {
  height: 100%;
  border-radius: 0;
  transform: scale(1.18);
}

.subpage-page--salon .salon-gallery__feature .salon-gallery__photo {
  aspect-ratio: 16 / 9;
  object-position: center 48%;
}

.subpage-page--salon .salon-gallery__caption {
  margin-top: clamp(16px, 2vw, 24px);
}

.subpage-page--salon .salon-gallery__caption h3 {
  margin: 0;
  color: var(--subpage-ink);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.6;
}

.subpage-page--salon .salon-gallery__caption p {
  margin: 10px 0 0;
  color: var(--subpage-copy);
  font-size: clamp(14px, 1.1vw, 15px);
  line-height: 1.95;
}

.subpage-page--salon .salon-gallery__feature .salon-gallery__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: baseline;
}

.subpage-page--salon .salon-gallery__feature .salon-gallery__caption p {
  margin: 0;
}

/* Only the treatment-space photograph rotates; the surrounding gallery stays still. */
.subpage-page--salon .salon-treatment-carousel__viewport {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: clamp(14px, 1.5vw, 20px);
  scroll-snap-type: x mandatory;
  scroll-margin-top: 112px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.subpage-page--salon .salon-treatment-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.subpage-page--salon .salon-treatment-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.subpage-page--salon .salon-treatment-carousel__slide .salon-gallery__photo {
  height: 100%;
  border-radius: 0;
}

.subpage-page--salon .salon-gallery__caption-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.subpage-page--salon .salon-treatment-carousel__controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.subpage-page--salon .salon-treatment-carousel__controls[hidden] {
  display: none;
}

.subpage-page--salon .salon-treatment-carousel__button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #c7c7c5;
  border-radius: 50%;
  background: transparent;
  color: var(--subpage-ink);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.subpage-page--salon .salon-treatment-carousel__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subpage-page--salon .salon-treatment-carousel__button:disabled {
  opacity: .3;
  cursor: default;
}

.subpage-page--salon .salon-treatment-carousel__button:focus-visible,
.subpage-page--salon .salon-treatment-carousel__viewport:focus-visible {
  outline: 2px solid var(--subpage-ink);
  outline-offset: 4px;
}

.subpage-page--salon .salon-treatment-carousel__count {
  min-width: 44px;
  color: var(--subpage-ink);
  font-family: var(--top-en);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.subpage-page--salon .salon-treatment-carousel__total {
  color: #949494;
}

@media (hover: hover) {
  .subpage-page--salon .salon-treatment-carousel__button:hover:not(:disabled) {
    border-color: var(--subpage-ink);
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-page--salon .salon-treatment-carousel__button {
    transition: none;
  }
}

@media (max-width: 679px) {
  .subpage-page--salon .salon-gallery__grid,
  .subpage-page--salon .salon-gallery__feature .salon-gallery__caption {
    grid-template-columns: minmax(0, 1fr);
  }

  .subpage-page--salon .salon-gallery__feature .salon-gallery__photo {
    aspect-ratio: 4 / 3;
  }

  .subpage-page--salon .salon-gallery__feature .salon-gallery__caption {
    gap: 10px;
  }
}
