/* Shared */
.ecw-empty { color: #999; font-style: italic; }
.ecw-button { display: inline-block; padding: 10px 22px; background: #6c2bd9; color: #fff; border-radius: 4px; text-decoration: none; border: none; cursor: pointer; font-size: 14px; }
.ecw-button:hover { background: #5620ad; color: #fff; }

/* Grid helpers */
.ecw-grid, .ecw-loop-grid, .ecw-gallery, .ecw-portfolio { display: grid; gap: 20px; }
.ecw-cols-1 { grid-template-columns: 1fr; }
.ecw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ecw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ecw-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ecw-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ecw-cols-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 767px) {
	.ecw-cols-2, .ecw-cols-3, .ecw-cols-4, .ecw-cols-5, .ecw-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ecw-cols-2, .ecw-cols-3, .ecw-cols-4, .ecw-cols-5, .ecw-cols-6 { grid-template-columns: 1fr; }
}

/* Posts / Loop Grid card */
.ecw-card, .ecw-loop-item { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.ecw-card-thumb img, .ecw-loop-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ecw-card-body, .ecw-loop-body { padding: 16px; }
.ecw-card-title, .ecw-loop-body h3 { margin: 0 0 8px; font-size: 18px; }
.ecw-card-title a, .ecw-loop-body h3 a { text-decoration: none; color: #222; }
.ecw-card-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.ecw-card-excerpt { font-size: 14px; color: #555; line-height: 1.5; }

/* Loop grid overlay style */
.ecw-style-overlay .ecw-loop-thumb { position: relative; display: block; }
.ecw-style-overlay .ecw-loop-thumb img { width: 100%; height: 260px; object-fit: cover; }
.ecw-overlay-caption { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 16px; }
.ecw-overlay-caption h3 { color: #fff; margin: 0; font-size: 16px; }
.ecw-style-minimal .ecw-loop-thumb img { height: 150px; }

/* Gallery */
.ecw-gallery.ecw-layout-grid { display: grid; }
.ecw-gallery.ecw-layout-masonry { column-gap: 10px; }
.ecw-gallery.ecw-layout-masonry .ecw-gallery-item { break-inside: avoid; margin-bottom: 10px; }
.ecw-gallery.ecw-layout-justified { display: flex; flex-wrap: wrap; }
.ecw-gallery.ecw-layout-justified .ecw-gallery-item { flex: 1 1 auto; }
.ecw-gallery.ecw-layout-justified .ecw-gallery-item img { width: auto; height: 100%; }

.ecw-gallery-item { position: relative; overflow: hidden; }
.ecw-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecw-gallery-item a { display: block; position: relative; height: 100%; }

.ecw-gallery-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.ecw-gallery-item:hover .ecw-gallery-overlay { opacity: 1; }
.ecw-gallery-overlay i { font-size: 24px; }

/* Portfolio */
.ecw-portfolio-item { position: relative; display: block; text-decoration: none; overflow: hidden; border-radius: 6px; }
.ecw-portfolio-item img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .3s; }
.ecw-portfolio-item:hover img { transform: scale(1.05); }
.ecw-portfolio-caption { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.6); padding: 10px 14px; }
.ecw-portfolio-caption h4 { color: #fff; margin: 0; font-size: 14px; }
.ecw-portfolio-noimg { width: 100%; height: 260px; background: #eee; }

/* Carousel / Loop Carousel / Slides */
.ecw-loop-carousel, .ecw-carousel { padding-bottom: 40px; }
.ecw-carousel-slide, .ecw-loop-carousel .ecw-loop-item { position: relative; }
.ecw-carousel-slide img { width: 100%; border-radius: 6px; }
.ecw-carousel-caption { padding-top: 10px; }

.ecw-slides { position: relative; width: 100%; }
.ecw-slide { position: relative; display: flex; align-items: center; height: 100%; overflow: hidden; }
.ecw-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ecw-slide-overlay { position: absolute; inset: 0; }
.ecw-slide-content { position: relative; z-index: 2; max-width: 66%; margin: 0 30px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.ecw-align-center { text-align: center; }
.ecw-align-left { text-align: left; }
.ecw-align-right { text-align: right; }
.ecw-slide-content h1, .ecw-slide-content h2, .ecw-slide-content h3, .ecw-slide-content h4 { font-size: 40px; margin: 0 0 14px; }
.ecw-slide-desc { font-size: 18px; margin: 0 0 18px; }
.ecw-slide-btn { display: inline-block; padding: 12px 26px; background: #6c2bd9; color: #fff; text-decoration: none; border-radius: 4px; }

/* content animation */
.ecw-slide-content.ecw-anim-up { animation: ecwFadeUp .6s ease both; }
.ecw-slide-content.ecw-anim-down { animation: ecwFadeDown .6s ease both; }
.ecw-slide-content.ecw-anim-left { animation: ecwFadeLeft .6s ease both; }
.ecw-slide-content.ecw-anim-right { animation: ecwFadeRight .6s ease both; }
.ecw-slide-content.ecw-anim-fade { animation: ecwFade .6s ease both; }
@keyframes ecwFadeUp { from { opacity:0; transform: translateY(30px);} to { opacity:1; transform: translateY(0);} }
@keyframes ecwFadeDown { from { opacity:0; transform: translateY(-30px);} to { opacity:1; transform: translateY(0);} }
@keyframes ecwFadeLeft { from { opacity:0; transform: translateX(30px);} to { opacity:1; transform: translateX(0);} }
@keyframes ecwFadeRight { from { opacity:0; transform: translateX(-30px);} to { opacity:1; transform: translateX(0);} }
@keyframes ecwFade { from { opacity:0; } to { opacity:1; } }

/* Menu */
.ecw-menu-list { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.ecw-menu-vertical .ecw-menu-list { flex-direction: column; gap: 8px; }
.ecw-menu-list a { text-decoration: none; color: #222; font-weight: 500; }
.ecw-menu-list a:hover { color: #6c2bd9; }

/* Taxonomy filter */
.ecw-tax-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ecw-filter-btn { padding: 8px 18px; border: 1px solid #ddd; background: #fff; border-radius: 30px; cursor: pointer; font-size: 13px; }
.ecw-filter-btn.active, .ecw-filter-btn:hover { background: #6c2bd9; border-color: #6c2bd9; color: #fff; }

/* Forms */
.ecw-form-row { margin-bottom: 14px; }
.ecw-form-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.ecw-form-row input, .ecw-form-row textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 14px; }
.ecw-form-row textarea { min-height: 100px; }
.ecw-form-message { margin-top: 12px; font-size: 14px; padding: 10px; background: #f3f3f3; border-radius: 4px; }

/* Form popup message */
.ecw-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 999999; }
.ecw-popup-box { background: #fff; padding: 30px; border-radius: 8px; max-width: 400px; width: 90%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.ecw-popup-box p { margin: 0 0 20px; font-size: 16px; color: #222; }
.ecw-popup-close { padding: 10px 24px; background: #6c2bd9; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; }
.ecw-popup-close:hover { background: #5620ad; }
