.pt-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    font-family: system-ui, sans-serif;
}

/* DATA */
.pt-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}

.pt-date-row button {
    padding: 6px 10px;
    font-size: 16px;
    height: 44px;
}

/* IMAGE */
.pt-image {
    display: grid;
    place-items: center;
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

.pt-photo {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.pt-photo.active {
    opacity: 1;
}

/* SLIDER */
.pt-slider-wrapper {
    margin: 12px 0;
}

.pt-time-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 6px;
}

.pt-time-row button {
    padding: 6px 12px;
    font-size: 16px;
}

.pt-slider-wrapper input[type="range"] {
    width: 100%;
}

/* CONTROLS */
.pt-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -10px;
}

.pt-controls button,
.pt-controls select {
    padding: 8px 14px;
    font-size: 15px;
}

/* OŚ CZASU */
.pt-axis {
    margin-top: 8px;
    padding: 0 2px;
    display:none !important;
}

.pt-axis-track {
    display: grid;
    grid-template-columns: repeat(13, 1fr); /* 8–20 = 13 godzin */
    position: relative;
}

.pt-axis-track span {
    position: relative;
    text-align: center;
    font-size: 11px;
    color: #555;
}

/* kreska godziny */
.pt-axis-track span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 8px;
    background: #888;
    transform: translateX(-50%);
}

/* podpis tylko co 3h */
.pt-axis-track span:not([data-hour])::after {
    content: '';
}

.pt-axis-track span[data-hour]::after {
    content: attr(data-hour);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.pt-axis-track span::before {
    background: #bbb;
}
.pt-axis-track span[data-hour]::before {
    background: #333;
}

@media (max-width: 600px) {
    .pt-axis-track span[data-hour]::after {
        font-size: 10px;
    }
}

/* LIGHT BUTTONS */
.pt-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #ccc;
    background: transparent;
    border-radius: 0px;
    cursor: pointer;
    position: relative;
    padding: 0;
}

/* strzałka bazowa */
.pt-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #444;
    border-right: 2px solid #444;
    transform-origin: center;
}

/* LEWO */
.pt-btn-prev::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

/* PRAWO */
.pt-btn-next::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* disabled */
.pt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* PLAY BUTTON */
.pt-play-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #ccc;
    background: transparent;
    border-radius: 0px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

/* ▶ PLAY */
.pt-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #444;
    transform: translate(-40%, -50%);
}

/* ⏸ PAUSE */
.pt-play-btn.is-playing::before {
    width: 12px;
    height: 12px;
    border: none;
    background:
        linear-gradient(to right,
            #444 0 40%,
            transparent 40% 60%,
            #444 60% 100%);
    transform: translate(-50%, -50%);
}


.pt-lightbox {
    cursor: zoom-in;
}

.pt-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pt-lightbox-overlay img {
    max-width: 95%;
    max-height: 95%;
}
