* {
  box-sizing: border-box;
}

body {
 font-family: "Trebuchet MS", Helvetica, sans-serif;
 font-size: calc(16px + 0.390625vw);
}

h1,h2,h3,h4,h5,h6 {
 font-family: "Trebuchet MS", Helvetica, sans-serif;
 font-size: calc(16px + 0.390625vw);
 line-height: 1.2;
}

 h1 { font-size: 3.5rem; background: transparent; text-shadow: 3px 2px 0px #888; font-weight: 800; }
 h3 { font-size: 1.5rem; background: transparent; text-shadow: 3px 2px 0px #888; }

@media (max-width: 600px) {
  h1 { font-size: 2.0rem; }
  .w3-btn { min-height: 44px; margin: 3px 2px !important; font-size: 0.95rem; }
  #about-photo { float: none; width: 100%; min-width: unset; display: block; margin: 0 0 16px 0; }
  .contact-row .w3-half { width: 100%; height: auto !important; min-height: 120px; }
  .contact-row div.w3-display-middle { position: static; transform: none; width: 100% !important; padding: 16px; }
  .contact-row img.w3-display-middle { position: static; transform: none; max-width: 100%; width: auto; height: auto; max-height: 180px; display: block; margin: 16px auto; }
}

.my-title-red {
 color: #c0392b;
 text-shadow: 2px 2px 0px #888;
}

hr.rs-hr {
 width: 33%;
 height: 3px;
 margin-left: auto;
 margin-right: auto;
 margin-top: 32px;
 margin-bottom: 32px;
 background-color: #6271c8;
}

/* Centered page content column (was a w3-row with two 10% spacer columns) */
.content-frame {
  width: 80%;
  margin: 0 auto;
}

/* Gallery masonry — the script in inc/image-grid.inc distributes .tile items
   into 4/3/2/1 .col columns by viewport width, packing each into the shortest
   column. No-JS fallback: tiles stack in a single full-width column. */
.masonry .tile { margin: 0 0 16px; padding: 15px 15px 4px; }
.masonry .tile img { display: block; width: 100%; height: auto; }
.masonry .tile .cap { font-size: 15px; padding: 4px 0; cursor: default; }

.masonry.ready { display: flex; gap: 8px; align-items: flex-start; }
.masonry.ready .col { flex: 1; min-width: 0; }

img:hover {
  box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}

.rs-zoomable { cursor: zoom-in; }

/* Lightbox modal — see inc/modal.inc */
.rs-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}
.rs-modal.is-open { display: flex; }

/* wraps the image so the close button can anchor to the image's corner */
.rs-modal-figure {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.rs-modal img {
  display: block;
  cursor: default;
  border: 2px solid white;
}

.rs-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rs-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.15);
  box-shadow: 0 0 16px 4px rgba(255, 255, 255, 0.7);
}
