/* Dynamic CMS Content Styles */

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    margin-top: 8px;
    font-size: 0.9em;
    text-align: center;
    color: #666;
    padding: 0 10px;
}

/* Child gallery smaller grid */
.child-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.child-gallery .gallery-item img {
    height: 100px;
}

/* Page content styling */
.page-content, .child-content {
    margin: 1em 0;
}

.page-content p, .child-content p {
    margin: 0.8em 0;
    line-height: 1.6;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .child-gallery .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .child-gallery .gallery-item img {
        height: 80px;
    }
}

/* Gallery section headers */
.parent-gallery h3,
.child-gallery h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Dynamic section spacing */
.wrapper.style2.special .inner > header {
    margin-bottom: 2em;
}

/* Spotlight alternating layout enhancement */
.spotlight.left .content {
    text-align: left;
}

.spotlight.right .content {
    text-align: left;
}
