/* Dubai Lifestyle R6 — exact changes requested, no article typography overrides. */
/* Original centered logo grows exactly 30%; preserve its file and visual identity. */
.dls-atl-header .dls-atl-brand .dls-brand-logo{transform:none;transform-origin:center center;}
@media(min-width:1081px){.dls-atl-header .dls-atl-masthead{height:128px;}}
@media(min-width:821px) and (max-width:1080px){.dls-atl-header .dls-atl-masthead{height:112px;}}
@media(min-width:601px) and (max-width:820px){.dls-atl-header .dls-atl-masthead{height:102px;}}
@media(max-width:600px){.dls-atl-header .dls-atl-masthead{height:89px;}}
/* Homepage excerpts: the existing 13px becomes 16px, contrast raised. */
body.home .dls-editorial-section .dls-story-tile__copy>p,
body.home .dls-latest-news .dls-story-tile__copy>p{
  font-size:16px;line-height:1.65;color:#4e5954;
}
/* In 'panorama' blocks, four secondary stories fill a balanced 2x2 grid. */
body.home .dls-editorial-section--panorama .dls-editorial-cards{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;
}
/* On phones/tablets, large feature spans full width, then four smaller items 2x2. */
@media(max-width:820px){
  body.home .dls-editorial-section--film .dls-editorial-feature{
    grid-template-columns:minmax(0,1fr);
  }
  body.home .dls-editorial-section--film .dls-editorial-intro{
    grid-column:auto;
  }
  body.home .dls-editorial-section--film .dls-editorial-rail,
  body.home .dls-editorial-section--magazine .dls-editorial-rail{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;
  }
  body.home .dls-editorial-section--panorama .dls-editorial-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;
  }
}

/* R8: homepage excerpts on dark green Stay and Experiences only. */
body.home .dls-editorial-section.dls-editorial-section--stay .dls-story-tile__copy > p,
body.home .dls-editorial-section.dls-editorial-section--experiences .dls-story-tile__copy > p {
  color: #ffffff;
}

/* R9 category six: only on phones, visually balance a 2-column layout
 * when the first story is full-width and the final (4th/6th) card would otherwise
 * leave an empty right-side cell. Does not alter desktop/home/article styling. */
@media(max-width:600px){
 body.category .dls-wide-feature__tiles > .dls-story-tile:nth-child(even):last-child,
 body.category .dls-city-feature__grid > .dls-story-tile:nth-child(even):last-child,
 body.category .dls-wellness-feature__grid > .dls-story-tile:nth-child(even):last-child,
 body.category .dls-property-feature__grid > .dls-story-tile:nth-child(even):last-child,
 body.category .dls-gallery-feature__grid > .dls-story-tile:nth-child(even):last-child,
 body.category .dls-adventure-feature__grid > .dls-story-tile:nth-child(even):last-child,
 body.category .dls-lifestyle-feature__grid > .dls-story-tile:nth-child(even):last-child{
   grid-column:1 / -1;
 }
 body.category .dls-wide-feature__tiles > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo,
 body.category .dls-city-feature__grid > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo,
 body.category .dls-wellness-feature__grid > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo,
 body.category .dls-property-feature__grid > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo,
 body.category .dls-gallery-feature__grid > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo,
 body.category .dls-adventure-feature__grid > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo,
 body.category .dls-lifestyle-feature__grid > .dls-story-tile:nth-child(even):last-child .dls-story-tile__photo{
   aspect-ratio:1.7;
 }
}

/* R10: one identical original logo on every template at each viewport width.
   Do not use transform:scale: it enlarges pixels without changing the layout box.
   All selectors are scoped only to the real masthead logo; article imagery untouched.
   Physical image sizing corresponds to original desktop 79px / mobile 53px * 1.30. */
html body.dls-atl-site .dls-atl-header .dls-atl-masthead .dls-atl-brand > img.dls-brand-logo{
  display:block;
  height:103px!important;
  width:auto!important;
  max-height:103px!important;
  max-width:calc(100vw - 160px)!important;
  object-fit:contain;
  transform:none!important;
}
/* Exact same viewport breakpoints on home, categories, articles and static pages. */
@media(min-width:821px) and (max-width:1080px){
  html body.dls-atl-site .dls-atl-header .dls-atl-masthead .dls-atl-brand > img.dls-brand-logo{height:92px!important;max-height:92px!important;}
}
@media(min-width:601px) and (max-width:820px){
  html body.dls-atl-site .dls-atl-header .dls-atl-masthead .dls-atl-brand > img.dls-brand-logo{height:84px!important;max-height:84px!important;}
}
@media(max-width:600px){
  html body.dls-atl-site .dls-atl-header .dls-atl-masthead .dls-atl-brand > img.dls-brand-logo{height:69px!important;max-height:69px!important;max-width:calc(100vw - 155px)!important;}
}


/* R11 — Mobile article horizontal containment and ONE theme-equivalent reading gutter.
   The old theme provided 18px mobile inset via width:calc(100% - 36px).
   Replace that outer margin with equivalent inner padding, not another gutter.
   Constrain the 1fr CSS grid: imported embeds or ad placeholders must not
   enlarge the min-content track and push readable paragraphs beyond viewport.
   No changes to font size, headings, featured images, ad placement or other templates. */
@media screen and (max-width:820px) {
  body.single-post .dls-atl-article__layout.dls-container {
    box-sizing:border-box !important;
    inline-size:100% !important;
    max-inline-size:100% !important;
    margin-inline:0 !important;
    padding-inline:18px !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.single-post .dls-atl-article__main,
  body.single-post .dls-entry-content,
  body.single-post .dl-article-reading-v2 {
    box-sizing:border-box;
    min-inline-size:0 !important;
    max-inline-size:100% !important;
  }
  body.single-post .dls-entry-content :is(p,h2,h3,h4,h5,h6,blockquote,ul,ol) {
    min-inline-size:0;
    max-inline-size:100% !important;
    overflow-wrap:anywhere;
  }
  body.single-post .dls-entry-content :is(pre,.wp-block-preformatted) {
    max-inline-size:100%;
    overflow-x:auto;
  }
  /* Keep external overflow from allowing horizontal panning past 18px gutter.
     clip is not a scrolling container and keeps the existing sticky header. */
  html:has(> body.single-post), body.single-post {
    overflow-x:clip;
  }
}
