/* Provider Archive Styles */

.puntr-provider-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.puntr-provider-item:last-child {
    border-bottom: none;
}

.puntr-provider-info {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.6;
}

.puntr-provider-info .puntr-headline {
    font-style: italic;
    color: #666;
    margin: 10px 0;
}

.puntr-provider-info .puntr-attributes {
    margin: 8px 0;
    color: #555;
}

.puntr-provider-info .puntr-services,
.puntr-provider-info .puntr-pricing {
    margin: 8px 0;
    color: #333;
}

.puntr-provider-info strong {
    font-weight: 600;
    color: #1e2938;
}

/* Product-style Gallery */
.puntr-product-gallery {
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    flex-direction: column;
    max-width: 800px;
}

@media (min-width: 768px) {
    .puntr-product-gallery {
        flex-direction: row;
    }
}

.puntr-gallery-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.puntr-main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

.puntr-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

@media (min-width: 768px) {
    .puntr-gallery-thumbs {
        flex-direction: column;
        width: 120px;
        overflow-x: visible;
        overflow-y: auto;
        max-height: 600px;
    }
}

.puntr-thumb-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f5f5f5;
}

@media (min-width: 768px) {
    .puntr-thumb-item {
        width: 100%;
        height: 100px;
    }
}

.puntr-thumb-item:hover {
    border-color: #ddd;
}

.puntr-thumb-item.active {
    border-color: #2271b1;
}

.puntr-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .puntr-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .puntr-provider-info {
        font-size: 13px;
    }
    
    .puntr-provider-info .puntr-attributes {
        font-size: 12px;
    }
}

/* Lightbox overlay for gallery */
.puntr-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.puntr-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.puntr-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: rgba(255,255,255,0.1);
    border: 2px solid #fff;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 15px;
    line-height: 1;
    transition: all 0.3s;
    border-radius: 4px;
}

.puntr-lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .puntr-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        padding: 5px 10px;
    }
    
    .puntr-gallery-thumbs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .puntr-gallery-thumbs::-webkit-scrollbar {
        height: 6px;
    }
    
    .puntr-gallery-thumbs::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .puntr-gallery-thumbs::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
}