/* Win XP Style Multi-Image Viewer (Option A) */
.post-multi-image-viewer {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #000; /* Black background for contain mode */
    overflow: hidden;
    border: 2px solid #808080;
    box-shadow: inset 2px 2px 0 #000, 1px 1px 0 #fff;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.image-slide-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-slide.active {
    opacity: 1;
    z-index: 2;
}

.image-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: auto; /* Allow smooth scaling for photos */
}

/* Navigation Buttons - XP Style */
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.viewer-nav:active {
    border-color: #808080 #fff #fff #808080;
    transform: translateY(-50%) translate(1px, 1px);
}

.viewer-nav.prev {
    left: 10px;
}

.viewer-nav.next {
    right: 10px;
}

.viewer-nav img {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Indicators */
.viewer-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 10px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    border: 1px solid #000;
}

.indicator-dot.active {
    opacity: 1;
    background: #3a6ea5; /* XP Blue */
}

/* Counter */
.viewer-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    font-family: 'Tahoma', sans-serif;
}

/* Square Card Blurred Background */
.post-card-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Specific height for square card */
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.8);
    transform: scale(1.1); /* Prevent white edges */
    z-index: 1;
    overflow: hidden;
}

.post-card-layers {
    position: relative;
    min-height: 200px;
    background: #fff;
    overflow: hidden;
}

.drawing-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drawing-layer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .post-multi-image-viewer {
        height: 300px;
    }
    .viewer-nav {
        width: 40px;
        height: 40px;
    }
    .post-card-blur-bg, .drawing-layer {
        height: 150px;
    }
    .post-card-layers {
        min-height: 150px;
    }
}
