/* ========================================
   Company Gallery Styles
   ======================================== */

/* Gallery Slider Wrapper */
.pcd-gallery-slider-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
}

/* Swiper Container */
.pcd-gallery-slider {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Swiper Slide */
.pcd-gallery-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.pcd-gallery-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Arrows */
.pcd-gallery-slider .swiper-button-next,
.pcd-gallery-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.pcd-gallery-slider .swiper-button-next:hover,
.pcd-gallery-slider .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.pcd-gallery-slider .swiper-button-next:after,
.pcd-gallery-slider .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination Dots */
.pcd-gallery-slider .swiper-pagination {
    bottom: 20px;
}

.pcd-gallery-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.pcd-gallery-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Grid Layout */
.pcd-gallery-grid {
    margin: 40px 0;
}

.pcd-gallery-grid .pcd-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pcd-gallery-grid .pcd-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pcd-gallery-grid .pcd-gallery-item img {
    transition: transform 0.3s ease;
}

.pcd-gallery-grid .pcd-gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Link Cursor */
.pcd-gallery-slider a,
.pcd-gallery-grid a {
    cursor: zoom-in;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pcd-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .pcd-gallery-slider .swiper-button-next,
    .pcd-gallery-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .pcd-gallery-slider .swiper-button-next:after,
    .pcd-gallery-slider .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .pcd-gallery-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px !important;
    }
    
    .pcd-gallery-slider-wrapper {
        margin: 20px 0;
    }
    
    .pcd-gallery-slider {
        border-radius: 8px;
    }
    
    .pcd-gallery-slider .swiper-button-next,
    .pcd-gallery-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .pcd-gallery-slider .swiper-pagination {
        bottom: 10px;
    }
    
    .pcd-gallery-slider .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .pcd-gallery-slider .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* Loading Animation */
.pcd-gallery-slider-wrapper.loading:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Empty Gallery Message */
.pcd-gallery-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.pcd-gallery-empty p {
    margin: 0;
    font-size: 16px;
}
