html.look-gallery-open { overflow: hidden; }

.look-gallery {
  width: min(100% - 36px, 1030px);
  max-width: none;
  max-height: calc(100dvh - 26px);
  margin: auto;
  padding: 0;
  border: 1px solid #795f73;
  background: #17101b;
  color: #f9ecdf;
}

.look-gallery::backdrop { background: #100b14ec; }

.look-gallery-layout {
  display: grid;
  padding: 0 clamp(14px, 2vw, 28px);
}

.look-gallery-heading,
.look-gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 62px;
}

.look-gallery-heading h2 {
  font-size: clamp(1.1rem, 3.8vw, 1.55rem);
  line-height: 1.16;
}

.look-gallery-stage {
  margin: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  background: #100a14;
}

.look-gallery-picture {
  position: relative;
  overflow: hidden;
  width: min(100%, calc(69vh * var(--view-ratio)));
  width: min(100%, calc(69dvh * var(--view-ratio)));
  aspect-ratio: var(--view-ratio);
}

.look-gallery-picture img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.look-gallery button {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #795f73;
  border-radius: 99px;
  color: inherit;
  background: #281d2a;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.look-gallery button:hover,
.look-gallery button:focus-visible {
  border-color: #f4cfdb;
  background: #402a3e;
}

.look-gallery-controls p {
  display: grid;
  gap: 1px;
  text-align: center;
  font-size: .90rem;
  line-height: 1.22;
}

.look-gallery-controls [data-gallery-count] {
  color: #d7bbce;
  font-size: .77rem;
}

@media (max-width: 600px) {
  .look-gallery {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
  .look-gallery-layout { padding-inline: 8px; }
  .look-gallery-heading { padding-inline: 6px; }
  .look-gallery-picture {
    width: min(100%, calc(73dvh * var(--view-ratio)));
  }
}

.look-gallery--single .look-gallery-controls {
  justify-content: center;
}
