.isoele {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; /* Stack items vertically by default */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    gap: 90px; /* Space between items */
    margin: 0 auto; /* Center the container horizontally */
    max-width: 95%; /* Ensure container width doesn't exceed 95% of the viewport */
    padding: 30px; /* Adds padding inside the container for spacing */
}

/* Image and other item styles */
.isoimg, .img-companyprofile2 {
    display: block; /* Set as block element to center horizontally */
    max-width: 500px; /* Max width for images */
    margin: 0 auto; /* Center images inside their containers */
}

.img-companyprofile2 {
    display:flex;
    cursor: pointer;
}

.img-companyprofile2 img {
    transition: 0.3s ease;
}

.img-companyprofile2 img:hover {
    transform: scale(1.1);  /* Slight zoom effect on hover */
}

.frame {
    display: flex;
    justify-content: center; /* Horizontally center the video */
    align-items: center; /* Vertically center the video */
    width: 100%;
    max-width: 1200px; /* Limit the maximum width for very large screens */
    margin: 20vh auto; /* Add vertical margin to ensure spacing above and below */
    padding: 0 5%; /* Equal padding from left and right */
    height: auto; /* Let the height adjust naturally */
    margin-top:-20px;
}

/* Make iframe take full width and height of its container */
iframe {
    width: 100%; /* Make iframe take the full width of the container */
    height: 100%; /* Make iframe take the full height of the container */
    border: none; /* Remove default iframe border */
}

/* For large screens */
@media (max-width: 1200px) {
    .frame {
        padding: 0 5%; /* Equal padding for smaller screens */
        height: auto; /* Allow the iframe container to adjust its height */
        margin: 15vh auto; /* Add margin to prevent overlap */
        margin-top:-40px;
    }
}

/* For medium screens (tablets) */
@media (max-width: 1027px) {
    .frame {
        width: 90%;
        height: auto;
        margin: 10vh auto; /* Add more vertical margin to avoid overlap */
        margin-top:-60px;
    }
}

/* For smaller screens (landscape phones) */
@media (max-width: 896px) {
    .frame {
        width: 100%;
        height: auto; /* Allow height to adjust */
        margin: 8vh auto; /* Ensure vertical spacing */
        margin-top:-60px;
    }
}

/* For small screens (portrait phones) */
@media (max-width: 768px) {
    .frame {
        width: 96%;
        height: auto; /* Allow height to adjust */
        margin: 6vh auto; /* Adjust margins for portrait phones */
        margin-top:-30px;
    }
}

/* For very small screens (portrait phones) */
@media (max-width: 480px) {
    .frame {
        width: 95%;
        height: auto;
        margin: 5vh auto; /* Adjust margins for very small screens */
        margin-top:-30px;
    }
}

/* Media Query for larger screens (1200px and below) */
@media (max-width: 1200px) {
    .isoele {
        gap: 60px; /* Adjust gap for medium screens */
        margin-left: 20px; /* Equal margin on left */
        margin-right: 20px; /* Equal margin on right */
    }
}

/* Media Query for small screens (768px and below) */
@media (max-width: 768px) {
    .isoele {
        gap: 50px; /* Reduced gap for small screens */
        margin-left: 20px; /* Equal margin on left */
        margin-right: 20px; /* Equal margin on right */
    }

    .isoimg, .img-companyprofile2 {
        max-width: 90%; /* Adjust width for small screens */
    }

    }

/* Media Query for extra small screens (480px and below) */
@media screen and (max-width: 480px) {
    .isoele {
        gap:20px;/* Even smaller gap on very small screens */
        margin-left: 10px; /* Equal margin on left */
        margin-right: 10px; /* Equal margin on right */
    }

    .isoimg, .img-companyprofile2 {
        max-width: 100%; /* Allow images to scale to 100% width on small devices */
        margin-top:30px;
    }

    
}