.ttsc-gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 78px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(220, 38, 38, .36), transparent 30%),
        radial-gradient(circle at 16% 80%, rgba(127, 29, 29, .28), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #1f2937 54%, #111827 100%);
}
.ttsc-gallery-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/common/industrial-grid.svg');
    opacity: .22;
    pointer-events: none;
}
.ttsc-gallery-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr);
    gap: 34px;
    align-items: end;
}
.ttsc-gallery-hero h1,
.ttsc-gallery-hero p { color: #fff; }
.ttsc-gallery-hero p { max-width: 760px; opacity: .78; }
.ttsc-gallery-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ttsc-btn--light { background: rgba(255,255,255,.12); color: #fff !important; border: 1px solid rgba(255,255,255,.18); }
.ttsc-gallery-hero__panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
}
.ttsc-gallery-hero__panel div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
}
.ttsc-gallery-hero__panel strong { font-size: 34px; line-height: 1; color: #fff; letter-spacing: -.04em; }
.ttsc-gallery-hero__panel span { color: rgba(255,255,255,.72); font-weight: 700; line-height: 1.35; }
.ttsc-gallery-section { background: #f7f8fa; }
.ttsc-gallery-section .ttsc-section-head--split p { max-width: 430px; margin: 0; }
.ttsc-gallery-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 26px;
}
.ttsc-gallery-filter button {
    border: 1px solid var(--ttsc-line);
    background: #fff;
    color: var(--ttsc-ink);
    border-radius: 999px;
    padding: 11px 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ttsc-gallery-filter button:hover { transform: translateY(-1px); }
.ttsc-gallery-filter button.is-active {
    background: linear-gradient(135deg, var(--ttsc-accent), var(--ttsc-accent-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(220,38,38,.22);
}
.ttsc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.ttsc-gallery-card {
    overflow: hidden;
    border: 1px solid var(--ttsc-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--ttsc-soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease;
}
.ttsc-gallery-card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(15,23,42,.14); }
.ttsc-gallery-card.is-hidden { display: none; }
.ttsc-gallery-card__media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #111827;
    cursor: zoom-in;
    overflow: hidden;
}
.ttsc-gallery-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    transition: transform .45s ease;
}
.ttsc-gallery-card:hover .ttsc-gallery-card__media img { transform: scale(1.045); }
.ttsc-gallery-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.62), transparent 54%);
}
.ttsc-gallery-card__media span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(220,38,38,.92);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ttsc-gallery-card__body { padding: 22px; }
.ttsc-gallery-card__body h3 { font-size: 21px; }
.ttsc-gallery-card__body p { font-size: 15px; line-height: 1.65; margin-top: 12px; }
.ttsc-gallery-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ttsc-gallery-tags span {
    border-radius: 999px;
    background: var(--ttsc-accent-soft);
    color: var(--ttsc-accent-dark);
    font-weight: 900;
    font-size: 12px;
    padding: 8px 10px;
}
.ttsc-gallery-note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--ttsc-line);
    box-shadow: var(--ttsc-soft-shadow);
}
.ttsc-gallery-note strong { color: var(--ttsc-dark); }
.ttsc-gallery-note span { color: var(--ttsc-muted); line-height: 1.55; }
.ttsc-gallery-note code {
    display: inline-block;
    border-radius: 12px;
    padding: 10px 12px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}
.ttsc-gallery-real { background: #fff; }
.ttsc-gallery-real-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.ttsc-gallery-real-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid var(--ttsc-line);
}
.ttsc-gallery-real-grid button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.ttsc-gallery-real-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ttsc-gallery-real-grid figcaption { display: grid; gap: 5px; padding: 16px; }
.ttsc-gallery-real-grid strong { color: var(--ttsc-dark); }
.ttsc-gallery-real-grid span { color: var(--ttsc-muted); font-size: 14px; line-height: 1.5; }
.ttsc-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    place-items: center;
    padding: 30px;
    background: rgba(2,6,23,.86);
}
.ttsc-gallery-lightbox.is-open { display: grid; }
.ttsc-gallery-lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 78vh;
    border-radius: 22px;
    box-shadow: 0 34px 90px rgba(0,0,0,.46);
    background: #111827;
}
.ttsc-gallery-lightbox strong {
    display: block;
    margin-top: 14px;
    color: #fff;
    text-align: center;
    font-size: 18px;
}
.ttsc-gallery-lightbox__close {
    position: fixed;
    top: 20px;
    right: 22px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 980px) {
    .ttsc-gallery-hero__grid,
    .ttsc-gallery-grid,
    .ttsc-gallery-real-grid { grid-template-columns: 1fr 1fr; }
    .ttsc-gallery-hero__panel { grid-column: 1 / -1; }
    .ttsc-gallery-note { grid-template-columns: 1fr; }
    .ttsc-gallery-note code { white-space: normal; }
}
@media (max-width: 640px) {
    .ttsc-gallery-hero { padding: 72px 0 54px; }
    .ttsc-gallery-hero__grid,
    .ttsc-gallery-grid,
    .ttsc-gallery-real-grid { grid-template-columns: 1fr; }
    .ttsc-gallery-hero__panel div { grid-template-columns: 82px 1fr; }
    .ttsc-gallery-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .ttsc-gallery-filter button { white-space: nowrap; }
}
