html, body {
    margin: 0;
    font-family: 'Poppins', sans-serif;  /*"Segoe UI", Helvetica Neue, Arial, */
    line-height: 1.8;
    height: 100%;
    width: 100%;
    overflow: auto;
    display: flex;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

section {
    margin-bottom: 20px;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em; /* 40px/16=2.5em */
    font-weight: bold;
    letter-spacing: 8px;
}

header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8em; /* 40px/16=2.5em */
    font-weight: normal;
    letter-spacing: 2px;
}

header button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

header cite {
    display: block;
    margin-top: 0.5rem;
    margin-left: 3.5rem;
    margin-right: 3.5rem;
    font-size: 0.8rem;
   
    color: #666;
    font-style: italic;
}

h2 {
    margin-top: 0;
    font-size: 18px;
}

.top-bar a:hover, .top-bar button:hover {
    background: #ccc;
}
  
main {
  max-width: 800px;      /* narrower page for readability */
  margin: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column; /* single column */
  gap: 2rem;
}

section {
  background: #fff;
  padding: 1.0rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

section img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

figure img {
  
}

figcaption {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.0rem;
  text-align: left;
}

footer {
  text-align: center;
  padding: 1.5rem 2rem; /* more horizontal padding */
  margin-top: 2rem;
  background: #fff;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #0077cc;
  text-decoration: none;
}

/* Two images side by side */
.image-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 0 2rem;
  justify-content: center;
}

.image-row figure {
  flex: 1;
  min-width: 0;
}

.image-item {
  flex: 1 1 calc(40% - 20px); /* two per row */
  max-width: 300px;
  text-align: center;
}

.image-item img {
    width: 100%;
    height: auto;
    /*border: 2px solid #ccc;*/
    display: block;
}
  
/* Optional: make images scale nicely */
.image-row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
 

/* Two-column row (image + text) */
.two-column {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  
}

.two-column figure {
  flex: 0 0 35%;   /* image column (fixed-ish width) */
  max-width: 300px;
}

.two-column img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.two-column .text-col {
  flex: 1;
}

/* Collapse to single column on small screens */
@media (max-width: 600px) {
  .two-column {
    flex-direction: column;
  }

  .two-column figure {
    max-width: 100%;
  }
  
  .image-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .asym-gallery {
      grid-auto-rows: 120px;
  }
  
  .gallery {
    flex-direction: column;
    align-items: center; /* center the single column */
  }
  
}

/* --- Gallery layout --- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
}

.media-item {
  flex: 1 1 220px;
  max-width: auto;
  text-align: center;
}

.media-item img {
  width: 100%;
  height: auto;
  cursor: pointer;
 
}

.media-item video {
    width: 100%;           /* image/video fills container */
    height: auto;
/*border: 2px solid #ccc;*/
    display: block;
    cursor: pointer;
  
}

.caption {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #666;
    background: #fff;
  /*border: 1px solid #ccc;*/
    border-top: none;
    padding: 6px;
  
}

/* --- Full image view --- */
.full-image-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: auto;         /* ✅ native scrollbars */
  display: none;          /* hidden until opened */
  z-index: 999;
}

.full-image-view img {
  display: block;
  max-width: none;        /* ✅ prevent auto scaling */
  max-height: none;
}

.close-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
}

/* Thumbnail wrapper */
.thumbnail-wrapper {
  margin-top:2rem;
  position: relative;
  display: inline-block;
  text-align: center;
}

.thumbnail-wrapper img {
  /*width: 300px; thumbnail size */
  height: auto;
  display: block;
  border: 2px solid #ccc;
}
      

/* Zoom button aligned with thumbnail top-right */
.zoom-btn {
  position: absolute;
  top: 0;
  right: -50px;   /* shift button outside the thumbnail */
  background: transparent;
  color: black;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
}

.zoom-btn:hover {
  background: transparent;
}

.asym-gallery {
display: grid;
/* First two cols together = Big's width, each = half */
grid-template-columns: 1fr 1fr 1fr;
grid-auto-rows: 200px; /* size of small square */
gap: 4px;
margin: 0 8px;
grid-template-areas:
"big big side1"
"big big side2"
"bottom1 bottom2 bottom3";
}

.asym-gallery img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.big     { grid-area: big; }
.side1   { grid-area: side1; }
.side2   { grid-area: side2; }
.bottom1 { grid-area: bottom1; }
.bottom2 { grid-area: bottom2; }
.bottom3 { grid-area: bottom3; }



   

