/* Tag Optimization service gallery: intentionally scoped to this service only. */
.steam-tag-examples {
    min-width: 0;
    margin: 44px 0 62px;
    padding-top: 29px;
    border-top: 1px solid rgba(255,255,255,.17);
}
.steam-tag-examples__heading { margin-bottom: 28px; }
.steam-tag-examples__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffc31a;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.steam-tag-examples__eyebrow::before { content: ''; width: 24px; height: 2px; background: #ffc31a; }
.steam-tag-examples__heading h2 {
    margin: 13px 0 12px;
    color: #fff;
    font-family: var(--font-display, 'Molot', sans-serif);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: .055em;
    text-transform: uppercase;
}
.steam-tag-examples__heading p {
    color: #d2d2d2;
    margin: 0;
    max-width: 860px;
    font-size: 16px;
    line-height: 1.6;
}
.steam-tag-examples__group + .steam-tag-examples__group { margin-top: 31px; }
.steam-tag-examples__group-heading { margin-bottom: 15px; }
.steam-tag-examples__group-heading h3 {
    color: #ffbf12;
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}
.steam-tag-examples__group-heading p {
    margin: 0;
    color: #c5c5c8;
    font-size: 15px;
    line-height: 1.55;
}
.steam-tag-examples__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    min-width: 0;
}
.steam-tag-example {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    color: #fff;
    background: #17191d;
    text-decoration: none;
    cursor: zoom-in;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.steam-tag-example:hover {
    border-color: #ffc31a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.steam-tag-example:focus-visible { outline: 3px solid #ffc31a; outline-offset: 3px; }
.steam-tag-example__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px;
    background: #23282e;
}
.steam-tag-example--tags .steam-tag-example__image { height: 390px; }
.steam-tag-example--related .steam-tag-example__image { height: 156px; }
.steam-tag-example__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.steam-tag-example__caption {
    padding: 12px 14px 14px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    color: #eeeef0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.steam-tag-example__expand {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(7,9,12,.88);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
}
/* Native dialog remains in the top layer and is reparented to body by JS. */
.steam-tag-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(95vw, 1040px);
    max-width: calc(100vw - 12px);
    height: min(92dvh, 900px);
    max-height: calc(100dvh - 12px);
    box-sizing: border-box;
    color: #fff;
    background: #15171b;
    border: 1px solid #42464e;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 100px rgba(0,0,0,.82);
}
.steam-tag-lightbox[open] { display: flex; flex-direction: column; }
.steam-tag-lightbox::backdrop { background: rgba(0,0,0,.83); }
.steam-tag-lightbox__bar,
.steam-tag-lightbox__nav {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 10px 16px;
    box-sizing: border-box;
    background: #21232a;
}
.steam-tag-lightbox__bar { border-bottom: 1px solid rgba(255,255,255,.12); }
.steam-tag-lightbox__title { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.steam-tag-lightbox__title strong { font-size: 15px; color: #fff; }
.steam-tag-lightbox__title span { font-size: 12px; color: #a8a8b0; }
.steam-tag-lightbox__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.steam-tag-lightbox button {
    font: inherit;
    font-size: 13px;
    min-height: 36px;
    padding: 7px 12px;
    color: #fff;
    background: #2e3038;
    border: 1px solid #555862;
    border-radius: 8px;
    cursor: pointer;
}
.steam-tag-lightbox button:hover { background: #444750; }
.steam-tag-lightbox button:focus-visible { outline: 2px solid #ffc31a; outline-offset: 2px; }
/* Geometric X remains centered regardless of font metrics. */
.steam-tag-lightbox__actions [data-steam-tag-close] {
    position: relative;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    flex: 0 0 36px;
}
.steam-tag-lightbox__actions [data-steam-tag-close]::before,
.steam-tag-lightbox__actions [data-steam-tag-close]::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 15px; height: 2px;
    border-radius: 2px;
    background: #fff;
    pointer-events: none;
}
.steam-tag-lightbox__actions [data-steam-tag-close]::before { transform: translate(-50%,-50%) rotate(45deg); }
.steam-tag-lightbox__actions [data-steam-tag-close]::after { transform: translate(-50%,-50%) rotate(-45deg); }
.steam-tag-lightbox__image-area {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: #10151b;
    overflow: auto;
}
.steam-tag-lightbox__image-area img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.steam-tag-lightbox__image-area.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.steam-tag-lightbox__image-area.is-zoomed img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    min-width: 125%;
}
.steam-tag-lightbox__nav {
    justify-content: center;
    gap: 22px;
    min-height: 48px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.steam-tag-lightbox__nav button { min-width: 48px; font-size: 20px; padding: 3px 8px; }
.steam-tag-lightbox__nav span { color: #b9bac3; font-size: 12px; }
@media (max-width: 860px) {
    .steam-tag-examples__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .steam-tag-examples { margin: 35px 0 48px; padding-top: 25px; }
    .steam-tag-examples__heading h2 { font-size: 25px; }
    .steam-tag-examples__heading p { font-size: 15px; }
    .steam-tag-examples__grid { grid-template-columns: 1fr; gap: 12px; }
    .steam-tag-example--tags .steam-tag-example__image { height: 390px; }
    .steam-tag-example--related .steam-tag-example__image { height: 170px; }
    .steam-tag-lightbox { width: calc(100vw - 10px); height: calc(100dvh - 10px); border-radius: 8px; }
    .steam-tag-lightbox__bar { padding: 8px 9px; }
    .steam-tag-lightbox__title strong { font-size: 13px; }
    .steam-tag-lightbox__image-area { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) { .steam-tag-example { transition: none; } }
