.vehicle-photo {
    position: relative;
    background: #eef0f2;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

#vdp-photo { height: 460px; }
#vdp-photo img { cursor: pointer; }

.vehicle-photo picture,
.vehicle-photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.vehicle-photo img { object-fit: contain; }
.vehicle-photo:not([data-state="ready"]) img { opacity: 0; }

.photo-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52606d;
    font-size: 0.9rem;
    pointer-events: none;
}

.vehicle-photo[data-state="loading"] .photo-status {
    background: linear-gradient(100deg, transparent 25%, #ffffff40 50%, transparent 75%);
    background-size: 200% 100%;
    animation: photo-loading 1.5s linear infinite;
}

.vehicle-photo[data-state="ready"] .photo-status { display: none; }
.photo-retry {
    position: absolute;
    top: calc(50% + 24px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: #fff;
    color: #263341;
    cursor: pointer;
}
.photo-original {
    position: absolute;
    top: calc(50% + 80px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #263341;
    text-decoration: underline;
}
.photo-retry[hidden], .photo-original[hidden], .lb-arrow[hidden], .gallery-nav-btn[hidden] { display: none; }

#lb-photo { width: 100%; height: 100%; background: #171717; }
#lb-photo .photo-status { color: #ddd; }
#lb-photo .photo-original { color: #ddd; }
.lb-thumb { padding: 0; min-width: 0; background: #252525; }
.lb-thumb img { object-fit: cover; }
.lb-thumb .photo-status { font-size: 0.65rem; color: #ddd; }

@keyframes photo-loading { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
    .vehicle-photo[data-state="loading"] .photo-status { animation: none; }
}
