/* =====================================================================
   operations.css — Operations Page Gallery & Lightbox Styles
   ===================================================================== */

/* Gallery Card Styling */
.gallery-card {
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-card .gallery-image {
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(22, 101, 52, 0.12);
}

.gallery-card:hover .gallery-image {
    transform: scale(1.03);
}

/* Lightbox Styles - 80% height, narrower width, image left, text right */
#lightbox-modal {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    max-height: 80vh;
    height: 80vh;
    max-width: 960px;
    width: 92%;
}

.lightbox-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lightbox-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    min-height: 0;
}

.lightbox-image-container {
    flex: 1.1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 100%;
}

.lightbox-text-container {
    flex: 0.9;
    padding: 1.5rem 1.5rem 1.5rem 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

/* Scrollbar styling for text container */
.lightbox-text-container::-webkit-scrollbar {
    width: 4px;
}

.lightbox-text-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lightbox-text-container::-webkit-scrollbar-thumb {
    background: #ea580c;
    border-radius: 10px;
}

.lightbox-text-container::-webkit-scrollbar-thumb:hover {
    background: #c2410c;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .lightbox-body {
        flex-direction: column;
    }

    .lightbox-image-container {
        flex: 0 0 45%;
        padding: 1rem;
    }

    .lightbox-text-container {
        flex: 1;
        padding: 1rem;
        overflow-y: auto;
    }

    .lightbox-content {
        height: 85vh;
        max-height: 85vh;
        width: 98%;
        max-width: 98%;
    }
}

@media (max-width: 480px) {
    .lightbox-image-container {
        flex: 0 0 35%;
        padding: 0.5rem;
    }
    
    .lightbox-text-container {
        padding: 0.75rem;
    }
}

/* Close button styling */
.lightbox-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.lightbox-close-btn:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

.lightbox-close-btn i {
    font-size: 1.25rem;
    color: #1e293b;
}

/* Badge styling */
.lightbox-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #fff7ed;
    color: #ea580c;
    width: fit-content;
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #052e16;
    line-height: 1.3;
}

.lightbox-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    flex: 1;
}

@media (min-width: 769px) {
    .lightbox-title {
        font-size: 1.35rem;
    }
    
    .lightbox-description {
        font-size: 0.9rem;
    }
}