/* -------------------------------------------------------------------------
   GLOBAL
---------------------------------------------------------------------------*/

body {
  margin: 0;
  font-family: "Verdana", sans-serif;
  color: #e8dcae;
  background: url("../images/bg_repeat.jpg") repeat;
  background-color: #0e2a0e;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   HEADER
---------------------------------------------------------------------------*/

.header-image {
  display: block;
  margin: 0 auto;
  max-width: 1000px;
  width: 100%;
  height: auto;
  border-bottom: 2px solid #4b6434;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------------------------
   NAVIGATION
---------------------------------------------------------------------------*/

nav {
  background-color: #163716;
  text-align: center;
  padding: 0.5rem 0;
  border-bottom: 2px solid #4b6434;
}

nav a {
  color: #f2e2b0;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #fff8d0;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   MAIN CONTENT
---------------------------------------------------------------------------*/

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: rgba(0, 0, 0, 0.55);
  border: 1px solid #4b6434;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Headings */
h2,
h3 {
  color: #f5e8b8;
  margin-top: 2rem;
}

/* -------------------------------------------------------------------------
   MEDIA BLOCKS (modern layout)
---------------------------------------------------------------------------*/

.media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 3rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.media-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image styling */
.media-block img {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  cursor: zoom-in;
  border: 2px solid #4b6434;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}

.media-block img:hover {
  transform: scale(1.03);
}

/* Text side */
.media-text {
  font-size: 1rem;
  line-height: 1.5;
}

/* Left/right alternating layout */
.media-block.left img {
  order: 1;
}
.media-block.left .media-text {
  order: 2;
}

.media-block.right img {
  order: 2;
}
.media-block.right .media-text {
  order: 1;
}

/* -------------------------------------------------------------------------
   MOBILE
---------------------------------------------------------------------------*/

@media (max-width: 800px) {
  .media-block {
    grid-template-columns: 1fr;
  }
  .media-block img,
  .media-block .media-text {
    order: unset !important;
  }
}

/* -------------------------------------------------------------------------
   LIGHTBOX
---------------------------------------------------------------------------*/

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

/* Image animation: zoom + fade */
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox.show img {
  transform: scale(1);
  opacity: 1;
}

/* Optional: cursor hints */
.lightbox {
  cursor: zoom-out;
}

.lightbox img {
  cursor: default;
}

/* Small screens: make sure it fits nicely */
@media (max-width: 600px) {
  .lightbox img {
    max-width: 95vw;
    max-height: 85vh;
  }
}

/* Caption under image */
.lightbox-caption {
  color: #f8f3d4;
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  max-width: 85vw;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show caption when lightbox is visible */
.lightbox.show .lightbox-caption {
  opacity: 1;
}

/* Arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #f8f3d4;
  padding: 0.5rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: 0.3s ease;
  opacity: 0.6;
}

.lb-arrow:hover {
  opacity: 1;
}

.lb-prev {
  left: 2vw;
}

.lb-next {
  right: 2vw;
}

/* Hide arrows on very small screens */
@media (max-width: 500px) {
  .lb-arrow {
    font-size: 2.2rem;
  }
}

/* Container holding image + caption */
.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Caption styling */
.lightbox-caption {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #fff9d6;
  text-align: center;
  max-width: 90%;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------
   FOOTER
---------------------------------------------------------------------------*/

footer {
  text-align: center;
  padding: 1rem;
  background-color: #163716;
  border-top: 2px solid #4b6434;
  color: #d8cfa2;
  font-size: 0.9rem;
}

/*--------------------------------------------------------------------------
Stones Gallery
---------------------------------------------------------------------------*/
/* Stones Grid */
.stone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stone-card {
  background: rgba(20, 35, 20, 0.7);
  padding: 0.8rem;
  border: 1px solid #4b6434;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.stone-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #4b6434;
  cursor: zoom-in;
}

.stone-name {
  margin-top: 0.5rem;
  color: #e8dcae;
  font-size: 1rem;
  font-weight: bold;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.cab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.woodstone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pendant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  border: 2px solid #4b6434;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}

.contact-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 10px;
  max-width: 600px;
}
.contact-box h3 {
  margin-top: 0;
}
.obscure {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.note {
  opacity: 0.8;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}


/* ----------------------------------
   MOBILE NAV
---------------------------------- */

@media (max-width: 650px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 0;
    gap: 0.4rem;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  nav a:last-child {
    border-bottom: none;
  }
}

