/* General Styles */
.ir-reels-container {
    position: relative;
    overflow: hidden;
    font-family: "Outfit", Sans-serif;
}

.ir-reels-list-wrapper {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
    scroll-behavior: smooth; /* Smooth scroll for browsers that support it */
}

.ir-reels-list-wrapper::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

/* Reels List */
.ir-reels-list {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
    gap: var(--content-gap);
    padding: 10px;
}
.ir-reel {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    cursor: pointer;
    border: 1px solid var(--clr-primary);
    border-radius: 5px;
    overflow: hidden;
    background: var(--clr-primary-alt);
    scroll-snap-align: start;
}
.ir-reel img {
    width: 100%;
    display: block;
}
.ir-arrow-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
    margin: 20px 0 0;
}

.ir-prev-button,
.ir-next-button {
    border: 1px solid var(--clr-primary);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
    color: var(--clr-primary);
}
[data-brx-theme="dark"] .ir-prev-button, [data-brx-theme="dark"] .ir-next-button {
    color: #fff;
    background: var(--clr-primary-alt);
}
.ir-prev-button svg, .ir-next-button svg {
    transform: rotate(-90deg);
}
.ir-prev-button:hover,
.ir-next-button:hover {
    background-color: var(--clr-primary); /* Darken the button on hover */
    color: #fff;
}

.ir-prev-button:focus,
.ir-next-button:focus {
    outline: none; /* Remove focus outline */
    background-color: var(--clr-primary); /* Darken the button on hover */
    color: #fff;
}

.ir-prev-button i,
.ir-next-button i {
    margin: 0; /* Remove any extra margin from the icons */
    font-size: 20px; /* Adjust icon size */
}

.ir-prev-button.disabled, .ir-next-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.ir-ig-logo {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #fff;
	font-size: 22px;
	filter: drop-shadow(2px 4px 6px black);
	width: 22px;
	height: 22px;
}

.ir-reel-overlay {
    position: absolute;
    bottom: 7px;
    left: 7px;
    width: calc(100% - 14px);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    text-align: left;
    box-sizing: border-box;
    border-radius: 8px;
}
.ir-reel-date {
    font-size: 12px;
    background: var(--clr-primary-alt);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
}
.ir-reel-title {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Clamp text to 3 lines */
    -webkit-box-orient: vertical; /* Set the box to vertical orientation */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis (...) at the end */
}

/* Popup */
.ir-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.ir-popup.active {
    display: flex;
}
.ir-popup-content {
    position: relative;
    width: 90%;
    max-width: 350px;
    background: #000;
    border-radius: 10px;
    text-align: center;
/*    aspect-ratio: 9/16;*/
    border: 2px solid var(--clr-primary);
}

@media (max-width: 600px){
    .ir-popup-content {
        max-width: 300px;
    }
}

.ir-popup-content video {
    width: 100%;
    height: auto;
    background: #000;
}
.ir-mute-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}
.ir-close-popup {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--clr-primary);
    color: #fff;
    padding-left: 2px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 99;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ir-close-popup svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.ir-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--clr-primary);
    color: #fff;
    border-top: 2px solid var(--clr-primary);
    border-radius: 0 0 8px 8px
}
.ir-account-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ir-account-image {
    width: 40px;
    height: 40px;
    border-radius: 30% !important;
    border: 2px solid #fff;
	padding: 5px;
	filter: brightness(0) invert(1);
}
.ir-account-name {
    font-size: 14px;
    font-weight: bold;
}
.ir-account-handle {
    font-size: 12px;
    color: #ccc;
    text-decoration: none;
}

.ir-view-on-instagram {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
	display: inline-flex;
}

.ir-account-handle:hover, .ir-view-on-instagram:hover{
    color: var(--clr-primary);
}


.ir-video-overlay {
    position: relative;
    border-radius: 10px;
}

.ir-video-overlay video {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.ir-play-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 30px;
    border-radius: 50%;
    transition: background-color 0.3s;
    line-height: 1;
    width: 70px;
    height: 70px;
}

.ir-play-pause:hover {
    background: rgba(0, 0, 0, 0.8);
}