.emls-gallery-more-images-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
}

.emls-gallery-more-images-btn .emls-gallery-more-icon {
    display: inline-flex;
    align-items: center;
    transition: color 0.3s, fill 0.3s, font-size 0.3s;
}

.emls-gallery-more-images-btn svg {
    transition: fill 0.3s, width 0.3s, height 0.3s;
}

.emls-gallery-more-images-btn:hover {
    opacity: 0.85;
}

.emls-gallery-resort {
    display: grid;
    gap: var(--emls-resort-gap, 10px);
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: var(--emls-resort-row-height, 210px);
}

.emls-gallery-resort .emls-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--emls-resort-radius, 12px);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    /* Override generic .emls-gallery-item aspect‑ratio box so
       resort items line up flush with the CSS grid rows/columns */
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0;
    width: 100%;
    height: 100%;
}

.emls-gallery-resort .emls-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.emls-gallery-resort .emls-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: var(--emls-resort-object-fit, cover);
    border-radius: var(--emls-resort-radius, 12px);
    display: block;
    background: #eaeaea;
}

.emls-gallery-resort .emls-gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.emls-gallery-resort .emls-gallery-item:nth-child(n+2) {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 1024px) {
    .emls-gallery-resort {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: var(--emls-resort-row-height, 180px);
    }
    .emls-gallery-resort .emls-gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .emls-gallery-resort {
        grid-template-columns: 1fr;
        grid-auto-rows: var(--emls-resort-row-height, 180px);
    }
    .emls-gallery-resort .emls-gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

.emls-more-button-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: absolute;
    bottom: var(--emls-more-btn-bottom, 10px);
    right: var(--emls-more-btn-right, 10px);
    z-index: 500;
    width: 100%;
    pointer-events: none;
}

.emls-gallery-more-images-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, color 0.2s;
}

.emls-gallery-more-images-btn .emls-gallery-more-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.emls-gallery-more-images-btn:hover {
    background: #222;
    color: #fff;
}

.elementor-editor-active .emls-gallery-resort {
    min-height: 300px;
}





