:root {
  --primary-color: #adb5bd; 
  --primary-light-color: #dee2e6;
  --primary-dark-color: #212529;
  --secondary-color: #e4e4e4; 
  --gold-color: #443228;
  --gold-light-color: #cdc4ab;
}

 .gallery-header {
    background-image: url('assets/images/gallery.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
  }
  
  .header-content {
    font-size: 30px;
    color: var(--secondary-color);
    text-align: center;
    padding: 20px;
    position: relative; /* Ensure content is above the overlay */
    z-index: 1; /* Ensure content stays above the dark overlay */
  }
  
  .header-content h1, .header-content p {
    padding: 0;
    margin: 0;
  }
  
  .header-content h1 {
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 20px;
    font-size: 36px;
    font-weight: bold;
  }
  
  .header-content p {
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
  }

  .gallery-content {
    background-color: var(--primary-dark-color);
    color: var(--secondary-color);
    padding: 100px 0;
  }

  .detail-container h2 {
    color: var(--secondary-color);
    font-size: 28px;
  }

  .detail-container p {
    text-align: left;
    margin-left: 50px;
    font-size: 12px;
  }

  .card-container {
    background-color: var(--secondary-color);
    width: 360px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
    margin-top: -160px;
  }

  .card-container img {
     height: 200px;
     width: 200px;
  }

  .card-container p {
    font-size: 0.8em;
    text-align: center;
    font-weight: 400;
    color: var(--gold-color);
  }
  .gallery-content div {
    width: 40%;
    padding: 20px 50px;
  }



  /* Responsive Styles for Gallery Header and Content */
@media (max-width: 992px) {
  .gallery-header {
    height: 400px; /* Reduce height for medium screens */
    background-position: center center; /* Adjust position */
  }

  .header-content {
    font-size: 24px; /* Adjust font size */
    padding: 20px; /* Add padding for spacing */
  }

  .header-content h1 {
    font-size: 28px; /* Adjust font size */
    padding-bottom: 15px; /* Reduce bottom padding */
  }

  .header-content p {
    font-size: 14px; /* Adjust paragraph font size */
  }

  .gallery-content {
    padding: 80px 0; /* Reduce vertical padding */
  }

  .detail-container h2 {
    font-size: 24px; /* Reduce heading font size */
  }

  .detail-container p {
    margin-left: 20px; /* Reduce margin */
    font-size: 11px; /* Adjust font size */
  }

  .card-container {
    width: 300px !important; /* Shrink card width */
    margin-top: -120px; /* Adjust margin */
  }

  .card-container img {
    width: 95%; /* Slightly increase image width */
  }

  .gallery-content div {
    width: 60%; /* Allow more space */
    padding: 15px 30px; /* Adjust padding */
  }
}

@media (max-width: 768px) {
  .gallery-header {
    height: 300px; /* Further reduce height */
  }

  .header-content {
    font-size: 20px; /* Smaller font size */
  }

  .header-content h1 {
    font-size: 24px; /* Smaller heading */
    padding-bottom: 10px; /* Adjust bottom padding */
  }

  .header-content p {
    font-size: 12px; /* Smaller paragraph size */
  }

  .gallery-content {
    padding: 50px 0; /* Further reduce padding */
  }

  .detail-container h2 {
    font-size: 20px; /* Smaller font size */
  }

  .detail-container p {
    margin-left: 10px; /* Minimal margin */
    font-size: 10px; /* Smallest font size */
  }

  .card-container {
    width: 250px !important; /* Compact width */
    margin-top: -100px; /* Adjust top margin */
  }

  .gallery-content div {
    width: 80%; /* Stack closer */
    padding: 10px 20px; /* Minimal padding */
  }
}

@media (max-width: 576px) {
  .gallery-header {
    height: 200px; /* Minimal height for small screens */
  }

  .header-content {
    font-size: 18px; /* Smallest font size */
    text-align: center; /* Center align text */
    padding: 10px; /* Add padding */
  }

  .header-content h1 {
    font-size: 20px; /* Adjust heading font size */
  }

  .header-content p {
    font-size: 10px; /* Smallest paragraph size */
  }

  .gallery-content {
    padding: 30px 0; /* Minimal padding */
  }

  .detail-container h2 {
    font-size: 18px; /* Adjust font size */
    text-align: center; /* Center align for readability */
  }

  .detail-container p {
    margin-left: 0; /* Remove margin */
    text-align: center; /* Center align text */
    font-size: 9px; /* Smallest text size */
  }

  .card-container {
    width: 200px !important; /* Smallest width */
    margin-top: -80px; /* Adjust margin */
  }

  .gallery-content div {
    width: 100%; /* Full width for stacking */
    padding: 5px 10px; /* Minimal padding */
  }
}

 

  /* ====================== Images Gallery ======================== */

   .gallery-container h1 {
    color: var(--gold-color);
    font-weight: lighter;
    padding: 20px 0;
   }
     .gallery-item {
    width: 100%;   /* Full width for each item */
    height: 200px;  /* Fixed height */
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Ensures the image covers the area without distortion */
  }

  .gallery-container {
    background-color: var(--primary-light-color);
    padding: 40px 60px;
  }

  .gallery {
    padding: 20px 60px;
  }
