/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* --- ADJUSTED BODY BACKGROUND --- */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #4a4a4a;
    /* Set base background to white so grey sections stand out */
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden; /* Keep this for safety */
}

/* Header & Navigation - Black Background */
#main-header {
    background: #000000; /* Solid black */
    padding: 15px 0;  /* INCREASED Padding top/bottom for spacing around the white pill */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* --- NEW: Wrapper for Logo Image and Text --- */
#main-header .logo-area {
    display: flex;          /* Align logo and text horizontally */
    align-items: center;    /* Align logo and text vertically */
    gap: 12px;              /* Creates space between logo and text */
}


#main-header .container {
    display: flex;
    justify-content: space-between; /* Pushes logo-area left, nav right */
    align-items: center;
    max-width: 1200px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

#main-header .logo {
    line-height: 0;
}

#main-header .logo img {
    display: block;
    max-height: 45px; /* Adjust if needed */
    width: auto;
    vertical-align: middle;
}

/* --- NEW: Logo Text Styling --- */
#main-header .logo-text {
    font-family: 'Montserrat', sans-serif; /* Ensure correct font */
    font-size: 1.1em;  /* Adjust size - slightly larger than nav links maybe */
    font-weight: 600;  /* Semi-bold */
    color: #1f2b38;    /* Dark color, similar to section headings */
    white-space: nowrap; /* Prevent text from wrapping */
    /* No margin needed if using gap on parent */
}

/* Navigation (keep existing styles) */
#main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

#main-nav li {
    margin-left: 20px; /* Adjust spacing between items */
}

#main-nav a {
    /* --- COLOR CHANGE --- */
    color: #333; /* Dark text color for links */
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s ease, background-color 0.3s ease; /* Keep transitions */
    display: inline-block;
    border-radius: 4px;
    font-weight: 500; /* Slightly bolder */
    letter-spacing: 0.5px;
}

#main-nav a:hover {
    /* --- HOVER CHANGE --- */
    color: #000000; /* Darken text on hover */
    background-color: rgba(0, 0, 0, 0.05); /* Very subtle grey background hover */
    /* Remove text-decoration if you don't want underline */
    /* text-decoration: underline; */
}

#main-footer {
    background: #000000; /* Solid black */
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

#main-footer p {
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}
#main-footer p:last-child {
    margin-bottom: 0;
}

#main-footer a {
     color: #ecf0f1;
     text-decoration: none;
     font-weight: 400;
     transition: color 0.3s ease;
}
 #main-footer a:hover {
     color: #ffffff;
     text-decoration: none;
 }

/* Section Styling Defaults (Padding handled by specific sections below) */
section h2 {
    text-align: center;
    margin-bottom: 40px; /* Space below heading */
    font-size: 2.4em;
    /* Updated heading color for better contrast on light grey */
    color: #1f2b38; /* Darker blue/grey */
    font-weight: 600;
    letter-spacing: 1px;
}

/* === ALTERNATING SECTION BACKGROUNDS & PADDING === */

/* Carousel Section - FIRST (Light Grey) */
#carousel-section {
    padding: 0; /* No padding for this section wrapper */
    background-color: #ffffff; /* Light grey background */
    /*background-color: #f8f9fa; */
}

/* Carousel Element - Blends into section */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 85vh; /* Adjust as needed */
    background-color: transparent; /* Uses section background */
    box-shadow: none; /* No shadow */
}

.carousel-inner {
     display: flex;
     transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
     height: 100%;
}

 .carousel-item {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Carousel Controls - Adjusted for grey background */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* Slightly darker controls for better visibility on light grey */
    background-color: rgba(44, 62, 80, 0.6); /* Darker semi-transparent */
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-control:hover {
    background-color: rgba(44, 62, 80, 0.85); /* Darken more on hover */
}

.prev { left: 30px; }
.next { right: 30px; }


/* Photo Gallery Section - SECOND (White) */
#photo-gallery {
   padding-top: 70px; /* Space below carousel */
   padding-bottom: 20px; /* Space below grid */
   background-color: #ffffff; /* White background */
}

#photo-gallery h2 {
    /* Uses default section h2 styles */
    margin-bottom: 50px; /* Space before grid */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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


