/* === Buttons === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

.pm-buttons-wrap {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pm-btn {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 40px;
    height: 70px;
    width: 25%;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    padding: 0 16px;
    line-height: 1.2;
}

.pm-btn:hover,
.pm-btn:focus {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pm-btn:focus { outline: none; }
.pm-btn:focus:not(:hover) {
    background: #fff;
    color: #000;
}

/* === Overlay === */
.pm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pm-overlay.pm-open {
    display: flex;
}

body.pm-no-scroll {
    overflow: hidden;
}

/* === Close button === */
.pm-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: all;
}

/* === Main image === */
.pm-main-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 20px 80px;
    box-sizing: border-box;
}

.pm-main-img-wrap img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

/* === Nav arrows === */
.pm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 64px;
    width: auto;
    height: auto;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    padding: 10px;
}

.pm-arrow:hover { color: rgba(255,255,255,0.9); background: none !important; }
.pm-arrow:focus, .pm-arrow:active { background: none !important; outline: none; box-shadow: none; }
.pm-arrow-prev { left: 12px; }
.pm-arrow-next { right: 12px; }

/* === Thumbnails === */
.pm-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    max-width: 100%;
}

.pm-thumbs img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.pm-thumbs img.pm-active {
    border-color: #fff;
}
