/* Red Door - resale and rental listing card galleries.
 *
 * Both cards used to render a single <img> as a direct child of the card link,
 * so every existing size/radius rule targets `.community-card > img`. A
 * multi-image card renders `.rd-card-gallery` in that same slot, so the box
 * rules below mirror the originals one-for-one (same order, same media queries,
 * same values) with the <img> swapped for the gallery element.
 */
.off-plan-communities .community-card > .rd-card-gallery { border-radius:20px; width:100%; height:205px; display:block; position:relative; overflow:hidden; transition:filter .3s; }
.off-plan-communities .community-card:hover > .rd-card-gallery { filter:brightness(.75); }
.off-plan-listings.off-plan-communities .off-plan-listings__grid.is-list-view .community-card > .rd-card-gallery { border-radius:20px 0 0 20px; grid-area:1/1; width:100%; height:100%; min-height:338px; }
@media (max-width:767.98px){ .off-plan-listings.off-plan-communities .off-plan-listings__grid.is-list-view .community-card > .rd-card-gallery { border-radius:18px 0 0 18px; min-height:310px; } }
.off-plan-listings.off-plan-communities.resale-listings .off-plan-listings__grid.is-list-view .community-card > .rd-card-gallery { border-radius:20px 0 0 20px; min-height:280px; }
@media (max-width:767.98px){ .resale-listings .off-plan-listings__grid.is-list-view .community-card > .rd-card-gallery { min-height:238px; } }
.off-plan-listings.off-plan-communities.resale-listings.is-map-view #off-plan-results .community-card > .rd-card-gallery { border-radius:20px 20px 0 0; grid-area:auto; width:100%; height:224px; min-height:224px; }
@media (max-width:500px){ .off-plan-listings.off-plan-communities .off-plan-listings__grid.is-list-view .off-plan-card.community-card > .rd-card-gallery { border-radius:20px 20px 0 0; grid-area:1/1; height:224px; min-height:0; } }
.resale-listings.is-map-view #off-plan-results .off-plan-card > .rd-card-gallery { border-radius:20px 20px 0 0; width:100%; height:224px; min-height:224px; }
.rental-listings.is-map-view .off-plan-card > .rd-card-gallery { border-radius:20px 20px 0 0; width:100%; height:224px; min-height:224px; }

/* slides fill the gallery box exactly as the single <img> used to */
.rd-card-gallery .slick-list, .rd-card-gallery .slick-track { height:100%; }
.rd-card-gallery__slide { height:100%; }
.rd-card-gallery__slide img { -o-object-fit:cover; object-fit:cover; width:100%; height:100%; display:block; -webkit-user-drag:none; user-select:none; }
.rd-card-gallery:not(.slick-initialized) .rd-card-gallery__slide + .rd-card-gallery__slide { display:none; }

/* arrows: same artwork as the podcast / showcase sliders */
.rd-card-gallery .slick-prev, .rd-card-gallery .slick-next { z-index:2; cursor:pointer; background-color:#e3dfd6f0; background-image:url("data:image/svg+xml,%3csvg%20width='14'%20height='11'%20viewBox='0%200%2014%2011'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M7.91297%200.335353C7.79295%200.449152%207.79295%200.633645%207.91297%200.747492L12.3255%204.93126L0.557815%204.91501C0.388079%204.91479%200.250256%205.04508%200.25%205.20602C0.25%205.20616%200.25%205.20631%200.25%205.20646C0.25%205.3672%200.38731%205.49763%200.556893%205.49788L12.3033%205.51407L7.91297%209.67681C7.79295%209.79066%207.79295%209.97515%207.91297%2010.0889C8.03302%2010.2028%208.2276%2010.2028%208.34765%2010.0889L13.2737%205.41822C13.3338%205.3613%2013.3638%205.28674%2013.3638%205.21216C13.3638%205.13758%2013.3338%205.063%2013.2737%205.0061L8.34765%200.335377C8.2276%200.221529%208.03302%200.221529%207.91297%200.335353Z'%20fill='%23441110'%20stroke-width='0.5'%20stroke='%23441110'/%3e%3c/svg%3e"); background-position:50%; background-repeat:no-repeat; background-size:12px 12px; border:0; border-radius:50%; place-items:center; width:34px; height:34px; padding:0; font-size:0; transition:background-color .2s, opacity .2s; display:grid; position:absolute; top:50%; transform:translateY(-50%); }
.rd-card-gallery .slick-prev { left:10px; right:auto; transform:translateY(-50%) rotate(180deg); }
.rd-card-gallery .slick-next { left:auto; right:10px; }
.rd-card-gallery .slick-prev:before, .rd-card-gallery .slick-next:before { display:none; }
.rd-card-gallery .slick-prev:hover, .rd-card-gallery .slick-next:hover { background-color:#fff; }
