/* ===========================
   Gallery Page Styling (Clean)
   =========================== */


/* Page Wrapper */
body.gallery-page {
  background-color: #083b4c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

/* Main Section */
/* Make the gallery section truly full width, breaking out of parent constraints */
body.gallery-page main.gallery-main {
  background-color: #083b4c;
  width: 100vw;
  display: block;
  overflow-x: hidden;
  margin: 0;
  padding: 30px 0 40px; /* added top padding */
  margin-left: calc(50% - 50vw); /* full width breakout */
  max-width: none; /* prevent inherited constraint */
  border-radius: 0; /* remove inherited rounding */
  box-shadow: none; /* remove any shadow from global main styling */
}

/* Headings & Text */
.gallery-section h1,
.gallery-section p {
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
}

/* Scroll Gallery */
/* Gallery Grid Layout */
.gallery-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  justify-items: stretch;
  padding: 0px 25px; /* reduce horizontal padding */
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}


/* Gallery Items */
.gallery-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.gallery-item img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.gallery-item p {
  color: #fff;
  font-size: 1.1rem;
  padding: 12px 18px;
  text-align: left;
}



/* Lightbox Effect */
.gallery-item img {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Fullscreen Lightbox View */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
