/* Tefagoo Article Gallery - scoped styles, compatible with LTR/RTL themes. */
.tfg-gallery,.tfg-gallery *{box-sizing:border-box}.tfg-gallery{--tfg-gap:13px;--tfg-radius:15px;display:block;max-width:100%;margin:30px 0;clear:both;font-family:inherit;direction:rtl}.tfg-gallery__top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:1px;margin-bottom:12px}.tfg-gallery__top:empty{display:none}.tfg-gallery__title{margin:0!important;padding:0!important;font-weight:800;font-size:clamp(19px,2.4vw,25px)!important;line-height:1.35!important;color:inherit}.tfg-gallery__track{display:grid;grid-template-columns:repeat(var(--tfg-cols,3),minmax(0,1fr));grid-auto-rows:clamp(138px,16vw,230px);gap:var(--tfg-gap);margin:0;padding:0}.tfg-gallery__item{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:var(--tfg-radius);isolation:isolate;background:#e7eaf0;box-shadow:0 6px 22px rgba(13,30,57,.09);transition:box-shadow .22s ease,transform .22s ease}.tfg-gallery__item:hover{box-shadow:0 12px 27px rgba(13,30,57,.17);transform:translateY(-2px)}.tfg-gallery__trigger{appearance:none!important;-webkit-appearance:none!important;display:block!important;position:relative!important;overflow:hidden!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:inherit!important;background:transparent!important;box-shadow:none!important;outline-offset:-4px;cursor:zoom-in!important;color:#fff!important;text-align:start!important;line-height:normal!important}.tfg-gallery__trigger:focus-visible{outline:3px solid #60a5fa!important}.tfg-gallery__img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transition:transform .5s cubic-bezier(.2,.7,.2,1)}.tfg-gallery__item:hover .tfg-gallery__img{transform:scale(1.06)}.tfg-gallery__zoom{position:absolute;top:12px;left:12px;display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:rgba(13,22,35,.58);backdrop-filter:blur(9px);color:#fff;opacity:0;transform:translateY(-5px);transition:opacity .2s,transform .2s}.tfg-gallery__item:hover .tfg-gallery__zoom,.tfg-gallery__trigger:focus-visible .tfg-gallery__zoom{opacity:1;transform:translateY(0)}.tfg-gallery__caption{position:absolute;bottom:0;right:0;left:0;display:block;padding:35px 13px 13px;font-size:13px!important;line-height:1.6!important;font-weight:600;color:#fff!important;text-align:right;background:linear-gradient(transparent,rgba(0,0,0,.72));white-space:normal}.tfg-gallery--mosaic:not(.tfg-gallery--few) .tfg-gallery__item:first-child{grid-column:span 2;grid-row:span 2}.tfg-gallery--few .tfg-gallery__item{grid-row:auto;grid-column:auto}.tfg-gallery--strip .tfg-gallery__track{display:flex;grid-auto-rows:unset;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#bac5d5 transparent;padding:2px 1px 12px}.tfg-gallery--strip .tfg-gallery__item{flex:0 0 clamp(210px,32vw,335px);height:235px;scroll-snap-align:start}.tfg-gallery__nav{display:flex;align-items:center;gap:8px;margin-inline-start:auto}.tfg-gallery__scroll{appearance:none!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;margin:0!important;background:#f1f5f9!important;color:#213047!important;border:1px solid #dbe3ef!important;border-radius:50%!important;font-size:20px!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;cursor:pointer!important}.tfg-gallery__scroll:hover{background:#e0eaff!important}.tfg-gallery__scroll:focus-visible{outline:3px solid #60a5fa!important;outline-offset:2px}
/* Fullscreen gallery dialog */
body.tfg-lightbox-open{overflow:hidden!important}.tfg-lightbox[hidden]{display:none!important}.tfg-lightbox{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:2147483000;background:rgba(6,11,23,.96);color:#fff;font-family:system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;direction:rtl;isolation:isolate;touch-action:pan-y}.tfg-lightbox__stage{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%;width:100%;height:100%;padding:75px 80px 105px}.tfg-lightbox__image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 10px 55px rgba(0,0,0,.38);user-select:none;-webkit-user-drag:none}.tfg-lightbox__close,.tfg-lightbox__arrow{position:absolute;display:grid;place-items:center;appearance:none!important;border:1px solid rgba(255,255,255,.18)!important;background:rgba(255,255,255,.09)!important;color:white!important;cursor:pointer!important;box-shadow:none!important;padding:0!important;z-index:2;font-family:inherit!important;line-height:1!important}.tfg-lightbox__close:hover,.tfg-lightbox__arrow:hover{background:rgba(255,255,255,.22)!important}.tfg-lightbox__close:focus-visible,.tfg-lightbox__arrow:focus-visible{outline:3px solid #93c5fd!important;outline-offset:3px}.tfg-lightbox__close{top:20px;left:22px;width:44px;height:44px;border-radius:50%;font-size:30px!important}.tfg-lightbox__arrow{top:50%;width:47px;height:55px;border-radius:12px;font-size:36px!important;transform:translateY(-50%)}.tfg-lightbox__prev{right:17px}.tfg-lightbox__next{left:17px}.tfg-lightbox__foot{position:absolute;bottom:18px;left:70px;right:70px;display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;min-height:44px;padding:8px;text-align:center;font-size:14px;line-height:1.6}.tfg-lightbox__caption{overflow-wrap:anywhere;max-width:75vw;color:#e2e8f0}.tfg-lightbox__count{color:#aab9ce;direction:ltr;white-space:nowrap;font-variant-numeric:tabular-nums}.tfg-lightbox__loading .tfg-lightbox__image{opacity:.55}
@media(max-width:900px){.tfg-gallery__track{grid-template-columns:repeat(min(3,var(--tfg-cols,3)),minmax(0,1fr));grid-auto-rows:170px}.tfg-gallery{--tfg-gap:10px;--tfg-radius:12px}}@media(max-width:600px){.tfg-gallery{margin:23px 0;--tfg-gap:8px;--tfg-radius:11px}.tfg-gallery__track{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(130px,34vw,180px)}.tfg-gallery--mosaic:not(.tfg-gallery--few) .tfg-gallery__item:first-child{grid-column:span 2;grid-row:span 1}.tfg-gallery__zoom{opacity:1;transform:none;width:30px;height:30px;top:8px;left:8px}.tfg-gallery__caption{font-size:11px!important;padding:22px 9px 9px}.tfg-gallery--strip .tfg-gallery__item{flex-basis:74vw;height:205px}.tfg-lightbox__stage{padding:75px 12px 105px}.tfg-lightbox__close{top:13px;left:13px;width:42px;height:42px}.tfg-lightbox__arrow{top:auto;bottom:75px;transform:none;width:45px;height:45px}.tfg-lightbox__prev{right:15px}.tfg-lightbox__next{left:15px}.tfg-lightbox__foot{bottom:14px;left:62px;right:62px;font-size:12px}}@media(prefers-reduced-motion:reduce){.tfg-gallery__item,.tfg-gallery__img,.tfg-gallery__zoom{transition:none!important}.tfg-gallery--strip .tfg-gallery__track{scroll-behavior:auto}}