/* About Us Section - THIRD (Light Grey) */
#about {
   padding-top: 70px; /* Space below gallery */
   padding-bottom: 80px; /* Space below content */
   background-color: #f8f9fa; /* Light grey background */
}

#about .container {
     max-width: 900px;
}

#about p {
    margin-bottom: 20px;
    text-align: justify;
    font-weight: 300;
}

/* Footer Section - Black Background (Single Correct Block) */
#main-footer {
    background: #000000; /* Solid black */
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

#main-footer p {
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 0.5px;
}
#main-footer p:last-child {
    margin-bottom: 0;
}

#main-footer a {
     color: #ecf0f1;
     text-decoration: none;
     font-weight: 400;
     transition: color 0.3s ease;
}
 #main-footer a:hover {
     color: #ffffff; /* Brighter white hover */
     text-decoration: none;
 }


/* ========== Responsive Adjustments for Gallery ========== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
     /* ... */
     #about {
        padding-top: 40px; /* Ensure this is consistent */
        padding-bottom: 60px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
     /* Adjust padding on smaller screens if needed */
     #photo-gallery, #about {
         padding-top: 50px;
         padding-bottom: 60px;
     }
     #about {
         padding-bottom: 70px; /* Keep slightly more for footer */
     }
     section h2 {
        margin-bottom: 30px;
     }
}

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

/* ========== GALLERY STYLES (Add cursor) ========== */
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    cursor: pointer; /* --- ADD CURSOR POINTER --- */
}

/* ... (rest of gallery styles) ... */


/* ========== IMAGE MODAL STYLES ========== */

/* The Modal Background (Overlay) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1050; /* Sit on top (needs to be higher than header's z-index) */
  padding-top: 50px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.85); /* Black w/ opacity */
}

/* Modal Content (The Image) */
.modal-content {
  margin: auto;
  display: block;
  width: auto; /* Let height control */
  max-width: 85%;
  max-height: 85vh; /* Limit height relative to viewport */
  object-fit: contain; /* Make sure entire image is visible */
  /* Add animation if desired */
  animation-name: zoom;
  animation-duration: 0.4s;
}

/* Optional: Add Caption Text Styling */
/*
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}
*/

/* Animation */
@keyframes zoom {
  from {transform: scale(0.1)}
  to {transform: scale(1)}
}

/* The Close Button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  line-height: 1; /* Prevent extra height */
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Optional: Adjust modal image size on smaller screens */
@media (max-width: 700px){
  .modal-content {
    max-width: 95%;
  }
   .close-modal {
       top: 10px;
       right: 25px;
       font-size: 30px;
   }
}

/* ========================================= */
/*      RESPONSIVE STYLES                     */
/* ========================================= */

/* Medium Devices (Tablets, smaller desktops - e.g., <= 992px) */
@media (max-width: 992px) {
    /* --- Header Adjustments --- */
    #main-header .container {
        padding: 8px 20px; /* Reduce pill padding */
        max-width: 95%; /* Allow pill to shrink more */
    }
    #main-header .logo img {
        max-height: 40px; /* Smaller logo */
    }
    #main-header .logo-area {
        gap: 10px; /* Reduce gap */
    }
    #main-header .logo-text {
        font-size: 1em; /* Smaller logo text */
    }
    #main-nav li {
        margin-left: 15px; /* Reduce nav spacing */
    }
    #main-nav a {
        padding: 6px 10px; /* Smaller nav padding */
        font-size: 0.95em;
    }

    /* --- Gallery Adjustments --- */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 20px;
    }

    /* --- Typography & Spacing --- */
    section h2 {
        font-size: 2em; /* Slightly smaller headings */
        margin-bottom: 30px;
    }
    #photo-gallery,
    #about {
       padding-top: 60px;
       padding-bottom: 60px;
    }
     #about {
       padding-bottom: 70px; /* Keep slightly more before footer */
    }
}


