/* Feature Card Gallery UI */
html, body {
    overflow-x: hidden !important;
}
.gallery-elite-section {
    padding: 80px 0 100px;
    background: #f8faff;
}

.gallery-custom-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    width: 100%;
}

@media (max-width: 768px) {
    .gallery-custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-custom-grid-item {
    width: 100%;
    overflow: hidden;
}

/* Cycle of 7 items to match the image pattern */
.gallery-custom-grid-item:nth-child(7n+1) { grid-column: span 3; }
.gallery-custom-grid-item:nth-child(7n+2) { grid-column: span 3; }
.gallery-custom-grid-item:nth-child(7n+3) { grid-column: span 2; }
.gallery-custom-grid-item:nth-child(7n+4) { grid-column: span 2; }
.gallery-custom-grid-item:nth-child(7n+5) { grid-column: span 2; }
.gallery-custom-grid-item:nth-child(7n+6) { grid-column: span 3; }
.gallery-custom-grid-item:nth-child(7n+0) { grid-column: span 3; }

@media (max-width: 768px) {
    .gallery-custom-grid-item:nth-child(n) {
        grid-column: span 1 !important;
    }
}

.gallery-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
    transition: all 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Pagination */
.room-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.room-pagination a, .room-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #e1e8f0;
    color: #0d2944;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.room-pagination a:hover, .room-pagination span.current {
    background: #008ed2;
    color: #fff;
    border-color: #008ed2;
}

.room-pagination a.next {
    width: auto;
    padding: 0 20px;
}