.sandblast-wrapper{
    margin:0 auto;
    padding:0 6px;
}
.sandblast-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin:20px 0;
}
/* Если карточек нечётное количество &mdash; последняя по центру */
.sandblast-item:last-child:nth-child(odd){
    grid-column:1 / span 2;
    justify-self:center;
    width:calc(50% - 10px);
}
.sandblast-item{
    text-align:center;
}
.sandblast-item img{
    width:100%;
    height:auto;
    display:block;
    border-radius:10px;
    cursor:pointer;
    transition:transform .2s ease;
}
.sandblast-item:hover img{
    transform:scale(1.02);
}
@media (max-width:768px){
    .sandblast-grid{
        grid-template-columns:1fr;
    }

    .sandblast-item:last-child:nth-child(odd){
        grid-column:auto;
        width:auto;
        justify-self:stretch;
    }
}

/* Popup */
.sandblast-popup{
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    display:none;
    justify-content:center;
    align-items:center;
    padding:20px;
    z-index:99999;
    box-sizing:border-box;
}
.sandblast-popup.active{
    display:flex;
}
.sandblast-popup img{
    max-width: 100%;
    max-height: 85vh;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 20px 60px rgba(0,0,0,.18),
        0 2px 10px rgba(0,0,0,.08);

    opacity:1;
    transition:opacity .25s ease;
}
.sandblast-popup img.fade{
    opacity:0;
}
.sandblast-close{
    position:absolute;
    top:12px;
    right:12px;
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
    color:#222;
    background:#fff;
    border-radius:50%;
    cursor:pointer;
}
.sandblast-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:100000;
    border-radius:50%;
    background:rgba(255,255,255,.95);
    color:#000;
    font-size:36px;
    font-weight:700;
    line-height:1;
    box-shadow:
        0 6px 16px rgba(0,0,0,.18),
        inset 0 0 0 1px rgba(0,0,0,.05);
    transition:.2s;
}
.sandblast-arrow span{
    transform:translateY(-1px);
}
.sandblast-prev{ left:12px; }
.sandblast-next{ right:12px; }
.sandblast-arrow:hover{
    transform:translateY(-50%) scale(1.08);
}
@media (max-width:640px){
    .sandblast-arrow{
        top:auto;
        bottom:10px;
        transform:none;
        font-size:30px;
    }
    .sandblast-prev{ left:16px; }
    .sandblast-next{ right:16px; }
    .sandblast-arrow:hover{
        transform:scale(1.08);
    }
}
/* кнопка перехожда в каталог */
.photo-print-catalog-link{
    margin:12px 0 16px;
    text-align:center;
}
.photo-print-catalog-link a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 24px;
    border-radius:8px;
    background:#f5f5f5;
    border:1px solid #ddd;
    color:#00457E;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    transition:.2s;
}
.photo-print-catalog-link a:hover{
    background:#eeeeee;
}
@media(max-width:640px){

    .photo-print-catalog-link{
        margin:12px 0 16px;
    }

    .photo-print-catalog-link a{
        width:100%;
        box-sizing:border-box;
        padding:12px 10px;
        font-size:15px;
    }

}