.engine1 {
    margin: 100px 13px;
}

.engine {
    display: flex;
    flex-direction: row; /* Images placed horizontally by default */
    width: 100%; /* Full width */
    gap: 5px; /* Gap between images */
    justify-content: center;
}

.image-container {
    position: relative;
    width: 50%; /* Each image takes 50% width */
    height: 50%;
    overflow: hidden;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Box shadow for depth */
}

.image-container img {
    width: 100%;
    height: 400PX;
    object-fit: cover;
    transition: transform 1.6s ease, box-shadow 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.3); /* Zoom on hover */
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.4);
}

.title {
    cursor: pointer;
    position: absolute;
    top: 84%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.954);
    padding: 10px 20px;
    border-radius: 5px;
    transition: color 0.3s ease;
}

.image-container:hover .title {
    color: red;
}

/* Media Query for screens less than 768px (mobile devices) */
@media screen and (max-width: 768px) {
    .engine {
        flex-direction: column; /* Stack images vertically on mobile */
    }

    .image-container {
        width: 100%; /* Each image takes full width on mobile */
        height: auto; /* Adjust height to maintain image ratio */
    }
}
.ads {
    display: flex;
    justify-content: center;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  iframe {
    max-width: 100%;
    height: auto;
  }

  /* Adjust for smaller screen sizes */
  @media (max-width: 768px) {
    .ads {
      justify-content: center;
    }

    iframe {
      width: 100%;
      height: auto;
    }
  }