/* Custom styles for the video carousel plugin */
.carousel {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

.carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
    cursor: grab; /* Add hand cursor */
}

.carousel-inner.active {
    cursor: grabbing;
    background-color: rgba(0, 0, 0, 0.05); /* Light background when dragging */
}

.carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

.carousel-item .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.carousel-item .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

.slider-block {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-block video,
.slider-block iframe {
    width: 100%;
    height: auto;
    display: block;
}

.slider-block h3 {
    margin: 10px 0;
    font-size: 1.25em;
}

.slider-block p {
    margin: 10px 0;
    font-size: 1em;
}

.videoBox {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    cursor: default; 
    display: flex; 
    flex-direction: row; 
    width: 130vh !important; 
    overflow: hidden !important; 
    height: 100%; 
    align-items: end;
}

.play-btn {
    fill: #fff;
    position: absolute;
    width: 20px;
    left: 100px;
    margin-top: 68px;
}


.videoBox.dragging {
    cursor: grabbing; /* Change cursor while dragging */
}

/* Optional: Add some content styling if needed */
.videoBox .content {
    height: 100%;
    display: flex;
    align-items: end;
    border-left: 1px solid #cecece;
    max-width: 240px;
}

.videoBox .hide-video {
    position: fixed;
    top: -100%
}

.videoBox .content div {
    max-width: 240px;
}

.videoBox .content div.modal {
    max-width: 100% !important;
}

.videoBox .content div.modal div {
    max-width: 800px !important;
}

.close-video-btn {
    background: transparent;
    border: 0;
    color: #fff;
    right: 0;
    position: absolute;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 5px;
}

.videoBox .slider-block {
    position: relative;
    padding-right: 32px !important;
}

.videoBox .slider-block h3 {
    text-wrap: wrap;
    padding-right: 30px;
    width: 240px;
    display: flex;
    align-items: center;
}

.videoBox .slider-block p {
    text-wrap: wrap;
}

/* Ensure the modal video fills the modal */
.modal-dialog {
    max-width: 100%;
    width: auto !important;
    margin: 0;
    margin-top: 200px !important;
    background: transparent !important;
    border: 0 !important;
}

.modal-header {
    border: 0 !important;
}

.modal-content {
    border: 0 !important;
    border-radius: 0;
    width: 100%;
    height: auto; /* Full screen height */
    background: transparent !important;
}

.modal-body {
    padding: 0 !important;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body .ratio {
    width: 100%;
    height: 100%;
}

.modal-body .ratio iframe {
    width: 100%;
    height: 100%;
}

/* Adjust the backdrop to ensure it is behind everything */
.modal-backdrop {
    z-index: -1 !important;
    position: absolute !important; /* Ensure it's behind the modal content */
}

div#vide-description {
    margin-top: 10px;
    max-height: 300px;
    overflow: scroll;
}