/* 
 * Gallery Layout Module
 * Handles gallery wrapper, grid system, and basic layout structure
 */

/* Gallery Wrapper Styles */
.ppg-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2em auto;
    position: relative;
}

.ppg-wrapper.ppg-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ppg-wrapper.ppg-loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 6px;
    border: 2px solid #0073aa;
    z-index: 999;
    font-weight: bold;
    color: #0073aa;
}

/* Gallery Title Styles */
.ppg-gallery-title {
    text-align: center;
    margin-bottom: .5em;
    padding-top: 30px;
}

.ppg-gallery-title h3 {
    margin: 0 0 1em 0;
    font-size: var(--ppg-gallery-title-font-size, 2.5em);
    color: var(--ppg-gallery-title-color, #333);
    font-weight: 600;
}

/* Gallery Grid Layout */
.ppg-gallery {
    display: grid;
    grid-template-columns: repeat(var(--ppg-columns), 1fr);
    gap: 2em;
    margin-bottom: 2em;
}

/* Sections (Step 4, 2026-09-03) -- client-facing grouping. Distinct
   from, and independent of, the owner dashboard's own
   .ppg-owner-section* rules (different audience, different markup). */
.ppg-section {
    margin-bottom: 2.5em;
}

.ppg-section:last-child {
    margin-bottom: 0;
}

.ppg-section-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--ppg-gallery-title-color, #333);
    margin: 0 0 1em 0;
}

/* Print Styles */
@media print {
    .ppg-wrapper {
        break-inside: avoid;
    }
    
    .ppg-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1em !important;
    }
}