/* Custom Gallery CSS - Generated from used Tailwind classes and custom styles */

/* Base styles for Inter font and background */
body {
    font-family: "Inter", sans-serif;
    background-color: #F8F6F0; /* Light warm beige */
}

/* Padding classes */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
@media (min-width: 640px) { .sm\:p-8 { padding: 2rem; } }
@media (min-width: 768px) { .md\:p-12 { padding: 3rem; } }

/* Max-width and margin auto for centering */
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; } /* Added for intro paragraph */
.mx-auto { margin-left: auto; margin-right: auto; }

/* Background colors */
.bg-white { background-color: #FCFAF7; } /* Slightly warmer white/cream */
.bg-gray-100 { background-color: #EBEFDF; } /* Very light sage green for gallery items */
.bg-red-600 { background-color: #4A7A4A; } /* Forest Green for YouTube button */
.hover\:bg-red-700:hover { background-color: #3A623A; } /* Darker Forest Green for YouTube button hover */

/* Border radius */
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-t-lg { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }

/* Shadows */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Text styles */
.text-5xl { font-size: 3rem; line-height: 1; } /* For main title */
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; } /* For section headings */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; } /* For intro paragraph */
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; } /* For button text */
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; } /* For intro paragraph */

/* Text colors */
.text-gray-900 { color: #42362C; } /* Deep earthy brown for main title */
.text-gray-800 { color: #5C4B3A; } /* Darker warm brown for section headings */
.text-gray-700 { color: #6B6051; } /* Medium warm brown for intro paragraph */
.text-gray-600 { color: #6B6051; } /* Medium warm brown for general text */
.text-gray-500 { color: #8C8277; } /* Lighter warm brown for loading/error messages */
.text-red-500 { color: #ef4444; } /* Retained for error messages, can be changed if desired */
.text-white { color: #fff; } /* For YouTube button text */
.text-blue-600 { color: #45859D; } /* Muted Teal/Blue-Green for email link */
.hover\:text-blue-800:hover { color: #35697D; } /* Darker Muted Teal for email link hover */
.underline { text-decoration-line: underline; }

/* Margin bottom */
.mb-1 { margin-bottom: 0.25rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; } /* For language selector */
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-15 { margin-bottom: 0.9375rem; }
.mt-10 { margin-top: 2.5rem; } /* Added for intro paragraph below header */
@media (min-width: 640px) { .sm\:mb-12 { margin-bottom: 3rem; } }

/* Padding for buttons */
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Display utilities */
.hidden { display: none; }
.flex { display: flex; }
.inline-block { display: inline-block; }
.flex-grow { flex-grow: 1; }
.justify-end { justify-content: flex-end; } /* For language selector */
.gap-2 { gap: 0.5rem; } /* For language selector */

/* Transitions and Transforms */
.transition { transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }


/* Grid styles */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gap-6 { gap: 1.5rem; }
.col-span-full { grid-column: 1 / -1; }

/* Width and Height */
.w-full { width: 100%; }
.h-48 { height: 12rem; }
@media (min-width: 640px) { .sm\:h-56 { height: 14rem; } }
@media (min-width: 768px) { .md\:h-64 { height: 16rem; } }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Custom styles for gallery images */
.gallery-image {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}
.gallery-image:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 10px; /* Minimal padding for the overall lightbox overlay */
}

/* Lightbox content box (the white rectangle) */
.lightbox-content {
    position: relative; /* Establishes positioning context for inner elements */
    background-color: #FCFAF7; /* Light cream for content box */
    margin: auto;
    padding: 25px; /* Generous padding to give ample space for content */
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column; /* Stack image, text, controls vertically */
    align-items: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: contain;
}

/* Container for title and description */
.lightbox-text-area {
    text-align: center;
    margin-bottom: 15px; /* Space between text and new controls */
    width: 100%; /* Take full width for centering */
}

.lightbox-caption {
    color: #5C4B3A; /* Darker warm brown */
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.lightbox-description {
    color: #6B6051; /* Medium warm brown */
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 0; /* No bottom margin, as it's handled by parent */
}

/* New container for all bottom controls */
.lightbox-footer-controls {
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Space out arrows and close button */
    width: 100%; /* Take full width of lightbox-content */
    padding: 0 10px; /* Some padding on the sides for arrows */
    margin-top: 10px; /* Space from the text area above */
}

/* Close Button (now part of flex flow) */
.close-btn {
    cursor: pointer;
    color: #6B6051; /* Medium warm brown for visibility against white background */
    font-size: 2.5rem;
    font-weight: bold;
    padding: 5px 15px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(107, 96, 81, 0.15); /* Semi-transparent medium warm brown */
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* Removed absolute positioning */
}

.close-btn:hover {
    background-color: rgba(107, 96, 81, 0.3); /* Darker semi-transparent medium warm brown */
}

/* Navigation Buttons (now part of flex flow) */
.nav-btn {
    cursor: pointer;
    color: #6B6051; /* Medium warm brown for visibility against white background */
    font-size: 2.5rem;
    font-weight: bold;
    padding: 5px 10px;
    transition: 0.3s;
    user-select: none;
    background-color: rgba(107, 96, 81, 0.15); /* Semi-transparent medium warm brown */
    border-radius: 50%;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent buttons from shrinking */
    z-index: 10; /* Ensure buttons are on top */
    /* Removed absolute positioning */
}

.nav-btn:hover {
    background-color: rgba(107, 96, 81, 0.3); /* Darker semi-transparent medium warm brown */
}

/* Language Selector Buttons */
.lang-btn {
    background-color: #6B6051; /* Medium warm brown */
    color: #FCFAF7; /* Light cream text */
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.1s ease-in-out;
    border: 2px solid transparent; /* Default border */
}

.lang-btn:hover {
    background-color: #5C4B3A; /* Darker warm brown on hover */
    transform: translateY(-1px); /* Slight lift on hover */
}

.lang-btn.active-lang {
    background-color: #4A7A4A; /* Forest Green for active language */
    border-color: #3A623A; /* Darker green border for active */
    color: #fff; /* White text for active */
    cursor: default; /* No pointer on active */
}

/* --- HEADER IMAGE STYLES --- */
.header-image-container {
    position: relative; /* Establishes positioning context for children */
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow its parent */
    height: 400px; /* Fixed height for the header image area */
    overflow: hidden; /* Hide any overflow from the image */
    border-radius: 0.75rem; /* Matches .rounded-xl from parent div */
    margin-bottom: 2.5rem; /* Space below the header image container */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Matches .shadow-lg */
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container, cropping as needed */
    display: block; /* Remove extra space below image */
}

/* Positioning for elements inside header-image-container */
.language-selector {
    position: absolute;
    top: 1rem; /* 16px from top */
    right: 1rem; /* 16px from right */
    z-index: 20; /* Ensure it's above the image and title */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background for readability */
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.main-header-title {
    position: absolute;
    bottom: 1.5rem; /* 24px from bottom */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    z-index: 15; /* Ensure it's above the image */
    color: #FFFFFF; /* White text for contrast against image */
    font-size: 3.5rem; /* Slightly larger for impact */
    font-weight: 800; /* Extra bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
    text-align: center;
    width: 90%; /* Limit width to prevent overflow on smaller screens */
    line-height: 1.1; /* Adjust line height for better appearance */
}

/* Responsive adjustments for header image elements */
@media (max-width: 768px) {
    .header-image-container {
        height: 250px; /* Shorter height on smaller screens */
        margin-bottom: 1.5rem; /* Adjusted margin for mobile */
    }
    .language-selector {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem;
        gap: 0.3rem;
    }
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.875rem; /* Smaller font on mobile */
    }
    .main-header-title {
        font-size: 2.5rem; /* Smaller font for mobile */
        bottom: 1rem; /* Closer to bottom on mobile */
    }
}


/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 15px; /* Adjusted padding for mobile */
    }
    .lightbox-content img {
        max-height: 60vh;
    }
    .close-btn {
        font-size: 2rem;
        padding: 3px 10px;
    }
    .lightbox-footer-controls {
        flex-wrap: wrap; /* Allow wrapping on very small screens */
        justify-content: center; /* Center content when wrapped */
        padding: 0 5px; /* Smaller padding on mobile */
    }
    .nav-btn, .close-btn { /* Apply consistent styling to all buttons on mobile */
        font-size: 2rem;
        padding: 3px 8px; /* Smaller padding for mobile buttons */
        margin: 0 5px; /* Small margin between buttons */
    }
    .lightbox-text-area {
        margin-bottom: 10px; /* Adjust space before controls on mobile */
    }
}

/* Fix for intro paragraph text alignment */
#intro-paragraph {
    text-align: justify; /* Changed from center to justify */
}

/* Gallery container padding adjustments */
#gallery-container {
    /* This section is now directly within the main rounded-xl container.
       We want it to fill the width more on mobile, so minimal horizontal padding. */
    padding-left: 0.5rem; /* 8px padding on very narrow screens */
    padding-right: 0.5rem;
    padding-top: 1rem; /* Add some top padding to separate from description */
    padding-bottom: 1rem; /* Add some bottom padding */
}

@media (min-width: 640px) { /* Small screens and up */
    #gallery-container {
        padding-left: 1rem; /* 16px padding */
        padding-right: 1rem;
    }
}

@media (min-width: 768px) { /* Medium screens and up */
    #gallery-container {
        padding-left: 1.5rem; /* 24px padding */
        padding-right: 1.5rem;
    }
}

/* Ensure gallery items themselves still have their padding */
.gallery-item .p-4 { /* This targets the inner div of each gallery item */
    padding: 1rem;
}
