/* Wrapper */
.cmg-wrapper {
    
    padding: 24px;
    border-radius: 16px;
    max-width: 1100px;
    margin: auto;
    box-sizing: border-box;
}

/* Tabs */
.cmg-tabs {
    display: flex;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    gap: 4px;
}

.cmg-tab {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-weight: 600;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-family: 'NoyhHeavy';
    font-size: 28px;
    line-height: 36.4px;
}



.cmg-tab.active {
    background: #f4b67d;
    color: #000;
}

/* Content */
.cmg-content {
    display: none;
}

.cmg-content.active {
    display: block;
    background: #f4b67d;
    padding: 40px;
}

/* Gallery Layout */
.cmg-gallery {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Thumbnails Wrapper */
.cmg-thumbs-wrapper {
    width: 260px;
    flex-shrink: 0;
}

/* Thumbnails */
.cmg-thumbs {
    width: 260px;
    height: 500px;
   
    border-radius: 14px;
    padding: 12px 8px;
    box-sizing: border-box;
    position: relative;
}

.cmg-thumbs .swiper-wrapper {
    gap: 0px;
}

.cmg-thumbs .swiper-slide {
    height: auto !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 12px;
    box-sizing: border-box;
}

.cmg-thumbs .swiper-slide:hover {
    opacity: 0.9;
}

.cmg-thumbs .swiper-slide.active-thumb img {
    border: 4px solid #ff7a00;
}

.cmg-thumbs img,
.cmg-thumbs video {
    width: 200px;
    height: 125px;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
    display: block;
}

/* Scrollbar for thumbnails */
.cmg-thumbs .swiper-scrollbar {
    width: 4px;
    right: 2px;
    left: auto;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.cmg-thumbs .swiper-scrollbar-drag {
    background: #ff7a00;
    border-radius: 2px;
}

/* Preview Wrapper */
.cmg-preview-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Title */
.cmg-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #333;
}

/* Preview */
.cmg-preview {
    flex: 1;
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
    position: relative;
    max-height: 450px;
}

.cmg-preview img,
.cmg-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: #000;
    display: block;
}

/* Controls */
.cmg-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.cmg-counter {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cmg-counter .current {
    font-weight: 700;
}

/* Navigation */
.cmg-nav {
    display: flex;
    gap: 6px;
}

.cmg-prev,
.cmg-next {
    background: #ff7a00;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmg-prev:hover,
.cmg-next:hover {
    background: #e96d00;
}

.cmg-prev:disabled,
.cmg-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 768px) {
    .cmg-gallery {
        flex-direction: column;
    }

    .cmg-thumbs-wrapper {
        width: 100%;
    }

    .cmg-thumbs {
        height: auto;
    }

    .cmg-thumbs .swiper-wrapper {
        flex-direction: row !important;
    }

    .cmg-thumbs img,
    .cmg-thumbs video {
        height: 70px;
    }

    .cmg-preview {
        min-height: 300px;
    }
}