/* Base styles */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
	margin: 0;
	font-family: "Book Antiqua", Palatino, serif;
	background-color: #fff;
	color: #333;
}

/* Black background (body attributes) moved to the bottom of this CSS file */

.banner {
  width: 100%;
  display: block;
  margin: 0 auto;
  background-color: #f4f4f4;
  padding: 0.75rem 1rem 0.75rem;
  text-align: center;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

html.dark-bg,
body.dark-bg .banner {
  background-color: #000;
  /* color: #fff !important;  // Uncomment to change text color in dark mode */
}

.banner-content {
  max-width: 1200px; /* Match your grid layout width */
  text-align: center;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;

}

.banner h1 a,
.banner h1 a:visited {
  color: red;
  font-size: 1.5rem;
  font-weight: 200;
  text-transform: uppercase;
  margin: 0;
  text-decoration: none;
}

.banner p {
  color: grey;
  font-size: 0.8rem;
  margin-top: 0rem;
}

/* Spacer */
.spacer {
  height: 1px;
  background-color: #ccc;
  width: 100%;
  margin-top: 0; /* remove top margin */
}

body.dark-bg .spacer {
  background-color: #000;
  /* color: #fff !important;  // Uncomment to change text color in dark mode */
}

/* Page title box */
.page-title {
  text-align: center;
  margin: 1rem 0.5rem 0.2rem;
}

.page-title h2 {
  color: grey;
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  line-height: 1.4;
}

.title-text {
  color: grey;
  font-size: 1rem; /* Adjust this value to shrink further if needed */
  font-weight: normal;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

.subtitle {
  font-size: 1.2rem;
  color: #888;
}

.title-sub-heading {
  color: #666;
  font-size: 1.125rem;
  font-weight: normal;
  text-align: left;
  margin-top: 1.5rem;      /* extra spacing above */
  margin-bottom: 1.5rem;   /* extra spacing below */
}

/* Special title styling for this page */
.page-title h2.special-title {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: #003399;
  font-size: clamp(1rem, 3vw, 1.8rem);
  margin: 0;
  line-height: 1.2;
  /* Remove or comment out white-space: nowrap; */
  /* Do not add word-break */
}

.footer-row {
  text-align: center;
  margin-top: 2em;
  padding-bottom: 2em; /* adds space below footer */
}

.footer-row a {
  color: red;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
}

.footer-row a:hover {
  text-decoration: underline;
}

/* Ensure consistent spacing between paragraphs */

.style133 {
  font-size: 1rem;      /* add font size here */
  color: #666666;       /* add color here */
  margin-bottom: 1em;   /* adjust as needed */
  line-height: 1.4;     /* improves readability on mobile */
  margin-right: 1rem; /* Add this line */
}

.style133-bold {
  margin-bottom: 1em;
  line-height: 1.4;
  margin-right: 1rem;
  font-weight: bold;
}

h2.style133-bold {
  text-align: left;
  margin-bottom: 0.4em; /* or a smaller value as needed */
}

@media (max-width: 768px) {
  .style133 {
    margin-right: 0;
  }
}

/* This to center a block of text vertically within its box on desktop without affecting spacing on mobile */


/* Optional: add more space after captions */
.style133.caption {
  margin-bottom: 1.5em;
  text-align: left;   /* or center, depending on what you want globally */
}

.center-caption {
  text-align: center;
}

.center-caption-grey {
  color: grey !important;
  text-align: center !important;
}

.center-caption img {
  display: inline;
  float: none;
}

.center-style133 {
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.4;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.video-container {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
}

.video-container.ratio-16-9 {
  aspect-ratio: 16 / 9;
  width: 100vw;
  height: 56.25vw;
  max-width: calc(100vh * 16 / 9);
  max-height: 100vh;
}

.video-container.ratio-4-3 {
  aspect-ratio: 4 / 3;
  width: 100vw;
  height: 75vw;
  max-width: calc(100vh * 4 / 3);
  max-height: 100vh;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
}

/* video caption */
.video-caption {
  color: grey;
  text-align: center;
  margin-top: 0.5em;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem; /* Slightly smaller than default */
}

/* N.B. Add the following in html table wrapper for left aligned captions:

<p class="style133 caption">
  Site-specific, 3D video projection with sound.  
  17 min (loop). Dimensions variable. Matt's Gallery, London.
</p>

and add the following in html table wrapper for centred captions:
<p class="style133 caption center-caption">
  Plywood, video monitor and mixed media <br>
  Approx. 200 x 244 x 120cm
</p>

*/


/* Headings */
.heading {
  color: #666;
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.15rem;
}

/* Sub-headings */
.sub-heading {
  color: #666;
  font-size: 1.125rem;
  font-weight: normal; /* removes bold */
    text-align: left;
  margin-bottom: 0.15rem;
}

.sub-heading.center {
  text-align: center;
}

.date-heading {
  color: #666;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.15rem;
}

.audio-center {
  text-align: center;
}

/* Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Base link style — no underline, inherits surrounding color */
a {
  text-decoration: none;
  color: inherit;
}

/* No underline on hover */
a:hover {
  text-decoration: none;
}

/* Default link style (active) */
.style137 {
  color: #0099FF;   /* your standard blue */
  text-decoration: none;
}

/* banner SEANDOWER.COM style */
.style3 {
  font-size: 1.5rem;
}

/* --- Inactive colour options ---
   These are commented out so they won't apply unless you
   deliberately uncomment them later.
*/

/*
.styleAlt {
  color: #CC0000;   /* red */
  text-decoration: none;
} 

.styleGrey {
  color: #666666;   /* grey */
  text-decoration: underline;
}
*/

.left-justified {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;   /* match your other content width */
  line-height: 1.5;
  padding: 0 1rem;     /* default horizontal padding */
}
.content-wide {
  max-width: 1200px;   /* desktop cap */
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
  line-height: 1.5;
}


/* Responsive override for smaller screens */
@media (max-width: 768px) {
  .banner h1 {
    font-size: 1rem;
    line-height: 1.2;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .banner p {
    font-size: 0.75rem;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
  }

  .banner-content {
    padding: 0 0.5rem;
  }
}

.caption p {
  flex-basis: 100%;
  width: 100%;
}

html {
  background-color: #000;
}

body.dark-bg {
  background-color: #000 !important;
  /* color: #fff !important;  /* Uncomment for white text in dark mode */
}

/* Keep banner black in dark mode */
body.dark-bg .banner {
  background: #000 !important;
}

/* Make full-width-table transparent in dark mode */
body.dark-bg .full-width-table,
body.dark-bg .full-width-table table,
body.dark-bg .full-width-table td {
  background: transparent !important;
  /* color: #fff !important;  /* Uncomment for white text in dark mode */
}

body.dark-bg .video-caption,
body.dark-bg .video-caption * {
  color: grey !important;
  text-align: center !important;
}