/* OneHira Product Gallery with Swiper Carousel */

.onehira-product-gallery {
    max-width: 100%;
    margin: 0 auto;
}

/* Main Image Slider */
.onehira-product-gallery .gallery-main-swiper {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.onehira-product-gallery .gallery-main-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.onehira-product-gallery .gallery-main-image:hover {
    transform: scale(1.02);
}

/* Swiper Navigation Buttons */
.onehira-product-gallery .swiper-button-next,
.onehira-product-gallery .swiper-button-prev {
    color: #4f46e5;
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.onehira-product-gallery .swiper-button-next:hover,
.onehira-product-gallery .swiper-button-prev:hover {
    background: #ffffff;
}

/* Thumbnail Slider */
.onehira-product-gallery .gallery-thumbs-swiper {
    width: 100%;
    height: 110px;
}

.onehira-product-gallery .gallery-thumbs-swiper .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100px;
}

.onehira-product-gallery .gallery-thumbs-swiper .swiper-slide:hover {
    opacity: 0.8;
}

.onehira-product-gallery .gallery-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #4f46e5;
}

.onehira-product-gallery .gallery-thumb-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    background: #ffffff;
}

/* Lightbox */
.onehira-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onehira-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.onehira-lightbox .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10000;
}

.onehira-lightbox .lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    padding: 20px;
}

.onehira-lightbox .lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #111827;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onehira-lightbox .lightbox-close:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

.onehira-lightbox .lightbox-prev,
.onehira-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #111827;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onehira-lightbox .lightbox-prev {
    left: 20px;
}

.onehira-lightbox .lightbox-next {
    right: 20px;
}

.onehira-lightbox .lightbox-prev:hover,
.onehira-lightbox .lightbox-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .onehira-product-gallery .gallery-thumb-image {
        height: 80px;
    }
    
    .onehira-lightbox .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .onehira-lightbox .lightbox-prev,
    .onehira-lightbox .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .onehira-lightbox .lightbox-prev {
        left: 10px;
    }
    
    .onehira-lightbox .lightbox-next {
        right: 10px;
    }
}

/* Certificate Lightbox overrides */
.onehira-lightbox--certs .lightbox-content {
    max-width: 80%;
    max-height: 80%;
}

.onehira-lightbox--certs .lightbox-image {
    max-height: 80vh;
}

.onehira-lightbox--certs .lightbox-close {
    top: -10px;
    right: -50px;
    background: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 36px;
}

.onehira-lightbox--certs .lightbox-close:hover {
    background: none;
    color: #ffffff;
    transform: none;
}

.onehira-lightbox--certs .lightbox-prev,
.onehira-lightbox--certs .lightbox-next {
    z-index: 10001;
    background: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 48px;
}

.onehira-lightbox--certs .lightbox-prev:hover,
.onehira-lightbox--certs .lightbox-next:hover {
    background: none;
    color: #ffffff;
}

.onehira-lightbox--certs .lightbox-prev {
    left: 20px;
}

.onehira-lightbox--certs .lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .onehira-lightbox--certs .lightbox-prev,
    .onehira-lightbox--certs .lightbox-next {
        font-size: 36px;
    }

    .onehira-lightbox--certs .lightbox-prev {
        left: 10px;
    }
    
    .onehira-lightbox--certs .lightbox-next {
        right: 10px;
    }
}

/* ========================================
   Certifications Grid
   ======================================== */

.onehira-certifications {
    margin: 2rem 0;
}

.onehira-certifications h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.onehira-certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.onehira-cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.onehira-cert-item:hover {
    background: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.onehira-cert-image {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.onehira-cert-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.3;
    word-break: break-word;
}

/* Responsive - Certifications */
@media (max-width: 640px) {
    .onehira-certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.75rem;
    }
    
    .onehira-cert-item {
        padding: 0.75rem;
    }
    
    .onehira-cert-image {
        max-width: 60px;
        max-height: 45px;
    }
    
    .onehira-cert-title {
        font-size: 0.7rem;
    }
}
