/* Consolidated Lightbox Styles - Phase 2 Refactor */

/* From enhanced-lightbox.css */
:root {
    --navy: #0A1F44;
    --gold: #C9A74F;
    --accent-red: #e31e26;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
}

/* Lightbox Container */
.enhanced-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enhanced-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Content Container */
.enhanced-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.enhanced-lightbox.active .enhanced-lightbox-container {
    transform: scale(1);
    opacity: 1;
}

/* Image Container */
.enhanced-lightbox-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.enhanced-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.enhanced-lightbox-image.zoom-effect {
    animation: zoomInOut 10s infinite alternate ease-in-out;
}

/* Content Details */
.enhanced-lightbox-details {
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.enhanced-lightbox-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: var(--white);
    font-weight: 600;
}

.enhanced-lightbox-category {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Controls */
.enhanced-lightbox-close {
    display: none;
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.8);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.enhanced-lightbox-close:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: rotate(90deg);
}

.enhanced-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(201, 167, 79, 0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.enhanced-lightbox-nav.prev {
    left: -70px;
}

.enhanced-lightbox-nav.next {
    right: -70px;
}

.enhanced-lightbox-nav:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.enhanced-lightbox-counter {
    position: absolute;
    bottom: -30px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ESC to Exit Hint */
.enhanced-lightbox-esc-hint {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 100001;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInHint 0.5s ease;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enhanced-lightbox.active .enhanced-lightbox-esc-hint {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeInHint {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Overlay click-to-close */
.enhanced-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Animations */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 167, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0);
    }
}

/* Cursor style and indicator for all lightbox-enabled elements */
.has-lightbox {
    cursor: zoom-in !important;
    position: relative;
}

/* Zoom indicator for all supported sections */
.category-preview-image::after,
.gallery-image-container::after,
.client-logo-wrapper::after,
.gallery-item::after,
.product-gallery-item::after,
.product-image-container::after,
.related-product-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.9);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    font-size: 16px;
    animation: pulseEffect 2s infinite;
}

/* Show zoom indicator on hover */
.category-preview-image:hover::after,
.gallery-image-container:hover::after,
.client-logo-wrapper:hover::after,
.gallery-item:hover::after,
.product-gallery-item:hover::after,
.product-image-container:hover::after,
.related-product-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced hover effects for EXPLORE OUR GALLERY section */
.category-preview-card {
    overflow: hidden;
    position: relative;
}

.category-preview-image {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.category-preview-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-preview-card:hover .category-preview-image img {
    transform: scale(1.1);
}

.category-preview-image .image-overlay {
    background: linear-gradient(to top, rgba(10, 31, 68, 0.85) 0%, rgba(10, 31, 68, 0.5) 50%, rgba(10, 31, 68, 0.2) 100%);
    transition: all 0.5s ease;
}

.category-preview-card:hover .category-preview-image .image-overlay {
    background: linear-gradient(to top, rgba(227, 30, 38, 0.7) 0%, rgba(227, 30, 38, 0.4) 50%, rgba(227, 30, 38, 0.1) 100%);
}

/* Client logo hover effects */
.client-logo-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.client-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.client-logo-wrapper img {
    transition: transform 0.5s ease;
}

.client-logo-wrapper:hover img {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .enhanced-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .enhanced-lightbox-nav.prev {
        left: -50px;
    }
    .enhanced-lightbox-nav.next {
        right: -50px;
    }
    .enhanced-lightbox-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .enhanced-lightbox-nav {
        width: 36px;
        height: 36px;
        background-color: rgba(201, 167, 79, 0.8);
    }
    .enhanced-lightbox-nav.prev {
        left: 10px;
    }
    .enhanced-lightbox-nav.next {
        right: 10px;
    }
    .enhanced-lightbox-title {
        font-size: 1.3rem;
    }
    .enhanced-lightbox-category {
        font-size: 0.9rem;
    }
}

/* From product-lightbox.css */
/* Product Page Lightbox Styles */

/* Lightbox Container */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Content Container */
.product-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-lightbox.active .product-lightbox-container {
    transform: scale(1);
    opacity: 1;
}

/* Image Container */
.product-lightbox-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-lightbox-image.zoom-effect {
    animation: productZoomInOut 10s infinite alternate ease-in-out;
}

/* Content Details */
.product-lightbox-details {
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.product-lightbox-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 600;
}

/* Lightbox Controls */
.product-lightbox-close {
    display: none;
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.8);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.product-lightbox-close:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: rotate(90deg);
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(201, 167, 79, 0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.product-lightbox-nav.prev {
    left: -70px;
}

.product-lightbox-nav.next {
    right: -70px;
}

.product-lightbox-nav:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.product-lightbox-counter {
    position: absolute;
    bottom: -30px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Overlay click-to-close */
.product-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Animations */
@keyframes productZoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes productPulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 167, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0);
    }
}

