/* ct-lightbox.css */
#ct-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ct-lightbox-container {
    position: relative;
    max-width: 80%;
    max-height: 90vh;
}

.ct-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.ct-lightbox-controls {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    pointer-events: none;
}

.ct-lightbox-prev,
.ct-lightbox-next {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: fixed;
}

.ct-lightbox-prev {
    left: 20px;
}

.ct-lightbox-next {
    right: 20px;
}

.ct-lightbox-toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 10000;
}

.ct-lightbox-share,
.ct-lightbox-close {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ct-lightbox-prev:hover,
.ct-lightbox-next:hover,
.ct-lightbox-share:hover,
.ct-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

.ct-lightbox-prev svg,
.ct-lightbox-next svg,
.ct-lightbox-share svg,
.ct-lightbox-close svg {
    width: 40px !important;
    height: 40px !important;
    stroke: white !important;
    stroke-width: 2.5px !important;
    fill: none !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

.ct-lightbox-prev svg path,
.ct-lightbox-next svg path,
.ct-lightbox-share svg path,
.ct-lightbox-share svg polyline,
.ct-lightbox-share svg line,
.ct-lightbox-close svg line {
    stroke: white !important;
    stroke-width: 2.5px !important;
}

.ct-share-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.ct-share-menu button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
    transition: background 0.2s ease;
}

.ct-share-menu button:hover {
    background: #f5f5f5;
}

.ct-image-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ct-lightbox img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .ct-lightbox-container {
        max-width: 95%;
    }

    .ct-lightbox-prev,
    .ct-lightbox-next,
    .ct-lightbox-share,
    .ct-lightbox-close {
        width: 60px !important;
        height: 60px !important;
    }

    .ct-lightbox-prev svg,
    .ct-lightbox-next svg,
    .ct-lightbox-share svg,
    .ct-lightbox-close svg {
        width: 35px !important;
        height: 35px !important;
    }

    .ct-lightbox-prev {
        left: 10px;
    }
    
    .ct-lightbox-next {
        right: 10px;
    }
    
    .ct-share-menu {
        right: 10px;
        left: 10px;
        margin: 0;
    }

    .ct-lightbox-controls {
        padding: 0 10px;
    }
}