/* IMAGE WRAPPER — hard boundary */
#viewer-image-wrapper {
    width: 100%;
    max-width: 700px;        /* image width limit */
    height: 450px;           /* image height limit */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;        /* prevents overflow */     
    border-radius: 12px;
}

/* IMAGE — strictly constrained inside wrapper */
.viewer-img {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* keeps aspect ratio without spilling out */
    display: block;
    border-radius: 12px;
}

/* TEXT UNDER IMAGE */
.viewer-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#viewer-short {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

#viewer-long {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* BUTTONS */
.viewer-controls {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: center;
}

.viewer-controls button {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--accent, #0077ff);
    color: #fff;
    font-size: 0.95rem;
}


