/* ---------------------------------------------------------
   GALLERY CONTAINER FIX
--------------------------------------------------------- */
#gallery {
    width: 100%;
    position: relative;
    display: block;
    margin: 0 auto;
}

/* Rendered gallery container */
#jg-render {
    width: 100%;
    display: block;
}

/* Each justified row */
.jg-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* Image wrapper inside row */
.jg-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Images */
.jg-item img,
.jg-item a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

/* Hover zoom */
.jg-item:hover img {
    transform: scale(1.05);
}

/* ---------------------------------------------------------
   CAPTION STYLING
--------------------------------------------------------- */
.caption-block {
    margin-top: 6px;
    display: block;
}

.caption-block h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.caption-block span {
    font-size: 13px;
    opacity: .75;
    color: #444;
}

/* ---------------------------------------------------------
   FILTER BAR
--------------------------------------------------------- */
.filter-bar-wrapper {
    width: 100%;
    margin-bottom: 25px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid #dedede;
}

.filter-bar span.filter-label {
    font-weight: 600;
    margin-right: 10px;
}/* CAPTIONS */
.jg-caption {
    margin-top: 8px;
    line-height: 1.3;
}

.jg-caption h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.jg-caption span {
    font-size: 13px;
    color: #555;
}

.jg-caption span strong {
    color: #000;
}


.filter-btn {
    border: none;
    background: none;
    padding: 7px 14px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: .2s;
}

.filter-btn:hover {
    background: #f2f2f2;
}


/* Sticky filter bar */
.filter-bar.sticky {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 50;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
}

/* ---------------------------------------------------------
   LOADING OVERLAY
--------------------------------------------------------- */
.filter-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.filter-overlay.show {
    display: flex;
}

/* ---------------------------------------------------------
   RESPONSIVE STYLES
--------------------------------------------------------- */
@media (max-width: 1024px) {
    .caption-block h4 {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .jg-row {
        margin-bottom: 10px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        gap: 10px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    .caption-block h4 {
        font-size: 14px;
    }

    .caption-block span {
        font-size: 12px;
    }
}