.sub-view {
    min-height: 100vh;
    padding: 96px 0 64px;
}

.gallery-section {
    padding-top: 20px;
}

.gallery-grid {
    column-count: 3;
    column-gap: 14px;
}

.gallery-empty {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--sub);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    text-align: center;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 14px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.24s var(--ease-smooth), border-color 0.24s var(--ease-smooth), background 0.24s var(--ease-smooth);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.32s var(--ease-smooth), opacity 0.24s var(--ease-smooth);
}

.gallery-item:hover img {
    transform: scale(1.025);
    opacity: 0.96;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--lightbox-bg);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s var(--ease-smooth);
    contain: layout paint style;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lb-img-container {
    max-width: 90vw;
    max-height: 80vh;
    transform: translateY(8px) scale(0.985);
    transition: transform 0.28s var(--ease-smooth);
}

.lightbox.active .lb-img-container {
    transform: translateY(0) scale(1);
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: var(--shadow);
}

.lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--txt);
    background: var(--surface);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.22s var(--ease-smooth), background-color 0.22s var(--ease-smooth), border-color 0.22s var(--ease-smooth);
}

.lb-close i {
    display: block;
    line-height: 1;
}

.lb-close:hover {
    transform: rotate(6deg) scale(1.04);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.micro-reveal {
    opacity: 0;
    transform: translateY(14px);
}

.micro-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.48s var(--ease-out), transform 0.48s var(--ease-out);
}
