/* ИМПЕРИАЛ 06.11.2026: единый размер, единая маска, без обрезки изделий.
   Последний CSS после approved-imagery.css намеренно устраняет конфликт !important. */
body.catalog-reset.catalog-published #gallery,
body.catalog-reset.catalog-published #gallery .catalog-origin-group,
body.catalog-reset.catalog-published #gallery .catalog-section {
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important
}
body.catalog-reset.catalog-published #gallery .catalog-cards{
  display:grid!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(12px,1.8vw,20px)!important
}
body.catalog-reset.catalog-published #gallery a.archive-item{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  grid-template-columns:none!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;overflow:hidden!important;padding:8px!important;
  border:1px solid #aa8352!important;border-radius:9px!important;
  background:linear-gradient(145deg,#1c1510,#080707)!important;
  box-shadow:inset 0 0 0 2px #050505,0 10px 24px #000b!important
}
body.catalog-reset.catalog-published #gallery .archive-photo,
body.catalog-reset.catalog-published #featured .feature-image{
  box-sizing:border-box!important;display:flex!important;position:relative!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;min-height:0!important;aspect-ratio:1/1!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
  isolation:isolate!important;border-radius:6px!important;background:#080808!important
}
body.catalog-reset.catalog-published #gallery .archive-photo img,
body.catalog-reset.catalog-published #featured .feature-image img{
  display:block!important;position:relative!important;z-index:1!important;flex:0 0 auto!important;
  width:100%!important;height:100%!important;min-width:0!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  transform:none!important;filter:none!important;mix-blend-mode:normal!important;
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.8),#000 5%,#000 95%,rgba(0,0,0,.8))!important;
  mask-image:linear-gradient(to right,rgba(0,0,0,.8),#000 5%,#000 95%,rgba(0,0,0,.8))!important
}
body.catalog-reset.catalog-published #gallery .archive-photo::before,
body.catalog-reset.catalog-published #featured .feature-image::before{
  content:""!important;display:block!important;position:absolute!important;inset:-22px!important;
  z-index:0!important;pointer-events:none!important;
  background-image:var(--imperial-photo,none)!important;background-size:cover!important;
  background-position:center!important;background-repeat:no-repeat!important;
  filter:blur(19px) brightness(.47)!important;opacity:.32!important;transform:scale(1.06)!important
}
body.catalog-reset.catalog-published #gallery .archive-photo::after,
body.catalog-reset.catalog-published #featured .feature-image::after{
  content:""!important;display:block!important;position:absolute!important;inset:0!important;
  z-index:2!important;pointer-events:none!important;
  background:linear-gradient(to right,#080707c8 0%,transparent 10%,transparent 90%,#080707c8 100%),
             linear-gradient(to bottom,#08070788 0%,transparent 12%,transparent 88%,#080707b9 100%)!important;
  box-shadow:inset 0 0 22px #0008!important
}
body.catalog-reset.catalog-published #gallery .archive-copy{
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:13px 12px 16px!important;flex:1 1 auto!important
}
body.catalog-reset.catalog-published #gallery .archive-copy strong{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:anywhere!important;hyphens:auto!important;
  font-size:clamp(19px,1.85vw,25px)!important;line-height:1.24!important
}
body.catalog-reset.catalog-published #gallery :is(.archive-origin,.archive-explore){
  min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important
}
body.catalog-reset.catalog-published #gallery .archive-explore{margin-top:auto!important}
body.catalog-reset.catalog-published #collection .more-wrap{
  display:flex!important;justify-content:center!important;width:100%!important;max-width:100%!important
}
body.catalog-reset.catalog-published #collection #loadMore{
  width:100%!important;max-width:min(100%,390px)!important;min-width:0!important;
  box-sizing:border-box!important;padding:14px 18px!important;
  white-space:normal!important;overflow-wrap:anywhere!important
}
@media(max-width:1000px){
  body.catalog-reset.catalog-published #gallery .catalog-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important
  }
}
@media(max-width:680px){
  body.catalog-reset.catalog-published #gallery .catalog-cards{
    grid-template-columns:minmax(0,1fr)!important;gap:15px!important
  }
  body.catalog-reset.catalog-published #gallery a.archive-item{
    display:flex!important;flex-direction:column!important;grid-template-columns:none!important
  }
  body.catalog-reset.catalog-published #gallery .archive-photo{
    aspect-ratio:1/1!important;min-height:0!important;height:auto!important
  }
  body.catalog-reset.catalog-published #gallery .archive-copy{padding:12px 12px 15px!important}
  body.catalog-reset.catalog-published #gallery .archive-copy strong{
    font-size:clamp(20px,5.4vw,24px)!important
  }
  body.catalog-reset.catalog-published #gallery .archive-origin{font-size:11px!important}
  body.catalog-reset.catalog-published #collection #loadMore{
    font-size:clamp(14px,3.8vw,17px)!important;line-height:1.3!important
  }
}
@media(max-width:800px){
  body.catalog-reset.catalog-published #gallery .archive-photo::before,
  body.catalog-reset.catalog-published #featured .feature-image::before{
    filter:blur(14px) brightness(.46)!important;opacity:.3!important
  }
}
/* На исходном фото яйцо «Изумрудное» занимает лишь небольшую часть кадра.
   Масштабируем всю фотографию только в просмотре этого изделия. Исходник не меняем. */