/* Product showcase-image hover styling */
.showcase-image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.showcase-image-container.has-lightbox::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    font-size: 16px;
    animation: productPulseEffect 2s infinite;
}

.showcase-image-container.has-lightbox:hover::after {
    opacity: 1;
    transform: scale(1);
}

.showcase-image-container:hover .showcase-image {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .product-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .product-lightbox-nav.prev {
        left: -50px;
    }
    .product-lightbox-nav.next {
        right: -50px;
    }
    .product-lightbox-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .product-lightbox-nav {
        width: 36px;
        height: 36px;
        background-color: rgba(201, 167, 79, 0.8);
    }
    .product-lightbox-nav.prev {
        left: 10px;
    }
    .product-lightbox-nav.next {
        right: 10px;
    }
    .product-lightbox-title {
        font-size: 1.3rem;
    }
}

/* From gallery-lightbox.css */
/* Gallery Page Lightbox Styles */

/* Lightbox Container */
.gallery-page-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-page-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Content Container */
.gallery-page-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-page-lightbox.active .gallery-page-lightbox-container {
    transform: scale(1);
    opacity: 1;
}

/* Image Container */
.gallery-page-lightbox-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-page-lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-page-lightbox-image.zoom-effect {
    animation: galleryZoomInOut 10s infinite alternate ease-in-out;
}

/* Content Details */
.gallery-page-lightbox-details {
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.gallery-page-lightbox-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 600;
}

.gallery-page-lightbox-category {
    font-size: 1rem;
    color: #C9A74F;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Controls */
.gallery-page-lightbox-close {
    display: none;
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.8);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-page-lightbox-close:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: rotate(90deg);
}

.gallery-page-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(201, 167, 79, 0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.gallery-page-lightbox-nav.prev {
    left: -70px;
}

.gallery-page-lightbox-nav.next {
    right: -70px;
}

.gallery-page-lightbox-nav:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.gallery-page-lightbox-counter {
    position: absolute;
    bottom: -30px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Overlay click-to-close */
.gallery-page-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Animations */
@keyframes galleryZoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes galleryPulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 167, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0);
    }
}

/* Gallery Item Styles */
.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-grid .gallery-item.has-lightbox::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    font-size: 16px;
    animation: galleryPulseEffect 2s infinite;
}

.gallery-grid .gallery-item.has-lightbox:hover::after {
    opacity: 1;
    transform: scale(1);
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .gallery-page-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .gallery-page-lightbox-nav.prev {
        left: -50px;
    }
    .gallery-page-lightbox-nav.next {
        right: -50px;
    }
    .gallery-page-lightbox-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .gallery-page-lightbox-nav {
        width: 36px;
        height: 36px;
        background-color: rgba(201, 167, 79, 0.8);
    }
    .gallery-page-lightbox-nav.prev {
        left: 10px;
    }
    .gallery-page-lightbox-nav.next {
        right: 10px;
    }
    .gallery-page-lightbox-title {
        font-size: 1.3rem;
    }
    .gallery-page-lightbox-category {
        font-size: 0.9rem;
    }
}

