/* Карточка */
.masonry-item {
    display: block;
    cursor: pointer;
}

/* Внутренний контейнер */
.masonry-inner {
    position: relative;
    overflow: hidden;
    border: 2px solid var(--awan-color-weis);
    border-radius: 10px;
    transition: transform .3s ease;
    z-index: 2;
}

/* Эффект подъёма */
.masonry-inner:hover {
    transform: translateY(-6px);
}

/* Картинка — изначально полупрозрачная */
.masonry-inner img {
    width: 100%;
    display: block;
    opacity: 0.6;
    transition: opacity .3s ease, transform .3s ease;
}

/* При наведении — полностью видимая и слегка увеличенная */
.masonry-inner:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Overlay */
.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s ease;
}

/* Появление overlay */
.masonry-inner:hover .overlay {
    opacity: 1;
}

/* Контент внутри overlay */
.overlay-content {
    text-align: center;
    color: var(--awam-color-rosa);
    transform: translateY(40px);
    transition: transform .3s ease;
}

/* Иконка + */
.overlay-content::before {
    content: "+";
    font-size: 32px;
    font-weight: 600;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0, 0.3);
    color: var(--awam-color-rosa);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px auto;
    padding-bottom: 8px;
    backdrop-filter: blur(3px);
    transition: transform .3s ease, background .3s ease;
}

/* Подъём текста */
.masonry-inner:hover .overlay-content {
    transform: translateY(0);
}

/* Текст */
/* ----------------------------- */
/* ДОБАВЛЕНО: подпись снизу */
/* ----------------------------- */

.thumb-title {
    position: absolute;
    bottom: -45px; /* спрятано */
    left: 0;
    width: 100%;
    padding: 8px 10px;
    background: var(--awan-color-weis);
    color: var(--awam-color-rosa);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: bottom .3s ease;
    z-index: 3; /* поверх картинки, но под overlay */
}
.thumb-title-bottom{
    margin: 15px 0 25px 0;
    text-align: center;
    font-family: var(--awam-font-galery);
    font-size: 26px;
}
/* При наведении — выезжает вверх */
.masonry-inner:hover .thumb-title {
    bottom: 0;
}

/* Fade-анимации модалки */
.modal .fade-out {
    opacity: 0;
    transition: opacity .15s ease;
}

.modal .fade-in {
    opacity: 1;
    transition: opacity .15s ease;
}
/*карточка walkthrough*/
.awam-walkthrough-img{
    min-height: 160px;
    background-size: 80px 80px !important;
}
.modal-backdrop.show {
    opacity: 0.9 !important;
    background-color: #000 !important;
}
/*размер модального окна*/
.modal-lg {
    max-width: 65% !important;
}

/* Планшеты (до ~992px) */
@media (max-width: 991.98px) {
    .modal-lg {
        max-width: 75% !important;
    }
}

/* Мобильные устройства (до ~576px) */
@media (max-width: 575.98px) {
    .modal-lg {
        max-width: 95% !important;
    }
}
/*end размер модального окна*/
.text-modalTitle{
    font-family: var(--awam-font-menu);
    font-size: 2rem;
}
.text-thrumb-title{
    font-family: var(--awam-font-p);
    font-size: 1.1rem;
}
.bg-modal-content{
    overflow: hidden;
}
.bg-modal-content img{
    border-radius: 8px 8px 0 0;
    padding-right: 1px;
    object-fit: cover;
}
