/* --- SINGLE COLUMN GALLERY --- */
.gallery {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- IMAGE ITEM (fills width, preserves ratio) --- */
.item {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #c9a96e22;
    opacity: 0;
    transform: translateY(20px);
}

.item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(201,169,110,0.2), 0 0 15px rgba(201,169,110,0.1);
    border-color: #c9a96e;
}

.item img {
    display: block;
    width: 100%;
    height: auto;
}

.item .label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(10,10,18,0.85);
    color: #d4c9a8;
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'IM Fell English SC', serif;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid #c9a96e33;
    pointer-events: none;
}

.item:hover .label {
    opacity: 1;
}

/* --- PLACEHOLDER (colored squares for "coming soon") --- */
.item.placeholder {
    background: #1a1520;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.item .placeholder-box {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    border: 1px solid #c9a96e22;
}

/* Placeholder Colors */
.color-1 .placeholder-box { background: #8b3a3a; }
.color-2 .placeholder-box { background: #3a5a7a; }
.color-3 .placeholder-box { background: #4a7a5a; }
.color-4 .placeholder-box { background: #8b7a3a; }
.color-5 .placeholder-box { background: #6a4a7a; }
.color-6 .placeholder-box { background: #3a7a6a; }
.color-7 .placeholder-box { background: #7a5a3a; }
.color-8 .placeholder-box { background: #2a2a3a; }

/* --- LIGHTBOX POPUP --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 10, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    border: 2px solid #c9a96e55;
    box-shadow: 0 0 60px rgba(201, 169, 110, 0.15), 0 0 120px rgba(0, 0, 0, 0.8);
    animation: lightboxIn 0.3s ease;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-label {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #d4c9a8;
    font-family: 'IM Fell English SC', serif;
    font-size: 18px;
    letter-spacing: 2px;
    background: rgba(10, 10, 18, 0.85);
    padding: 8px 20px;
    border: 1px solid #c9a96e33;
    border-radius: 2px;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #d4c9a8;
    font-size: 36px;
    font-family: 'Crimson Text', serif;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0.7;
    line-height: 1;
}

.lightbox-close:hover {
    color: #f0d89f;
    transform: rotate(90deg);
    opacity: 1;
}

@keyframes lightboxIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media screen and (max-width: 700px) {
    .gallery {
        gap: 12px;
    }
    .item .label {
        font-size: 12px;
        padding: 4px 10px;
    }
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }
}
