.pack-pdf-link {display:flex; flex-wrap:wrap; gap:.6rem; align-items:center}
.magazine-open {cursor:pointer}
.catalogue-dialog {border:0; padding:0; width:min(94vw,1500px); max-width:none; max-height:94vh; background:#f8f5ed; color:#27382f; border-radius:12px; box-shadow:0 16px 70px #0007}
.catalogue-dialog::backdrop {background:rgba(14,25,20,.82)}
.catalogue-top,.catalogue-controls {display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; padding:12px 18px}
.catalogue-top {justify-content:space-between; border-bottom:1px solid #ddd8cd}
.catalogue-top h2 {margin:0; font-size:1.1rem}
.catalogue-close,.catalogue-nav {background:#304b40; color:white; border:0; border-radius:5px; padding:.7rem 1rem; font:inherit; cursor:pointer}
.catalogue-nav:disabled {opacity:.4; cursor:default}
.catalogue-image-wrap {height: min(70vh,850px); overflow:auto; display:flex; align-items:center; justify-content:center; background:#ddd9d1}
.catalogue-image-wrap img {display:block; max-width:100%; max-height:100%; object-fit:contain; box-shadow:0 2px 20px #0004}
.catalogue-image-wrap.zoomed {display:block}
.catalogue-image-wrap.zoomed img {max-width:none; max-height:none; width:150%; height:auto; margin:auto}
.catalogue-counter {min-width:7rem; text-align:center}
@media(max-width:600px){.catalogue-dialog {width:98vw; max-height:96vh}.catalogue-image-wrap{height:55vh}.catalogue-controls{gap:6px}.catalogue-nav{padding:.6rem;font-size:.9rem}}

.catalogue-dialog.viewer-expanded { width:100vw; height:100vh; max-height:100vh; border-radius:0; }
.catalogue-dialog.viewer-expanded .catalogue-image-wrap { height:calc(100vh - 140px); }
.catalogue-image-wrap { perspective:1800px; }
.catalogue-image-wrap > img { transform-origin:left center; backface-visibility:hidden; will-change:transform; }

.catalogue-image-wrap:not(.zoomed) { overflow:hidden; }
