.kgal-section {
    --kgal-columns: 4;
    --kgal-gap: 18px;
    --kgal-max: 1400px;
    --kgal-ratio: 4 / 3;
    --kgal-bg: #f7f7f7;
    --kgal-bg-image: none;
    --kgal-accent: #f3c400;
    --kgal-red: #e30613;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 82px 0 92px;
    background-color: var(--kgal-bg);
    background-image: var(--kgal-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    color: #121212;
}
.kgal-section *, .kgal-section *::before, .kgal-section *::after { box-sizing: border-box; }
.kgal-shell {
    width: min(calc(100% - 56px), var(--kgal-max));
    margin: 0 auto;
}
.kgal-head {
    max-width: 900px;
    margin: 0 auto 38px;
    text-align: center;
}
.kgal-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 13px;
    color: var(--kgal-red);
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .025em;
}
.kgal-eyebrow span {
    width: 52px;
    height: 2px;
    background: var(--kgal-red);
}
.kgal-title {
    margin: 0;
    color: #101010;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.035em;
}
.kgal-intro {
    max-width: 760px;
    margin: 17px auto 0;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.65;
}
.kgal-accent-line {
    display: flex;
    justify-content: center;
    width: 116px;
    height: 4px;
    margin: 22px auto 0;
    overflow: hidden;
}
.kgal-accent-line span:nth-child(1) { width: 42%; background: #151515; }
.kgal-accent-line span:nth-child(2) { width: 29%; background: var(--kgal-red); }
.kgal-accent-line span:nth-child(3) { width: 29%; background: var(--kgal-accent); }
.kgal-grid {
    display: grid;
    grid-template-columns: repeat(var(--kgal-columns), minmax(0, 1fr));
    gap: var(--kgal-gap);
}
.kgal-item {
    margin: 0;
    min-width: 0;
}
.kgal-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: var(--kgal-ratio);
    border-radius: 10px;
    background: #161616;
    box-shadow: 0 11px 28px rgba(0,0,0,.12);
    text-decoration: none;
    outline: 0;
}
.kgal-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(243,196,0,.65), 0 11px 28px rgba(0,0,0,.12);
}
.kgal-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}
.kgal-link:not(.kgal-link--static):hover .kgal-image,
.kgal-link:not(.kgal-link--static):focus-visible .kgal-image {
    transform: scale(1.035);
    filter: brightness(.78);
}
.kgal-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    color: #fff;
    transition: opacity .25s ease;
    background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.25) 100%);
    pointer-events: none;
}
.kgal-hover svg {
    width: 48px;
    height: 48px;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 999px;
    background: rgba(0,0,0,.38);
}
.kgal-link:not(.kgal-link--static):hover .kgal-hover,
.kgal-link:not(.kgal-link--static):focus-visible .kgal-hover { opacity: 1; }
.kgal-caption {
    margin-top: 9px;
    color: #383838;
    font-size: 13px;
    line-height: 1.45;
}
.kgal-empty {
    padding: 28px;
    border: 1px dashed #cfcfcf;
    border-radius: 10px;
    background: rgba(255,255,255,.78);
    color: #4d4d4d;
    text-align: center;
}
.kgal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 38px 72px;
    background: rgba(0,0,0,.92);
}
.kgal-lightbox.is-open { display: flex; }
body.kgal-lightbox-open { overflow: hidden; }
.kgal-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(92vw, 1500px);
    height: min(86vh, 980px);
}
.kgal-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0,0,0,.5);
}
.kgal-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    color: rgba(255,255,255,.78);
    font-size: 13px;
}
.kgal-lightbox__close,
.kgal-lightbox__prev,
.kgal-lightbox__next {
    position: absolute;
    z-index: 3;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
}
.kgal-lightbox__close {
    top: 15px;
    right: 24px;
    font-size: 46px;
    line-height: 1;
}
.kgal-lightbox__prev,
.kgal-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 74px;
    font-size: 56px;
    line-height: 1;
}
.kgal-lightbox__prev { left: 8px; }
.kgal-lightbox__next { right: 8px; }
@media (max-width: 1100px) {
    .kgal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .kgal-section { padding: 62px 0 70px; }
    .kgal-shell { width: min(calc(100% - 34px), var(--kgal-max)); }
    .kgal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kgal-head { margin-bottom: 30px; }
}
@media (max-width: 540px) {
    .kgal-section { padding: 48px 0 56px; }
    .kgal-shell { width: min(calc(100% - 24px), var(--kgal-max)); }
    .kgal-grid { grid-template-columns: 1fr; gap: 14px; }
    .kgal-title { font-size: 34px; }
    .kgal-intro { font-size: 14px; line-height: 1.6; }
    .kgal-eyebrow { font-size: 12px; gap: 12px; }
    .kgal-eyebrow span { width: 34px; }
    .kgal-lightbox { padding: 48px 12px 58px; }
    .kgal-lightbox__stage { width: 100%; height: 76vh; }
    .kgal-lightbox__prev, .kgal-lightbox__next {
        top: auto;
        bottom: 4px;
        transform: none;
        width: 48px;
        height: 48px;
        font-size: 42px;
    }
    .kgal-lightbox__prev { left: 18px; }
    .kgal-lightbox__next { right: 18px; }
    .kgal-lightbox__close { top: 9px; right: 14px; }
}
