.img-smart-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
	border-radius: 15px;
    /* Fixed portrait height — adjust as needed */
    display: flex;
    justify-content: center;
}

/* Blurred background layer — hidden by default */
.img-smart-wrapper .img-bg-blur {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.7);
    transform: scale(1.15); /* hide blur edges */
    z-index: 0;
}

/* Main image */
.img-smart-wrapper .img-main {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    width: 100%;
}

/* When landscape is detected */
.img-smart-wrapper.is-landscape .img-bg-blur {
    display: block;
}

.img-smart-wrapper.is-landscape .img-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
}