/* GTAGeo site art, November 13, 2026 (includes/art.php). Every rule only applies when a picture is on the page. */

/* Banners behind page headings: a dark card that stays dark in day mode. */
:is(.page-head,.region-index-hero,.creator-hub-hero,.gta-hero):has(>.gtageo-banner-art){position:relative;overflow:hidden;isolation:isolate}
.page-head:has(>.gtageo-banner-art){min-height:300px;margin:18px 0 22px;padding:56px clamp(22px,5vw,56px);display:flex;flex-direction:column;justify-content:center;border:1px solid var(--line);border-radius:12px;background:#07090d;color:#f7fbff}
.page-head:has(>.gtageo-banner-art.is-strip){min-height:200px;padding-top:34px;padding-bottom:34px}
.creator-hub-hero:has(>.gtageo-banner-art){padding:32px clamp(22px,4vw,44px);border:1px solid var(--line);border-radius:12px;background:#07090d;color:#f7fbff}
:is(.page-head,.region-index-hero,.creator-hub-hero,.gta-hero):has(>.gtageo-banner-art)>:not(.gtageo-banner-art){position:relative;z-index:1}
.gtageo-banner-art{position:absolute;inset:0;z-index:0;pointer-events:none}
.gtageo-banner-art img{width:100%;height:100%;object-fit:cover;object-position:right center;display:block}
.gtageo-banner-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,9,13,.94) 0%,rgba(7,9,13,.78) 38%,rgba(7,9,13,.18) 72%,rgba(7,9,13,0) 100%)}
.page-head:has(>.gtageo-banner-art) h1{color:#f7fbff;max-width:16em}
.page-head:has(>.gtageo-banner-art)>p:not(.eyebrow){color:#d8e0ea;max-width:40em}
.page-head:has(>.gtageo-banner-art) .eyebrow{color:#48d6ff}
html[data-theme="light"] :is(.page-head,.creator-hub-hero):has(>.gtageo-banner-art){background:#07090d;color:#f7fbff}
html[data-theme="light"] :is(.page-head,.creator-hub-hero,.region-index-hero,.gta-hero):has(>.gtageo-banner-art) :is(h1,h2,h3,strong){color:#f7fbff}
html[data-theme="light"] :is(.page-head,.creator-hub-hero,.region-index-hero,.gta-hero):has(>.gtageo-banner-art) p:not(.eyebrow){color:#d8e0ea}
html[data-theme="light"] :is(.page-head,.creator-hub-hero,.region-index-hero,.gta-hero):has(>.gtageo-banner-art) .eyebrow{color:#48d6ff}
html[data-theme="light"] :is(.page-head,.creator-hub-hero,.region-index-hero,.gta-hero):has(>.gtageo-banner-art) a:not(.btn){color:#48d6ff}

/* Tall picture beside a heading, and small section pictures at the top of category pages. */
.page-head:has(>.gtageo-side-art),.page-head:has(>.gtageo-spot-art.is-head){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:40px;align-items:center}
.page-head:has(>.gtageo-side-art)>:not(.gtageo-side-art),.page-head:has(>.gtageo-spot-art.is-head)>:not(.gtageo-spot-art){grid-column:1}
.gtageo-side-art{grid-column:2;grid-row:1 / span 8;width:300px}
.gtageo-side-art img{width:100%;height:auto;display:block;border-radius:14px;border:1px solid var(--line);box-shadow:0 18px 48px rgba(0,0,0,.35)}
.page-head>.gtageo-spot-art.is-head{grid-column:2;grid-row:1 / span 8;width:120px}
.gtageo-spot-art img{width:100%;height:auto;display:block}
.gtageo-spot-art{width:72px}

/* Category cards: the picture takes the colour dot's place. */
.category-card:has(>.gtageo-spot-art){grid-template-columns:64px minmax(0,1fr);column-gap:14px;align-items:center}
.category-card>.gtageo-spot-art{grid-column:1;grid-row:1;width:64px}

/* Premium badges keep the badge card's size. */
.badge-card img[src^="/assets/art/"]{object-fit:contain}

/* Empty states. */
.gtageo-empty-art{width:160px;margin:0 auto 10px}
.gtageo-empty-art img{width:100%;height:auto;display:block}
.panel:has(>.gtageo-empty-art),.reference-empty:has(>.gtageo-empty-art){text-align:center}

@media (max-width:950px){
  .gtageo-side-art{display:none}
  .page-head:has(>.gtageo-side-art){display:block}
}
@media (max-width:760px){
  .page-head:has(>.gtageo-banner-art){min-height:240px;padding:34px 20px}
  .page-head:has(>.gtageo-banner-art.is-strip){min-height:150px}
  .gtageo-banner-art img{object-position:70% center}
  .gtageo-banner-art:after{background:linear-gradient(0deg,rgba(7,9,13,.95) 0%,rgba(7,9,13,.8) 55%,rgba(7,9,13,.35) 100%)}
  .page-head>.gtageo-spot-art.is-head{width:72px}
  .page-head:has(>.gtageo-spot-art.is-head){column-gap:16px}
}
@media (prefers-reduced-motion:no-preference){
  .category-card>.gtageo-spot-art img{transition:transform .25s ease}
  .category-card:hover>.gtageo-spot-art img,.category-card:focus-visible>.gtageo-spot-art img{transform:translateY(-3px) scale(1.04)}
}
