.pgl-grid, .pgl-grid *, .pgl-dialog, .pgl-dialog * { box-sizing: border-box; }
.pgl-grid { display: grid; grid-template-columns: repeat(var(--pgl-columns, 3), minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); width: 100%; }
.pgl-card { min-width: 0; }
.pgl-grid .pgl-trigger { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%; padding: 12px; margin: 0; min-height: 0; border-radius: 0; appearance: none; font: inherit; line-height: normal; background: transparent; border: 0; box-shadow: none; text-decoration: none; cursor: zoom-in; }
.pgl-grid .pgl-cover { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; transition: opacity .18s ease; }
.pgl-trigger:hover .pgl-cover { opacity: .8; }
.pgl-trigger:focus-visible, .pgl-dialog button:focus-visible { outline: 3px solid #8d7544; outline-offset: 5px; }
html.pgl-modal-open { overflow: hidden !important; }
dialog.pgl-dialog { position: fixed; inset: 0; width: min(1380px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 0; background: #fff; color: #171717; box-shadow: 0 15px 70px #0003; overflow: auto; font-family: inherit; }
.pgl-dialog:not([open]) { display: none; }
.pgl-dialog::backdrop { background: rgb(0 0 0 / .48); }
.pgl-dialog .pgl-toolbar { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 1; background: #fff; padding: 8px 14px 0; }
.pgl-dialog .pgl-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 0; background: #fff; color: #171717; font: 38px/1 Arial, sans-serif; box-shadow: none; cursor: pointer; }
.pgl-dialog .pgl-close:hover { background: #f3f1ed; }
.pgl-content { padding: 0 clamp(20px, 3vw, 52px) clamp(28px, 4vw, 64px); }
.pgl-images { display: flex; align-items: center; justify-content: center; gap: 18px; }
.pgl-image { flex: var(--pgl-ratio, 1) 1 0%; min-width: 0; }
.pgl-dialog .pgl-image img { display: block; width: 100%; height: auto; max-height: 55vh; object-fit: contain; border: 0; border-radius: 0; box-shadow: none; }
.pgl-description { margin-top: 28px; font-size: clamp(17px, 1.6vw, 25px); line-height: 1.55; overflow-wrap: anywhere; }
.pgl-description:empty { display: none; }
.pgl-description p { margin: 0 0 .4em; }
.pgl-description p:last-child { margin-bottom: 0; }
.pgl-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .pgl-grid { grid-template-columns: repeat(min(2, var(--pgl-columns, 3)), minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 600px) {
    .pgl-grid { grid-template-columns: 1fr; gap: 20px; }
    dialog.pgl-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
    .pgl-images { flex-direction: column; gap: 20px; }
    .pgl-image { flex: none; width: 100%; }
    .pgl-dialog .pgl-image img { max-height: 55dvh; }
    .pgl-description { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pgl-cover { transition: none !important; } }
