.wp-gallery-wrapper {
    position: relative;
    margin-bottom: 40px; /* Increased to accommodate nav dots */
}

.wp-gallery-slider {
    position: relative;
    user-select: none;
    cursor: grab;
    overflow: hidden;
}

.wp-gallery-slider.is-dragging {
    cursor: grabbing;
}

.wp-gallery-track {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    display: flex;
    transition: transform 0.3s ease-out;
}

.wp-gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.wp-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-gallery-prev,
.wp-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    color: white;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.wp-gallery-slider:hover .wp-gallery-prev,
.wp-gallery-slider:hover .wp-gallery-next {
    opacity: 1;
}

.wp-gallery-prev {
    left: 10px;
}

.wp-gallery-next {
    right: 10px;
}

/* Nav dots moved outside slider container */
.wp-gallery-nav {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wp-gallery-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background-color: var(---cdcdcd);
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
    padding: 0;
}

.wp-gallery-dot.is-active {
    background-color: var(---8e1725);
}