/* =============================================
   Gallery+ Features - All Styles
   ============================================= */

/* ---------- THUMBNAIL: HIDE CAPTIONS ---------- */
.gpf-hide-captions .wp-block-image figcaption {
    display: none !important;
}
.gpf-hide-captions .wp-block-image:has(figcaption)::before {
    display: none !important;
}

/* ---------- THUMBNAIL: BELOW IMAGE ---------- */
.gpf-thumb-below figure.wp-block-image {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.gpf-thumb-below figure.wp-block-image > a {
    height: auto !important;
}
.gpf-thumb-below figure.wp-block-image img {
    object-fit: contain !important;
    max-height: none !important;
}
.gpf-thumb-below .wp-block-image figcaption {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    background: none !important;
    color: inherit !important;
    padding: 0.6em 0 0 !important;
    margin: 0 !important;
    text-shadow: none !important;
    font-size: 0.85em !important;
    text-align: center !important;
    max-height: none !important;
    overflow: visible !important;
}
.gpf-thumb-below .wp-block-image:has(figcaption)::before {
    display: none !important;
}

/* Cropped galleries – keep square image, caption flows below */
.is-cropped.gpf-thumb-below figure.wp-block-image {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.is-cropped.gpf-thumb-below figure.wp-block-image > a {
    height: auto !important;
    display: block !important;
}
.is-cropped.gpf-thumb-below figure.wp-block-image > a img {
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
}
.is-cropped.gpf-thumb-below .wp-block-image figcaption {
    position: relative !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: none !important;
    padding: 0.6em 0 0 !important;
    margin: 0 !important;
    text-shadow: none !important;
    font-size: 0.85em !important;
    text-align: center !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
}

/* ---------- THUMBNAIL: HIDDEN ---------- */
.gpf-thumb-hidden .wp-block-image figcaption {
    display: none !important;
}
.gpf-thumb-hidden .wp-block-image:has(figcaption)::before {
    display: none !important;
}

#baguetteBox-overlay .full-image figcaption {
    display: none !important;
}