/* IAG Expo — rules from Code Snippet 11 "CSS" that still match the site (moved 2026-10-28, see ex-snippets.php).
   Loaded between style.css and ex-site.css, where the snippet's CSS sat, so the cascade is unchanged. */

/* ---------- Plain block tables (Schedule, Summit/CiG programmes, Awards about, Future Years, 2025 Exhibition) ---------- */
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 auto;
    background-color: #7f2f92;
    font-family: Arial, sans-serif;
}
.wp-block-table tr {
    background-color: white;
}

.wp-block-table td {
    padding: 15px;
    text-align: left;
    border: 2px solid #333;
    font-weight: bold;
    color: black;
    font-size: 18px;
}

.wp-block-table th {
	background-color:#333;
	 border: 2px solid #111;
    font-size: 22px;
    text-transform: uppercase;
}
.wp-block-table thead {
	border: 2px solid #111;
}
/* Row colours for event schedule tables (exhibition-row is used on 2025 Exhibition; the others kept as the set) */
.wp-block-table .welcome-row {
    background-color: #127755;
}

.wp-block-table .exhibition-row {
    background-color: #7f2f92;
}

.wp-block-table .summit-row {
    background-color: #1a1b4b;
}

.wp-block-table .awards-row {
    background-color: #79111c;
}
table:not(.wp-block-tableberg) tbody tr:hover > td,
table:not(.wp-block-tableberg) tbody tr:hover > th {
  background-color: transparent !important;
}
table:not(.wp-block-tableberg) tbody > tr:nth-child(2n+1) > td, table:not(.wp-block-tableberg) tbody > tr:nth-child(2n+1) > th {
	background-color: transparent!important;
}

/* ---------- Location page ---------- */
.page-id-594 .sponsor-section {
	margin-top:0px!important;
}

/* ---------- Sponsor section ---------- */
.sponsor-section {
	text-align: center;
}

/* Ad row: cache-busted placeholder (Advanced Ads .iagex-* wrapper) */
.sponsor-section [class^="iagex-"] {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 24px;
}

/* Each banner: fixed 357px, same at any ad count (shrinks only if the column is narrower) */
.sponsor-section [class^="iagex-"] > *:not(.iagex-highlight-wrapper) {
	flex: 0 1 357px;
	min-width: 0;
	max-width: 357px;
}

/* Advanced Ads wraps ALL ads in .iagex-highlight-wrapper — it must stay full width
   and act as the flex row, otherwise 2+ ads get squeezed inside one 357px slot. */
.sponsor-section .iagex-highlight-wrapper {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	width: 100%;
}

.sponsor-section img {
	display: block;
	width: 100%;
	max-width: 357px;
	height: auto;
	margin: 0;
}

@media (max-width: 767px) {
	.sponsor-section [class^="iagex-"] {
		flex-wrap: wrap;
	}
	.sponsor-section [class^="iagex-"] > *:not(.iagex-highlight-wrapper) {
		flex: 0 1 100%;
		max-width: 357px;
	}
}
/* ---------- /Sponsor section ---------- */
