.dml-pg {
    --dml-pg-green: #314d22;
    --dml-pg-cream: #f7f0e5;
    --dml-pg-border: #ded7cb;
    --dml-pg-gap: 10px;
    width: 100%;
    position: relative;
    outline: none;
}

.dml-pg__stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--dml-pg-cream);
    border-radius: 4px;
}

.dml-pg__track {
    height: 100%;
    display: flex;
    transition: transform .42s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.dml-pg__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dml-pg-cream);
}

.dml-pg__main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

.dml-pg__arrow {
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.dml-pg__arrow:hover,
.dml-pg__arrow:focus-visible {
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .13);
}

.dml-pg__arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dml-pg__arrow--prev { left: 16px; }
.dml-pg__arrow--next { right: 16px; }

.dml-pg__thumb-viewport {
    width: 100%;
    overflow: hidden;
    margin-top: 12px;
}

.dml-pg__thumb-track {
    width: 100%;
    display: flex;
    gap: var(--dml-pg-gap);
    transition: transform .35s ease;
    will-change: transform;
}

.dml-pg__thumb {
    appearance: none;
    flex: 0 0 calc((100% - (var(--dml-pg-gap) * 4)) / 5);
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--dml-pg-border);
    border-radius: 4px;
    background: var(--dml-pg-cream);
    cursor: pointer;
    opacity: .82;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.dml-pg__thumb:hover,
.dml-pg__thumb:focus-visible {
    opacity: 1;
}

.dml-pg__thumb.is-active {
    border: 2px solid var(--dml-pg-green);
    opacity: 1;
}

.dml-pg__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}

@media (max-width: 767px) {
    .dml-pg { --dml-pg-gap: 7px; }
    .dml-pg__arrow { width: 34px; height: 34px; }
    .dml-pg__arrow--prev { left: 10px; }
    .dml-pg__arrow--next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .dml-pg__track,
    .dml-pg__thumb-track,
    .dml-pg__arrow,
    .dml-pg__thumb {
        transition: none;
    }
}
