/* Srishtigrid WP Widgets – front end. By Srishti Grid */
.sgw-feed{--sgw-cols:3;--sgw-gap:10px;--sgw-h:300px;--sgw-ar:auto;--sgw-radius:0px;--sgw-ease:cubic-bezier(.2,.7,.2,1);width:100%;box-sizing:border-box}
.sgw-feed *,.sgw-feed *::before,.sgw-feed *::after{box-sizing:border-box}
.sgw-grid{display:grid;grid-template-columns:repeat(var(--sgw-cols),minmax(0,1fr));gap:var(--sgw-gap)}

/* Card */
.sgw-item{position:relative;display:block;color:inherit;text-decoration:none;border-radius:var(--sgw-radius);overflow:hidden;transition:transform .35s var(--sgw-ease),box-shadow .35s var(--sgw-ease)}
a.sgw-item{cursor:pointer}
a.sgw-item:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.sgw-media{position:relative;width:100%;height:var(--sgw-h);aspect-ratio:var(--sgw-ar);background:var(--sgw-bg,#f2f2f2);overflow:hidden;border-radius:var(--sgw-radius)}
.sgw-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--sgw-pos,center);transition:transform .6s var(--sgw-ease),filter .5s ease;margin:0;max-width:none;border-radius:0}
.sgw-fit-contain .sgw-media img{object-fit:contain}
.sgw-fit-fill .sgw-media img{object-fit:fill}
.sgw-fit-scale-down .sgw-media img{object-fit:scale-down}

/* Overlay */
.sgw-overlay{position:absolute;inset:0;background:var(--sgw-ov,rgba(0,0,0,.35));opacity:0;transition:opacity .35s ease;pointer-events:none}

