/* --------------------------------------------------------------
  GALLERY STYLES
--------------------------------------------------------------- */
body {
    background: #bbf4f1;  /* Page background color */
    margin: 0;
    padding: 0;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #a75e99;  /* Brand primary: section heading color */
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #136171;  /* Supporting text color */
}

/* Filter Buttons removed */

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;  /* Tile background behind images */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow for depth */
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    font-size: 0; /* Hides alt text if image fails to load */
    color: transparent; /* Makes alt text invisible */
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;  /* Overlay text color */
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    padding: 20px 0;
    position: sticky;
    bottom: 20px;
    z-index: 10;
}

.load-more-btn {
    padding: 15px 30px;
    background: #136171;  /* Primary button background */
    color: white;         /* Primary button text */
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.load-more-btn:hover {
    background: #a75e99;  /* Hover state: shift to brand primary */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.67);  /* Page-dimming overlay */
    z-index: 1000;
    cursor: pointer;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;  /* Close control color */
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    cursor: default;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;  /* Caption text color */
    text-align: center;
    border-radius: 0 0 10px 10px;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.lightbox-info p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .photo-item img {
        height: 200px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

/* Hidden class for load more functionality */
.photo-item.hidden-by-load {
    display: none;
}
