/* Editor-specific backend wrapper styling */
.omc-editor-block {
    border: 2px dashed #b4b9be;
    background: #f7f9fa;
    padding: 20px;
    border-radius: 4px;
}
.omc-editor-block h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
}

/* Dashboard Media Grid Layout */
.omc-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}
.omc-preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    background: #111;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}
.omc-preview-item img, 
.omc-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Deletion Button inside Admin Grid */
.omc-delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 74, 74, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
    text-align: center;
    padding: 0;
}
.omc-delete-btn:hover {
    background: #d93f3f;
}

/* Frontend & general presentation layout utility */
.omc-carousel-wrapper  {
    position: relative;
}
.omc-carousel-wrapper .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 25px;
}
.omc-carousel-wrapper .owl-nav {
    position: absolute;
    top: calc(50% - 10px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Allows clicks to pass through to the carousel items */
}
.omc-carousel-wrapper .owl-nav button {
    background: rgba(255, 255, 255, 0.5) !important;
    color: black !important;
    border: none;
    border-radius: 50% !important;
    width: 30px;
    height: 30px;
    font-size: 50px !important;
    line-height: 30px;
    cursor: pointer;
    pointer-events: all; /* Re-enables pointer events for the buttons */
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.omc-carousel-wrapper .owl-nav button span {
    border-top: 2px solid black;
    border-right: 2px solid black;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
    margin-right: 3px;
}
.omc-carousel-wrapper .owl-nav button.owl-next span {
    transform: rotate(-135deg);
    margin: 0 0 0 3px;
}

.omc-video-container {
    position: relative;
    width: 100%;
    /* Set a unified aspect ratio matching your images or preferred slide layout */
    /* aspect-ratio: 16/9; */
    background: #000;
    overflow: hidden;
    border-radius: 25px;
}

.omc-video-container video {
    width: 100%;
    height: 100%;
    /* Stretches and crops the video to be completely full width/height inside the slide */
    object-fit: cover; 
    display: block;
    pointer-events: none; /* Prevents users from right-clicking or tapping to bring up native browser video controls */
}

.omc-placeholder {
    padding: 20px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    text-align: center;
    font-style: italic;
}
.omc-carousel-wrapper .owl-dots {
    margin-top: 2rem;
}
.omc-carousel-wrapper .owl-dots .owl-dot span {
    background: #C3CEDB !important;

}
.omc-carousel-wrapper .owl-dots .owl-dot.active span, .omc-carousel-wrapper .owl-dots .owl-dot:hover span {
    background: #F7C222 !important;
}
.omc-global-carousel-caption {
    position: absolute;
    bottom: 15%;
    z-index: 10;
    background: #F7C222 !important;
    padding: .5rem 2rem;
    border-radius: 10px 0 0 10px;
    font-weight: 700;
}