/* <!-- Inline Styles for Layout and Zoom Functionality --> */
/* Table containment was 100% */
.gallery-table {
    width: 400px;
    border-collapse: collapse;
}
.gallery-cell {
    border: 1px solid #ccc;
    padding: 15px;
    vertical-align: top;
}

/* Flexbox layout inside the table cell -- was 800px */
.gallery-container {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* Thumbnail sidebar column -- Was  400 */
.thumbnail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}
.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.thumb:hover {
    border-color: #007bff;
}

/* Main image display area */
.main-display-area {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    height: 400px;
}
/* was 50% 50% */
.main-image {
    max-width: 100%;
    max-height:100%;
    object-fit: contain;
    cursor: zoom-in;
}

/* Zoom Overlay Modal (Hidden by default) */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.zoom-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}
