/* Colors come from the site's global palette; fallbacks are used only if the palette is missing. */
.skog-gallery{--skog-ink:var(--wp--preset--color--brand-ink,#171717);--skog-accent:var(--wp--preset--color--brand-orange,#FF5A1F);--skog-focus:var(--wp--preset--color--brand-orange-text,#A8380D);--skog-surface:var(--wp--preset--color--brand-off-white,#F3F0E9);--skog-gap:20px;width:100%;}
.skog-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--skog-gap);list-style:none;margin:0;padding:0;}
.skog-gallery__item{margin:0;padding:0;}
.skog-gallery__link{display:block;position:relative;overflow:hidden;background:var(--skog-surface);aspect-ratio:4/3;outline-offset:3px;}
.skog-gallery__link:focus-visible{outline:3px solid var(--skog-focus);}
.sk-dark .skog-gallery__link:focus-visible{outline-color:var(--skog-accent);}
.skog-gallery__img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease;}
.skog-gallery__link::after{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:var(--skog-accent);transform:scaleX(0);transform-origin:left;transition:transform .25s ease;}
.skog-gallery__link:hover .skog-gallery__img,.skog-gallery__link:focus-visible .skog-gallery__img{transform:scale(1.03);}
.skog-gallery__link:hover::after,.skog-gallery__link:focus-visible::after{transform:scaleX(1);}
.skog-gallery--notice{padding:16px 20px;border:2px dashed currentColor;font-size:.9375rem;margin-bottom:12px;}
.skog-gallery--warn{border-style:solid;}
@media (max-width:1024px){.skog-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));--skog-gap:16px;}}
@media (max-width:767px){.skog-gallery__grid{grid-template-columns:minmax(0,1fr);--skog-gap:14px;}}

.skog-lightbox{--skog-accent:var(--wp--preset--color--brand-orange,#FF5A1F);border:0;padding:0;margin:auto;background:transparent;max-width:min(1200px,94vw);width:100%;color:#fff;overflow:visible;}
.skog-lightbox::backdrop{background:rgba(23,23,23,.92);}
html.skog-lightbox-open{overflow:hidden;}
.skog-lightbox__figure{margin:0;display:flex;flex-direction:column;align-items:center;}
.skog-lightbox__img{display:block;max-width:100%;max-height:80vh;width:auto;height:auto;}
.skog-lightbox__caption{margin:14px 0 0;font-size:1rem;line-height:1.5;text-align:center;color:#fff;}
.skog-lightbox__count{display:block;font-size:.875rem;color:rgba(255,255,255,.8);margin-top:4px;}
.skog-lightbox__btn{position:fixed;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:999px;border:0;background:rgba(255,255,255,.16);color:#fff;font:inherit;font-size:1.75rem;line-height:1;cursor:pointer;transition:background-color .2s ease;}
.skog-lightbox__btn[hidden]{display:none;}
.skog-lightbox__btn:hover{background:rgba(255,255,255,.3);}
.skog-lightbox__btn:focus-visible{outline:3px solid var(--skog-accent);outline-offset:2px;}
.skog-lightbox__close{top:16px;right:16px;}
.skog-lightbox__prev{left:16px;top:50%;transform:translateY(-50%);}
.skog-lightbox__next{right:16px;top:50%;transform:translateY(-50%);}
@media (max-width:767px){.skog-lightbox__prev,.skog-lightbox__next{top:auto;bottom:16px;transform:none;}.skog-lightbox__img{max-height:70vh;}}
@media (prefers-reduced-motion:reduce){.skog-gallery__img,.skog-gallery__link::after,.skog-lightbox__btn{transition:none;}.skog-gallery__link:hover .skog-gallery__img,.skog-gallery__link:focus-visible .skog-gallery__img{transform:none;}}