/* Small Devices (Large Phones, Small Tablets - e.g., <= 768px) */
@media (max-width: 768px) {
    /* --- Header Adjustments --- */
    #main-header {
        padding: 10px 0; /* Slightly reduce black bar padding */
    }
    #main-header .container {
        /* Stack logo/text and nav */
        flex-direction: column;
        gap: 15px; /* Space between logo area and nav */
        padding: 15px; /* Adjust pill padding for stacked */
        border-radius: 30px; /* Less aggressive rounding */
    }
    #main-header .logo-area {
        /* Center logo/text when stacked */
        justify-content: center;
        width: 100%; /* Allow centering */
    }
    #main-nav ul {
        /* Allow nav items to wrap and center */
        flex-wrap: wrap;
        justify-content: center;
        padding: 0; /* Remove default padding if any */
    }
    #main-nav li {
        margin-left: 8px; /* Minimal horizontal space */
        margin-right: 8px;
        margin-bottom: 5px; /* Space if wraps */
    }

    /* --- Carousel Adjustments --- */
    .carousel {
        height: 70vh; /* Reduce height */
    }
    .carousel-control {
        width: 40px; /* Smaller buttons */
        height: 40px;
        font-size: 1.5em;
    }
    .prev { left: 15px; } /* Bring controls in */
    .next { right: 15px; }

    /* --- Gallery Adjustments --- */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 15px;
    }

    /* --- Typography & Spacing --- */
    section h2 {
        font-size: 1.8em; /* Smaller headings */
    }
    #photo-gallery,
    #about {
        padding-top: 50px;
        padding-bottom: 50px;
    }
     #about {
        padding-bottom: 60px;
     }

    /* --- Footer Adjustments --- */
    #main-footer {
        padding: 25px 0;
    }
    #main-footer p {
        font-size: 0.9em;
    }
}


/* Extra Small Devices (Phones - e.g., <= 576px) */
@media (max-width: 576px) {
    /* --- Header Adjustments --- */
    #main-header .container {
        padding: 12px 15px; /* Fine-tune pill padding */
        gap: 12px; /* Space between logo/nav */
    }
     #main-header .logo img {
        max-height: 35px; /* Even smaller logo */
    }
    #main-header .logo-text {
        font-size: 0.9em; /* Smaller logo text */
    }
     #main-nav li {
        margin-left: 5px; /* Tighter nav spacing */
        margin-right: 5px;
    }
    #main-nav a {
        padding: 5px 8px; /* Smaller nav padding */
        font-size: 0.9em;
    }

    /* --- Carousel Adjustments --- */
    .carousel {
        height: 60vh; /* Further reduce height */
    }

    /* --- Gallery Adjustments --- */
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column */
        gap: 20px; /* Can increase gap slightly for single column */
    }

     /* --- Typography & Spacing --- */
    section h2 {
        font-size: 1.6em; /* Further reduce heading size */
        margin-bottom: 25px;
    }
     #photo-gallery,
    #about {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    #about {
        padding-bottom: 50px;
    }
    body {
        line-height: 1.6; /* Slightly tighter line height */
    }
    #about p {
        font-size: 0.95em; /* Slightly smaller text */
    }

     /* --- Footer Adjustments --- */
    #main-footer {
        padding: 20px 0;
    }
    #main-footer p {
        font-size: 0.85em;
    }
}

/* === VIEW MORE BUTTON STYLES === */
.view-more-container {
    text-align: center; /* Center the button */
    margin-top: 40px; /* Space above the button */
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1f2b38; /* Dark color from headings */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 25px; /* Pill shape */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-more-btn:hover {
    background-color: #34495e; /* Slightly lighter on hover */
    transform: translateY(-2px);
}


/* === Optional: Style for the new gallery page section === */
#full-photo-gallery {
    padding-top: 70px;
    padding-bottom: 70px;
    background-color: #ffffff; /* Or #f8f9fa if you want alternating background */
 }

#full-photo-gallery h2 {
    /* Uses existing section h2 styles */
    margin-bottom: 50px;
}

#caption {
    margin: auto; /* Center the block element itself */
    display: block;
    width: 80%;
    max-width: 700px;
    /* --- CHANGED TO JUSTIFY --- */
    text-align: justify;
    color: #ccc;
    padding: 15px 0;
    font-size: 0.9em;
    line-height: 1.4;
    /* white-space: pre-line; */ /* Keep if using <br> in alt text for manual breaks */
  }

  .view-more-container {
    text-align: center;
    margin-top: 40px;
}
  