/*
Theme Name: Chambre Graffiti Studio
Description: Des chambres peintes à la bombe et les artistes qui les réalisent.
Author: Chambre Graffiti
Version: 1.0.0
Text Domain: chambre-studio
*/
:root {
  color-scheme: light;
  --ink: #171717;
  --paper: #f8f7f3;
  --lime: #dbff50;
  --violet: #6444be;
  --line: #d8d6cd;
  --body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  --space-edge: clamp(1rem, 4vw, 4.25rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: .2em; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #794ce8; outline-offset: 4px; }
::selection { color: var(--ink); background: var(--lime); }
.cg-sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cg-skip { position: absolute; inset: .5rem auto auto .75rem; z-index: 30; background: var(--paper); padding: .6rem 1rem; transform: translateY(-160%); }
.cg-skip:focus { transform: none; }
.cg-wrap { width: min(89rem, calc(100% - var(--space-edge) * 2)); margin-inline: auto; }
.cg-header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.cg-header-inner { min-height: 5.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cg-wordmark { position: relative; isolation: isolate; display: inline-flex; flex-direction: column; flex: none; line-height: .77; transform: skew(-9deg); color: var(--ink); font-family: var(--display); text-decoration: none; text-transform: uppercase; text-align: left; white-space: nowrap; }
.cg-wordmark > span { align-self: start; margin-left: .14em; font-size: .80rem; letter-spacing: .105em; font-weight: 900; }
.cg-wordmark strong { position: relative; margin-top: .12em; font-size: 2.08rem; font-weight: 1000; letter-spacing: -.092em; }
.cg-wordmark strong > span { color: var(--violet); }
.cg-wordmark strong::after { content: ''; z-index: -1; position: absolute; bottom: -.10em; left: .04em; width: 79%; height: .19em; background: var(--lime); transform: rotate(-2deg); }
.cg-primary-links, .cg-header-actions { display: flex; align-items: center; }
.cg-primary-links { gap: clamp(1.5rem, 3vw, 3rem); margin-left: auto; }
.cg-primary-links a, .cg-header-actions a { text-decoration: none; }
.cg-primary-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; font-size: .95rem; }
.cg-primary-links a:hover { text-decoration: underline; text-decoration-thickness: .13em; }
.cg-header-actions { gap: clamp(.75rem, 2vw, 1.65rem); padding-left: clamp(.5rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.cg-country-picker { position: relative; }
.cg-country-picker summary { display: flex; align-items: center; gap: .4rem; width: fit-content; min-height: 2.65rem; cursor: pointer; font-size: .93rem; font-weight: 700; list-style: none; }
.cg-country-picker summary::-webkit-details-marker { display: none; }
.cg-country-picker summary > span[aria-hidden], .cg-country-list a > span[aria-hidden] { font: 1.1rem/1 'Apple Color Emoji','Segoe UI Emoji',sans-serif; }
.cg-country-picker summary i { margin: -.2em .16em 0 .16em; display: inline-block; width: .46em; height: .46em; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.cg-country-picker[open] summary i { transform: rotate(225deg); margin-top: .28em; }
.cg-country-list { position: absolute; z-index: 8; top: calc(100% + .25rem); right: 0; background: #fff; color: var(--ink); padding: .35rem; border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); min-width: 12.5rem; }
.cg-country-list a { display: flex; gap: .65rem; align-items: center; padding: .55rem .65rem; font-size: .94rem; font-weight: 700; white-space: nowrap; }
.cg-country-list a:hover, .cg-country-list a:focus-visible { background: var(--lime); }
.cg-quote, .cg-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.85rem; padding: .65rem 1.12rem; border: 1.5px solid var(--ink); font-weight: 800; font-size: .94rem; line-height: 1.2; text-decoration: none; }
.cg-quote { background: var(--lime); box-shadow: 2px 2px 0 var(--ink); }
.cg-quote:hover, .cg-quote:focus-visible { background: #ceff24; }
.cg-button-dark { color: #fff; background: var(--ink); }
.cg-button-dark:hover, .cg-button-dark:focus-visible { background: #382265; }
.cg-hero { position: relative; display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.31fr); margin-block: clamp(1rem, 2vw, 2.1rem) 0; border: 2px solid var(--ink); isolation: isolate; }
.cg-hero-copy { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(1.6rem, 3.5vw, 3.9rem); color: var(--ink); background: var(--lime); }
.cg-hero-copy::after { content: ''; position: absolute; z-index: -1; width: 56%; height: 96%; right: -21%; bottom: -42%; transform: rotate(-25deg); background: radial-gradient(circle, rgba(29,35,17,.32) 1px, transparent 1.2px) 0 0/6px 6px; mask-image: linear-gradient(to left, #0007, transparent); }
.cg-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(3.55rem, 6.65vw, 7.15rem); font-weight: 950; line-height: .88; letter-spacing: -.083em; }
.cg-hero h1 span, .cg-hero h1 em { display: block; }
.cg-hero h1 em { color: #5732a4; font-style: italic; padding: 0 .14em .1em 0; }
.cg-hero-copy > p { max-width: 27rem; margin: clamp(.85rem, 1.5vw, 1.5rem) 0 clamp(1.1rem, 1.9vw, 1.9rem); font-size: clamp(1rem, 1.15vw, 1.17rem); font-weight: 500; line-height: 1.45; }
.cg-hero-art { position: relative; min-height: clamp(21.75rem, 29.5vw, 31rem); min-width: 0; border-left: 2px solid var(--ink); background: #44413e; }
.cg-hero-photo { position: absolute; inset: 0; display: block; color: white; }
.cg-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.cg-hero-photo::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 27%; background: linear-gradient(transparent,#0006); pointer-events: none; }
.cg-photo-caption { position: absolute; z-index: 1; left: clamp(.65rem, 1.3vw, 1.3rem); bottom: clamp(.65rem, 1.3vw, 1.3rem); max-width: 59%; width: max-content; background: #171717e8; padding: .32rem .66rem; font-size: .87rem; font-weight: 700; line-height: 1.32; }
.cg-hero-inset { position: absolute; z-index: 2; display: block; width: clamp(7rem, 15.3vw, 15rem); aspect-ratio: 1.47; right: clamp(.65rem, 1.6vw, 1.65rem); bottom: clamp(.65rem, 1.5vw, 1.65rem); transform: rotate(4deg); border: clamp(4px,.46vw,7px) solid #fff; outline: 1px solid #1818189c; box-shadow: 2px 4px 0 #17171799; background: #fff; }
.cg-hero-inset img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-hero-inset::after { content: ''; position: absolute; top: -.7rem; left: 37%; height: .78rem; width: 32%; background: #b398f5; opacity: .96; transform: rotate(-7deg); box-shadow: 0 1px 1px #0002; }
.cg-hero-inset:hover { transform: rotate(1deg); }
.cg-gallery { padding-block: clamp(2.3rem, 4.4vw, 4.5rem) clamp(3rem, 5.5vw, 6rem); scroll-margin-top: 1rem; }
.cg-gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.cg-gallery-head h1, .cg-gallery-head h2 { margin: 0; font: 950 clamp(2.55rem, 4.85vw, 5.2rem)/.97 var(--display); letter-spacing: -.08em; }
.cg-gallery-head h1 span, .cg-gallery-head h2 span { color: var(--violet); }
.cg-names-link { position: relative; font-weight: 750; font-size: .94rem; text-decoration-color: var(--violet); text-decoration-thickness: 2px; }
.cg-names-link:hover { color: var(--violet); }
.cg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: clamp(1.15rem, 2vw, 1.9rem); }
.cg-filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.45rem; padding: .3rem .95rem; font-weight: 700; font-size: .9rem; line-height: 1.25; border: 1px solid #a5a399; border-radius: 100vw; text-decoration: none; background: transparent; }
.cg-filters a[aria-current] { border-color: var(--ink); color: #fff; background: var(--ink); }
.cg-filters a:not([aria-current]):hover { background: var(--lime); border-color: var(--ink); }
.cg-projects { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.8rem, 2.9vw, 3rem) clamp(.75rem, 1.65vw, 1.7rem); }
.cg-card { min-width: 0; scroll-margin-top: 1.5rem; }
.cg-card-link { display: block; text-decoration: none; }
.cg-card-image { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 4/3; background: #dedcd1; border: 1px solid #25241d; }
.cg-card-image > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-photo-count { display: inline-flex; align-items: center; gap: .37rem; position: absolute; bottom: .5rem; right: .55rem; padding: .22rem .5rem; border-radius: .12rem; background: #191919e6; color: #fff; font-size: .76rem; font-weight: 700; }
.cg-photo-count i { position: relative; display: block; width: .66rem; height: .48rem; border: 1px solid #fff; border-radius: 1px; }
.cg-photo-count i::after { content: ''; position: absolute; width: .54rem; height: .37rem; bottom: -.20rem; left: -.2rem; border: solid white; border-width: 0 0 1px 1px; }
.cg-card-copy { padding-top: .65rem; }
.cg-card-copy > p { margin: 0 0 .15rem; color: #653a9d; font-size: .78rem; letter-spacing: .055em; text-transform: uppercase; font-weight: 800; }
.cg-card-copy h3 { margin: 0; font: 850 clamp(1.18rem, 1.65vw, 1.8rem)/1.12 var(--display); letter-spacing: -.052em; }
.cg-card-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.cg-extra-photos { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 0; list-style: none; }
.cg-archive-link { margin-top: 2.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cg-archive-link a { font-weight: 700; }
.cg-footer { background: var(--ink); color: var(--paper); }
.cg-footer-inner { padding-block: 2.3rem; display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: clamp(1.3rem, 4.3vw, 5rem); }
.cg-footer .cg-wordmark { color: var(--paper); }
.cg-footer .cg-wordmark strong::after { background: var(--violet); }
.cg-footer .cg-wordmark strong span { color: var(--lime); }
.cg-footer-nav { display: grid; gap: .35rem; }
.cg-footer-nav a { font-size: .94rem; text-decoration: none; }
.cg-footer-nav a:hover { text-decoration: underline; }
body.cg-viewer-open { overflow: hidden; }
.cg-viewer:not([open]) { display: none; }
.cg-viewer { width: min(69rem, calc(100% - 2rem)); max-width: 100%; max-height: calc(100% - 2rem); margin: auto; padding: 0; border: 1px solid #68655c; background: #181818; color: white; }
.cg-viewer::backdrop { background: #111d; }
.cg-viewer-inner { display: flex; flex-direction: column; gap: .75rem; padding: .9rem; }
.cg-viewer header, .cg-viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.cg-viewer h2 { margin: 0; font: 850 clamp(1.08rem, 2.2vw, 1.7rem)/1.1 var(--display); letter-spacing: -.035em; }
.cg-viewer button { flex-shrink: 0; border: 1px solid #76766e; border-radius: 0; padding: .5rem .85rem; background: transparent; color: #fff; font-size: .88rem; font-weight: 700; }
.cg-viewer button:hover { background: var(--lime); color: var(--ink); }
.cg-close { display: inline-flex; align-items: center; gap: .5rem; }
.cg-close span { font-size: 1.35rem; line-height: .85; }
.cg-viewer-image { display: grid; place-items: center; overflow: hidden; background: #101010; }
.cg-viewer-image img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 12rem); max-height: calc(100dvh - 12rem); object-fit: contain; }
.cg-viewer-controls[hidden] { display: none; }
.cg-viewer-position { font-size: .88rem; }
@media (min-width: 65rem) and (prefers-reduced-motion: no-preference) {
  .cg-card-image img { transition: transform .27s ease; }
  .cg-card-link:hover img { transform: scale(1.027); }
  .cg-hero-inset { transition: transform .2s ease; }
}
@media (max-width: 62rem) {
  .cg-hero h1 { font-size: clamp(3rem, 6.65vw, 4.6rem); }
  .cg-hero-copy { padding: clamp(1.4rem, 2.9vw, 2.1rem); }
  .cg-hero-art { min-height: 19.5rem; }
  .cg-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
  .cg-header-inner { min-height: unset; flex-wrap: wrap; gap: .3rem 1rem; padding-top: .7rem; }
  .cg-header-actions { margin-left: auto; gap: .65rem; border: 0; padding: 0; }
  .cg-wordmark strong { font-size: 1.78rem; }
  .cg-wordmark > span { font-size: .70rem; }
  .cg-quote { padding: .49rem .75rem; min-height: 2.45rem; font-size: .85rem; }
  .cg-country-picker summary { font-size: .85rem; gap: .3rem; }
  .cg-primary-links { order: 3; margin-left: 0; width: 100%; gap: 1.5rem; }
  .cg-primary-links a { min-height: 2.45rem; font-size: .9rem; }
  .cg-hero { display: flex; flex-direction: column; }
  .cg-hero-art { order: -1; min-height: 0; aspect-ratio: 1.85; border-left: 0; border-bottom: 2px solid var(--ink); }
  .cg-hero-copy { padding: 1.25rem 1.2rem 1.35rem; }
  .cg-hero h1 { font-size: clamp(2.6rem, 8vw, 3.65rem); line-height: .98; }
  .cg-hero h1 span, .cg-hero h1 em { display: inline; }
  .cg-hero h1 span::after { content: ' '; }
  .cg-hero-copy > p { margin: .56rem 0 .88rem; line-height: 1.35; }
  .cg-button { min-height: 2.45rem; padding: .55rem .8rem; font-size: .9rem; }
  .cg-hero-inset { width: 25%; min-width: 5.25rem; }
  .cg-gallery { padding-block: 2rem 2.8rem; }
  .cg-gallery-head { flex-wrap: wrap; align-items: center; gap: .42rem 1rem; margin-bottom: .9rem; }
  .cg-gallery-head h1, .cg-gallery-head h2 { font-size: clamp(2.35rem, 8vw, 3.7rem); }
  .cg-names-link { font-size: .85rem; }
  .cg-filters { gap: .35rem; }
  .cg-filters a { font-size: .84rem; min-height: 2.2rem; padding: .3rem .7rem; }
  .cg-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
  .cg-footer-brand { grid-column: 1/-1; }
}
@media (max-width: 28rem) {
  .cg-hero { width: 100%; border-inline: 0; margin-top: 0; }
  .cg-country-picker summary > span:not([aria-hidden]):not(.cg-sr) { max-width: 8.1rem; overflow-wrap: anywhere; }
  .cg-projects { gap: 1.4rem .68rem; }
  .cg-card-copy > p { font-size: .67rem; }
  .cg-card-copy h3 { font-size: 1.05rem; }
  .cg-photo-count { right: .25rem; bottom: .25rem; padding: .14rem .28rem; font-size: .68rem; }
  .cg-viewer { width: calc(100% - .75rem); }
  .cg-viewer-inner { padding: .65rem; }
}
@media (max-width: 20rem) {
  .cg-header-inner { gap: .12rem .35rem; }
  .cg-header-actions { gap: .35rem; }
  .cg-quote { padding-inline: .5rem; }
  .cg-projects { grid-template-columns: 1fr; }
}
