
/* text */
.body1 {font-size:9pt; color:#c0c0c0; font-family:arial,verdena;
	}
.body2 {font-size:9pt; color:#c0c0c0; font-family:arial,verdena; font-weight:bold; 
	}
.body3 {font-size:12pt; color:#c0c0c0; font-family:arial,verdena; 
	}

h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 1px;  
    color: #000;
    font-family: arial;
}
h2 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 1px;
}
h3 {
    font-size: 0.9em;
    font-weight: normal;
    margin: 1px;
}

/* tables  width:120px; height:200px;*/
#galtable {padding-top:0px;  border-style:solid; border:0px; border-color:#ccc;}
#galtable td {border:0px; border-style:solid; border-color:#ccc; padding:10px; font-size:0.9em; text-align:left;}

.text-block {
  display: block;
  max-width: 100ch;     /* ideal readable line length */
  margin: 1.5rem auto; /* centres the block */
  padding: 1rem;
  line-height: 1.2;
  font-size: 14px;}

.text-block-panel {
  background: #e5e5e5;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  max-width: 100ch;
  margin: 1.5rem auto;
}

.wrapper {
  display: flex;
  justify-content: center;   /* centres the combined block */
}

.image-text {
  display: flex;
  align-items: center;   /* vertically align text with image */
  gap: 1rem;             /* space between image and text */
  width: 100%;
  max-width: 550px;      /* keeps desktop layout */
  font-size: 14px;  
}
.image-text img {
  width: 100px;          /* control image size 100px*/
}

.image-text1 {
  display: flex;
  align-items: center;   /* vertically align text with image */
  gap: 1rem;             /* space between image and text */
  width: 100%;
  max-width: 550px;      /* keeps desktop layout */
  font-size: 12px;  
}
.image-text1 img {
  width: 200px;          /* control image size 100px*/
}



/* ---------- following from Gemini AI -----------------*/

/* 1. RESET DEFAULTS */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: #f4f4f4; padding-top: 180px; }

/* 2. THE HEADER (Fixed at top) */
.header {
  position: fixed;
  top: 0;
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: 95%;
  max-width: 700px;
  height: 120px;
  background: white url("./images/header1.jpg") no-repeat center;
  background-size: contain;
  box-shadow: 0 2px 10px rgba(0,0,0,1);
/*from gal2*/
  border-radius: 20px;
  display: flex;    /* This helps center your <h1> text */
  align-items: center;
  justify-content: center;
}

/* Style the Nav Bar */
.main-nav {
  margin-top: -40px;
  display: flex;
  gap: 5px;
  justify-content: center;
  padding-bottom: 20px;
  padding-top: 0px
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  transition: 0.3s;
}

.main-nav a:hover {
  color: #f1c40f; /* Matches your gold lightbox accent */
}

.main-nav a.active {
  border-bottom: 4px solid #f1c40f; /* Highlights current page */
  color: #aaa
}

/* 3. THE GALLERY GRID (LAPTOP) */
.art-gallery {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr)  !important;  /* across */
  gap: 10px !important;
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ededed;
}

/* 4. THE TILES */
.gallery-item {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  border: 0px solid #eee; */
  cursor: pointer;  
  background-color: #ededed; /* ed background color to fill the empty space around non-square art */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  /* Change 'cover' to 'contain' to stop the cropping */
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}


/* Position the item relatively so the caption stays inside it */
.gallery-item {
  position: relative;
}

/* Hide the overlay initially */
.caption-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  opacity: 0; /* Hidden */
  transition: opacity 0.3s ease; /* Smooth fade-in */
  font-size: 0.9rem;
  pointer-events: none; /* Allows the click to go through to the image */
}

/* Show the overlay when hovering */
.gallery-item:hover .caption-overlay {
  opacity: 1;
}


/* 5. LIGHTBOX (MODAL) */
.modal {
  display: none; /* JavaScript changes this to flex */
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 60%;
  max-height: 80vh;
  border: 2px solid white;
}

#caption-container {
  width: 25%; /*25*/
  color: white;
  padding-left: 20px;
  border-left: 2px solid #f1c40f;
}

/* 6. THE PHONE FIX 768*/
 @media screen and (max-width: 768px) {

.header { 
box-shadow: 0 2px 10px rgba(0,0,0,0);
height: 120px; padding: 10px 0; 
	} 

.art-gallery {
  grid-template-columns: repeat(2, 1fr) !important; /* 2 across on phone */
  gap: 0px !important; /* 5 */
  width: 95%;
  max-width: 500px;
  margin: 0 auto;
  /*background-color: #ededed;*/
  }

.gallery-item {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  border: 1px solid #ededed; 
  cursor: pointer;  
  background-color: #ededed;  
  display: flex;
  align-items: center;
  justify-content: center;
  }

.modal {
    flex-direction: column;
    padding-top: 130px;
  }

.modal-content {
    max-width: 90%;
  }

  #caption-container {
    width: 90%;
    border-left: none;
    text-align: center;
    padding-top: 15px;
  }

/* Mobile Tweak 
@media screen and (max-width: 768px) { */

.image-text img {
  width: 180px; 
        }

.main-nav { 
gap: 5px; flex-wrap: wrap; justify-content: center; }
.main-nav a { font-size: 0.8rem;
	}
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}