/* Watermark & type icon */
.sgw-watermark,.sgw-type-icon{position:absolute;z-index:3;line-height:0;color:var(--sgw-wm-color,#fff);filter:drop-shadow(0 1px 3px rgba(0,0,0,.45));pointer-events:none;transition:opacity .3s ease,transform .3s ease}
.sgw-watermark svg{width:var(--sgw-wm-size,22px);height:var(--sgw-wm-size,22px)}
.sgw-wm-top-right .sgw-watermark{top:10px;right:10px}
.sgw-wm-top-left .sgw-watermark{top:10px;left:10px}
.sgw-wm-bottom-right .sgw-watermark{bottom:10px;right:10px}
.sgw-wm-bottom-left .sgw-watermark{bottom:10px;left:10px}
.sgw-wm-center-hover .sgw-watermark{top:50%;left:50%;transform:translate(-50%,-50%) scale(.8);opacity:0}
.sgw-wm-center-hover .sgw-watermark svg{width:calc(var(--sgw-wm-size,22px) * 1.6);height:calc(var(--sgw-wm-size,22px) * 1.6)}
.sgw-type-icon{top:10px;left:10px;color:#fff}
.sgw-type-icon svg{width:20px;height:20px}
.sgw-wm-top-left .sgw-type-icon{left:auto;right:10px}

/* Captions (visibility per device is set by the scoped <style> printed with each feed) */
.sgw-caption{display:none;font-family:var(--sgw-ff,inherit);font-size:var(--sgw-fs,14px);font-weight:var(--sgw-fw,400);line-height:var(--sgw-lh,1.5);letter-spacing:var(--sgw-ls,0);text-transform:var(--sgw-tt,none);text-align:var(--sgw-ta,left)}
.sgw-caption-text{margin:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--sgw-lines,3);line-clamp:var(--sgw-lines,3);word-break:break-word}
.sgw-date{display:block;font-size:.85em;opacity:.75;margin-bottom:4px}
.sgw-caption--overlay{position:absolute;left:0;right:0;bottom:0;z-index:2;flex-direction:column;justify-content:flex-end;padding:var(--sgw-cap-pad,12px);color:var(--sgw-cap-ov-col,#fff);background:var(--sgw-cap-ov-bg,rgba(0,0,0,.55));opacity:0;transform:translateY(12px);transition:opacity .35s ease,transform .35s var(--sgw-ease)}
.sgw-caption--below{padding:var(--sgw-cap-pad,12px) 2px 2px;color:var(--sgw-cap-color,#333)}
.sgw-item:hover .sgw-caption--overlay,.sgw-item:focus-visible .sgw-caption--overlay{opacity:1;transform:none}

/* Hover effects (only on devices that can hover) */
@media (hover:hover){
	.sgw-hover-zoom .sgw-item:hover img,.sgw-hover-zoom-dark .sgw-item:hover img{transform:scale(1.08)}
	.sgw-hover-zoom-out .sgw-media img{transform:scale(1.1)}
	.sgw-hover-zoom-out .sgw-item:hover img{transform:scale(1)}
	.sgw-hover-darken .sgw-item:hover .sgw-overlay,.sgw-hover-zoom-dark .sgw-item:hover .sgw-overlay{opacity:1}
	.sgw-hover-grayscale .sgw-media img{filter:grayscale(1)}
	.sgw-hover-grayscale .sgw-item:hover img{filter:grayscale(0)}
	.sgw-hover-blur .sgw-item:hover img{filter:blur(3px);transform:scale(1.04)}
	.sgw-hover-lift .sgw-item:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(0,0,0,.18)}
	.sgw-wm-center-hover .sgw-item:hover .sgw-watermark{opacity:1;transform:translate(-50%,-50%) scale(1)}
}
@media (prefers-reduced-motion:reduce){.sgw-feed *{transition:none!important}}

/* Follow button */
.sgw-follow{text-align:center;margin-top:calc(var(--sgw-gap) + 14px)}
.sgw-follow-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 22px;border-radius:999px;background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);color:#fff!important;text-decoration:none!important;font-weight:600;font-size:15px;transition:transform .2s ease,box-shadow .2s ease}
.sgw-follow-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(204,35,102,.35)}
.sgw-follow-btn svg{width:18px;height:18px}

/* Fallback & admin notice */
.sgw-fallback{padding:24px;text-align:center;border:1px dashed rgba(0,0,0,.18);border-radius:8px;color:inherit}
.sgw-fallback p{margin:0 0 .5em}.sgw-fallback p:last-child{margin:0}
.sgw-admin-error{margin-bottom:12px;padding:10px 14px;border-left:4px solid #d63638;background:#fcf0f1;color:#3c434a;font-size:13px;line-height:1.5}
.sgw-admin-error em{opacity:.7}

/* Lightbox */
.sgw-lb{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:4vh 4vw;background:rgba(10,10,10,.96);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s}
.sgw-lb.is-open{opacity:1;visibility:visible}
.sgw-lb-inner{display:flex;flex-direction:column;align-items:center;max-width:min(1000px,100%);max-height:100%;width:auto}
.sgw-lb-media{display:flex;align-items:center;justify-content:center;max-height:calc(92vh - 140px);min-height:0}
.sgw-lb-media img,.sgw-lb-media video{display:block;max-width:100%;max-height:calc(92vh - 140px);width:auto;height:auto;border-radius:4px;background:#000}
.sgw-lb-info{width:100%;max-width:640px;margin-top:14px;color:#eee;font-size:14px;line-height:1.55;max-height:110px;overflow:auto;text-align:center}
.sgw-lb-info .sgw-date{color:#aaa}
.sgw-lb-info p{margin:0 0 8px;white-space:pre-line}
.sgw-lb-info a{color:#fff;text-decoration:underline;font-weight:600}
.sgw-lb button{position:absolute;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;font-size:24px;line-height:1;padding:0;transition:background .2s}
.sgw-lb button:hover,.sgw-lb button:focus-visible{background:rgba(255,255,255,.28);outline:none}
.sgw-lb-close{top:16px;right:16px}
.sgw-lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.sgw-lb-next{right:16px;top:50%;transform:translateY(-50%)}
@media (max-width:600px){.sgw-lb{padding:60px 10px 20px}.sgw-lb-prev,.sgw-lb-next{top:auto;bottom:16px;transform:none}}
body.sgw-lb-open{overflow:hidden}
