/* ===================================== */
/* General Styles (Keep existing if any) */
/* ===================================== */
body {
    font-family: 'Raleway', sans-serif; /* Example font */
    color: #333;
    line-height: 1.6;
}

#navbar {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

#navbar .social-links a {
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#navbar .social-links a:hover {
    color: #007bff !important; /* Example hover color */
}


/* Example Hero Section Styles (from your HTML) */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa; /* Light background */
    margin-bottom: 40px;
}

.hero h2 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: #343a40;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #6c757d;
}

.cta-button {
    display: inline-block;
    background-color: #007bff; /* Primary Bootstrap blue */
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}


/* =========================== */
/* Portfolio Showcase / Gallery */
/* =========================== */
.portfolio-showcase {
    padding: 40px 0; /* Top/bottom padding for the section */
    text-align: center; /* Center the heading */
}

.portfolio-showcase h2 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    margin-bottom: 30px;
    color: #343a40;
}

/* --- Masonry-like Grid using CSS Grid ---
   This is the core of your gallery layout.
*/


.just-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 per row */
  gap: 1rem;
}

.gallery-item img {
  width: 100%;
  height: auto;             /* Let height flow naturally */
  object-fit: contain;      /* Prevent cropping */
  display: block;
}

.just-gallery {
    display: grid;
    /* * grid-template-columns: 
     * repeat(auto-fill, minmax(300px, 1fr)) creates responsive columns.
     * - `auto-fill`: creates as many columns as will fit.
     * - `minmax(300px, 1fr)`: each column will be at least 300px wide,
     * but will grow to fill available space (`1fr`).
     * You can adjust `300px` to control the minimum width of your columns.
     * Smaller min-width will allow more columns on larger screens.
    */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 1rem; /* Space between grid items (1rem = 16px by default) */
    padding: 0 15px; /* Horizontal padding for the grid container itself */
    max-width: 1200px; /* Max width for the whole gallery to keep it contained */
    margin: 0 auto; /* Center the gallery */
}

/* Individual gallery items */
.gallery-item {
    /* Optional: Add some styling to the item containers themselves */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px; /* Slightly rounded corners for each item */
    overflow: hidden; /* Important for border-radius on child images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.2s ease-in-out; /* Smooth transition for hover effect */
    display: flex; /* Helps ensure image fills the item */
    flex-direction: column; /* Stacks content if you add captions below image */
}

.gallery-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* More pronounced shadow on hover */
}

.gallery-item a {
    display: block; /* Make the whole area clickable */
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
}

.gallery-item img {
    width: 100%; /* Image fills the width of its parent (.gallery-item) */
    height: auto; /* CRITICAL: This maintains the image's aspect ratio */
    display: block; /* Removes extra space below the image */
    /* object-fit: cover; /* Use 'cover' if you want images to fill the space
                          * and potentially crop. 'contain' would show entire image
                          * but leave empty space if aspect ratios don't match.
                          * For a masonry feel, `cover` is often used, but with `height: auto`
                          * it should naturally fit without cropping unless you have
                          * a fixed height on the parent. */
    border-radius: 8px; /* Apply to image directly if you want it distinct from container */
}


/* ==================== */
/* Responsive Adjustments */
/* ==================== */
@media (max-width: 992px) { /* Medium screens and smaller */
    .just-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 768px) { /* Small screens and smaller */
    .just-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Allow 2-3 columns */
        gap: 0.7rem;
        padding: 0 10px;
    }
    .hero {
        padding: 40px 15px;
    }
    .portfolio-showcase {
        padding: 30px 0;
    }
}

@media (max-width: 576px) { /* Extra small screens (mobiles) */
    .just-gallery {
        grid-template-columns: 1fr; /* Single column on very small screens */
        gap: 0.5rem;
        padding: 0 5px;
    }
    .gallery-item {
        margin-bottom: 10px; /* Less space between items on mobile */
    }
}

/* This can cause stretching if not combined with object-fit: contain; */
.pswp__img {
    width: 100%;
    height: 100%;
    /* Missing object-fit: contain; here */
}
.pswp__img {
  width: auto;
  height: auto;
  object-fit: contain;
}


/* ===================== */
/* Footer Styles (example) */
/* ===================== */
#footer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

#footer .social-links a {
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#footer .social-links a:hover {
    color: #007bff !important; /* Example hover color */
}

