
/* PearlT Academy gallery — isolated styling, no external dependencies. */
.pt-gallery-section{padding:86px 0;background:linear-gradient(180deg,#fffbf5 0%,#fcf4e6 100%)}
.pt-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:30px}
.pt-gallery-heading h2{margin:12px 0 10px;font-family:Georgia,serif;font-size:clamp(34px,4vw,58px);line-height:1.09;color:#28231d}
.pt-gallery-heading p{margin:0;max-width:590px;color:#655a50;font-size:16px}
.pt-gallery-mark{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#e7c16a;color:#6c272d;font-size:38px;flex:none}
.pt-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.pt-gallery-card{position:relative;display:block;width:100%;aspect-ratio:4/3;background:#f3e8d4;border:1px solid #dfcda8;border-radius:16px;overflow:hidden;padding:0;cursor:zoom-in;transition:transform .18s ease,box-shadow .18s ease}
.pt-gallery-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.pt-gallery-card:hover,.pt-gallery-card:focus-visible{transform:translateY(-3px);box-shadow:0 12px 30px rgba(41,31,21,.14)}
.pt-gallery-card:hover img,.pt-gallery-card:focus-visible img{transform:scale(1.045)}
.pt-gallery-card:focus-visible{outline:3px solid #ab7025;outline-offset:3px}
.pt-gallery-zoom{position:absolute;right:12px;bottom:12px;width:38px;height:38px;border-radius:50%;background:rgba(248,204,103,.94);color:#2b241b;display:grid;place-items:center;font-size:22px;pointer-events:none}
.pt-gallery-lightbox{max-width:min(92vw,1060px);max-height:93vh;border:0;border-radius:16px;background:#fffaf2;box-shadow:0 30px 80px rgba(0,0,0,.3);padding:14px;overflow:auto}
.pt-gallery-lightbox::backdrop{background:rgba(20,16,14,.86)}
.pt-gallery-lightbox img{display:block;max-width:100%;max-height:75vh;margin:auto;object-fit:contain;border-radius:9px}
.pt-gallery-lightbox p{color:#574d42;margin:10px 6px 0;text-align:center;font-size:14px}
.pt-gallery-close{position:sticky;top:0;float:right;z-index:2;margin:-4px -4px 6px 8px;width:39px;height:39px;border:0;border-radius:50%;color:#2c241b;background:#ecc25e;cursor:pointer;font-size:29px;line-height:1}
@media(max-width:800px){.pt-gallery-section{padding:62px 0}.pt-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pt-gallery-heading{align-items:flex-start}.pt-gallery-mark{width:48px;height:48px;font-size:26px}.pt-gallery-card{border-radius:12px}}
@media(max-width:500px){.pt-gallery-grid{gap:9px}.pt-gallery-heading h2{font-size:36px}.pt-gallery-heading p{font-size:14px}.pt-gallery-mark{display:none}.pt-gallery-card{aspect-ratio:3/4}.pt-gallery-zoom{width:31px;height:31px;font-size:18px;right:8px;bottom:8px}}
@media(prefers-reduced-motion:reduce){.pt-gallery-card,.pt-gallery-card img{transition:none!important}}

.pt-gallery-nav[hidden]{display:none!important}
