#t7lb[hidden] {
    display: none!important;
}
#t7lb {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: rgba(0,0,0,.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-sizing: border-box;
    overscroll-behavior: contain;
}
#t7lb * {
    box-sizing: border-box;
}
#t7lb figure {
    margin: 0;
    max-width: calc(100% - 112px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
#t7lb img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    max-height: 80dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}
#t7lb figcaption {
    color: #fff;
    text-align: center;
    font: 14px/1.5 system-ui,sans-serif;
    overflow: auto;
    max-height: 8vh;
    white-space: pre-wrap;
}
#t7lb button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font: 36px/1 Arial,sans-serif;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    transition: background .2s, opacity .25s;
}
#t7lb button:hover,#t7lb button:focus-visible {
    background: rgba(255,255,255,.18);
    outline: 2px solid #fff;
    outline-offset: 2px;
}
#t7lb button:hover {
    outline-width: var(--t7lb-hover-border-weight,2px);
    outline-color: var(--t7lb-hover-border-color,#fff);
}
#t7lb button[hidden] {
    display: none!important;
}
#t7lb .t7lb-close {
    top: 12px;
    right: 12px;
}
#t7lb .t7lb-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
#t7lb .t7lb-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
#t7lb .t7lb-count {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    pointer-events: none;
    font: 13px system-ui,sans-serif;
    color: #fff;
}
#t7lb .t7lb-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font: 16px system-ui,sans-serif;
    pointer-events: none;
}
@media(max-width:767px) {
    #t7lb figure {
        max-width: calc(100% - 64px);
    }
    #t7lb button {
        width: 36px;
        height: 44px;
        font-size: 30px;
    }
    #t7lb .t7lb-prev {
        left: 10;
    }
    #t7lb .t7lb-next {
        right: 10;
    }
}
#t7lb img[hidden] {
    display: none!important;
}
/* Touch gestures are handled by the lightbox, not by the page. */
#t7lb {
    touch-action: none;
}
/* Native WordPress justified gallery; no theme grid or column gaps. */
.t7lb-justified-grid {
    display: grid!important;
    width: 100%!important;
    box-sizing: border-box!important;
    contain: inline-size;
    transition: none!important;
    justify-content: start!important;
    align-items: start!important;
    min-width: 0!important;
    gap: 2px!important;
    list-style: none!important;
    padding: 0!important;
    margin: 20px auto !important;
    grid-template-columns: minmax(0, 1fr)!important;
    grid-template-rows: none!important;
    grid-auto-rows: auto!important;
}
.t7lb-justified-grid::before,.t7lb-justified-grid::after {
    display: none!important;
}
.t7lb-justified-grid > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image) {
    box-sizing: border-box!important;
    grid-column: 1!important;
    grid-row: var(--t7lb-tile-row)!important;
    justify-self: start!important;
    width: var(--t7lb-tile-w)!important;
    max-width: none!important;
    min-width: 0!important;
    height: auto!important;
    aspect-ratio: var(--t7lb-tile-ratio)!important;
    transition: none!important;
    margin: 0!important;
    margin-left: var(--t7lb-tile-x, 0px)!important;
    padding: 0!important;
    float: none!important;
    position: relative!important;
    overflow: hidden!important;
    display: block!important;
	border-radius: 10px;
}
.t7lb-justified-grid > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image) :is(.gallery-icon,figure,a,picture) {
    display: block!important;
    width: 100%!important;
    height: 100%!important;
    margin: 0!important;
    padding: 0!important;
    max-width: none!important;
}
.t7lb-justified-grid > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image) img {
    display: block!important;
    width: 100%!important;
    height: 100%!important;
    max-width: none!important;
    max-height: none!important;
    object-fit: cover!important;
    margin: 0!important;
    padding: 0!important;
    border: 0!important;
}
.t7lb-justified-grid > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image) :is(figcaption,.gallery-caption) {
    position: absolute!important;
    bottom: 0!important;
    left: 0!important;
    width: 100%!important;
    margin: 0!important;
    padding: 4px 6px!important;
    background: rgba(0,0,0,.55);
    color: #fff;
    max-height: 45%;
    overflow: auto;
    text-align: center;
    box-sizing: border-box;
}
.t7lb-justified-grid > br {
    display: none!important;
}
/* Image zoom and additional lightbox controls. */
#t7lb {
    overflow: hidden;
}
#t7lb img {
    cursor: zoom-in;
    transition: transform .22s ease;
    -webkit-user-drag: none;
}
#t7lb img.t7lb-zoomed {
    transform: translate(var(--t7lb-pan-x,0px),var(--t7lb-pan-y,0px)) scale(2);
    cursor: grab;
}
#t7lb .t7lb-fullscreen {
    top: 12px;
    right: 64px;
}
#t7lb .t7lb-play {
    top: 12px;
    right: 116px;
}
#t7lb:fullscreen {
    background: rgba(0,0,0,.9);
}
#t7lb.t7lb-full figure {
    max-width: 100%;
    max-height: 100dvh;
}
#t7lb.t7lb-full img {
    max-height: 90dvh;
}
@media(max-width:767px) {
    #t7lb .t7lb-fullscreen {
        right: 52px;
    }
    #t7lb .t7lb-play {
        right: 92px;
    }
}
@media(prefers-reduced-motion:reduce) {
    #t7lb img {
        transition: none;
    }
}
/* Zoomed image drag and slideshow progress. */
#t7lb img.t7lb-dragging {
    cursor: grabbing;
    transition: none;
}
@property --t7lb-progress {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
#t7lb .t7lb-play.t7lb-playing::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(var(--t7lb-ring-color,#cc0000) var(--t7lb-progress),transparent 0);
    mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    animation: t7lb-progress var(--t7lb-slide-duration,4s) linear forwards;
}
@keyframes t7lb-progress {
    from {
        --t7lb-progress: 0deg;
    }
    to {
        --t7lb-progress: 360deg;
    }
}
@media(prefers-reduced-motion:reduce) {
    #t7lb .t7lb-play.t7lb-playing::after {
        animation: none;
        --t7lb-progress: 360deg;
    }
}
/* Configurable controls; original dimensions remain the defaults. */
#t7lb figcaption[hidden] {
    display: none!important;
}
#t7lb button .t7lb-custom-icon {
    display: block;
    width: var(--t7lb-icon-size,24px);
    height: var(--t7lb-icon-size,24px);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: inherit;
    transition: none;
    pointer-events: none;
}
#t7lb.t7lb-custom-controls {
    --t7lb-control-width: max(48px,calc(var(--t7lb-icon-size,24px) + 8px));
    --t7lb-spacing: var(--t7lb-control-gap,4px);
}
#t7lb.t7lb-custom-controls button {
    width: var(--t7lb-control-width);
    height: var(--t7lb-control-width);
    font-size: var(--t7lb-icon-size,36px);
}
#t7lb button svg {
    width: var(--t7lb-icon-size,24px);
    height: var(--t7lb-icon-size,24px);
}
#t7lb.t7lb-custom-controls .t7lb-fullscreen {
    right: calc(12px + var(--t7lb-control-width) + var(--t7lb-spacing));
}
#t7lb.t7lb-custom-controls .t7lb-play {
    right: calc(12px + 2 * (var(--t7lb-control-width) + var(--t7lb-spacing)));
}
#t7lb.t7lb-custom-controls figure {
    max-width: calc(100% - 2 * (var(--t7lb-control-width) + 8px));
}
#t7lb.t7lb-custom-controls.t7lb-full figure {
    max-width: 100%;
}
@media(max-width:767px) {
    #t7lb.t7lb-custom-controls {
        --t7lb-control-width: max(36px,calc(var(--t7lb-icon-size,24px) + 8px));
    }
    #t7lb.t7lb-custom-controls button {
        font-size: var(--t7lb-icon-size,30px);
    }
}
/* Configurable icon colors and button backgrounds. */
#t7lb button {
    background: var(--t7lb-button-bg,transparent);
    color: var(--t7lb-icon-color,#fff);
}
#t7lb button:hover,#t7lb button:focus-visible {
    background: var(--t7lb-button-hover,rgba(255,255,255,.18));
}
#t7lb button .t7lb-tinted-icon {
    display: block;
    width: var(--t7lb-icon-size,24px);
    height: var(--t7lb-icon-size,24px);
    max-width: 100%;
    max-height: 100%;
    background: currentColor;
    -webkit-mask: var(--t7lb-icon-mask) center / contain no-repeat;
    mask: var(--t7lb-icon-mask) center / contain no-repeat;
    pointer-events: none;
}
/* Optional thumbnail hover effects, clipped to the existing gallery tile. */
@media (hover:hover) {
    .t7lb-justified-grid:is(.t7lb-hover-opacity,.t7lb-hover-grayscale,.t7lb-hover-scale,.t7lb-hover-blur) > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image) img {
        transition: opacity .2s,filter .2s,transform .2s!important;
    }
    .t7lb-hover-opacity > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image):hover img {
        opacity: .7!important;
    }
    .t7lb-hover-grayscale {
        --t7lb-hover-gray: 1;
    }
    .t7lb-hover-blur {
        --t7lb-hover-blur: 2px;
    }
    .t7lb-justified-grid:is(.t7lb-hover-grayscale,.t7lb-hover-blur) > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image):hover img {
        filter: grayscale(var(--t7lb-hover-gray,0)) blur(var(--t7lb-hover-blur,0px))!important;
    }
    .t7lb-hover-scale > :is(.gallery-item,.blocks-gallery-item,figure.wp-block-image):hover img {
        transform: scale(1.1)!important;
    }
}

/* Hide slideshow controls after inactivity. */
#t7lb.t7lb-controls-hidden button {
    opacity: 0;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    #t7lb button {
        transition: background .2s;
    }
}

/* Keep the running slideshow ring visible in the close-button position. */
#t7lb .t7lb-play {
    transition: background .2s, opacity .25s, right .25s ease;
}
#t7lb .t7lb-play > * {
    transition: opacity .25s;
}
#t7lb.t7lb-controls-hidden .t7lb-play.t7lb-playing {
    right: 12px;
    opacity: 1;
    background: transparent;
    outline: none;
    pointer-events: none;
}
#t7lb.t7lb-controls-hidden .t7lb-play.t7lb-playing > * {
    opacity: 0;
}
/* The enlarged photo is above the lightbox controls. */
#t7lb figure:has(> img.t7lb-zoomed) {
    position: relative;
    z-index: 2;
}
#t7lb img.t7lb-zoomed {
    position: relative;
    z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
    #t7lb .t7lb-play {
        transition: background .2s;
    }
    #t7lb .t7lb-play > * {
        transition: none;
    }
}
