/* Steam Graphical Assets examples: scoped styles, isolated from the other service galleries. */
.capsule-examples {
    margin: 46px 0 64px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.16);
    min-width: 0;
}
.capsule-examples__heading { margin-bottom: 24px; }
.capsule-examples__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffc31a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.capsule-examples__eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #ffc31a;
}
.capsule-examples__heading h2 {
    margin: 13px 0;
    color: #fff;
    font-family: var(--font-display, 'Molot', sans-serif);
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.capsule-examples__heading p {
    max-width: 860px;
    margin: 0;
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.6;
}
.capsule-examples__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}
.capsule-example {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: #19191b;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    cursor: zoom-in;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.capsule-example:hover {
    border-color: #ffc31a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.capsule-example:focus-visible { outline: 3px solid #ffc31a; outline-offset: 3px; }
.capsule-example__art {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 190px;
    min-width: 0;
    padding: 14px;
    background: radial-gradient(ellipse at center, #24252a 0%, #101012 100%);
    box-sizing: border-box;
}
.capsule-example__art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.capsule-example__expand {
    position: absolute;
    bottom: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: rgba(9,13,17,.83);
    color: #fff;
    font-size: 21px;
    line-height: 1;
}
.capsule-example__caption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px 14px;
    border-top: 1px solid rgba(255,255,255,.1);
    min-width: 0;
}
.capsule-example__caption strong {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.capsule-example__caption > span {
    font-size: 12px;
    color: #b5b5b5;
}
/* Native <dialog> is moved under <body> so page transforms cannot move the modal. */
.capsule-lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(92vw, 850px);
    max-width: calc(100vw - 12px);
    height: min(90dvh, 830px);
    max-height: calc(100dvh - 12px);
    box-sizing: border-box;
    color: #fff;
    border: 1px solid #484b52;
    border-radius: 14px;
    background: #14161b;
    overflow: hidden;
    box-shadow: 0 24px 100px rgba(0,0,0,.85);
}
.capsule-lightbox[open] { display: flex; flex-direction: column; }
.capsule-lightbox::backdrop { background: rgba(0,0,0,.82); }
.capsule-lightbox__bar, .capsule-lightbox__nav {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    min-height: 52px;
    background: #212329;
    box-sizing: border-box;
}
.capsule-lightbox__bar { border-bottom: 1px solid rgba(255,255,255,.12); }
.capsule-lightbox__title { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 10px; }
.capsule-lightbox__title strong { font-size: 16px; color: #fff; }
.capsule-lightbox__title span { font-size: 12px; color: #9fa2ac; }
.capsule-lightbox__actions { display: flex; gap: 8px; flex: none; }
.capsule-lightbox button {
    min-height: 35px;
    padding: 6px 12px;
    border: 1px solid #565861;
    border-radius: 7px;
    background: #2e3038;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.capsule-lightbox button:hover { background: #444750; }
.capsule-lightbox button:focus-visible { outline: 2px solid #ffc31a; }
.capsule-lightbox__actions [data-capsule-close] { width: 36px; height: 36px; padding: 0; font-size: 25px; }
.capsule-lightbox__image-area {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 14px;
    background: #0a0d11;
}
.capsule-lightbox__image-area img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.capsule-lightbox__image-area.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.capsule-lightbox__image-area.is-zoomed img {
    width: 800px;
    min-width: 800px;
    height: auto;
    max-width: none;
    max-height: none;
}
.capsule-lightbox__nav { justify-content: center; gap: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.capsule-lightbox__nav span { color: #aeb0b7; font-size: 13px; }
.capsule-lightbox__nav button { min-width: 48px; font-size: 19px; padding: 2px 8px; }
@media (max-width: 1080px) {
    .capsule-examples__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .capsule-examples { margin: 35px 0 48px; padding-top: 24px; }
    .capsule-examples__grid { gap: 10px; }
    .capsule-examples__heading h2 { font-size: 25px; }
    .capsule-examples__heading p { font-size: 15px; }
    .capsule-example { border-radius: 9px; }
    .capsule-example__art { height: 145px; padding: 8px; }
    .capsule-example__caption { padding: 10px; }
    .capsule-example__caption strong { font-size: 13px; }
    .capsule-example__expand { width: 27px; height: 27px; font-size: 18px; bottom: 5px; right: 5px; }
    .capsule-lightbox { width: calc(100vw - 10px); height: calc(100dvh - 10px); border-radius: 9px; }
    .capsule-lightbox__bar { padding: 8px 10px; }
    .capsule-lightbox__title strong { font-size: 14px; }
    .capsule-lightbox__image-area { padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { .capsule-example { transition: none; } }

/* WTC Games shared gallery close-icon centering fix (2026-11-11).
   Render an actual geometric X instead of the font-dependent multiplication glyph. */
.capsule-lightbox__actions [data-capsule-close] {
    position: relative;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    flex: 0 0 36px;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center;
}
.capsule-lightbox__actions [data-capsule-close]::before,
.capsule-lightbox__actions [data-capsule-close]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    pointer-events: none;
}
.capsule-lightbox__actions [data-capsule-close]::before { transform: translate(-50%, -50%) rotate(45deg); }
.capsule-lightbox__actions [data-capsule-close]::after  { transform: translate(-50%, -50%) rotate(-45deg); }
