[data-zoom-gallery] img {
    cursor: pointer;
}

.trace-photos {
    position: relative;
    width: 100%;
    min-width: 0;
}

.trace-photos-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.trace-photos-track::-webkit-scrollbar {
    display: none;
}

.trace-photos-slide {
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.trace-photos-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.trace-photos-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.trace-photos-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(90, 100, 120, 0.35);
}

.trace-photos-dots i.is-on {
    background: #1578c8;
}

.trace-zoom {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trace-zoom[hidden] {
    display: none !important;
}

.trace-zoom-mask {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(12, 24, 40, 0.82);
}

.trace-zoom-panel {
    position: relative;
    width: min(32rem, 100%);
    max-height: 100%;
    padding: 48px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.trace-zoom-close {
    position: absolute;
    top: 12px;
    right: 12px;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #243044;
    font-size: 13px;
}

.trace-zoom-panel img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.trace-zoom-count {
    margin: 10px 0 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

body.trace-zoom-lock {
    overflow: hidden;
}
