.roomify-style-gallery-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding:80px 0;
}

.roomify-style-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.roomify-style-gallery-card {
    margin: 0;
}

.roomify-style-gallery-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 2px;
    cursor: default;
}

.roomify-style-gallery-image-wrap button{
    background: transparent !important;
    border: none !important;
}

.roomify-style-gallery-image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.roomify-style-gallery-image-wrap::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(0, 0, 0, .58), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.roomify-style-gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.roomify-style-gallery-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #d6d6d6);
}

.roomify-style-gallery-card:hover .roomify-style-gallery-image-wrap img {
    transform: scale(1.03);
}

.roomify-style-gallery-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    font-style: normal;
    text-decoration: none !important;
    color: #fff !important;
    text-align: left;
    letter-spacing: .01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.roomify-style-gallery-empty {
    font-size: 16px;
    color: #666;
}

.roomify-style-gallery-pagination {
    margin-top: 28px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.roomify-style-gallery-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    background: #fff;
}

.roomify-style-gallery-pagination .page-numbers.current {
    background: #222;
    color: #fff;
    border-color: #222;
}

.roomify-style-gallery-pagination .page-numbers:hover {
    border-color: #222;
}

.roomify-style-gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 28px;
}

.roomify-style-gallery-lightbox.is-open {
    display: flex;
}

.roomify-style-gallery-lightbox img {
    max-width: min(96vw, 1600px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.roomify-style-gallery-lightbox-close {
   position: absolute;
    top: 14px;
    right: 18px;
    border: none !important;
    background: transparent;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1;
    cursor: pointer !important;
    z-index: 2;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
}

.roomify-style-gallery-lightbox-prev,
.roomify-style-gallery-lightbox-next {
   position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none !important;
    background: rgba(0, 0, 0, .35);
    color: #fff !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 34px !important;
    line-height: 1;
    cursor: pointer !important;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.roomify-style-gallery-lightbox-prev {
    left: 16px;
}

.roomify-style-gallery-lightbox-next {
    right: 16px;
}

.roomify-style-gallery-lightbox-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 16px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

@media (max-width:1024px) {
    .roomify-style-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width:640px) {
    .roomify-style-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .roomify-style-gallery-lightbox-prev,
    .roomify-style-gallery-lightbox-next {
        width: 38px;
        height: 56px;
        font-size: 28px;
    }
}