/* From carousel-lightbox.css */
/* Carousel Lightbox Integration Styles */

/* Zoom icon integration for carousel slides */
.carousel-slide-inner.has-lightbox::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(227, 30, 38, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Only show zoom icon on active slide */
.carousel-slide.active .carousel-slide-inner.has-lightbox::after {
    opacity: 0;
    transform: scale(0);
}

.carousel-slide.active:hover .carousel-slide-inner.has-lightbox::after {
    opacity: 1;
    transform: scale(1);
    animation: pulseEffect 2s infinite;
}

/* Pulse animation for zoom icon */
@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 30, 38, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(227, 30, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(227, 30, 38, 0);
    }
}

/* Recent Work Lightbox customizations */
.recent-work-lightbox.active {
    backdrop-filter: blur(5px);
}

.recent-work-lightbox-container {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-work-lightbox-details {
    margin-top: 20px;
}

.recent-work-lightbox-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Ensure cursor shows pointer on hover over active carousel slide */
.carousel-slide.active {
    cursor: pointer;
}

/* Enhance image hover effect */
.carousel-slide.active:hover .showcase-image {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .carousel-slide-inner.has-lightbox::after {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 5px;
        right: 5px;
    }
    
    .recent-work-lightbox-container {
        width: 95%;
    }
}

/* From lightbox-effect.css */
/* Lightbox Effect for Gallery Sections */

.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-lightbox.active .lightbox-container {
    transform: scale(1);
    opacity: 1;
}

.lightbox-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.lightbox-image.zoom-effect {
    animation: zoomInOut 10s infinite alternate ease-in-out;
}

.lightbox-details {
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.lightbox-title {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 600;
}

.lightbox-category {
    font-size: 1rem;
    color: var(--gold, #C9A74F);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-description {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Lightbox Controls */
.lightbox-close {
    display: none;
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background-color: rgba(201, 167, 79, 0.8);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background-color: rgba(201, 167, 79, 0.7);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    outline: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.lightbox-nav.prev {
    left: -70px;
}

.lightbox-nav.next {
    right: -70px;
}

.lightbox-nav:hover {
    background-color: rgba(227, 30, 38, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: -30px;
    right: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Overlay click-to-close */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Animations */
@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(201, 167, 79, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 167, 79, 0);
    }
}

.gallery-item {
    position: relative;
    cursor: pointer;
}

/* Add zoom cursor indicator */
.gallery-item .gallery-image-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(201, 167, 79, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    font-size: 16px;
    animation: pulseEffect 2s infinite;
}

.gallery-item:hover .gallery-image-container::after {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .lightbox-nav.prev {
        left: -50px;
    }
    .lightbox-nav.next {
        right: -50px;
    }
    .lightbox-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .lightbox-nav {
        width: 36px;
        height: 36px;
        background-color: rgba(201, 167, 79, 0.8);
    }
    .lightbox-nav.prev {
        left: 10px;
    }
    .lightbox-nav.next {
        right: 10px;
    }
    .lightbox-title {
        font-size: 1.3rem;
    }
    .lightbox-category {
        font-size: 0.9rem;
    }
    .lightbox-description {
        font-size: 0.9rem;
    }
}

/* Enhanced Lightbox - Fixed Controls Visibility & Sharp Images - No White/Blur */

/* Lightbox Container - Full Coverage, Dark Background Only */
#enhancedLightbox,
.enhanced-lightbox {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.98) !important; /* Very dark, no white */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    backdrop-filter: none !important; /* No blur */
    -webkit-backdrop-filter: none !important;
}

/* Container - Responsive & Centered, No Blur */
.enhanced-lightbox-container {
    z-index: 100000 !important;
    position: relative !important;
    max-width: 95% !important;
    max-height: 95vh !important;
    display: flex !important;
    flex-direction: column !important;
    transform: scale(1) !important;
    opacity: 1 !important;
    background: transparent !important; /* No white background */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Image Container - Sharp & Centered, No White/Blur */
.enhanced-lightbox-img-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    background-color: rgba(0, 0, 0, 0.1) !important; /* Dark subtle bg */
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important; /* Dark shadow */
    margin: 20px 0 !important;
    filter: none !important; /* No filters */
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Lightbox Image - Always Sharp, No Blur */
.enhanced-lightbox-image,
.lightbox-image,
.product-lightbox-image,
.gallery-page-lightbox-image {
    max-width: 95% !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important; /* Darker shadow */
    image-rendering: auto !important;
    image-rendering: -webkit-optimize-contrast !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    will-change: auto !important;
    transition: transform 0.3s ease !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Zoom Effect - Smooth Without Blur or White */
.enhanced-lightbox-image.zoom-effect {
    animation: zoomInOut 8s infinite alternate ease-in-out !important;
    transform-origin: center center !important;
    filter: none !important;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Close Button - HIGHLY VISIBLE, Fixed Top-Right, Large Red X */
.enhanced-lightbox-close,
.lightbox-close,
.product-lightbox-close,
.gallery-page-lightbox-close {
    display: none !important;
    position: fixed !important; /* Fixed to viewport */
    top: 20px !important; /* Top of screen */
    right: 20px !important; /* Right of screen */
    z-index: 100001 !important; /* Highest priority */
    width: 60px !important; /* Larger for visibility */
    height: 60px !important;
    background-color: #e31e26 !important; /* Bright red */
    color: #ffffff !important; /* White X */
    border: 4px solid #ffffff !important; /* Thick white border */
    border-radius: 50% !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important; /* Large X */
    font-weight: bold !important;
    opacity: 1 !important; /* Always fully visible */
    visibility: visible !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 25px rgba(227, 30, 38, 0.6) !important; /* Red glow, no white */
    pointer-events: auto !important;
    text-shadow: none !important; /* Clean X */
}

.enhanced-lightbox-close:hover,
.lightbox-close:hover,
.product-lightbox-close:hover,
.gallery-page-lightbox-close:hover {
    background-color: #ffffff !important; /* White on hover for contrast */
    color: #e31e26 !important; /* Red X on white */
    transform: scale(1.2) rotate(90deg) !important;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4) !important; /* White glow */
}

/* Navigation Arrows - VISIBLE Gold Circles on Sides */
.enhanced-lightbox-nav,
.lightbox-nav,
.product-lightbox-nav,
.gallery-page-lightbox-nav {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 70px !important; /* Larger */
    height: 70px !important;
    background-color: #c9a74f !important; /* Gold */
    color: #ffffff !important;
    border: 4px solid #ffffff !important; /* Thick border */
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important; /* Large arrows */
    z-index: 100001 !important;
    opacity: 1 !important; /* Always visible */
    visibility: visible !important;
    box-shadow: 0 8px 25px rgba(201, 167, 79, 0.6) !important; /* Gold glow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: auto !important;
}

.enhanced-lightbox-nav.prev,
.lightbox-nav.prev,
.product-lightbox-nav.prev,
.gallery-page-lightbox-nav.prev {
    left: 30px !important; /* Further from edge */
}

.enhanced-lightbox-nav.next,
.lightbox-nav.next,
.product-lightbox-nav.next,
.gallery-page-lightbox-nav.next {
    right: 100px !important; /* Space from close button */
}

.enhanced-lightbox-nav:hover,
.lightbox-nav:hover,
.product-lightbox-nav:hover,
.gallery-page-lightbox-nav:hover {
    background-color: #e31e26 !important; /* Red on hover */
    transform: translateY(-50%) scale(1.2) !important;
    box-shadow: 0 10px 30px rgba(227, 30, 38, 0.6) !important;
}

/* Counter - VISIBLE Bottom-Right */
.enhanced-lightbox-counter,
.lightbox-counter,
.product-lightbox-counter,
.gallery-page-lightbox-counter {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: linear-gradient(135deg, #e31e26, #c9a74f) !important; /* Red-to-gold */
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-size: 18px !important; /* Larger text */
    font-weight: bold !important;
    z-index: 100001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    border: 2px solid #ffffff !important;
    min-width: 80px !important;
    text-align: center !important;
    display: block !important;
}

/* Overlay - Dark Only, Clickable Close */
.enhanced-lightbox-overlay,
.lightbox-overlay,
.product-lightbox-overlay,
.gallery-page-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.98) !important; /* Pure dark, no white */
    z-index: 99998 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    backdrop-filter: none !important; /* No blur */
    -webkit-backdrop-filter: none !important;
}

/* Details - Dark Background, High Contrast */
.enhanced-lightbox-details,
.lightbox-details,
.product-lightbox-details,
.gallery-page-lightbox-details {
    color: #ffffff !important;
    padding: 20px !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(0, 0, 0, 0.7) !important; /* Dark bg, no white */
    border-radius: 8px !important;
    margin-top: 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.enhanced-lightbox-title,
.lightbox-title,
.product-lightbox-title,
.gallery-page-lightbox-title {
    font-size: 1.8rem !important;
    margin: 0 0 10px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important; /* Dark shadow for contrast */
}

.enhanced-lightbox-category,
.lightbox-category,
.product-lightbox-category,
.gallery-page-lightbox-category {
    font-size: 1rem !important;
    color: #c9a74f !important; /* Gold for visibility */
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Mobile Optimizations - Larger Controls */
@media (max-width: 768px) {
    .enhanced-lightbox-close,
    .lightbox-close,
    .product-lightbox-close,
    .gallery-page-lightbox-close {
        top: 15px !important;
        right: 15px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
    }
    
    .enhanced-lightbox-nav,
    .lightbox-nav,
    .product-lightbox-nav,
    .gallery-page-lightbox-nav {
        width: 65px !important;
        height: 65px !important;
        font-size: 24px !important;
    }
    
    .enhanced-lightbox-nav.prev,
    .lightbox-nav.prev,
    .product-lightbox-nav.prev,
    .gallery-page-lightbox-nav.prev {
        left: 20px !important;
    }
    
    .enhanced-lightbox-nav.next,
    .lightbox-nav.next,
    .product-lightbox-nav.next,
    .gallery-page-lightbox-nav.next {
        right: 80px !important;
    }
    
    .enhanced-lightbox-counter,
    .lightbox-counter,
    .product-lightbox-counter,
    .gallery-page-lightbox-counter {
        bottom: 20px !important;
        right: 20px !important;
        font-size: 16px !important;
        padding: 10px 15px !important;
        min-width: 70px !important;
    }
    
    .enhanced-lightbox-esc-hint {
        top: 15px !important;
        left: 15px !important;
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
    
    /* Prevent image overflow on mobile */
    .enhanced-lightbox-image,
    .lightbox-image,
    .product-lightbox-image,
    .gallery-page-lightbox-image {
        max-height: 80vh !important;
    }
    
    @media (max-width: 480px) {
        .enhanced-lightbox-counter,
        .lightbox-counter,
        .product-lightbox-counter,
        .gallery-page-lightbox-counter {
            display: none !important;
        }
        
        .enhanced-lightbox-esc-hint {
            font-size: 10px !important;
            padding: 5px 10px !important;
            top: 10px !important;
            left: 10px !important;
        }
    }
}

/* Fallback Styles - Ensure Visibility */
#enhancedLightbox:not(.active) {
    display: none !important;
}

/* Global No-Blur Rules */
.enhanced-lightbox *,
.lightbox *,
.product-lightbox *,
.gallery-page-lightbox * {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important; /* No white backgrounds */
}

/* Remove Debug Border */
.enhanced-lightbox-container {
    border: none !important; /* Remove temporary border */
}