/* Arta PDP main-photo expansion. The source gallery remains the visual master. */
/* Photo controls retain their neutral surface under the site's gold button rule. */
html body.single-product.arta-pdp .arta-main-photo-expand__trigger:is(:hover, :focus, :active),
html body.single-product.arta-pdp .arta-main-photo-expand__close:is(:hover, :focus, :active) {
  background: transparent !important;
}

html body.arta-pdp .arta-canonical-photos .arta-canonical-zoom:is(:hover, :focus, :active) {
  background: #292b2a !important;
}

html body.arta-pdp .arta-pdp-gallery {
  position: relative;
}

html body.arta-pdp .arta-main-photo-expand__trigger {
  position: absolute;
  z-index: 12;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(44,45,45,.66);
  cursor: zoom-in;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255,253,248,.7);
}

html body.arta-pdp .arta-main-photo-expand__trigger:hover,
html body.arta-pdp .arta-main-photo-expand__trigger:focus-visible {
  color: #7d6334;
}

html body.arta-pdp .arta-main-photo-expand__trigger svg {
  display: block;
  width: 16px;
  height: 16px;
}

html body.arta-pdp .arta-main-photo-expand__trigger:focus-visible,
html body.arta-pdp .arta-main-photo-expand__dialog button:focus-visible {
  outline: 2px solid #a48650;
  outline-offset: 2px;
}

html body.arta-pdp .arta-main-photo-expand__dialog {
  display: none;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #2c2d2d;
  color: #fffdf8;
  overflow: hidden;
}

html body.arta-pdp .arta-main-photo-expand__dialog::backdrop {
  background: rgba(24,26,24,.88);
}

html body.arta-pdp .arta-main-photo-expand__dialog[open] {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

html body.arta-pdp .arta-main-photo-expand__panel {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 74px 56px 58px;
  box-sizing: border-box;
}

html body.arta-pdp .arta-main-photo-expand__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html body.arta-pdp .arta-main-photo-expand__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,253,248,.58);
  border-radius: 0;
  background: transparent;
  color: #fffdf8;
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

html body.arta-pdp .arta-main-photo-expand__close:hover,
html body.arta-pdp .arta-main-photo-expand__close:focus-visible {
  border-color: #d2b77a;
  color: #d2b77a;
}

html body.arta-pdp .arta-main-photo-expand__media {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

html body.arta-pdp .arta-main-photo-expand__source-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform-origin: center center;
}

html body.arta-pdp .arta-main-photo-expand__source-life {
  display: flex;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

html body.arta-pdp .arta-main-photo-expand__source-life > img,
html body.arta-pdp .arta-main-photo-expand__source-life > picture img {
  display: block !important;
  width: auto !important;
  max-width: calc(100vw - 112px) !important;
  height: auto !important;
  max-height: calc(100vh - 132px) !important;
  max-height: calc(100dvh - 132px) !important;
  object-fit: contain !important;
}

html body.arta-pdp.arta-main-photo-open {
  overscroll-behavior: none;
}

@media (max-width: 767px) {
  html body.arta-pdp .arta-main-photo-expand__trigger {
    top: 10px;
    right: 10px;
  }

  html body.arta-pdp .arta-main-photo-expand__panel {
    padding: 68px 14px 30px;
  }

  html body.arta-pdp .arta-main-photo-expand__source-life > img,
  html body.arta-pdp .arta-main-photo-expand__source-life > picture img {
    max-width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 98px) !important;
    max-height: calc(100dvh - 98px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.arta-pdp .arta-main-photo-expand__dialog,
  html body.arta-pdp .arta-main-photo-expand__dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
