/* ===== LIFE AT MR PAGE ===== */

/* ── Banner ── */
.lam-banner {
  position: relative;
  width: 100%;
  height: 356px;
  background: #051e30 no-repeat center center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Diagonal overlay — blue left, transparent right */
.lam-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 30, 48, 0.85) 0%,
    rgba(5, 30, 48, 0.6) 45%,
    transparent 70%
  );
  z-index: 1;
}

/* Banner text */
.lam-banner-text {
  position: relative;
  z-index: 2;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
}

.lam-banner-text h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* Mobile banner image — hidden on desktop */
.lam-banner-mob {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lam-banner {
    height: 300px;
    background: #1c3470 no-repeat center center;
  }

  .lam-banner-mob {
    display: block;
  }

  .lam-banner-text h1 {
    font-size: 42px;
    letter-spacing: 2px;
  }
}

/* ── Intro Section ── */
.lam-intro {
  padding: 70px 0 50px;
  text-align: center;
}

.lam-intro-text {
  max-width: 900px;
  margin: 28px auto 0;
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  text-align: justify;
}

/* ── Collage Section ── */
.lam-collage-sec {
  padding: 20px 0 80px;
  background: #f4f7fb;
}

.lam-collage-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

/* Left content */
.lam-collage-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #051e30;
  margin-bottom: 20px;
}

.lam-collage-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
}

/* Right collage */
.lam-collage {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 6px;
}

.lam-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Stagger heights for masonry feel */
.lam-col:nth-child(1) img:nth-child(1) {
  height: 160px;
}
.lam-col:nth-child(1) img:nth-child(2) {
  height: 120px;
}
.lam-col:nth-child(1) img:nth-child(3) {
  height: 140px;
}

.lam-col:nth-child(2) img:nth-child(1) {
  height: 130px;
}
.lam-col:nth-child(2) img:nth-child(2) {
  height: 160px;
}
.lam-col:nth-child(2) img:nth-child(3) {
  height: 120px;
}

.lam-col:nth-child(3) img:nth-child(1) {
  height: 110px;
}
.lam-col:nth-child(3) img:nth-child(2) {
  height: 150px;
}
.lam-col:nth-child(3) img:nth-child(3) {
  height: 150px;
}

.lam-col img {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .lam-collage-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lam-intro-text {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .lam-intro {
    padding: 50px 0 30px;
  }

  .lam-collage-content h2 {
    font-size: 22px;
  }

  .lam-col:nth-child(1) img,
  .lam-col:nth-child(2) img,
  .lam-col:nth-child(3) img {
    height: 90px;
  }

  .lam-banner-mob {
    width: 100%;
    height: 193px;
    object-fit: cover;
    display: block;
    object-position: -5px 0px;
  }
}
/* ===== GALLERY SECTION ===== */

.gallery-sec {
  padding: 20px 0 60px;
}

.gallery-sec .headingsec {
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  pointer-events: none;
  user-select: none;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 30, 48, 0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(5, 30, 48, 0.35);
}

.gallery-item-overlay i {
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 32px;
  height: 32px;
}

.gallery-item:hover .gallery-item-overlay i {
  opacity: 1;
}

/* CTA */
.gallery-cta {
  text-align: center;
  margin-top: 36px;
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Close */
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: flex;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 10;
}
.lb-close:hover {
  opacity: 1;
}
.lb-close i {
  width: 28px;
  height: 28px;
}

/* Arrows */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}
.lb-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lb-prev {
  left: 20px;
}
.lb-next {
  right: 20px;
}
.lb-arrow i {
  width: 22px;
  height: 22px;
}

/* Main image */
.lb-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  width: 90%;
}

.lb-img {
  max-height: 62vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  transition: opacity 0.2s ease;
}

.lb-img.fade {
  opacity: 0;
}

.lb-caption {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: 0;
}

.lb-counter {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* Thumbnails */
.lb-thumbs-wrap {
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  cursor: grab;
}

.lb-thumbs-wrap:active {
  cursor: grabbing;
}

.lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px;
  scroll-behavior: smooth;
}

.lb-thumbs::-webkit-scrollbar {
  display: none;
}

.lb-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border: 2px solid transparent;
  pointer-events: all;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-thumb.active,
.lb-thumb:hover {
  opacity: 1;
  border-color: #fff;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }

  .lb-arrow {
    width: 38px;
    height: 38px;
  }
}
