/* cman-gallery-simple */

.gm-simple-gallery-section {
    padding: 2rem 0;
    width: 100%;
    overflow: hidden;
}

.gm-simple-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Viewport & Track */
.gm-simple-gallery-viewport {
    width: 100%;
    overflow: hidden;
    background: #f5f5f4;
    aspect-ratio: 16 / 9;
    position: relative;
    cursor: grab;
}

.gm-simple-gallery-viewport:active {
    cursor: grabbing;
}

.gm-simple-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    user-select: none;
}

/* Slide */
.gm-simple-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.gm-simple-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Navigation Arrows */
.gm-simple-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1f3b60;
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 10;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gm-simple-gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.05);
}

.gm-simple-gallery-nav:focus-visible {
    outline: 2px solid #1f3b60;
    outline-offset: 2px;
}

.gm-simple-gallery-prev {
    opacity: 0;
    left: 16px;
    transition: opacity 0.3s ease, left 0.3s ease;
}

.gm-simple-gallery-next {
    opacity: 0;
    right: 16px;
    transition: opacity 0.3s ease, right 0.3s ease;
}

.gm-simple-gallery-viewport:hover .gm-simple-gallery-prev,
.gm-simple-gallery-viewport:hover .gm-simple-gallery-next {
    opacity: 1;
}

/* Pagination Dots */
.gm-simple-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.gm-simple-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background-color: var(--btn-hover-color, #c3cedc);
    border: none;
    opacity: 0.5;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.gm-simple-dot.is-active {
    width: 32px;
    opacity: 1;
    background-color: var(--btn-color, #1f3b60);
}

.gm-simple-dot:focus-visible {
    opacity: 1;
    outline: 2px solid var(--btn-color, #1f3b60);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .gm-simple-gallery-nav {
        width: 36px;
        height: 36px;
    }
    .gm-simple-gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    .gm-simple-gallery-prev { left: 8px; }
    .gm-simple-gallery-next { right: 8px; }
}