/* Ensure the content is responsive */
.content {
    max-width: 100%;
    word-wrap: break-word;
}

/* Responsive video embeds */
.content iframe, .content video {
    width: 100%; /* Video takes full width of the container */
    height: auto; /* Keeps the aspect ratio */
    max-width: 100%; /* Ensures videos don't overflow */
}

/* Video wrapper for aspect ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (adjust as needed) */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe, .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Popup overlay */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it's on top of other content */
    justify-content: center;
    align-items: center;
}

/* Popup content */
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}
/* Text adjustments for readability */
@media (max-width: 768px) {
    .content {
        font-size: 14px; /* Slightly smaller font on smaller screens */
        padding: 10px; /* Add some padding for mobile readability */
    }
}

@media (min-width: 769px) {
    .content {
        font-size: 16px;
        padding: 20px;
    }
}

#product_preview2 {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

#product_preview2:hover {
    transform: scale(1.5);
    transform-origin: center center;
}

/* Custom CSS for fixed zoom window */
.zoomWindow {
    top: 100px !important;
}

/* For mobile view carousel */
.owl-carousel .item {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure all items (video & images) have the same size */
.mobile-embed,
.owl-carousel .item img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px; /* Fixed height */
    object-fit: cover;
    border-radius: 10px;
}

.mobile-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Owl Carousel Navigation */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    border: none !important;
    font-size: 32px !important; /* Increased size */
    padding: 15px 20px !important; /* Larger padding */
    border-radius: 50%;
}

.owl-nav button.owl-prev {
    left: -20px; /* Adjusted for better positioning */
}

.owl-nav button.owl-next {
    right: -20px;
}

/* Dots */
.owl-dots {
    text-align: center;
    margin-top: 10px;
}

.owl-dots button.owl-dot {
    background: #ccc !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.owl-dots button.owl-dot.active {
    background: #000 !important;
}

/* Default: Show mobile and hide desktop */
#desktop {
    display: none;
}

@media screen and (max-width: 768px) {
    #mobile {
        width: 100%;
    }

    #mobile .item img,
    #mobile .item .mobile-embed {
        width: 100%;
        height: 300px;
    }

    .mobile-embed iframe {
        width: 100%;
        height: calc(100vw * 9 / 16); /* Maintain 16:9 aspect ratio */
    }
}

/* For large screens */
@media (min-width: 768px) {
    #desktop {
        display: flex;
    }

    #mobile {
        display: none;
    }
}

