/* DISEÑO INDEPENDIENTE PARA PROYECTOS */
.gallery-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-wrapper h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--color-primario);
}

/* Visualizador Principal */
.main-viewer {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.main-viewer img, .main-viewer video, .main-viewer iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Carrusel de Miniaturas */
.thumbnails-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.thumbnails-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.thumbnails-track::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-track::-webkit-scrollbar-thumb {
    background: var(--color-secundario);
    border-radius: 10px;
}

.thumb-item {
    flex: 0 0 120px;
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transicion);
    border: 2px solid transparent;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--color-secundario);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-arrow {
    background: var(--color-primario);
    color: white;
    border: none;
    width: 120px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.media-counter {
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
    color: #666;
}