/* Shared editorial rhythm; retain each page's established typefaces and palette. */
.article-page :is(h1,h2,h3,h4) { text-wrap:balance; overflow-wrap:break-word; }
.article-page :is(p,li,figcaption) { overflow-wrap:break-word; }
.v8-interior .article-page > p:not([class]) {
  max-inline-size:72ch; margin-block:.9em; line-height:1.65; text-align:start;
}
.article-page :is(.rr-guide-photo,.rr-family-stop,.rr-guide-story) { min-inline-size:0; }
.article-page .rr-family-stop { align-items:center; }
.article-page .rr-family-stop > a { display:block; }
.article-page .rr-guide-photo img { display:block; max-width:100%; }
.article-page :is(.rr-guide-photo figcaption,.rr-family-stop div) a {
  border-bottom:0; text-decoration:underline; text-underline-offset:.2em;
}
@media(min-width:741px) {
  .rr-activity:has(> .rr-guide-photo):has(> p):not(:has(.rr-guide-grid)) {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto auto;
    gap:.6rem clamp(1.5rem,4vw,4rem); align-content:center;
  }
  .article-page .rr-activity > .rr-guide-photo { grid-column:1; grid-row:1/3; margin:0; }
  .article-page .rr-activity:has(> .rr-guide-photo) > h3 { grid-column:2; align-self:end; margin:0; }
  .article-page .rr-activity:has(> .rr-guide-photo) > p { grid-column:2; align-self:start; margin:0; }
}
body [data-rr-terms] {
  box-sizing:border-box; width:100%; margin:clamp(1.5rem,4vw,3.5rem) auto;
  padding:clamp(1.25rem,3vw,2.25rem) clamp(.75rem,2.5vw,2rem);
  border-block:1px solid #bfb9ae; text-align:center; grid-column:1/-1;
}
body [data-rr-terms]::before,body [data-rr-terms]::after { content:none; }
body [data-rr-terms] :is(.rr-v47-booking-strip__inner,p) { max-inline-size:68ch; margin-inline:auto; text-align:center; }
body [data-rr-terms] p:not(.rr-v47-booking-strip__title) {
  font-family:inherit; font-size:1rem; line-height:1.65; letter-spacing:normal;
  text-transform:none; margin-block:0; overflow-wrap:anywhere;
}
body [data-rr-terms] .rr-v47-booking-strip__title { margin-block:0 .75rem; }
body [data-rr-terms] p a { border-bottom:0; text-decoration:underline; text-underline-offset:.2em; }
body [data-rr-terms] .book.solid { display:inline-flex; max-width:100%; margin:1rem auto 0; align-items:center; justify-content:center; }
:is(dialog,.v8-menu-picture) [data-rr-terms] { margin-block:1rem; padding-block:1rem; }

.rr-detail-photos,.rr-local-pair,.article-page .rr-gym-pair {
  display:grid;gap:clamp(1rem,2.5vw,2rem);grid-template-columns:repeat(2,minmax(0,1fr));
}
.rr-detail-photos {grid-template-columns:repeat(3,minmax(0,1fr));}
.rr-detail-photos figure {margin:0;}
.rr-detail-photos img,.rr-local-pair img {display:block;width:100%;aspect-ratio:5/3;object-fit:cover;}
.rr-detail-photos figcaption,.rr-local-pair span {display:block;font-family:var(--serif);font-size:clamp(1.1rem,1.7vw,1.45rem);line-height:1.25;margin-block:.7rem;}
.rr-detail-equipment {max-width:72ch;margin-block:2rem 1rem;}
.rr-local-info {margin-block:2.5rem;}
.rr-local-pair {margin-block:1.25rem;}
.rr-local-pair a {display:block;}
.article-page .rr-gym-pair {max-width:none;}
@media (max-width:740px){.rr-detail-photos {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:480px){.rr-detail-photos,.rr-local-pair,.article-page .rr-gym-pair {grid-template-columns:1fr;}}

/* Keep each interior photograph and its caption together in the grid. */
#apartment-comfort .rr-detail-photos {align-items:start;row-gap:2rem;margin-block:2rem;}
#apartment-comfort .rr-detail-photos figure {display:block;position:static;height:auto;aspect-ratio:auto;overflow:visible;}
#apartment-comfort .rr-detail-photos img {display:block;position:static;width:100%;height:auto;aspect-ratio:5/3;object-fit:cover;margin:0;}
#apartment-comfort .rr-detail-photos figcaption {position:static;margin:.7rem 0 0;line-height:1.35;text-wrap:pretty;}
#apartment-comfort .rr-detail-equipment,#apartment-comfort .rr-v47-interiors__summary {max-width:68ch;font:400 1rem/1.7 var(--sans,sans-serif);margin:1rem 0;}

.article-page .rr-hum-story {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1.5rem,4vw,4rem);margin-block:2rem;}
.article-page .rr-hum-story img {width:100%;height:auto;display:block;margin:0;}
.article-page .rr-hum-story h3 {margin-top:0;}
.article-page #istria-heritage>.rr-arena {width:100%;max-width:none;margin-inline:0;}
.rr-arena figcaption {margin-top:.6rem;font-size:.9rem;}

