.ny-gallery-section {
  padding-block: 38px;
}

.ny-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ny-gallery-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.182;
  font-weight: 800;
}

.ny-gallery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  padding: 12px 21px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.ny-gallery-link:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.ny-gallery-link img,
.ny-photo-arrow img {
  display: block;
  flex: none;
}

.ny-gallery-section [hidden] {
  display: none !important;
}

.ny-photo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ny-photo-tabs button {
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.ny-photo-tabs button:hover,
.ny-photo-tabs button[aria-selected="true"] {
  border-color: var(--gold);
  background: var(--cream);
}

.ny-photo-split {
  display: grid;
  gap: 16px;
}

.ny-photo-split--work {
  grid-template-columns: minmax(0, 812fr) minmax(0, 372fr);
  --photo-height: 462px;
}

.ny-photo-split--studio {
  grid-template-columns: minmax(0, 842fr) minmax(0, 342fr);
  --photo-height: 548px;
}

.ny-photo-stage {
  position: relative;
  display: block;
  width: 100%;
  height: var(--photo-height);
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--dark);
  color: inherit;
}

button.ny-photo-stage {
  cursor: pointer;
}

.ny-photo-stage,
.ny-review-row {
  touch-action: pan-y pinch-zoom;
}

.ny-photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ny-photo-fill {
  object-fit: cover;
  filter: blur(24px);
  opacity: 0.58;
}

.ny-photo-primary {
  object-fit: contain;
}

.ny-photo-panel {
  min-width: 0;
  min-height: var(--photo-height);
  border-radius: 18px;
  background: var(--cream);
}

.ny-photo-panel--work {
  padding: 22px 23px;
}

.ny-photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ny-photo-count {
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
}

.ny-photo-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ny-photo-arrow,
.ny-review-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.ny-photo-arrow:hover,
.ny-review-arrow:hover {
  border-color: var(--gold);
}

.ny-photo-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ny-photo-thumb {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  height: 88px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.ny-photo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ny-photo-thumbnails[data-photo-thumbnails="brows"] img,
.ny-photo-thumbnails[data-photo-thumbnails="lashes"] img {
  object-fit: contain;
}

.ny-photo-thumbnails .ny-photo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}

.ny-photo-thumbnails .ny-photo-thumb[aria-pressed="true"]::after {
  border-color: var(--gold);
}

.ny-photo-panel--studio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  padding: 22px;
}

.ny-photo-panel--studio .ny-photo-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 57px;
  padding: 3px 9px 3px 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  text-align: left;
}

.ny-photo-panel--studio .ny-photo-thumb img {
  flex: 0 0 59px;
  width: 59px;
  height: 49px;
  border-radius: 8px;
}

.ny-photo-panel--studio .ny-photo-thumb:hover,
.ny-photo-panel--studio .ny-photo-thumb[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--white);
}

.ny-photo-panel--studio .ny-photo-thumb[aria-pressed="true"] {
  font-weight: 800;
}

.ny-studio-heading {
  margin-bottom: 24px;
}

.ny-studio-heading p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.ny-photo-dialog {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  padding: 12px;
  background: var(--canvas);
  color: var(--ink);
}

.ny-photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

body:has(.ny-photo-dialog[open]) {
  overflow: hidden;
}

.ny-photo-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ny-photo-dialog-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.ny-photo-dialog-title h2 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
}

.ny-photo-dialog-count {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.ny-photo-stage--dialog {
  --photo-height: min(608px, calc(100dvh - 112px));
  min-height: 140px;
  border-radius: 12px;
}

.ny-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1052fr) minmax(0, 132fr);
  gap: 16px;
}

