.gkcu-gallery {
    --gkcu-columns: 3;
    --gkcu-accent: #6a0d3a;
    --gkcu-text: #2a0c1d;
    color: var(--gkcu-text);
    width: 100%;
}

.gkcu-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 14px;
}

.gkcu-heading {
    margin: 0;
    color: var(--gkcu-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.1;
}

.gkcu-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 10px;
}

.gkcu-filter {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gkcu-accent);
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1;
    padding: 10px 14px;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.gkcu-filter:hover,
.gkcu-filter:focus-visible,
.gkcu-filter.is-active {
    background: var(--gkcu-accent);
    color: #fff;
    outline: none;
}

.gkcu-grid {
    display: grid;
    grid-template-columns: repeat(var(--gkcu-columns), minmax(0, 1fr));
    align-items: start;
    gap: 28px 16px;
}

.gkcu-card {
    min-width: 0;
}

.gkcu-card[hidden] {
    display: none !important;
}

.gkcu-card--large {
    grid-column: span 2;
}

.gkcu-image-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    text-align: inherit;
}

.gkcu-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f0f1;
}

.gkcu-card--large .gkcu-image-wrap {
    aspect-ratio: 16 / 9;
}

.gkcu-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
}

.gkcu-image-button:hover img,
.gkcu-image-button:focus-visible img {
    transform: scale(1.035);
}

.gkcu-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: clamp(18px, 3vw, 34px);
    background: linear-gradient(to top, rgba(28, 5, 18, .82), rgba(28, 5, 18, .08) 70%);
    color: #fff;
    opacity: 0;
    transition: opacity .28s ease;
}

.gkcu-image-button:hover .gkcu-overlay,
.gkcu-image-button:focus-visible .gkcu-overlay {
    opacity: 1;
}

.gkcu-overlay-text {
    max-width: 42ch;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.45;
    transform: translateY(8px);
    transition: transform .28s ease;
}

.gkcu-image-button:hover .gkcu-overlay-text,
.gkcu-image-button:focus-visible .gkcu-overlay-text {
    transform: translateY(0);
}

.gkcu-caption {
    padding-top: 12px;
}

.gkcu-category,
.gkcu-lightbox-category {
    color: var(--gkcu-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.gkcu-title {
    margin: 12px 0 0;
    color: var(--gkcu-text);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.3;
}

.gkcu-empty {
    padding: 16px;
    background: #f6f4f5;
}

.gkcu-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
}

.gkcu-lightbox.is-open {
    display: grid;
}

.gkcu-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 7, 10, .9);
    backdrop-filter: blur(4px);
}

.gkcu-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    width: min(1280px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.gkcu-lightbox-media {
    display: grid;
    place-items: center;
    min-height: 380px;
    background: #111;
}

.gkcu-lightbox-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.gkcu-lightbox-copy {
    align-self: stretch;
    padding: clamp(28px, 4vw, 56px);
    overflow: auto;
}

.gkcu-lightbox-title {
    margin: 14px 0 18px;
    color: var(--gkcu-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.1;
}

.gkcu-lightbox-description {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.55;
}

.gkcu-lightbox-content {
    font-size: 15px;
    line-height: 1.65;
}

.gkcu-lightbox-content:empty,
.gkcu-lightbox-description:empty,
.gkcu-lightbox-category:empty {
    display: none;
}

.gkcu-lightbox-close,
.gkcu-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #161016;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.gkcu-lightbox-close {
    top: 16px;
    right: 16px;
}

.gkcu-lightbox-prev,
.gkcu-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.gkcu-lightbox-prev { left: 16px; }
.gkcu-lightbox-next { right: 16px; }

body.gkcu-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .gkcu-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gkcu-filters {
        justify-content: flex-start;
    }

    .gkcu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gkcu-card--large {
        grid-column: span 2;
    }

    .gkcu-lightbox-panel {
        grid-template-columns: 1fr;
        width: min(880px, 96vw);
    }

    .gkcu-lightbox-media {
        min-height: 42vh;
    }

    .gkcu-lightbox-image {
        max-height: 62vh;
    }
}

@media (max-width: 560px) {
    .gkcu-gallery {
        --gkcu-columns: 1 !important;
    }

    .gkcu-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gkcu-card--large {
        grid-column: span 1;
    }

    .gkcu-filter {
        padding: 9px 10px;
    }

    .gkcu-lightbox {
        padding: 0;
    }

    .gkcu-lightbox-panel {
        width: 100vw;
        max-height: 100vh;
        min-height: 100vh;
    }

    .gkcu-lightbox-copy {
        padding: 28px 22px 56px;
    }

    .gkcu-lightbox-prev { left: 8px; }
    .gkcu-lightbox-next { right: 8px; }
}

@media (hover: none) {
    .gkcu-overlay {
        opacity: 0;
    }
}
