.wag-minifoto-block {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    background-color: #506b75; /* Цвет по умолчанию, если фоновое изображение не выбрано */
}

.wag-minifoto-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.wag-minifoto-overlay {
    margin: 0 auto;
    width: 400px;
    height: 100%;
    background: rgba(80, 107, 117, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wag-minifoto-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.wag-minifoto-profile {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 20px;
}

.wag-minifoto-info {
    margin-bottom: 25px;
}

.wag-minifoto-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
}

.wag-minifoto-profession {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    opacity: 0.9;
}

.wag-minifoto-button {
    display: inline-block;
    color: #3b5762;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wag-minifoto-button:hover .back-svg{
  fill: #95C4D6;
  filter: url(#filter0_ii_687_4592);
  transition: all 0.3s ease;
}

.wag-minifoto-button:active .back-svg {
  fill: #6A99AB;
  filter: url(#filter0_iii_687_4594);
  transition: all 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wag-minifoto-block {
        height: auto;
    }

    .wag-minifoto-overlay {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px 0;
    }
}