.ny-review-slide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ny-review-card {
  display: grid;
  grid-template-rows: 22px 88px 22px;
  align-content: start;
  gap: 6px;
  height: 184px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px 21px 17px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.ny-review-card:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.ny-review-rating {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.ny-review-body {
  overflow: hidden;
}

.ny-review-text {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  font-size: 16px;
  line-height: 22px;
  white-space: pre-line;
}

.ny-review-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ny-review-badge {
  display: block;
  width: 100%;
  height: 184px;
  object-fit: contain;
}

.ny-review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.ny-review-arrow {
  width: 44px;
  font: 700 16px/24px Manrope, sans-serif;
}

.ny-review-count,
.ny-review-arrow img {
  display: none;
}

.ny-review-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ny-review-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.ny-review-dot[aria-current="true"]::before {
  width: 11px;
  height: 11px;
  background: var(--gold-dark);
}

.ny-gallery-section :is(button, a):focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .ny-photo-split--work,
  .ny-photo-split--studio {
    grid-template-columns: 1fr;
  }

  .ny-photo-stage:not(.ny-photo-stage--dialog) {
    height: clamp(280px, 62vw, var(--photo-height));
  }

  .ny-photo-panel {
    min-height: auto;
  }

  .ny-photo-panel--studio {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ny-review-row {
    grid-template-columns: minmax(0, 1fr) 88px;
    align-items: start;
  }

  .ny-review-badge {
    height: auto;
  }
}

@media (max-width: 767px) {
  .ny-gallery-section {
    padding-block: 28px;
  }

  .ny-gallery-section > .container {
    width: calc(100% - 32px);
  }

  .ny-gallery-section h2 {
    font-size: 28px;
    line-height: 34px;
  }

  #gallery > .container,
  #reviews > .container {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .ny-gallery-heading {
    display: contents;
  }

  .ny-gallery-link {
    order: 1;
    align-self: flex-start;
    max-width: 100%;
    min-height: 44px;
    gap: 10px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 18px;
  }

  .ny-gallery-link img {
    width: 15px;
    height: 20px;
  }

  .ny-photo-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ny-photo-tabs button {
    flex: none;
    min-height: 46px;
    padding: 13px 8px;
    font-size: 12px;
    line-height: 18px;
  }

  .ny-photo-tabs button:focus-visible {
    outline-offset: -3px;
  }

  .ny-photo-split {
    gap: 14px;
  }

  .ny-photo-split--work {
    --photo-height: clamp(238px, calc(100vw - 94px), 400px);
  }

  .ny-photo-split--studio {
    --photo-height: clamp(234px, calc(100vw - 98px), 396px);
  }

  .ny-photo-stage:not(.ny-photo-stage--dialog) {
    height: var(--photo-height);
  }

  .ny-photo-stage {
    border-radius: 14px;
  }

  .ny-photo-fill {
    filter: blur(20px);
  }

  .ny-photo-panel--work {
    display: contents;
  }

  .ny-photo-thumbnails {
    display: flex;
    flex-wrap: wrap;
    width: min(100%, 352px);
    gap: 14px 8px;
  }

  .ny-photo-thumbnails .ny-photo-thumb {
    flex: 0 0 52px;
    height: 52px;
    background: var(--cream);
  }

  .ny-photo-thumbnails .ny-photo-thumb::after {
    border-width: 1px;
    border-color: var(--cream);
  }

  .ny-photo-thumbnails .ny-photo-thumb[aria-pressed="true"]::after {
    border-width: 2px;
    border-color: var(--gold);
  }

  .ny-photo-controls {
    order: 1;
    margin: 0;
  }

  .ny-photo-count {
    color: var(--gold-dark);
    font-size: 14px;
    line-height: 20px;
  }

  .ny-photo-arrow,
  .ny-review-arrow {
    width: 44px;
    height: 44px;
  }

  .ny-studio-heading {
    margin-bottom: 14px;
  }

  .ny-studio-heading p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 21px;
  }

  .ny-photo-panel--studio {
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .ny-photo-panel--studio .ny-photo-thumb {
    height: 48px;
    gap: 8px;
    padding: 5px;
    border-color: var(--line);
    border-radius: 9px;
    background: var(--cream);
    font-size: 12px;
    line-height: 15px;
  }

  .ny-photo-panel--studio .ny-photo-thumb img {
    flex-basis: 40px;
    width: 40px;
    height: 36px;
    border-radius: 7px;
  }

  .ny-photo-panel--studio .ny-photo-thumb span {
    max-width: 106px;
  }

  .ny-review-row {
    grid-template-columns: minmax(0, 274fr) minmax(50px, 62fr);
    gap: 22px;
  }

  .ny-review-slide {
    grid-area: 1 / 1;
    align-self: stretch;
    grid-template-columns: 1fr;
  }

  /* Overlay the mobile cards so the tallest review sets a stable row height. */
  .ny-review-row .ny-review-slide[hidden],
  .ny-review-row .ny-review-card[hidden] {
    display: grid !important;
    visibility: hidden;
    pointer-events: none;
  }

  /* The initial HTML marks groups rather than single mobile cards. */
  .ny-review-slide:not(:has(> [hidden])) > .ny-review-card:not(:first-child) {
    visibility: hidden;
  }

  .ny-review-card {
    grid-area: 1 / 1;
    grid-template-rows: auto 1fr auto;
    align-content: normal;
    min-width: 0;
    min-height: 0;
    height: auto;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .ny-review-rating {
    font-size: 15px;
    line-height: 21px;
    letter-spacing: 1px;
  }

  .ny-review-body {
    overflow: visible;
  }

  .ny-review-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: none;
    font-size: 14px;
    line-height: 20px;
  }

  .ny-review-name {
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 20px;
    white-space: normal;
  }

  .ny-review-badge {
    grid-area: 1 / 2;
    width: 100%;
    height: 126px;
  }

  .ny-review-controls {
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
  }

  .ny-review-count {
    display: block;
    margin-right: auto;
  }

  .ny-review-dot,
  .ny-review-arrow span {
    display: none;
  }

  .ny-review-arrow img {
    display: block;
  }

  .ny-photo-dialog {
    width: min(390px, 100%);
    max-height: 100dvh;
    padding: 28px 16px;
  }

  .ny-photo-dialog-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
    gap: 14px 8px;
  }

  .ny-photo-dialog-head,
  .ny-photo-dialog-title,
  .ny-photo-dialog-head .ny-photo-arrows {
    display: contents;
  }

  .ny-photo-dialog-panel #ny-photo-dialog-heading {
    grid-area: 1 / 1 / 2 / 3;
    font-size: 22px;
    line-height: 28px;
  }

  .ny-photo-dialog-panel [data-dialog-close] {
    grid-area: 1 / 3;
  }

  .ny-photo-dialog-panel [data-dialog-close] img {
    width: 12px;
    height: 12px;
  }

  .ny-photo-stage--dialog {
    --photo-height: min(488px, calc(100dvh - 172px));
    grid-area: 2 / 1 / 3 / -1;
  }

  .ny-photo-dialog-count {
    grid-area: 3 / 1;
    font-weight: 800;
  }

  .ny-photo-dialog-panel [data-dialog-step="-1"] {
    grid-area: 3 / 2;
  }

  .ny-photo-dialog-panel [data-dialog-step="1"] {
    grid-area: 3 / 3;
  }
}

@media (max-width: 360px) {
  .ny-photo-panel--studio .ny-photo-thumb {
    gap: 5px;
  }
}

.ny-gallery-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
