/* --------------------------------- */
/* 1. Global Resets and Base Styles */
/* --------------------------------- */
body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', Arial, sans-serif;
    box-sizing: border-box;
    line-height: 1.5;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* --------------------------------- */
/* 2. Utility Classes */
/* --------------------------------- */
.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-width {
    width: 100%;
}

/* --------------------------------- */
/* 3. Layout Containers */
/* --------------------------------- */
/* Main Grid Container */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 750px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

/* Gallery Section */
.gallery-section {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 10px;
    background-color: #fff;
    border-radius: 4px;
}

.gallery-section .gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gallery-page.content-wrapper {
  width: 100%;
  max-width: 1440px; /* or larger, if needed */
  margin: 0 auto;
  padding: 0 3rem;
  box-sizing: border-box;
}

/* --------------------------------- */
/* 4. Components and Elements */
/* --------------------------------- */
/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
    overflow: hidden;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 4px;
}

/* Image Styling */
.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-slide.active {
    opacity: 1;
}

/* Overlay for Category Text */
/* Updated to be permanently visible */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.4); /* stronger black */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-transform: small-caps;
    opacity: 1 !important; /* always visible */
    z-index: 1;
    transition: none; /* no transition needed */
    pointer-events: none; /* lets clicks go through */
	border-radius: 12px;
}

/* Remove hover opacity effect since overlay is always visible */
.image-container:hover .overlay {
    opacity: 1;
}

/* --------------------------------- */
/* Tagline Section */
.tagline-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 10px;
    margin-top: 80px; /* Add more space between header and tagline section */
    overflow: visible; /* Ensure the hr is visible */
}

.tagline {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

hr {
    width: 60%; /* Consistent width */
    max-width: 600px; /* Prevents the divider from growing too large */
    height: 1px; /* Explicit height for visibility */
    background-color: #000; /* Color of the divider */
    border: none; /* Remove default border */
    margin: 20px auto; /* Add margin for spacing */
    visibility: visible; /* Ensure the hr is visible */
}

/* --------------------------------- */
/* 5. State Styles */
/* --------------------------------- */
/* Hover Effects */
.image-container:hover {
    transform: scale(1.02);
    border-radius: 4px;
}

.gallery-section .gallery-item img:hover {
    transform: scale(1.02);
    border-radius: 4px;
}

/* --------------------------------- */
/* 6. Media Queries */
/* --------------------------------- */
/* Tablet and Below */
@media (max-width: 768px) {
    .image-grid, 
    .gallery-section .gallery-container {
        grid-template-columns: 1fr;
        width: 100%; /* Narrower on smaller screens */
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    .image-grid, 
    .gallery-section .gallery-container {
        grid-template-columns: 1fr;
        width: 100%; /* Narrower on smaller screens */
    }
    
    .tagline {
        font-size: 0.9rem;
    }
}
