@media (min-width: 992px) and (max-height: 850px) {
    .cards-stack-container {
        padding-bottom: 80px;
    }

    .it_services_wrapper {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .it_services_wrapper p {
        font-size: 20px;
        padding-top: 12px;
        line-height: 1.35;
    }

    .card-wrapper {
        padding-top: 12px;
    }

    .it_service_card {
        padding: 34px 42px;
        border-radius: 36px;
    }

    .it_service_img img {
        width: 86px;
        height: auto;
    }

    .it_service_content h3 {
        margin: 8px 0;
        line-height: 1.3;
    }

    .it_service_content p {
        line-height: 1.4;
        padding-bottom: 18px;
    }

    .service_tagline h4 {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* GITEX 2025 gallery masonry */
.meet_expo_grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.02fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 0.8vw, 15px);
    max-width: 1932px;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1932 / 956;
}

.grid_item {
    min-width: 0;
    min-height: 0;
}

.grid_item img {
    display: block;
    object-position: center;
}

.item_3.tall img {
    object-fit: contain;
    background-color: var(--bg_primary);
}

.item_3.tall:hover img {
    transform: none;
}

@media (max-width: 991px) {
    .meet_expo_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        aspect-ratio: auto;
    }

    .item_3.tall {
        grid-column: 1 / span 2;
        grid-row: auto;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .item_1,
    .item_2,
    .item_4,
    .item_5 {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1 / 1;
        height: auto;
    }
}

@media (max-width: 767px) {
    .meet_expo_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .item_3.tall,
    .item_1,
    .item_2,
    .item_4,
    .item_5 {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 1 / 1;
        height: auto;
    }
}
