/* ── Photo Carousel — Front-end Styles ────────────────────── */

.pc-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0a0a0a;
    border-radius: 4px;
    user-select: none;
}

/* Track holds all slides side-by-side (opacity-based crossfade instead) */
.pc-track {
    position: relative;
    width: 100%;
}

/* Slides stack on top of each other */
.pc-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    pointer-events: none;
}

.pc-slide.pc-active {
    position: relative;      /* takes up space so wrap has height */
    opacity: 1;
    pointer-events: auto;
}

.pc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
    max-height: 80vh;
}

/* Keep non-active slides absolutely positioned over the active one */
.pc-slide:not(.pc-active) {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.pc-slide:not(.pc-active) img {
    min-height: unset;
    max-height: unset;
    height: 100%;
}

/* Caption */
.pc-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 28px;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
}
.pc-caption span {
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-style: italic;
    letter-spacing: .01em;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ── Navigation buttons ──────────────────────────────────── */
.pc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background .2s, transform .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pc-btn:hover {
    background: rgba(255,255,255,.32);
    transform: translateY(-50%) scale(1.08);
}
.pc-prev { left: 16px; }
.pc-next { right: 16px; }

/* ── Dots ────────────────────────────────────────────────── */
.pc-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.pc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
}
.pc-dot:hover { background: rgba(255,255,255,.7); }
.pc-dot-active {
    background: #fff;
    transform: scale(1.35);
}

/* ── Empty state ─────────────────────────────────────────── */
.pc-empty {
    padding: 24px;
    text-align: center;
    color: #888;
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .pc-btn { width: 38px; height: 38px; font-size: 16px; }
    .pc-prev { left: 8px; }
    .pc-next { right: 8px; }
    .pc-caption { padding: 14px 16px; }
}
