.preview-detail {
    top: 46%;
    transition: .3s ease-in-out all;
}
.preview-content:hover .preview-detail {
    top: 0;
}
.preview-detail::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(180deg, rgba(197, 185, 172, 0) 0%, rgba(197, 185, 172, 0.803466) 35%, #B19C86 50%);
    transition: .3s ease-in-out all;
}
.preview-content:hover .preview-detail::before {
    opacity: 0.73;
    background: linear-gradient(180deg, rgba(177, 156, 134, 0) 2%, rgba(177, 156, 134, 0.584) 37.37%, rgba(75, 66, 57, 0.73) 100%);
}

/* popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 2rem;
}

.popup-content {
    max-width: 100%;
    max-height: 100%;
}

.popup-gallery .swiper-wrapper {
    max-height: 490px;
}
.popup-gallery .swiper-slide {
    width: 100% !important;
}
.popup-gallery .swiper-slide img {
    object-fit: cover;
    object-position: center;
    height: 28rem;
    width: 100%;
}

.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    border: none;
}

@media screen and (min-width: 640px) {
    .popup-content {
        max-height: 490px;
        max-width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    .popup-content {
        max-height: 490px;
        max-width: 992px;
    }
}