.tomgallery-grid{--tomgallery-columns: 3;display:grid;grid-template-columns:repeat(var(--tomgallery-columns),1fr);gap:24px;margin:0;padding:0;list-style:none;box-sizing:border-box}.tomgallery-grid *{box-sizing:border-box}.tomgallery-item{position:relative;display:block;overflow:hidden;background:#eee;text-decoration:none}.tomgallery-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}.tomgallery-item:hover img,.tomgallery-item:focus-visible img{transform:scale(1.06)}.tomgallery-item::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,0);transition:background .3s ease;pointer-events:none;z-index:1}.tomgallery-item:hover::after,.tomgallery-item:focus-visible::after{background:rgba(0,0,0,.06)}.tomgallery-card-info{position:absolute;left:0;right:0;bottom:0;padding:46px 20px 20px;background:linear-gradient(to top,rgba(10,10,12,0.94) 0%,rgba(10,10,12,0.7) 50%,rgba(10,10,12,0.18) 82%,rgba(10,10,12,0) 100%);display:flex;flex-direction:column;justify-content:flex-end;pointer-events:none;z-index:2;transition:padding 0.35s ease,background 0.35s ease}.tomgallery-tag{display:inline-block;font-family:inherit;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;color:#c5a880;margin-bottom:5px;line-height:1.2}.tomgallery-title{font-family:inherit;font-size:17px;font-weight:600;color:#ffffff;margin:0;line-height:1.3;letter-spacing:-0.01em;text-shadow:0 1px 4px rgba(0,0,0,0.65);transition:color 0.3s ease}.tomgallery-desc{font-family:inherit;font-size:12.5px;line-height:1.45;color:rgba(255,255,255,0.85);margin:0;max-height:0;opacity:0;overflow:hidden;transform:translateY(6px);transition:max-height 0.4s ease,opacity 0.35s ease,transform 0.35s ease,margin 0.35s ease;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.tomgallery-item:hover .tomgallery-card-info,.tomgallery-item:focus-visible .tomgallery-card-info{padding-top:56px;padding-bottom:22px;background:linear-gradient(to top,rgba(10,10,12,0.98) 0%,rgba(10,10,12,0.82) 60%,rgba(10,10,12,0.3) 90%,rgba(10,10,12,0) 100%)}.tomgallery-item:hover .tomgallery-desc,.tomgallery-item:focus-visible .tomgallery-desc{margin-top:8px;max-height:60px;opacity:1;transform:translateY(0)}.tomgallery-card-info.tomgallery-desc-always .tomgallery-desc{margin-top:6px;max-height:60px;opacity:0.9;transform:translateY(0)}.tomgallery-item:hover .tomgallery-card-info.tomgallery-desc-always .tomgallery-desc,.tomgallery-item:focus-visible .tomgallery-card-info.tomgallery-desc-always .tomgallery-desc{opacity:1}@media(max-width:900px){.tomgallery-grid{--tomgallery-columns: 2 !important;gap:16px}.tomgallery-card-info{padding:38px 18px 18px}.tomgallery-title{font-size:16px}.tomgallery-desc{font-size:12px}}@media(max-width:560px){.tomgallery-grid{--tomgallery-columns: 1 !important;gap:14px}.tomgallery-card-info{padding:34px 16px 16px}.tomgallery-title{font-size:15px}}.tomgallery-lightbox{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(10,10,12,.92);opacity:0;visibility:hidden;transition:opacity .3s ease;padding:60px 70px;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.tomgallery-lightbox.is-open{opacity:1;visibility:visible}.tomgallery-lightbox-figure{position:relative;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;margin:0;transform:scale(.97);transition:transform .3s ease}.tomgallery-lightbox.is-open .tomgallery-lightbox-figure{transform:scale(1)}.tomgallery-lightbox img{display:block;max-width:100%;max-height:78vh;width:auto;height:auto;border-radius:4px;box-shadow:0 20px 60px rgba(0,0,0,.5);background:#111;transition:opacity .2s ease}.tomgallery-lightbox-loading img{opacity:0}.tomgallery-close{position:absolute;top:22px;right:28px;width:40px;height:40px;border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background .2s ease}.tomgallery-close:hover{background:rgba(255,255,255,.12)}.tomgallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border:0;background:rgba(0,0,0,.25);color:#fff;font-size:22px;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background .2s ease}.tomgallery-nav:hover{background:rgba(0,0,0,.5)}.tomgallery-nav.tomgallery-prev{left:16px}.tomgallery-nav.tomgallery-next{right:16px}.tomgallery-caption{position:absolute;left:4px;bottom:-46px;color:#fff;font-size:14px;line-height:1.4;max-width:78%;margin:0;text-shadow:0 1px 3px rgba(0,0,0,0.8)}.tomgallery-counter{position:absolute;right:4px;bottom:-34px;color:rgba(255,255,255,.75);font-size:13px;letter-spacing:.02em}@media(max-width:640px){.tomgallery-lightbox{padding:16px 16px 54px}.tomgallery-nav{width:40px;height:40px;font-size:18px}.tomgallery-close{top:10px;right:12px}.tomgallery-caption{bottom:-42px;font-size:12px;max-width:78%;line-height:1.3}.tomgallery-counter{bottom:-42px;font-size:12px}}body.tomgallery-noscroll{overflow:hidden}
