/* Same photo treatment, shimmer and loader as the product loop card. */
.iconic-woothumbs-all-images-wrap.bs24-gallery-loading > .iconic-woothumbs-images-wrap,
.iconic-woothumbs-all-images-wrap.bs24-gallery-loading > .iconic-woothumbs-thumbnails-wrap {
    opacity: 1 !important;
}
.iconic-woothumbs-all-images-wrap.bs24-gallery-loading > .iconic-woothumbs-loading-overlay {
    display: none !important;
}
.bs24-gallery-loading-layer {
    position: absolute;
    z-index: 10002;
    overflow: hidden;
    isolation: isolate;
    background: #f2eee8;
    opacity: 1;
    transition: opacity 360ms ease;
}
.bs24-gallery-loading-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: blur(0);
    opacity: 1;
    transition: filter 200ms ease, opacity 200ms ease;
}
.bs24-gallery-loading-layer--busy .bs24-gallery-loading-image {
    filter: blur(5px);
    opacity: 0.45;
}
.bs24-gallery-loading-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent, #faf8f4cc, transparent);
    transform: translateX(-100%);
    animation: bs24-gallery-skeleton-shimmer 1.2s linear infinite;
    pointer-events: none;
}
.bs24-gallery-loading-label {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 8px 12px;
    border-radius: 8px;
    background: #fffffff2;
    box-shadow: 0 2px 12px #0002;
    color: #131315;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
}
.bs24-gallery-loading-label::before {
    content: '';
    flex: 0 0 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #e67e32;
    border-radius: 50%;
    animation: bs24-gallery-loading-spin 700ms linear infinite;
}
.bs24-gallery-loading-layer--busy .bs24-gallery-loading-label,
.bs24-gallery-loading-layer--failed .bs24-gallery-loading-label {
    opacity: 1;
}
.bs24-gallery-loading-layer--revealing {
    opacity: 0;
    pointer-events: none;
}
.bs24-gallery-loading-layer--revealing::after,
.bs24-gallery-loading-layer--failed::after,
.bs24-gallery-loading-layer--failed .bs24-gallery-loading-label::before {
    display: none;
}
@keyframes bs24-gallery-skeleton-shimmer {
    to { transform: translateX(100%); }
}
@keyframes bs24-gallery-loading-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .bs24-gallery-loading-layer,
    .bs24-gallery-loading-image,
    .bs24-gallery-loading-label { transition: none; }
    .bs24-gallery-loading-layer::after,
    .bs24-gallery-loading-label::before { animation: none; }
    .bs24-gallery-loading-layer::after { transform: none; }
}