/* ================================================= */
/* Other Libraries (ensure these are loaded correctly) */
/* ================================================= */
/* Add any specific overrides or customizations for your font icons, etc. here */
/* For example, if your font icons look too small or large: */
.fa, .pe-7s {
    font-size: 1.2em; /* Adjust as needed */
}

/* Ensure PhotoSwipe's base styles are correctly loaded via its CDN */
/* No specific custom CSS usually needed here unless you want to override default UI */
/* ========================================= */
/* Carousel Styling - Unified and Consolidated */
/* ========================================= */

/* ========================================= */
/* Carousel Styling - Refined for Mixed Orientations */
/* ========================================= */

/* ========================================= */
/* Carousel Styling - Refined for Mixed Orientations */
/* ========================================= */

/* in your main.css (or add inside a <style> in your <head>) */


 /* 4. Client Reviews Carousel Styling */
/* Targets only the carousel inside .client-reviews-section */
.client-reviews-section .carousel-inner {
  background: #0d0c0c; /* HTML bg-dark handles the dark backdrop */
}
.client-reviews-section .carousel-inner .carousel-item {
  color: white; /* any direct text inside items */
}
.client-reviews-section .carousel-caption,
.client-reviews-section .carousel-caption h5,
.client-reviews-section .carousel-caption h3,
.client-reviews-section .carousel-caption p {
  color: white !important; /* ensure captions are white against dark bg */
}



/* 1) Make all gallery thumbnails white-backed */
.gallery-item img {
  background-color: #fff;
}

/* 2) When PhotoSwipe loads the big image, give it a white background too */
.pswp__img {
  background-color: #fff;
}

/* 3) (Optional) If you’d rather have the overlay itself be light, switch the default black overlay to white */
.pswp {
  --pswp-bg: rgba(255,255,255,1);
}


#mainCarousel .carousel-inner {
    height: 500px; /* FIXED HEIGHT for the carousel display area - Adjust as needed */
    overflow: hidden; /* Important to hide any overflow */
    background-color: #333; /* Dark background to fill empty space for 'contain' */

    display: flex; /* Use flexbox to center image container */
    align-items: center; /* Vertically center image container */
    justify-content: center; /* Horizontally center image container */
}

#mainCarousel .carousel-item {
    height: 100%; /* Carousel item takes full height of carousel-inner */
    width: 100%; /* Carousel item takes full width. Important for positioning image */
    display: flex; /* Use flexbox to center the image within the item */
    align-items: center; /* Center image vertically */
    justify-content: center; /* Center image horizontally */
}

#mainCarousel .carousel-item img {
    object-fit: contain; /* Scales the image to fit entirely within the item, preserving aspect ratio */
    
    height: 100%; /* Image will try to fill the available height */
    max-width: 100%; /* Prevents image from overflowing horizontally if it's very wide */
    /* If you find images are appearing "squished" (distorted aspect ratio), 
       it's likely object-fit: contain isn't being applied or you have a conflicting width/height.
       Ensure no other CSS is overriding these properties. */
}

/* --- Responsive Adjustments for Carousels --- */
@media (max-width: 992px) {
    #mainCarousel .carousel-inner {
        height: 400px; /* Shorter height on tablets */
    }
}

@media (max-width: 768px) {
    #mainCarousel .carousel-inner {
        height: 300px; /* Even shorter height on smaller mobiles */
    }
}

/* =========================== */
/* Portfolio Showcase / Gallery (Using Bootstrap Grid for Masonry-like) */
/* =========================== */
.portfolio-showcase {
    padding: 40px 0; /* Top/bottom padding for the section */
    text-align: center; /* Center the heading */
}

.portfolio-showcase h2 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    margin-bottom: 30px;
    color: #343a40;
}

/* Styling for the Bootstrap Columns within the gallery */
.portfolio-showcase .row.g-4 .col-12 { /* General column styling for spacing */
    margin-bottom: 1rem; /* Vertical gap between items */
}

.portfolio-showcase .row.g-4 .gallery-item { /* Target the <a> tag inside the col */
    display: block; 
    text-decoration: none; 
    color: inherit; 
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    transition: transform 0.2s ease-in-out; 
}

.portfolio-showcase .row.g-4 .gallery-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); 
}

.portfolio-showcase .row.g-4 .gallery-item img {
    width: 100%; 
    height: auto; /* CRITICAL for masonry grid, images retain aspect ratio */
    display: block; 
    border-radius: 8px; 
}


