@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200;300;400;500;600;700;800&display=swap');

body {
  font-family: "Assistant", sans-serif;
}
/* For custom scroll snap buttons if SVGs are used */
.testimonial-button svg {
  transition: fill 0.3s ease-in-out;
}
.testimonial-button:hover svg {
  fill: white;
}

.video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  border: none;
  z-index: 1; /* Lower z-index than placeholder */
  /* filter: blur(10px);  */
}

.video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 2; /* Higher z-index than background video */
  transition: opacity 0.5s ease-out;
  opacity: 1; /* Ensure it's visible by default */
}

.video-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Masonry Gallery */
.masonry-gallery {
  column-count: 1; /* 2 columns on mobile */
  column-gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tablet and up - 3 columns */
@media (min-width: 768px) {
  .masonry-gallery {
    column-count: 3;
    column-gap: 20px;
  }
}

/* Desktop and up - 4 columns */
@media (min-width: 1024px) {
  .masonry-gallery {
    column-count: 4;
    column-gap: 24px;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video thumbnail overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Make gallery items with videos relative positioned */
.gallery-video-item {
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .masonry-gallery {
    column-gap: 12px;
  }
  
  .gallery-item {
    margin-bottom: 12px;
    border-radius: 8px;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  margin-left: 20px;
}

.lightbox-next {
  margin-right: 20px;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    padding: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-prev svg,
  .lightbox-next svg {
    width: 20px;
    height: 20px;
  }
  
  .lightbox-prev {
    margin-left: 10px;
  }
  
  .lightbox-next {
    margin-right: 10px;
  }
}

/* About Section Background */
.about-background {
  background-image: url(images/about.jpeg);
  background-position: right;
  background-size: 42%;
  background-repeat: no-repeat;
  padding-block: 60px;
}

/* Mobile responsive for about background */
@media (max-width: 768px) {
  .about-background {
    background-size: 100%;
    background-position: center;
  }
}