/* ===== General Body ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* ===== Navbar ===== */
.navbar {
  background: #333;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.logo a:hover {
  color: #ddd;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  margin-left: 25px;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* ===== Banner ===== */
.banner {
  width: 100%;
  height: 20vh; /* 1/5 of viewport */
  background: url('bg1.jpg') center center / cover no-repeat;
  opacity: 0;
  animation: fadeIn 2s forwards;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner-text {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== Latest Artefacts ===== */
.latest {
  padding: 20px;
  text-align: center;
}

.latest h2 {
  margin-bottom: 20px;
}

.artefact-thumbs {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Thumbnails on homepage */
.artefact-thumbs img {
  width: 260px;
  height: 180px;           /* fixed thumbnail height */
  object-fit: cover;        /* crop to uniform size */
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
  transition: transform 0.2s;
}

.artefact-thumbs img:hover {
  transform: scale(1.05);
}

/* ===== Modal Preview ===== */
/* ===== Modal: keep content within viewport and horizontal gallery ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;             /* breathing space on all sides */
  box-sizing: border-box;
}

/* modal-content is limited to viewport height; gallery will scroll horizontally */
.modal-content {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  max-height: 80vh;          /* limit height so it doesn't overflow outside viewport */
  overflow: hidden;          /* hide vertical overflow; gallery scrolls horizontally */
  position: relative;
}

/* horizontal gallery container */
.preview-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;          /* horizontal scrolling */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  padding-bottom: 6px;
  scroll-snap-type: x mandatory; /* optional nice snap behaviour */
}

/* image cards inside gallery */
.preview-gallery img {
  flex: 0 0 auto;            /* don't shrink, don't grow */
  max-height: 66vh;          /* safe height inside modal */
  height: auto;
  width: auto;
  border-radius: 6px;
  display: block;
  scroll-snap-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* gallery controls overlay (arrows) */
.gallery-controls {
  pointer-events: none;      /* default: let clicks pass through except on buttons */
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  box-sizing: border-box;
}

.gallery-controls button {
  pointer-events: auto;      /* enable clicks on the buttons */
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-controls button:hover {
  background: rgba(255,255,255,1);
}

/* ensure modal text areas etc remain readable below gallery */
.modal-info {
  margin-top: 12px;
  text-align: left;
  max-height: calc(80vh - 260px); /* leave space for gallery (adjust if needed) */
  overflow-y: auto;
  padding-right: 6px;
}

/* Carousel container */
.preview-gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.preview-gallery img.slide-img {
  position: absolute;
  max-height: 100%;
  max-width: 100%;
  border-radius: 8px;
  transition: transform 0.4s, opacity 0.4s;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  opacity: 0;
  z-index: 0;
}

.preview-gallery img.active { transform: translateX(0) scale(1); opacity: 1; z-index: 2; }
.preview-gallery img.left { transform: translateX(-220px) scale(0.7); opacity: 0.6; z-index: 1; }
.preview-gallery img.right { transform: translateX(220px) scale(0.7); opacity: 0.6; z-index: 1; }


.preview-gallery .gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 3;
}

.preview-gallery .gallery-left { left: 10px; }
.preview-gallery .gallery-right { right: 10px; }

/* Thumbnails strip */
/* Modal main images: no cropping */
.main-image img {
  width: auto;
  max-width: 80%;
  max-height: 70vh;       /* prevents modal from exceeding viewport */
  object-fit: contain;    /* ensures full image is visible */
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* Thumbnails inside modal */
.thumbnail-strip img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.6;
  cursor: pointer;
  margin: 3px;
  transition: transform 0.2s, opacity 0.3s;
}

.thumbnail-strip img.active-thumb {
  opacity: 1;
  border: 2px solid #333;
  transform: scale(1.05);
}




.modal img {
  max-width: 200px;
  margin: 5px;
  border-radius: 4px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.full-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 15px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.full-link:hover {
  background: #555;
}

/* ===== Welcome Section ===== */
.welcome {
  padding: 40px;
  background: #f4f4f4;
  text-align: center;
}

.welcome h2 {
  margin-bottom: 15px;
}

.welcome p {
  max-width: 600px;
  margin: auto;
  font-size: 18px;
  line-height: 1.5;
}

.about-banner {
  width: 100%;
  min-height: 100vh; /* full viewport height */
  background: url('bg3.jpg') center center / cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

.about-banner::before {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5); /* dark overlay to improve text readability */
}

.about-content {
  position: relative;
  color: white;
  max-width: 900px;
  text-align: center;
  z-index: 1; /* ensures content is above overlay */
}

.about-content h1, .about-content h2, .about-content p {
  margin-bottom: 20px;
}

.nav-links a:link,
.nav-links a:visited {
  color: white !important;      /* keeps all links white */
  text-decoration: none;
  font-weight: bold;
  margin-left: 25px;
}

.nav-links a:hover,
.nav-links a:focus {
  text-decoration: underline;
  color: #ddd !important;       /* optional hover color */
}
.about-content a:link,
.about-content a:visited {
  color: #10e3ff;
}

.about-content a:hover,
.about-content a:focus {
    color: #1064ff;
    text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: #1f1f1f;  /* dark background to contrast with content */
  color: #f1f1f1;             /* light text */
  padding: 30px 0;
  text-align: center;          /* centers all text inside */
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-top: 2px solid #444; /* subtle top border */
}

.site-footer a {
  color: #f1f1f1;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: left;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  font-size: 1em;
}

.contact-form button {
  padding: 10px;
  background: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #222;
}

.contact-info {
  margin-top: 20px;
  font-size: 0.95em;
}

.artefact-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.artefact-gallery img {
  width: 250px;   /* Thumbnail size */
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.artefact-gallery img:hover {
  transform: scale(1.05);
}

#lightgallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

#lightgallery img {
  width: 250px;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

#lightgallery img:hover {
  transform: scale(1.05);
}

.tag {
  background: #eee;
  padding: 3px 6px;
  margin-right: 4px;
  border-radius: 3px;
  display: inline-block;
}








