/* 7 Chakras Memories v1.3.0. Page 628 only.
   SAFE FALLBACK: standard CSS grid if JS unavailable; photos never become
   elongated. When JS runs, exact intrinsic heights and masonry positioning
   replace the ordinary grid, without touching filters, zoom or lightbox. */
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry {
    --gallery-gap: 7px;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    gap: 7px !important;
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > :is(.chakras-gallery-tile, .video-card) {
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: start !important;
    float: none !important;
    clear: none !important;
    overflow: hidden !important;
    break-inside: avoid !important;
}
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > .chakras-gallery-tile > img.chakras-gallery-thumb,
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > .chakras-gallery-tile > picture,
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > .chakras-gallery-tile > picture > img,
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > .video-card img {
    box-sizing: border-box !important;
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
}
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > .chakras-gallery-tile[hidden],
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > .video-card[hidden] { display: none !important; }
/* Gallery Studio photographer filters sometimes hide by inline style rather
   than setting the hidden attribute. Respect both serialized forms. */
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > :is(.chakras-gallery-tile, .video-card)[style*="display: none"],
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry > :is(.chakras-gallery-tile, .video-card)[style*="display:none"] { display: none !important; }


@media (max-width: 767px) {
    html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Exact absolute mosaic only after JS has computed ALL element dimensions.
   CSS variables remain as an additional safeguard, but JS sets inline
   important widths/heights to neutralize strong legacy rules. */
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready {
    display: block !important;
    columns: auto !important;
    column-count: auto !important;
    column-width: auto !important;
    gap: 0 !important;
    height: var(--c7mms-gallery-height, auto) !important;
}
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready > :is(.chakras-gallery-tile, .video-card) {
    position: absolute !important;
    inset: auto !important;
    left: var(--c7mms-left, 0px) !important;
    top: var(--c7mms-top, 0px) !important;
    width: var(--c7mms-width, 100%) !important;
    max-width: var(--c7mms-width, 100%) !important;
    height: var(--c7mms-height, auto) !important;
    min-height: 0 !important;
    max-height: var(--c7mms-height, none) !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
    box-sizing: border-box !important;
}
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready > .chakras-gallery-tile > img.chakras-gallery-thumb,
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready > .chakras-gallery-tile > picture,
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready > .chakras-gallery-tile > picture > img,
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready > .video-card img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    transform: none !important;
}
html body.page-id-628 .chakras-managed-gallery.chakras-gallery-layout-masonry.c7mms-layout-ready > .chakras-gallery-tile.is-video > .chakras-gallery-empty {
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
}
