html,
body {
  overflow-x: hidden;
}

body {
  background-color: #f8f9fa;
  /* light gray */
  font-family: 'Segoe UI', sans-serif;
}

h1 {
  color: #343a40;
}

/* Viewer base */
.viewer {
  display: grid;
  grid-template-columns: 100% 0%;
  height: 70vh;
  min-height: 300px;
  background: #212529;
  transition: grid-template-columns 0.6s ease-in-out;
  position: relative;
  /* allow overlay positioning */
  overflow: hidden;
}

/* Split mode (desktop/tablet) */
.viewer.split {
  grid-template-columns: 70% 30%;
}

/* On small screens: overlay info instead of shrinking image */
@media (max-width: 768px) {
  .viewer {
    height: 35vh;
    min-height: 300px;
    background: #212529;
    position: relative;
    overflow: hidden;
  }

  .viewer.split {
    grid-template-columns: 100%;
  }

  /* Info panel */
  .info {
    position: absolute;
    bottom: -80%;
    background: #ffffff;
    padding: 30px;
    width: 100%;
    max-height: 80%;
    overflow-y: auto;
    transition: bottom 0.5s ease-in-out;
  }

  .viewer.split .info {
    bottom: 0;
  }
}

.photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.photo img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  transition: transform 0.25s ease-in-out;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.photo button {
  z-index: 1;
}

/* Info panel */
.info {
  background: #ffffff;
  padding: 30px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.viewer.split .info {
  opacity: 1;
}

/* Zoom controls */
.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  /* bigger boxes */
  gap: 15px;
}

.gallery div {
  background-color: black;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* keep squares */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.gallery div:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* About Us */
.hero-section {
  background: url('../Images/Mesolite\ with\ Calcite\ &\ Stilbite-1920.jpg') center/cover no-repeat;
  height: 60vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
}

.about-img {
  border-radius: 15px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.image-box {
  border: 1px solid lightgrey;
  padding: 10px;
  border-radius: 8px;
}

.image-box>img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}