.r-stage[data-product-id="object_02"] .r-stage-photo{
  transform:scale(2.02)!important;transform-origin:50% 62%!important;
  object-fit:contain!important
}
.r-stage .r-stage-photo{
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.85),#000 5%,#000 95%,rgba(0,0,0,.85))!important;
  mask-image:linear-gradient(to right,rgba(0,0,0,.85),#000 5%,#000 95%,rgba(0,0,0,.85))!important
}
@media(max-width:800px){
  .r-stage[data-product-id="object_02"] .r-stage-photo{
    transform:scale(1.7)!important
  }
}


/* 06.11.2026 FINAL: source-verified full-bleed 1536x1536 images, NOT a mini-photo.
   Keep this AFTER old card rules: uniform images fill the entire inner frame. */
html,body{max-width:100%;overflow-x:clip}
body.catalog-reset.catalog-published #gallery .archive-photo,
body.catalog-reset.catalog-published #featured .feature-image{
  display:block!important;aspect-ratio:1/1!important;height:auto!important;
  width:100%!important;padding:0!important;overflow:hidden!important;
}
body.catalog-reset.catalog-published #gallery .archive-photo img,
body.catalog-reset.catalog-published #featured .feature-image img{
  display:block!important;position:relative!important;inset:auto!important;z-index:1!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  padding:0!important;margin:0!important;object-fit:cover!important;object-position:center!important;
  transform:none!important;filter:none!important;
}
/* The unified image already contains its own seamless photographic extension.
   Adding a second blurred copy was the source of the ugly nested rectangle. */
body.catalog-reset.catalog-published #gallery .archive-photo::before,
body.catalog-reset.catalog-published #featured .feature-image::before{content:none!important;display:none!important}
body.catalog-reset.catalog-published #gallery .archive-photo::after,
body.catalog-reset.catalog-published #featured .feature-image::after{
  background:linear-gradient(90deg,#09080862,transparent 5%,transparent 95%,#09080862),
             linear-gradient(180deg,#09080850,transparent 5%,transparent 95%,#09080868)!important;
  box-shadow:inset 0 0 14px #0005!important;
}
/* Detail view: one full-size photo, no doubling, no object_02 CSS zoom that cuts the finial. */
.r-stage{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  aspect-ratio:1/1!important;height:auto!important;min-height:0!important;
  overflow:hidden!important;isolation:isolate!important;
}
.r-stage .r-stage-photo,
.r-stage[data-product-id="object_02"] .r-stage-photo{
  display:block!important;position:relative!important;z-index:1!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  padding:0!important;margin:0!important;object-fit:contain!important;
  transform:none!important;object-position:center!important;
}
.r-stage::after{
  content:""!important;pointer-events:none!important;position:absolute!important;z-index:2!important;inset:0!important;
  background:linear-gradient(90deg,#07070770,transparent 5%,transparent 95%,#07070770),
             linear-gradient(180deg,#07070770,transparent 5%,transparent 95%,#07070770)!important;
}
.r-stage::before{content:none!important;display:none!important}
.r-gallery,.r-info,.r-product,.r-page{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
/* Phones in "desktop site" mode can report ~980 CSS px; adapt the layout as well. */
@media (min-width:801px) and (max-width:1180px){
  .r-product{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
  .r-gallery,.r-info{width:100%!important;max-width:100%!important}
  .r-page{width:calc(100% - 28px)!important;margin-inline:auto!important}
  .r-head .r-nav{display:none!important}
  .r-head .r-nav.open{display:flex!important;position:absolute!important;z-index:90!important;
    top:100%!important;left:0!important;right:0!important;flex-direction:column!important;
    background:#090808!important;padding:15px!important;border:1px solid #b68a50!important}
}
@media (max-width:800px){
  .r-product{display:block!important;width:100%!important}
  .r-page{width:calc(100% - 24px)!important;margin-inline:auto!important}
  .r-stage{aspect-ratio:1/1!important}
}


/* 09.11.2026 mobile product gallery: show tappable source thumbnails below the full image. */
@media(max-width:800px){
  .r-thumbnails:has(button){
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(58px,1fr))!important;
    justify-content:stretch!important;
    gap:8px!important;
    margin:10px 1px 0!important;
  }
  .r-thumbnails button.r-thumb{
    display:grid!important;
    min-width:0!important;
    width:100%!important;
    height:66px!important;
    padding:4px!important;
    overflow:hidden!important;
  }
  .r-thumbnails button.r-thumb img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  .r-stage .r-stage-photo{object-fit:contain!important}
}
