/* RAEVIA room compositions. The site's existing fonts and gallery behaviour remain in use. */
.rv-room-galleries .rv-room-index{justify-content:flex-start;gap:8px 28px;border-bottom:0;margin-bottom:24px;padding-block:6px 26px}
.rv-room-galleries .rv-room-index a{color:var(--rv-ivory)}
.rv-room-galleries .rv-room-gallery{display:grid;grid-template-columns:minmax(0,.83fr) minmax(0,1.9fr);gap:clamp(26px,5vw,64px);align-items:center;margin:0;padding-block:clamp(32px,4vw,50px) clamp(40px,5vw,64px);border:0}
.rv-room-galleries .rv-room-gallery:first-of-type{padding-top:24px}
.rv-room-gallery .rv-room-intro{grid-column:1;grid-row:1;min-width:0;padding-bottom:42px;text-align:start;container-type:inline-size}
.rv-room-gallery .rv-room-kicker{color:var(--rv-gold);font-size:.69rem;line-height:1.8;font-weight:400;letter-spacing:.16em;text-transform:uppercase;margin:0 0 24px;max-width:none;overflow-wrap:anywhere}
.rv-room-gallery .rv-room-kicker::before{content:"";display:inline-block;width:25px;height:1px;background:var(--rv-gold);vertical-align:middle;margin-inline-end:12px}
.rv-room-gallery .rv-room-title{font-family:var(--rv-serif);font-weight:400;font-size:clamp(36px,5.3vw,68px);font-size:clamp(36px,20cqi,68px);line-height:1.08;letter-spacing:-.035em;margin:0;max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
.rv-room-gallery .rv-room-title-long{font-size:clamp(32px,4.2vw,54px);font-size:clamp(32px,17cqi,54px);line-height:1.14}
.rv-room-title .rv-room-line{display:block}
.rv-room-gallery .rv-room-note{color:var(--muted);font-size:.81rem;line-height:1.95;max-width:290px;margin:26px 0 0;overflow-wrap:anywhere}
.rv-room-gallery .rv-room-media{grid-column:2;grid-row:1;position:relative;min-width:0;width:100%}
.rv-room-gallery,.rv-lightbox{--rv-photo-radius:32px}
.rv-room-gallery .rv-room-viewport,.rv-room-gallery .rv-room-slide .rv-gallery-open,.rv-room-gallery .rv-room-slide .rv-gallery-open img{border-radius:32px}
/* Fit the visible artwork, excluding only recorded empty source-image padding. */
.rv-room-gallery .rv-room-slide .rv-gallery-open[data-image-trim]{aspect-ratio:var(--rv-image-ratio);overflow:hidden}
.rv-room-gallery .rv-room-slide .rv-gallery-open[data-image-trim]>img{position:absolute;left:var(--rv-image-left);top:var(--rv-image-top);width:var(--rv-image-width);height:var(--rv-image-height);max-width:none;max-height:none;object-fit:fill;border-radius:0}
.rv-lightbox>img{clip-path:inset(var(--rv-trim-top,0%) var(--rv-trim-right,0%) var(--rv-trim-bottom,0%) var(--rv-trim-left,0%) round var(--rv-photo-radius))}
.rv-room-gallery .rv-room-viewport{background:#25221e}
.rv-room-gallery .rv-room-slide .rv-gallery-open{background:#25221e}
.rv-room-gallery .rv-room-slide .rv-gallery-open>span{inset-block-end:18px}
.rv-room-gallery .rv-room-controls.rv-room-arrows{inset-inline:14px;align-items:center}
.rv-room-gallery .rv-room-prev,.rv-room-gallery .rv-room-next{min-width:86px;min-height:44px;padding:9px 14px;font-size:.69rem!important;gap:8px;background:rgba(23,23,23,.86)}
.rv-room-gallery .rv-room-controls.rv-room-pagination{min-height:62px;margin-top:0}
.rv-room-gallery .rv-room-dots button{width:30px;min-width:30px;min-height:44px}
.rv-room-gallery .rv-room-count{font-size:.69rem}
.rv-room-gallery .rv-room-arrows:has(.rv-room-prev:disabled):has(.rv-room-next:disabled){display:none}
.rv-room-gallery.rv-room-editorial-reverse{grid-template-columns:minmax(0,1.9fr) minmax(0,.83fr)}
.rv-room-editorial-reverse .rv-room-intro{grid-column:2;grid-row:1}
.rv-room-editorial-reverse .rv-room-media{grid-column:1;grid-row:1}
html[lang="ar"] .rv-room-gallery .rv-room-kicker{letter-spacing:0;text-transform:none;font-size:.69rem;line-height:2}
html[lang="ar"] .rv-room-gallery .rv-room-title{font-family:var(--rv-ar);font-size:clamp(27px,3.6vw,41px);font-size:clamp(27px,13cqi,41px);line-height:1.6;letter-spacing:0}
html[lang="ar"] .rv-room-gallery .rv-room-title-long{font-size:clamp(25px,3.1vw,35px);font-size:clamp(25px,11cqi,35px)}
html[lang="ar"] .rv-room-gallery .rv-room-note{line-height:2.05}
/* Grid columns follow the document direction, so the Arabic composition mirrors naturally. */
@media(max-width:740px){
 .rv-room-gallery,.rv-lightbox{--rv-photo-radius:22px}
 .rv-room-galleries .rv-room-index{gap:1px 22px;padding-bottom:8px;margin-bottom:12px}
 .rv-room-galleries .rv-room-index a{font-size:.75rem}
 .rv-room-galleries .rv-room-gallery,.rv-room-gallery.rv-room-editorial-reverse{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-block:35px 40px}
 .rv-room-galleries .rv-room-gallery:first-of-type{padding-top:24px}
 .rv-room-gallery .rv-room-intro{display:block;padding-bottom:24px;container-type:normal}
 .rv-room-gallery .rv-room-kicker{display:block;margin-bottom:16px;font-size:.69rem}
 .rv-room-gallery .rv-room-title{font-size:clamp(38px,9vw,50px);line-height:1.12}
 .rv-room-gallery .rv-room-title-long{font-size:clamp(32px,7.8vw,43px)}
 .rv-room-title .rv-room-line{display:inline}
 .rv-room-title .rv-room-line+.rv-room-line::before{content:" "}
 .rv-room-gallery .rv-room-note{max-width:480px;margin:16px 0 0;font-size:.75rem;line-height:1.9}
 .rv-room-gallery .rv-room-media{order:1}
 .rv-room-gallery .rv-room-viewport,.rv-room-gallery .rv-room-slide .rv-gallery-open,.rv-room-gallery .rv-room-slide .rv-gallery-open img{border-radius:22px}
 .rv-room-gallery .rv-room-controls.rv-room-arrows{inset-inline:10px}
 .rv-room-gallery .rv-room-prev,.rv-room-gallery .rv-room-next{min-width:78px;min-height:44px;padding:9px 12px;font-size:.69rem!important;gap:7px}
 .rv-room-gallery .rv-room-controls.rv-room-pagination{min-height:54px}
 .rv-room-gallery .rv-room-dots{display:none}
 html[lang="ar"] .rv-room-gallery .rv-room-title{font-size:clamp(27px,6.5vw,31px);line-height:1.65}
 html[lang="ar"] .rv-room-gallery .rv-room-title-long{font-size:clamp(25px,5.8vw,29px)}
}
