/* Part: Gallery slider */
/* Default logo visible by default with color filter for #463C3E */
.work-logo-default {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(22%) sepia(7%) saturate(1274%) hue-rotate(316deg) brightness(95%) contrast(90%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hover logo hidden by default and positioned absolutely to overlay */
.work-logo-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 60px);
    height: auto;
    max-height: calc(100% - 60px);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Hover state */
.work-card:hover {
    background-color: #FF8C42 !important; /* Light orange background */
}

.work-card:hover .work-logo-default {
    opacity: 0;
    transform: scale(1);
}

.work-card:hover .work-logo-hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}
/* Fancybox Work Gallery Modal Styles */
.fancybox-work-gallery .fancybox-slide--inline .fancybox-content {
    background: linear-gradient(135deg, #6B5B95 0%, #4A4E69 100%);
    border-radius: 12px;
    padding: 60px;
    max-width: 1100px;
    width: 90%;
}

.work-modal-content-hidden {
    width: 100%;
    max-width: 1100px;
}

.work-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.work-modal-left {
    color: #fff;
}

.work-modal-logo {
    margin-bottom: 40px;
}

.work-modal-logo img {
    max-width: 250px;
    height: auto;
}

.work-modal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
}

.work-modal-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.work-modal-text li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
}

.work-modal-text li:before {
    content: '';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.work-modal-text p {
    margin-bottom: 15px;
}

.work-modal-text strong {
    font-weight: 700;
}

.work-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid #fff;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.work-modal-btn:hover {
    background-color: #fff;
    color: #463C3E;
}

.work-modal-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .fancybox-work-gallery .fancybox-slide--inline .fancybox-content {
        padding: 40px 30px;
        width: 95%;
    }
    
    .work-modal-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .work-modal-logo img {
        max-width: 150px;
    }
    
    .work-modal-text {
        font-size: 14px;
    }
}

/* Fancybox Work Gallery - Container and Background Styles */
.fancybox-container.fancybox-work-gallery {
    /* Custom container styles here */
}

.fancybox-container.fancybox-work-gallery .fancybox-bg {
    background: rgba(0, 0, 0, 0.8);
}

.fancybox-container.fancybox-work-gallery .fancybox-content {
    background: linear-gradient(135deg, #6B5B95 0%, #4A4E69 100%);
    border-radius: 12px;
    padding: 60px;
    max-width: 1100px;
}

/* Override responsive */
@media (max-width: 768px) {
    .fancybox-container.fancybox-work-gallery .fancybox-content {
        padding: 40px 30px;
    }
}

.work-modal-content-hidden.fancybox__content {
    background-color: #EE4500;
}

.work-modal-content-hidden ul {
    list-style: disc;
    margin: 0;
    padding: 0;
    padding-left: 20px;
}

.work-modal-content-hidden ul li {
    margin-left: 0;
    padding-left: 0;
}
.work-modal-content-hidden  .carousel__button {
    top: 10px !important;
    right: 10px !important;
    background-color: #A82E00;
}
.work-modal-content-hidden .carousel__button svg {
    width: 18px;
    height: 18px;
}
.work-card{
    outline: none;
}
.fancybox-work-gallery {
    background-color: #A82E00;
}