.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.lightbox-active {
    display: flex;
}
.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}
.lightbox-inner {
    position: relative;
    transition: opacity 0.3s ease;
}
.lightbox-inner.lightbox-transitioning {
    opacity: 0;
}
.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.lightbox-video {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}
.lightbox-media {
    padding: 20px;
    text-align: center;
    color: #666;
}
.lightbox-info {
    padding: 20px;
    background: white;
}
.lightbox-caption {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a3324;
    margin-bottom: 10px;
}
.lightbox-link {
    margin-top: 10px;
}
.lightbox-fullarticle {
    display: inline-block;
    padding: 8px 16px;
    background: #1a3324;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}
.lightbox-fullarticle:hover {
    background: #2c4a38;
}
.lightbox-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 100;
}
.lightbox-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #1a3324;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 101;
}
.lightbox-btn:hover {
    background: white;
    transform: scale(1.1);
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #1a3324;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 101;
}
.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}
.lightbox-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.lightbox-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: #f0f0f0;
    color: #1a3324;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}
.lightbox-devlink {
    margin-top: 10px;
    font-size: 0.85rem;
}
.lightbox-tagmanage {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}
.lightbox-tagmanage-label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: #666;
}
.lightbox-tagmanage form {
    display: inline-block;
    margin: 0;
}
.lightbox-tagmanage input[type=text] {
    display: inline-block;
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.8rem;
    margin: 0;
}
@media (max-width: 768px) {
    .lightbox-container {
        max-width: 95%;
        max-height: 95%;
    }
    .lightbox-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .lightbox-controls {
        padding: 0 10px;
    }
}