.article-page .v14-journal {grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(2rem,4vw,3.5rem) clamp(1.25rem,2.5vw,2rem);margin:2.5rem 0;}
.article-page .v14-journal-card {padding-bottom:1.5rem;border-bottom:1px solid #d9d4c9;}
.article-page .v14-journal-card img {display:block;width:100%;height:auto;aspect-ratio:1.9;object-fit:contain;background:#f2efe9;margin:0 0 1rem;}
.article-page .v14-journal-card time {font:400 .875rem/1.45 var(--sans,sans-serif);letter-spacing:.04em;text-transform:none;}
.article-page .v14-journal-card h2 {font:400 clamp(1.4rem,2vw,1.9rem)/1.16 var(--serif,Georgia,serif);letter-spacing:-.025em;margin:.45rem 0 .65rem;text-wrap:balance;}
.article-page .v14-journal-card p {font:400 1rem/1.6 var(--sans,sans-serif);margin:0;}
.article-page:has(>.archive-note)>:is(p:not(.eyebrow),ul,ol,h3,h4) {max-width:68ch;margin-inline:auto;}
.article-page:has(>.archive-note)>:is(h3,h4) {font-family:var(--serif,Georgia,serif);line-height:1.22;margin-block:2rem .75rem;}
.article-page:has(>.archive-note)>.v14-post-photo {display:block;width:100%;height:auto;max-height:32rem;object-fit:contain;margin:2rem auto;background:#f2efe9;}
@media(max-width:960px){.article-page .v14-journal {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.article-page .rr-hum-story,.article-page .v14-journal {grid-template-columns:1fr;}}

/* Give the lead story the same image-and-copy composition as the residence. */
.article-page .v14-journal-card:first-child {
  grid-column:1/-1;
  padding-block:clamp(1.25rem,3vw,2.5rem);
  border-block:1px solid #d9d4c9;
}
.article-page .v14-journal-card:first-child>a {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(1.5rem,5vw,5rem);
}
.article-page .v14-journal-card:first-child img {
  aspect-ratio:3/2;
  margin:0;
  object-fit:cover;
}
.article-page .rr-journal-intro h2 {
  font-size:clamp(2rem,3.5vw,3.6rem);
  line-height:1.08;
  margin-block:.65rem 1rem;
}
.article-page .rr-journal-intro p {max-width:40ch;}
@media(max-width:640px){
  .article-page .v14-journal-card:first-child>a {grid-template-columns:1fr;gap:1.25rem;}
}

#apartment-comfort .interior-details {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1.5rem,4vw,3.5rem);
  padding-block:clamp(1.5rem,3vw,2.5rem);
  border-top:1px solid #d9d4c9;
}
#apartment-comfort .interior-details p { margin:0; }
#apartment-comfort .interior-details .rr-v47-editorial-link,
#apartment-comfort .interior-details .interior-sofa-note { margin:1rem 0 0; }
#apartment-comfort .interior-sofa-note { font:400 .9rem/1.55 var(--sans,sans-serif); }
#apartment-comfort .interior-reservation {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding-top:1.5rem;
  border-top:1px solid #d9d4c9;
}
#apartment-comfort .interior-reservation > * { margin:0; }
#apartment-comfort .interior-reservation a { flex:none; }
@media (max-width:740px) {
  #apartment-comfort .interior-details { grid-template-columns:1fr; }
  #apartment-comfort .interior-reservation { flex-direction:column; align-items:flex-start; gap:1rem; }
}

@media (max-width: 767px) {
  #istria.istria {
    display: block;
    height: auto;
    min-height: 0;
    background: var(--ink);
  }
  #istria.istria > img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    transform: none;
  }
  #istria.istria > .istria-shade { display: none; }
  #istria.istria > .istria-content { padding-block: 2rem; }
}

