.fotonezet-open {
  position:relative; display:block; width:100%; min-width:0; padding:0; margin:0;
  border:0; border-radius:0; background:transparent; color:var(--ink,#f3eee6); cursor:zoom-in;
}
.fotonezet-lens {
  position:absolute; right:.55rem; bottom:.55rem; display:block; width:2.15rem; height:2.15rem;
  background:#272523ed; border:1px solid #c2b9acbc; border-radius:50%; pointer-events:none;
}
.fotonezet-lens::before {
  content:""; position:absolute; width:.7rem; height:.7rem; border:1.5px solid currentColor;
  border-radius:50%; left:.56rem; top:.52rem;
  background:linear-gradient(currentColor,currentColor) center/58% 1px no-repeat,
             linear-gradient(currentColor,currentColor) center/1px 58% no-repeat;
}
.fotonezet-lens::after {
  content:""; position:absolute; left:1.25rem; top:1.28rem; width:.42rem; height:1.5px;
  background:currentColor; transform-origin:left; transform:rotate(45deg);
}
.fotonezet-open:focus-visible,.fotonezet :focus-visible {
  outline:2px solid var(--silver,#e6ddcf); outline-offset:3px;
}
@media(hover:hover) {
  .fotonezet-open:hover .fotonezet-lens { background:#49382f; border-color:#e9e3d9; }
}
html.fotonezet-active { overflow:hidden; scrollbar-gutter:stable; }
.fotonezet, .fotonezet * { box-sizing:border-box; }
.fotonezet {
  width:min(44rem,calc(100% - 1.25rem)); max-width:none;
  max-height:calc(100vh - 1.25rem); max-height:calc(100dvh - 1.25rem);
  overflow:auto; overscroll-behavior:contain; margin:auto; padding:clamp(.75rem,2.1vw,1.4rem);
  border:1px solid #92887d; border-radius:4px; background:linear-gradient(145deg,#444345,#303030 53%,#392e27); color:var(--ink,#f3eee6);
  box-shadow:0 1rem 4rem #0009; font:inherit;
}
.fotonezet::backdrop { background:#101010ef; }
.fotonezet-head,.fotonezet-tools,.fotonezet-nav { display:flex; align-items:center; gap:.65rem; }
.fotonezet-head { justify-content:space-between; padding-bottom:.7rem; }
.fotonezet h2 {
  margin:0; color:var(--ink,#f3eee6); font-family:var(--type-display,Georgia,serif);
  font-weight:400; line-height:1.16; letter-spacing:-.015em; font-size:clamp(1.45rem,3.4vw,2.1rem);
}
.fotonezet button {
  min-height:44px; padding:.4rem .8rem; border:1px solid #a39588; border-radius:2px;
  background:var(--umber,#302c29); font:inherit; font-size:1rem; line-height:1.3; color:#f3eee6; cursor:pointer;
}
.fotonezet button:hover,.fotonezet button[aria-pressed=true] { color:var(--coal,#0c0d0e); background:var(--silver,#e6ddcf); }
.fotonezet-stage {
  display:grid; grid-template:minmax(0,1fr)/minmax(0,1fr); place-items:center;
  width:100%; height:min(62vh,36rem); height:min(62dvh,36rem);
  overflow:hidden; overscroll-behavior:contain; touch-action:pan-y pinch-zoom; background:var(--field,#242628);
}
.fotonezet-stage img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.fotonezet-zoomed .fotonezet-stage { display:block; overflow:auto; touch-action:auto; }
.fotonezet-zoomed .fotonezet-stage img { max-width:none; max-height:none; margin-inline:auto; }
.fotonezet-caption { margin:.7rem 0; color:#ded7cd; font-size:1rem; line-height:1.55; }
.fotonezet-tools,.fotonezet-nav { flex-wrap:wrap; }
.fotonezet-nav { margin-left:auto; }
.fotonezet-position { min-width:2.4rem; text-align:center; font-variant-numeric:tabular-nums; color:#d2c6ba; }
.fotonezet [hidden] { display:none; }
@media(max-width:440px) {
  .fotonezet { width:calc(100% - .65rem); padding:.6rem; }
  .fotonezet-tools,.fotonezet-nav { gap:.28rem; }
  .fotonezet button { padding:.38rem .54rem; }
}

/* A shared control keeps model zoom recognizable in every photo view. */
.model-zoom-trigger {
  border:0; padding:0; margin:0; background:transparent; color:var(--ink,#f3eee6);
  font:inherit; cursor:zoom-in;
}
.model-zoom-trigger[hidden] {display:none}
.modell-nagyitas {
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  min-height:44px; padding:.4rem .8rem; border:1px solid #aea297; border-radius:3px;
  background:#232221ed; color:#f3eee6; box-shadow:0 .15rem .5rem #06070854;
  font:600 .9rem/1.2 var(--type-body,system-ui,sans-serif);
}
.modell-nagyitas::before {
  content:""; display:inline-block; width:1rem; height:1rem;
  background:
    linear-gradient(45deg,transparent 38%,currentColor 39% 62%,transparent 63%) bottom right/.43rem .43rem no-repeat,
    radial-gradient(circle at center,transparent 48%,currentColor 52% 65%,transparent 69%) top left/.79rem .79rem no-repeat;
}
.model-zoom-trigger:focus-visible .modell-nagyitas {outline:2px solid #f3eee6;outline-offset:2px}
@media(hover:hover) {
  .model-zoom-trigger:hover .modell-nagyitas {background:#504137;border-color:#e6ddcf}
}
.studio-frame {position:relative}
.studio-frame > .model-zoom-trigger {position:absolute;inset:0;width:100%;height:100%;}
.studio-frame > .model-zoom-trigger .modell-nagyitas {position:absolute;right:.55rem;top:.55rem}
dialog.fotonezet-modell {width:min(64rem,calc(100% - 1rem))}
.fotonezet-modell .fotonezet-stage {
  height:min(66vh,42rem);height:min(66dvh,42rem);background:var(--photo-field,#464340);
}
.fotonezet-modell .fotonezet-stage img {
  -webkit-mask:var(--outline) center/contain no-repeat;
  mask:var(--outline) center/contain no-repeat;
  -webkit-user-drag:none;user-select:none;
}
.fotonezet-modell.fotonezet-zoomed .fotonezet-stage {cursor:grab}
.fotonezet-modell .fotonezet-stage.fotonezet-dragging {cursor:grabbing}
@media(max-width:600px) and (orientation:portrait) {
  .fotonezet-modell .fotonezet-stage {height:clamp(12rem,81vw,28rem)}
}
@media(max-height:485px) and (orientation:landscape) {
  .fotonezet-modell .fotonezet-stage {height:47vh;height:47dvh}
}
.fotonezet-modell .fotonezet-tools {margin-top:.75rem;justify-content:space-between}
.fotonezet-views {display:inline-flex;flex-wrap:wrap;gap:.3rem}
.fotonezet-views:not([hidden]) button {min-width:5.5rem}
.fotonezet-stage.fotonezet-dragging {user-select:none}
@media(max-width:390px) {
  .fotonezet-modell .fotonezet-tools {gap:.35rem}
  .fotonezet-views:not([hidden]) button {min-width:0}
}
