/* Reset and base layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
}

/* Banner styles - positioned at the very top */
.banner-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: url("/images/multiply.gif");
}

.image-grid {
    max-width: 1170px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0; /* no spacing between items */
}

.image-item {
    /* Remove fixed aspect ratio to preserve original image proportions */
    overflow: hidden;
    line-height: 0; /* Remove any line-height spacing */
}

.image-item img {
    width: 100%;
    height: auto; /* Maintain original aspect ratio */
    object-fit: contain; /* Changed from cover to contain */
    display: block;
    vertical-align: top; /* Remove any vertical spacing */
}

/* Alternative approach if images don't align perfectly */
.image-grid.stretch-fit .image-item img {
    height: 100%;
    object-fit: fill; /* This will stretch to fit exactly, may cause slight distortion */
}

/* Header styles - positioned after banner */
.header {
    margin-top: 0;
    padding-top: 0;
}

.main-content {
    padding: 20px;
}

/* Table styles */
.table-container {
    width: 95%;
    background-color: #E3E9F2;
    border: 1px solid #000;
}

.table-row {
    display: flex;
}

.table-cell {
    width: 50%;
    padding: 10px;
    border: 1px solid #000;
    text-align: center;
}

.table-cell.full-width {
    width: 100%;
}

.header-cell {
    background-color: #6A6A6A;
    color: #FFFFFF;
    font-family: Verdana;
    font-size: 16px;
}

.data-cell {
    background-color: #939393;
    color: #FFFFFF;
    font-family: Verdana;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* keep 2 columns on smaller screens */
        max-width: 100%; /* Ensure full width on mobile */
    }
    .main-content {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2x2 grid on mobile to preserve banner layout */
        max-width: 100%; /* Ensure full width on mobile */
    }
    .main-content {
        padding: 5px;
    }
}