/*
Theme Name: Egyminerals
Theme URI:https://wemavo.com/
Author: Amel Elreedy
*/

.orange{ color: #fd5523;}
.white{ color:#fff;}
.bold{ font-weight: bold;}
.certificate-card{
    overflow:hidden;
    border-radius:12px;
}

.certificate-img{
    width:100%;
    height:350px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    transition:.3s ease;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.certificate-img:hover{
    transform:translateY(-5px);
}

.image-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.popup-image{
    max-width:90%;
    max-height:90%;
    border-radius:12px;
    box-shadow:0 0 30px rgba(255,255,255,.15);
}

.close-btn{
    position:absolute;
    top:20px;
    right:30px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    z-index:1000000;
}

.close-btn:hover{
    background:rgba(255,255,255,.3);
}
.portfolio-carousel {
    max-width: 1100px;
    margin: 0 auto;
}
.orange{ color: #fd5523;}
.white{ color:#fff;}
.bold{ font-weight: bold;}
.certificate-card{
    overflow:hidden;
    border-radius:12px;
}

.certificate-img{
    width:100%;
    height:350px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    transition:.3s ease;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.certificate-img:hover{
    transform:translateY(-5px);
}

.image-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.popup-image{
    max-width:90%;
    max-height:90%;
    border-radius:12px;
    box-shadow:0 0 30px rgba(255,255,255,.15);
}

.close-btn{
    position:absolute;
    top:20px;
    right:30px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:32px;
    line-height:1;
    cursor:pointer;
    z-index:1000000;
}

.close-btn:hover{
    background:rgba(255,255,255,.3);
}
.portfolio-carousel {
    max-width: 1100px;
    margin: 0 auto;
}
/* ── Product Photo Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.gallery-overlay i {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.fancybox__nav .carousel__button {
    background: rgba(0,0,0,.6);
    border-radius: 50%;
}