/* Property listings: reserve the image space before photos have loaded. */
.property-listing-grid > .property-listing-column {
    display: flex;
    margin-bottom: 30px;
}

.wpo-project-section .project-wrapper .property-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.property-card .project-single-img {
    flex-shrink: 0;
    border-radius: 8px;
    background: #f6f3ef;
}

.property-card .project-single-img > a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.property-card .project-single-img img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.property-card .project-single-img img.property-image-placeholder {
    object-fit: contain;
}

.property-card .project-single-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.property-card .button-property {
    margin-top: auto;
}

/* Every gallery slide shares one responsive viewport, regardless of its ratio. */
.wpo-project-single-main-img.property-gallery {
    height: clamp(220px, 48vw, 520px);
    max-height: 70vh;
    overflow: hidden;
    border-radius: 12px;
    background: #f6f3ef;
}

.property-gallery .owl-stage-outer,
.property-gallery .owl-stage,
.property-gallery .owl-item,
.property-gallery .property-gallery-slide {
    height: 100%;
}

.property-gallery .property-gallery-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.property-gallery .property-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.property-gallery:not(.owl-loaded) {
    display: block;
}

.property-gallery:not(.owl-loaded) > .property-gallery-slide:not(:first-child) {
    display: none;
}

.property-gallery .owl-nav.disabled {
    display: none;
}

.property-gallery .owl-nav .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.property-gallery .owl-nav button:focus-visible,
.property-gallery-slide:focus-visible {
    outline: 3px solid #C49A46;
    outline-offset: -3px;
}
