.bp-gallery-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px;
}

.bp-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}


.bp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
    justify-items: center;
    margin-top: 40px;
}

.bp-item{
    width:100%;
    max-width:420px;
    position:relative;
}

.bp-item img{
    display:block;
    width:100%;
    height:auto;
    border-radius:18px;
}

.bp-gallery-full {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.bp-gallery-page {
    max-width: 1600px;
    margin: 0 auto;
}

.bp-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bp-item{
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.bp-item img{
    display:block;
    width:100%;
}

.bp-overlay{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}

.bp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: #fff;

    opacity: 0;
    transition: .3s;
    padding: 30px;
}

.bp-item:hover .bp-overlay{
    opacity:1;
}

.bp-overlay span{
    font-size:28px;
    font-weight:700;
    margin-bottom:8px;
}

.bp-overlay small{
    display:block;
    font-size:18px;
    line-height:1.7;
    margin-bottom:18px;
}

.bp-overlay p{
    margin:18px 0 25px;
    font-size:18px;
    line-height:1.6;
    max-width:80%;
}

.bp-overlay a{
    display:inline-block;
    padding:14px 28px;
    background:#d4a03b;
    color:#fff;
    text-decoration:none;
    border-radius:40px;
    font-weight:700;
    font-size:18px;
    transition:.25s;
}

.bp-overlay a:hover{
    background:#b88424;
    color:#fff;
    transform:translateY(-2px);
}

.bp-title{
    font-size:30px;
    font-weight:700;
    color:#fff;
    margin-bottom:10px;
}

.bp-fabric{
    font-size:20px;
    color:#fff;
    margin-bottom:8px;
}

.bp-author{
    font-size:18px;
    color:#fff;
    margin-bottom:20px;
}

.bp-overlay hr{
    width:70%;
    border:0;
    border-top:1px solid rgba(255,255,255,.4);
    margin:18px 0;
}

.bp-review{
    color:#fff;
    font-size:18px;
    line-height:1.6;
    max-width:85%;
    margin-bottom:30px;
}

.bp-button{
    display:inline-block;
    background:#d4a03b;
    color:#fff !important;
    text-decoration:none;
    padding:14px 32px;
    border-radius:40px;
    font-weight:700;
    font-size:18px;
    transition:.25s;
}

.bp-button:hover{
    background:#b88424;
    color:#fff !important;
    transform:translateY(-2px);
}

.bp-overlay .bp-button{
    display:inline-block !important;
    background:#d4a03b !important;
    color:#fff !important;
    padding:14px 30px !important;
    border-radius:40px !important;
    text-decoration:none !important;
    font-size:18px !important;
    font-weight:700 !important;
    border:none !important;
}

/* ===== Карточка ===== */

.bp-item {
    position: relative;
    overflow: hidden;
}

.bp-overlay {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Заголовок */

.bp-title {
    margin-bottom: 12px;
}

/* Отзыв */

.bp-review {
    flex: 1;
    overflow: hidden;
    position: relative;

    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;

    line-height: 1.6;
}

/* затемнение снизу */

.bp-review:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0),
        rgba(0,0,0,.9));
}

/* Кнопка */

.bp-button {
    margin-top: 25px;
    flex-shrink: 0;
}


/* ==========================
   Popup
========================== */

.bp-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.82);
    z-index:99999;
}

.bp-modal.active{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.bp-modal-window{
    background:#fff;
    max-width:1200px;
    width:100%;
    max-height:90vh;
    overflow:auto;
    border-radius:18px;
    display:grid;
    grid-template-columns:55% 45%;
    gap:40px;
    position:relative;
}

.bp-modal-photo img{
    width:100%;
    display:block;
}

.bp-modal-info{
    padding:40px 40px 30px;
}

.bp-modal-title{
    font-size:34px;
    font-weight:700;
    margin-bottom:8px;
}

.bp-modal-fabric{
    color:#999;
    margin-bottom:15px;
}

.bp-modal-author{
    font-weight:600;
    margin-bottom:25px;
}

.bp-modal-review{
    font-size:18px;
    line-height:1.8;
    margin-bottom:35px;
}

.bp-modal-button{
    display:inline-block;
    background:#d8a533;
    color:#fff!important;
    padding:16px 34px;
    border-radius:40px;
    text-decoration:none;
    font-size:18px;
    transition:.2s;
}

.bp-modal-button:hover{
    background:#bf9127;
}

.bp-modal-close{
    position:absolute;
    right:20px;
    top:10px;
    font-size:42px;
    cursor:pointer;
    line-height:1;
}

@media(max-width:900px){

.bp-modal-window{

grid-template-columns:1fr;

}

.bp-modal-info{

padding:25px;

}

}