/* Universal reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base body styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  overflow-x: hidden;   /* prevent horizontal scroll */
  overflow-y: hidden;   /* prevent vertical scroll */
  height: 100vh;        /* lock viewport height */
}

/* Home button */
.home-button {
  position: absolute;
  top: 0;               /* flush with top */
  left: 20px;
  background-color: transparent;
  padding: 0;
  border: none;
  text-decoration: none;
  z-index: 3;
}

.home-button img {
  height: 80px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-button:hover img {
  transform: scale(1.05);
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .home-button {
    top: 0;             /* still flush with top */
    left: 10px;
  }

  .home-button img {
    height: 60px;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .home-button {
    top: 0;             /* flush with top */
    left: 5px;
  }

  .home-button img {
    height: 60px;
  }
}

/* Heading block */
.gallery-heading {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 50px;     /* space below home button */
}

.gallery-heading .overlay-title {
  font-size: 5rem;
  font-weight: bold;
  color: #000;
  position: relative;
  z-index: 2;
}

.gallery-heading .overlay-title.faint {
  font-size: 10rem;
  color: rgba(0,0,0,0.08);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  white-space: nowrap;
}

/* Gallery section */
.angled-gallery {
  width: 100%;
  padding: 3rem 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow: hidden;     /* no scroll */
}

.gallery-row {
  width: 100%;
  overflow: hidden;     /* no scroll */
}

.gallery-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
}

.gallery-panel {
  flex: 0 0 180px;
  height: 120px;
  transform: skewY(-4deg);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  cursor: pointer;
}

.gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skewY(4deg);
  display: block;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
  .gallery-panel {
    flex: 0 0 140px;
    height: 100px;
  }
  .gallery-track {
    gap: 1rem;
  }
}

/* Lightbox modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  width: 100%;        /* fill available width */
  height: auto;       /* keep aspect ratio */
  max-width: 90%;     /* don’t exceed viewport width */
  max-height: 90vh;   /* don’t exceed viewport height */
  border-radius: 8px;
  object-fit: contain; /* ensures full image fits */
}


.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.lightbox .close {
  top: 20px;
  right: 20px;
  transform: none;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}
