.insta-section {
    padding: 60px 0;
    background-color: #fff;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /* max-width: 900px; */
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    cursor: pointer;
}

.main-img,
.sub-images img {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square images */
    object-fit: cover;
    /* border-radius: 8px; */
}

.sub-images {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gallery-item.active .sub-images {
    display: grid;
}

/* Overlay for hover like Instagram */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: #fff;
    font-size: 22px;
    position: absolute;
    right: 13px;
    top: 5px;
}

.video_box {
    width: 100%;
    height: 100%;
}

@media (max-width: 767.78px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
        border-radius: 0;
    }

    .main-img,
    .sub-images img {
        width: auto !important;
        height: 180px !important;
        aspect-ratio: 1/1;
        object-fit: cover;
        /* border-radius: 8px; */
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;

    }


}

.links {
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    margin-top: 10px;
    background-color: #000;
    color: #fff;
    border-radius: 0 10px 0 10px;
    padding: 4px 22px;
    margin-bottom: 2rem;
}

.links:hover {
    color: #fff;
    background-color: rgb(32, 0, 0);
    transition: 0.4s all ease;

}

.grid_box_new_type h2 {
    text-align: center;
    font-weight: 600;

}

.grid_box_new_type a h6 {
    margin: 10px 0 40px 0;
    padding: 0;
    font-size: 25px;
}
.insta-section h5 {
    font-size: 67px;
    font-family: 'Playfair Display', serif;
    /* margin-bottom: 30px; */
    color: #000;
}

.side_banner_wrapper img {
    margin-top: 25px;
}

.banners {
    /* height: 500px; */
    width: 100%;
    background-color: #fff;
}

@media (max-width: 991px) {
    .insta-section h5 {
        font-size: 36px;

    }

    .grid_box_new_type a h6 {
        margin: 10px 0 30px  0;

    }
}

.grid_box_new_type .col-md-4 img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.grid_box_new_type .col-md-6 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 991px) {
    .grid_box_new_type .col-md-4 {
        width: 33.33%;
        margin: 0 auto;
        text-align: center;
        margin: 0;
        padding: 4px;
    }

    .ports .col-md-4 img {
        width: 100%;
        height: auto !important;
        object-fit: cover;
    }

    .ports .col-md-4 {
        width: 100%;
        margin: 0 auto;
        text-align: left;
        margin: 0;
        padding: 4px;
    }

    .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        display: flex;
        flex-wrap: wrap;
        margin-top: calc(var(--bs-gutter-y) * -1);
        margin-right: calc(var(--bs-gutter-x) * -.5);
        margin-left: calc(var(--bs-gutter-x) * -.5);
    }

    .grid_box_new_type .col-md-4 img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        margin-bottom: 0 !important;
    }

    .grid_box_new_type .col-md-6 {
        width: 100%;
        margin: 0 auto;
        text-align: center;
        margin: 0;
        padding: 4px;
    }

    .grid_box_new_type .col-md-6 img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }


}

@media (max-width: 475px) {
    .grid_box_new_type h6 {
        margin: 5px 0;
        padding: 0;
        font-size: 13px;
    }

    .grid_box_new_type a h6 {
        margin: 10px 0 40px 0;
        padding: 0;
        font-size: 24px;
    }
    
    .video_box {
        width: 88% !important;
        height: auto;
        object-fit: cover;
        margin: 0 auto !important;
        display: flex !important;
}

    .links {
        font-weight: 600;
        font-size: 11px;
        display: inline-block;
        margin-top: 10px;
        background-color: #000;
        color: #fff;
        border-radius: 0 10px 0 10px;
        padding: 3px 9px;
        margin-bottom: 2rem;
        font-weight: 400;
    }

    .grid_box_new_type h2 {
        font-size: 25px;
    }
}