.art-page {
    margin: 0;
    min-height: 100vh;
    background: #071114;
    color: #d8f3ee;
    padding: 90px 32px 32px;
}

.art-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.art-header {
    background: #0f1d22;
    border: 1px solid #24464f;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}

.art-header h1 {
    color: #7ddfc3;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.art-header p {
    max-width: 720px;
    margin: 0 auto;
    color: #b8d7d2;
    line-height: 1.6;
}

.tag-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 12px;
    background: rgba(7, 17, 20, 0.82);
    border: 1px solid #24464f;
    border-radius: 16px;
    position: sticky;
    top: 78px;
    z-index: 5;
    backdrop-filter: blur(8px);
}

.tag-button {
    border: 1px solid #2c5861;
    border-radius: 999px;
    background: #10262c;
    color: #d8f3ee;
    padding: 10px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tag-button:hover,
.tag-button.active {
    background: #7ddfc3;
    border-color: #7ddfc3;
    color: #071114;
    transform: translateY(-2px);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 22px;
    align-items: start;
}

.gallery-item {
    background: #0f1d22;
    border: 1px solid #24464f;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.gallery-item.is-hidden {
    display: none;
}

.image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #071114;
    cursor: zoom-in;
}

.gallery-thumb {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.contain-thumb {
    object-fit: contain;
    padding: 12px;
    background: #071114;
}

.gallery-info {
    padding: 18px;
    text-align: left;
}

.gallery-info h2 {
    color: #7ddfc3;
    font-size: 1.25rem;
    margin: 0 0 8px;
}

.gallery-info p {
    color: #b8d7d2;
    line-height: 1.5;
    margin: 0 0 12px;
}

.tag-pill {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 5px 10px;
    border: 1px solid #2c5861;
    border-radius: 999px;
    color: #d8f3ee;
    font-size: 0.85rem;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    padding: 32px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(1100px, 94vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid #2c5861;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
}

.lightbox p {
    color: #d8f3ee;
    font-size: 1.1rem;
    margin: 14px 0 0;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    border: 1px solid #2c5861;
    border-radius: 999px;
    background: #0f1d22;
    color: #d8f3ee;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: #7ddfc3;
    color: #071114;
}

@media (max-width: 700px) {
    .art-page {
        padding: 82px 16px 24px;
    }

    .tag-tabs {
        top: 68px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumb {
        height: 230px;
    }
}

.tag-button.spoiler-button {
    background: #27141b;
    border-color: #9b4d64;
    color: #ffd6e1;
}

.tag-button.spoiler-button:hover,
.tag-button.spoiler-button.active {
    background: #ff9fbc;
    border-color: #ff9fbc;
    color: #071114;
}

.tag-button.active {
    background: #7ddfc3;
}