/* Keep card geometry independent of the source image's orientation. */
.property-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
    overflow: hidden;
}

.property-card-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.property-lightbox-stage {
    min-height: 0;
}

.property-lightbox-stage > img {
    max-width: 100%;
    max-height: calc(100dvh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.property-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: rgb(9 13 22 / 80%);
    color: white;
    cursor: pointer;
}

.property-lightbox-arrow:hover {
    background: rgb(180 83 9 / 95%);
}

.property-lightbox-arrow:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.property-lightbox-arrow--previous { left: 0; }
.property-lightbox-arrow--next { right: 0; }
