/**
 * Styles for Social Media Importer Shortcodes
 *
 * @package Social_Importer
 */

/* Presse Post Content Wrapper */
.presse-post-content {
    width: 90%;
}

/* Video Gallery Carousel */
.video_gallery {
    position: relative;
    width: 100%;
    overflow: hidden; /* Ensure no overflow from parent */
}

.my-custom-video-gallery {
    position: relative;
    width: 100%; /* Ensures the parent div takes full width */
    max-width: 100%; /* Prevents it from exceeding its container */
    overflow: hidden; /* Ensures no overflow */
    height: 600px; /* Fixed height for videos */
}

.my-custom-video-gallery video {
    width: 100%; /* Makes the video scale with the parent */
    height: 600px; /* Maintains aspect ratio */
    max-width: 100%; /* Prevents the video from exceeding the container */
    display: block; /* Removes any default inline spacing */
}

/* Image Gallery Carousel */
.image_gallery {
    position: relative;
    width: 100%;
    overflow: hidden; /* Ensure no overflow from parent */
}

.my-custom-gallery {
    position: relative;
    width: 100%; /* or define a fixed width */
    height: auto; /* Will be dynamically adjusted based on the image height */
    overflow: hidden; /* Hide the overflow so only one image is visible at a time */
    transition: height 0.3s ease;
}

.my-custom-gallery .custom-gallery-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Will match gallery height */
    transition: transform 0.5s ease; /* Smooth transition for sliding images */
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.my-custom-gallery .custom-gallery-image-container img {
    width: 90%; /* Make sure the images fill the container */
    height: 100%; /* Maintain aspect ratio */
    transition: transform 0.5s ease; /* Smooth transition for sliding images */
    margin: auto !important;
    object-fit: contain;
}

/* Video Gallery Container Styling */
.my-custom-video-gallery .custom-gallery-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
}

/* Styling for navigation buttons */
.gallery-btn {
    position: absolute;
    top: 45%;
    background-color: transparent;
    color: #598520;
    padding: 10px;
    cursor: pointer;
    border: none;
    z-index: 10;
}

.gallery-btn:hover {
    opacity: 0.8;
}

.gallery-btn i {
    font-size: 77px;
}

.gallery-btn.left {
    left: 0px;
}

.gallery-btn.right {
    right: 0px;
}

@media (max-width: 850px) {
    .gallery-btn.left {
        left: -10px;
    }

    .gallery-btn.right {
        right: -10px;
    }
}

/* Plain/Unstyled Gallery Styles */
.social-importer-media-gallery {
    width: 100%;
}

.social-importer-media-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.social-importer-media-item {
    flex: 0 0 auto;
    margin-right: 10px;
}

.social-importer-media-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.social-importer-media-item video {
    max-width: 100%;
    height: auto;
    display: block;
}
