/* Rabita Advanced Gallery */
.rabita-g{width:100%}
.rabita-g .rabita-g-filters{margin-bottom:1rem;display:flex;flex-wrap:wrap;gap:.5rem}
.rabita-g .rabita-g-filters button{padding:.4rem .7rem;border:1px solid #ddd;background:#fff;cursor:pointer;border-radius:6px}
.rabita-g .rabita-g-filters button.is-active{border-color:#333}

.rabita-g .rabita-g-wrap{display:grid;grid-template-columns:repeat(var(--cols-d,4),1fr);gap:var(--gap,20px)}
@media (max-width:1024px){.rabita-g .rabita-g-wrap{grid-template-columns:repeat(var(--cols-t,2),1fr)}}
@media (max-width:767px){.rabita-g .rabita-g-wrap{grid-template-columns:repeat(var(--cols-m,1),1fr)}}

.rabita-g.layout-masonry .rabita-g-wrap{column-count: var(--cols-d,4); column-gap: var(--gap,20px); display:block}
@media (max-width:1024px){.rabita-g.layout-masonry .rabita-g-wrap{column-count: var(--cols-t,2);}}
@media (max-width:767px){.rabita-g.layout-masonry .rabita-g-wrap{column-count: var(--cols-m,1);}}

.rabita-g.layout-masonry .rabita-g-item{break-inside: avoid; margin:0 0 var(--gap,20px) 0}
.rabita-g.layout-grid .rabita-g-item{aspect-ratio: var(--aspect, 16/9)}

.rabita-g .rabita-g-item{position:relative;overflow:hidden;border-radius:12px;background:#000}
.rabita-g .rabita-g-media{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .5s ease, filter .5s ease}
.rabita-g .rabita-g-overlay{position:absolute;inset:0;transition:opacity .35s ease;opacity:.25;background:rgba(0,0,0,.35)}
.rabita-g .rabita-g-caption{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;padding:.5rem 1rem;pointer-events:none}
.rabita-g.caption-bottom .rabita-g-caption{left:0;right:0;bottom:0;top:auto;transform:none;text-align:center;padding:.75rem;}

.rabita-g .rabita-g-caption-title{font-weight:700;font-size:1rem;color:#fff;text-shadow:0 2px 5px rgba(0,0,0,.5)}
.rabita-g .rabita-g-caption-desc{font-size:.875rem;color:#fff;opacity:.9;margin-top:.25rem}

.rabita-g.hover-zoom-in .rabita-g-item:hover .rabita-g-media{transform:scale(1.1)}
.rabita-g.hover-zoom-out .rabita-g-item:hover .rabita-g-media{transform:scale(0.9)}
.rabita-g.hover-grayscale .rabita-g-item:hover .rabita-g-media{transform:scale(1.08); filter:grayscale(100%)}
.rabita-g.hover-lift .rabita-g-item:hover .rabita-g-media{transform:translateY(-6px)}
.rabita-g .rabita-g-item:hover .rabita-g-overlay{opacity:.15}

.rabita-g .rabita-g-hit{display:block; position:relative; width:100%; height:100%}

/* Lightbox */
.rabita-g-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);display:none;align-items:center;justify-content:center;z-index:999999}
.rabita-g-lightbox.is-open{display:flex}
.rabita-g-lightbox img{max-width:92vw;max-height:92vh}

/* Load more */
.rabita-g-load{text-align:center;margin-top:1rem}
.rabita-g-load .rabita-g-loadmore{padding:.6rem 1rem;border-radius:8px;border:1px solid #ddd;background:#fff;cursor:pointer}
