/* Gallery 05 — isolated, responsive, no changes to Orange 03. */
.tg-heading{margin:1rem 0 1.5rem}.tg-heading h1{margin:.35rem 0}.tg-eyebrow{display:inline-flex;align-items:center;gap:.5rem;color:var(--st-muted, #d6ab66);font:700 .75rem/1.4 'Work Sans',sans-serif;letter-spacing:.12em}.tg-icon{flex:none;vertical-align:-.2em}.tg-search{display:flex;flex-wrap:wrap;gap:.75rem;margin:0 0 1.5rem}.tg-input{display:flex;align-items:center;gap:.5rem;flex:1 1 220px;min-width:0;padding:0 .85rem;border:1px solid var(--st-edge, #523018);border-radius:12px;background:var(--st-bg, #1e1004);color:var(--st-muted, #d5a35c)}.tg-input input{width:100%;min-width:0;background:transparent;border:0;outline:none;color:var(--st-ink, #fff0e2);padding:.8rem 0}.tg-search select{background:var(--st-bg, #1e1004);color:var(--st-ink, #fff0e2);border:1px solid var(--st-edge, #523018);border-radius:12px;padding:.75rem}.tg-search button{display:flex;align-items:center;gap:.45rem;background:var(--st-accent, #ff6a00);color:var(--st-button-ink, #1a0a00);border:0;border-radius:12px;padding:.75rem 1.2rem;font-weight:700}.tg-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1.5rem;align-items:start}.tg-results{min-width:0}.tg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:1rem}.tg-card{min-width:0;border:1px solid var(--st-edge, #43230a);background:var(--st-bg, #1e1004);border-radius:15px;overflow:visible;transition:border-color .2s,transform .2s}.tg-card:hover{border-color:var(--st-highlight, #b88442);transform:translateY(-2px)}.tg-photo-link{display:block;color:var(--st-ink, #fff0e2)!important;text-decoration:none!important}.tg-photo-link>img,.tg-no-image{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--st-panel, #28180f);border-radius:14px 14px 0 0}.tg-no-image{display:grid;place-items:center;color:var(--st-muted, #a8917d)}.tg-card-bottom{position:relative;display:flex;align-items:end;justify-content:space-between;gap:.4rem;padding:.85rem .85rem 1rem;min-height:80px}.tg-card-titles{min-width:0;display:grid;gap:.25rem}.tg-card-titles strong{font-size:.98rem;line-height:1.3;overflow-wrap:anywhere}.tg-studio{font-size:.76rem;color:var(--st-muted, #d5a35c)}.tg-rating{flex:none;align-self:end;position:relative;top:5px}.tg-rating-bars{display:flex;gap:3px;height:29px;align-items:center;transform:translateY(3px)}.tg-rating-bars i{display:block;width:5px;height:23px;background:#54402a;transform:rotate(45deg);border-radius:2px}.tg-rating-bars[style*="--score:1"] i:nth-child(-n + 1){background:#d5a35c}.tg-rating-bars[style*="--score:2"] i:nth-child(-n + 2),.tg-rating-bars[style*="--score:3"] i:nth-child(-n + 3),.tg-rating-bars[style*="--score:4"] i:nth-child(-n + 4),.tg-rating-bars[style*="--score:5"] i:nth-child(-n + 5){background:#d5a35c}.tg-sidebar{background:var(--st-bg, #1e1004);border:1px solid var(--st-edge, #43230a);border-radius:16px;padding:1.1rem}.tg-sidebar h2{display:flex;gap:.5rem;align-items:center;font-size:1.15rem;color:var(--st-ink, #fff0e2);margin:0 0 1rem}.tg-sidebar h2 .tg-icon{color:var(--st-muted, #d5a35c)}.tg-side-section{padding:1rem 0;border-top:1px solid var(--st-edge, #43230a)}.tg-side-section h3{display:flex;gap:.5rem;align-items:center;font-size:.88rem;color:var(--st-muted, #e8c394);margin:0 0 .65rem}.tg-side-line,.tg-side-photo{display:flex;justify-content:space-between;gap:.6rem;align-items:center;color:var(--st-ink, #fff0e2);text-decoration:none;padding:.42rem 0;font-size:.82rem}.tg-side-line:hover,.tg-side-photo:hover{color:var(--st-highlight, #ff9a4d)}.tg-side-line span{min-width:0;overflow-wrap:anywhere}.tg-side-line small,.tg-side-photo small{color:var(--st-muted, #bca58e);white-space:nowrap}.tg-side-photo{justify-content:start}.tg-side-photo img{width:44px;height:44px;object-fit:cover;border-radius:7px}.tg-side-photo span{display:grid;gap:.2rem;min-width:0}.tg-side-photo strong{font-weight:600;overflow-wrap:anywhere}.tg-side-empty{color:var(--st-muted, #a8917d);font-size:.8rem;margin:0}.tg-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;flex-wrap:wrap;margin:2rem 0;color:var(--st-muted, #c49c7a)}.tg-empty{color:var(--st-muted, #c49c7a)}@media(max-width:950px){.tg-layout{grid-template-columns:minmax(0,1fr)}.tg-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.25rem}.tg-sidebar h2{grid-column:1/-1}}@media(max-width:600px){.tg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.tg-card-bottom{padding:.65rem;min-height:88px}.tg-rating-bars{gap:2px}.tg-rating-bars i{width:3px;height:17px}.tg-sidebar{display:block}.tg-search select,.tg-search button{flex:1}.tg-card-titles strong{font-size:.86rem}}

.tg-sidebar .tg-side-row{justify-content:flex-start;gap:10px}.tg-sidebar .tg-side-thumb{display:block;flex:0 0 44px;width:44px;height:44px;min-width:44px;object-fit:cover;border-radius:7px;overflow:hidden}.tg-sidebar .tg-side-initial{display:grid;place-items:center;background:var(--st-panel, #382316);color:var(--st-accent, #ffad50);font:600 22px/1 Georgia,serif}.tg-sidebar .tg-side-details{display:grid;gap:4px;min-width:0}.tg-sidebar .tg-side-details strong{font-weight:600;overflow-wrap:anywhere}.tg-sidebar .tg-side-details small,.tg-sidebar .tg-side-photo small{display:flex;align-items:center;flex-wrap:wrap;gap:6px;white-space:normal}

/* ESSAI-GALERIE-MOSAIQUE : proportions naturelles, bordure et néon. */
.tg-grid{display:block;columns:3;column-gap:1rem}
.tg-grid .tg-card{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;margin:0 0 1rem;border:1px solid var(--st-edge,#43230a);overflow:visible;transform:none}
.tg-grid .tg-card .tg-photo-link{position:relative}
.tg-grid .tg-card .tg-photo-media{position:relative;display:block;overflow:hidden;border-radius:14px 14px 0 0;background:var(--st-panel,#28180f)}
.tg-grid .tg-photo-media>img{display:block;width:100%;height:auto;object-fit:contain}
.tg-grid .tg-photo-media .tg-no-image{border-radius:0}
.tg-grid .tg-card-bottom{min-height:0;align-items:center;padding:.8rem}
.tg-grid .tg-card-bottom::before{content:none}
.tg-grid .tg-card-titles{gap:.35rem}
.tg-grid .tg-card-titles strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.tg-grid .tg-photo-rating{position:absolute;right:10px;bottom:10px;color:var(--st-bg,#1e1004);pointer-events:none;line-height:1}
.tg-grid .tg-photo-rating .rating-stars-inline{display:inline-block;position:relative;font-size:19px;line-height:1;letter-spacing:1px;white-space:nowrap;color:inherit;vertical-align:middle}
.tg-grid .tg-photo-rating .rating-stars-empty{display:block;color:inherit!important;opacity:.3}
.tg-grid .tg-photo-rating .rating-stars-filled{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:inherit!important}
html[data-site-palette] main .tg-grid .tg-card:is(:hover,:focus-within){transform:none;border-color:var(--st-highlight,#ff9a4d);box-shadow:0 0 0 1px var(--st-highlight,#ff9a4d),0 0 18px var(--st-halo,#ff6a0030)}
@media(max-width:1150px){.tg-grid{columns:2}}
@media(max-width:950px) and (min-width:701px){.tg-grid{columns:3}}
@media(max-width:700px){.tg-grid{columns:2;column-gap:.65rem}.tg-grid .tg-card{margin-bottom:.65rem}.tg-grid .tg-card-bottom{padding:.65rem}.tg-grid .tg-photo-rating{right:7px;bottom:8px}.tg-grid .tg-photo-rating .rating-stars-inline{font-size:16px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.tg-grid .tg-card{transition:none}}

/* Recent search links land on the results without hiding them under the header. */
#gallery-photo-grid{scroll-margin-top:90px}
