/* Base Styles */
body {
  font-family: 'Aktiv Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333;
  padding-top: 0;
  font-size: 12px; 
  line-height: 1.5;
}

/* Navbar */
.navbar {
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 0; 
  font-size: 12px; 
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2px 0; 
}

.navbar-brand {
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  margin: 0 10px;
  font-size: 12px; 
}

/* Gallery Header - Matching the "Our Story" style */
.gallery-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)), 
              url('../images/gallery-bg-large.jpeg') center/cover no-repeat;
  position: relative;
  color: white;
  min-height: 300px;
  display: flex;
  align-items: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  padding: 80px 0;
}

/* Gallery Content Container */
.gallery-container-wrapper {
  padding-top: 30px;
  padding-bottom: 60px;
}

/* Adjust the gallery-section to remove its padding */
.gallery-section {
  background-color: #f9f9f9;
}

/* Typography to match your example */
.gallery-header .display-5 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gallery-header .lead-sm {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-header {
    min-height: 250px;
    padding: 60px 0;
  }
  
  .gallery-header .display-5 {
    font-size: 2rem;
  }
  
  .gallery-header .lead-sm {
    font-size: 1.1rem;
  }
}

/* Gallery Styles */
.gallery-section {
  padding: 100px 0 80px;
  background-color: #f9f9f9;
}

.gallery-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.gallery-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Modal Styles */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.modal-img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

.modal-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
  padding: 0 20px;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.close-btn:hover {
  color: #aaa;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
  border: none;
  z-index: 1001;
}

.modal-nav-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev-btn {
  left: 30px;
}

.next-btn {
  right: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-section {
    padding: 80px 0 60px;
  }
  
  .gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .modal-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
  
  .prev-btn {
    left: 15px;
  }
  
  .next-btn {
    right: 15px;
  }
  
  .close-btn {
    top: 15px;
    right: 25px;
    font-size: 35px;
  }
}

/* Chat Widget Styles */
  .twilio-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    font-family: 'Aktiv Grotesk', sans-serif;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 500px;
    display: flex;
    flex-direction: column;
  }
  
  .twilio-chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .chat-header {
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  .chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f5f5f5;
  }
  
  .chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
  }
  
  .chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
  }
  
  .chat-bubble.received {
    background: white;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .chat-bubble.sent {
    background: #DCF8C6;
    align-self: flex-end;
  }
  
  .chat-time {
    display: block;
    font-size: 10px;
    color: #999;
    text-align: right;
    margin-top: 4px;
  }
  
  .chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .form-group {
    width: 100%;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
  }
  
  .form-group textarea {
    min-height: 80px;
    resize: none;
  }
  
  .send-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
  }
  
  .send-button:hover {
    background: #128C7E;
  }
  
  .chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .chat-toggle:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  }
  
  .chat-toggle i {
    font-size: 20px;
  }