@media (max-width:760px) {
  .article-page .v7-editorial:has(.rr-gym-pair) {
    row-gap: 1rem;
    margin-block-end: 2rem;
  }
}

.rr52-section {display:flow-root;margin-block:clamp(2.5rem,6vw,5rem);}
.rr52-section > p,.rr52-story p {max-width:70ch;line-height:1.7;}
.rr52-story {display:flow-root;margin-top:1.8rem;}
.rr52-story figure {margin:1rem 0;}
@media(min-width:761px){
 .rr52-story:has(figure:only-of-type) figure {float:left;width:47%;margin:0 2rem 1rem 0;}
 .rr52-story:nth-of-type(even):has(figure:only-of-type) figure {float:right;margin:0 0 1rem 2rem;}
 .rr52-story:has(figure:nth-of-type(2)) figure {display:inline-block;width:31%;vertical-align:top;}
}
@media(min-width:761px){
 .rr52-section:is(#istria-towns,#istria-festivals,#istria-trips,#istria-seasons){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 2rem;align-items:start;}
 .rr52-section:is(#istria-towns,#istria-festivals,#istria-trips,#istria-seasons)>h2,
 .rr52-section:is(#istria-festivals,#istria-trips)>p,
 .rr52-section:is(#istria-festivals,#istria-trips)>.rr52-story:first-of-type{grid-column:1/-1;}
 .rr52-section:is(#istria-towns,#istria-trips) .rr52-story:has(figure:only-of-type) figure{float:none;width:100%;margin:1rem 0;}
 .rr52-section:is(#istria-towns,#istria-festivals,#istria-trips) .rr52-story{margin-top:0;}
}
.rr52-section img{max-width:100%;}

/* Destination guide */
.article-page .guide-chapter {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.5rem,3vw,3rem);align-items:start;border-top:1px solid #d9d4c9;padding-top:2rem;}
.article-page .guide-chapter>h2,.article-page .guide-chapter>p {grid-column:1/-1;margin:0;}
.article-page .guide-chapter .rr52-story {margin:0;min-width:0;}
.article-page .guide-chapter .guide-images {display:grid;gap:.75rem;}
.article-page .guide-chapter .guide-images figure,.article-page .guide-chapter>figure {display:block;float:none;width:100%;margin:0;}
.article-page .guide-chapter .guide-images img,.article-page .guide-chapter>figure img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;}
.article-page .guide-chapter img[src*="tito"] {object-position:center top;}
.article-page .guide-chapter .guide-copy h3 {margin:0 0 .65rem;text-wrap:balance;line-height:1.2;}
.article-page .guide-chapter .guide-images+.guide-copy {margin-top:1rem;}
.article-page .guide-chapter .guide-copy p {margin:.65rem 0 0;max-width:64ch;}
@media(min-width:761px){
.article-page #istria-heritage.guide-chapter article,.article-page #istria-trips.guide-chapter article:first-of-type,.article-page #istria-festivals.guide-chapter article:first-of-type {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:2rem;}
.article-page #istria-heritage .guide-images:has(figure:nth-child(2)){grid-template-columns:1fr 1fr;}
.article-page #istria-heritage .guide-images:has(figure:nth-child(2)) figure:first-child{grid-column:1/-1;}
.article-page #istria-food.guide-chapter article:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:2rem;}
.article-page #istria-outdoors.guide-chapter>figure{grid-column:2;grid-row:2/span 4;}
.article-page #istria-outdoors.guide-chapter>p{grid-column:1;}
.article-page #istria-seasons.guide-chapter>p{grid-column:auto;}
}
@media(max-width:760px){.article-page .guide-chapter{grid-template-columns:1fr;gap:1.5rem;}}

.article-page .istria-guide-intro {margin-block:clamp(1.5rem,3vw,3rem);display:grid;gap:1rem;}
.article-page .istria-guide-intro p {margin:0;max-width:65ch;line-height:1.65;}
.article-page .istria-guide-intro p:first-child {font:400 clamp(1.4rem,2.1vw,2rem)/1.35 var(--serif,Georgia,serif);text-wrap:pretty;}
.article-page .istria-guide-intro em {font-style:normal;}
.article-page #istria-heritage.guide-chapter article:first-of-type {display:block;}
.article-page #istria-heritage .guide-images figure.rr-arena,.article-page #istria-heritage .rr-arena button {width:100%;max-width:none;margin:0;}
.article-page #istria-heritage .rr-arena img {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.article-page .guide-chapter .guide-images .v7-photo {display:block;width:100%;padding:0;}
@media(min-width:861px){
.article-page .istria-guide-intro:has(p:nth-child(2)){grid-template-columns:minmax(0,2fr) minmax(0,3fr);column-gap:clamp(2rem,5vw,5rem);}
.article-page .istria-guide-intro:has(p:nth-child(2)) p:first-child{grid-column:1;grid-row:1/span 2;}
.article-page .istria-guide-intro p:not(:first-child){grid-column:2;}
}

.article-page :is(#istria-festivals,#istria-trips).guide-chapter article:first-of-type {display:block;grid-column:1/-1;}
.article-page :is(#istria-festivals,#istria-trips).guide-chapter article:first-of-type img {width:100%;aspect-ratio:16/9;object-fit:cover;}
.article-page .guide-chapter :is(.guide-images,.guide-archive) figure {box-sizing:border-box;float:none;max-width:100%;width:100%;margin:0;padding:0;background:transparent;}
.article-page #istria-festivals.guide-chapter .guide-images button {position:static;display:block;margin:0;padding:0;transform:none;height:auto;background:transparent;}
.article-page #istria-festivals.guide-chapter .guide-images img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.article-page #istria-heritage .guide-archive {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1rem,3vw,2rem);margin-top:1rem;}
.article-page #istria-heritage .guide-archive img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:center top;}
@media(min-width:761px){
.article-page :is(#istria-heritage,#istria-trips,#istria-festivals).guide-chapter article:first-of-type .guide-copy {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:.6rem 2rem;align-items:start;}
.article-page :is(#istria-heritage,#istria-trips,#istria-festivals).guide-chapter article:first-of-type .guide-copy h3 {grid-column:1;grid-row:1/span 4;}
.article-page :is(#istria-heritage,#istria-trips,#istria-festivals).guide-chapter article:first-of-type .guide-copy p {grid-column:2;margin:0;}
}

/* Keep photographs inside their editorial column, including nested figures. */
.article-page :is(#istria-festivals,#istria-heritage).guide-chapter .rr52-story .guide-images > figure,
.article-page #istria-heritage.guide-chapter .rr52-story .guide-archive > figure {
  float:none; width:100%; max-width:100%; min-width:0; margin:0; padding:0;
}
.article-page #istria-heritage.guide-chapter article:first-of-type .guide-copy {
  display:block; max-width:68ch; margin:0 0 clamp(1.25rem,3vw,2.25rem);
}
.article-page #istria-heritage.guide-chapter article:first-of-type .guide-copy h3 {margin-bottom:.65rem;}
.article-page #istria-heritage.guide-chapter article:nth-of-type(2) {margin-top:clamp(1rem,3vw,2.5rem);}
.article-page #istria-heritage.guide-chapter article:nth-of-type(2) .guide-copy {margin:0;}
@media(min-width:761px){
.article-page #istria-heritage.guide-chapter article:nth-of-type(2) {column-gap:clamp(2rem,5vw,4rem);row-gap:2rem;align-items:center;}
.article-page #istria-festivals.guide-chapter {column-gap:clamp(1.5rem,3vw,2.5rem);row-gap:clamp(2rem,4vw,3.5rem);}
}
@media(max-width:760px){
.article-page #istria-heritage.guide-chapter article:nth-of-type(2) .guide-copy {margin:1.25rem 0;}
}

.article-page #istria-food.guide-chapter .rr52-story .guide-images > figure {
  width:100%; max-width:none; min-width:0; margin:0; padding:0; float:none; background:transparent;
}
.article-page #istria-food .guide-images figure > a {display:block;width:100%;padding:0;background:transparent;}
.article-page #istria-food .guide-images figure > a > img {
  display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin:0;background:transparent;
}

.article-page #istria-heritage.guide-chapter article:nth-of-type(2) {
  display:flex; flex-direction:column; align-items:stretch; gap:clamp(1.25rem,2.5vw,2rem);
}
.article-page #istria-heritage.guide-chapter article:nth-of-type(2) > :is(.guide-copy,.guide-archive) {margin:0;}
.article-page #istria-heritage.guide-chapter article:nth-of-type(2) > .guide-images img {aspect-ratio:16/9;}
