/* Lightbox overlay */
#lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}
#lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Content wrapper anchors close + arrows */
.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 90%;
}

/* Image */
.lightbox-content img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Close button */
.lightbox-content .close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    transition: background 0.2s ease;
}
.lightbox-content .close:hover {
    background: rgba(234, 179, 8, 0.9);
}

/* Prev/Next arrows overlay photo */
.lightbox-content .prev,
.lightbox-content .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.lightbox-content .prev { left: 8px; }
.lightbox-content .next { right: 8px; }

.lightbox-content .prev:hover,
.lightbox-content .next:hover {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(234, 179, 8, 0.6);
}

/* Lightbox details */
#lightbox-details {
    margin-top: 12px;
    text-align: center;
    color: #fff;
    max-height: 20%;
    overflow: hidden;
}
#lightbox-caption {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0;
    color: #fff;
}
#lightbox-meta {
    font-size: 14px;
    color: #e5e7eb;
    margin: 4px 0 0;
}

/* Enquire button */
#enquire-btn {
    margin-top: 8px;
    padding: 10px 16px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    max-height: 10%;
}