/* ---------- MASONRY GRID ---------- */
.masonry-grid {
  /* base: 3 columns with 1rem gutter */
  column-count: 3;
  column-gap: 1rem;
  /* prevent items from overflowing container */
  max-width: 100%;
}

/* responsive breakpoints */
@media (max-width: 576px) {
  .masonry-grid { column-count: 1; }
}
@media (min-width: 577px) and (max-width: 768px) {
  .masonry-grid { column-count: 2; }
}
@media (min-width: 769px) {
  .masonry-grid { column-count: 3; }
}

/* ---------- GALLERY ITEMS ---------- */
.masonry-grid .gallery-item {
  display: inline-block;       /* critical for CSS-columns masonry */
  width: 100%;                 /* fill full column width */
  margin: 0 0 1rem;            /* vertical gutter */
  break-inside: avoid;         /* don’t split across columns */
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.masonry-grid .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* make images behave */
.masonry-grid .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* optional: overlay caption style */
.masonry-grid .info-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .5rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.masonry-grid .gallery-item:hover .info-content {
  opacity: 1;
}



/* 1) Masonry via CSS columns */
.masonry-grid {
  column-count: 3;
  column-gap: 1rem;       /* gutter */
}

/* 2) Make each <a> into an inline-block that won’t break across columns */
.masonry-grid .gallery-item {
  display: inline-block;  /* ← critical to make the whole block clickable */
  width: 100%;
  margin: 0 0 1rem;       /* vertical gutter */
  break-inside: avoid;    /* avoid splitting across columns */
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;        /* explicit pointer */
  position: relative;     /* ensure nothing floats on top */
  z-index: 1;
  pointer-events: auto;   /* ensure clicks are honored */
}

.masonry-grid .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 3) Make your image fill the block */
.masonry-grid .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}


/* ===================================== */
/* Navbar Section (Updated to match footer) */
/* ===================================== */
/* ensure your header/nav sits on top of everything */
/* ————————————————————————————————
   Critical Navbar Overrides (place last)
   ———————————————————————————————— */

/* ──────────────────────────────────────────
   1) NAVBAR — single definition
───────────────────────────────────────────── */
.navbar {
  position: relative;      /* or fixed, if you want overlay */
  z-index: 999;
  background-color: #212529;
  padding: 0.5rem 0;
}

.navbar .navbar-brand {
  margin-right: auto;      /* pushes links right */
}
.navbar .navbar-nav {
  margin-left: auto;       /* pushes itself—and the social—right */
}
.navbar .social-links {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}
.navbar .social-links a {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}
.navbar .social-links a:hover {
  color: #007bff;
}

/* ONLY if you need a full-width overlay menu on mobile: */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #212529;
  }
}



/* ===================================== */
/* Header Section */
/* ===================================== */
.header-section {
    background-color: #f8f9fa; /* Example light background for the header section */
    padding-top: 80px; 
    padding-bottom: 40px; 
    text-align: center;
    color: #343a40; 
}

.header-section .main-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: 3.5rem; 
    margin-bottom: 0; 
    line-height: 1.2;
}

/* Responsive for header title */
@media (max-width: 768px) {
    .header-section {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    .header-section .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .header-section {
        padding-top: 50px;
        padding-bottom: 25px;
    }
    .header-section .main-title {
        font-size: 2rem;
    }
}

/* ===================== */
/* Hero Section */
/* ===================== */
.hero {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    margin-bottom: 40px;
}

.hero h2 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    margin-bottom: 15px;
    color: #343a40;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #6c757d;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}


/* ===================== */
/* Footer Styles */
/* ===================== */
#footer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

#footer .social-links a {
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#footer .social-links a:hover {
    color: #007bff !important; 
}

/* ================================================= */
/* General Body and Container Adjustments */
/* ================================================= */
body {
    overflow-x: hidden; /* Prevents horizontal scrollbar from elements extending */
}

/* Ensure container has some default horizontal padding */
.container {
    padding-left: var(--bs-gutter-x, 0.75rem); /* Default Bootstrap padding */
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* For your main content wrapper (optional, adjust if needed) */
.main-wrapper {
    /* If you want a max-width for the whole site */
    /* max-width: 1400px; */
    /* margin: 0 auto; */
}

