/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* WPML Language Switcher Styles */
.menu>li.language-el a { padding: 0 6px 0 20px; border-right: 1px solid #fff; }
.menu>li.language-en a { padding: 0 10px 0 6px; }

/* Custom Posts Grid Widget Styles */
.custom-posts-grid {display: grid; gap: 30px;}
.custom-posts-grid .post-content {padding: var(--card-inner-spacing, 15px 22px 18px 22px);}
.custom-posts-grid .post-card {display: flex; flex-direction: column; background-color: var(--theme-palette-color-2); --theme-border-radius: 8px; --theme-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);  border: var(--card-border, none); box-shadow: var(--theme-box-shadow); border-radius: var(--theme-border-radius); overflow: hidden;}
.custom-posts-grid .post-thumbnail { display: block; aspect-ratio: 16/9; overflow: hidden;}
.custom-posts-grid .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease;}
.custom-posts-grid .post-thumbnail:hover img { transform: scale(1.05); }
.custom-posts-grid .post-title { margin: 0; font-size: 1.25em; line-height: 1.4;}
.custom-posts-grid .post-title a { color: inherit; text-decoration: none; color: #fff; }
.custom-posts-grid .post-title a:hover {color: var(--theme-palette-color-1);}
.custom-posts-grid .post-date { font-size: 12px; font-weight: 600; color: var(--theme-palette-color-1);}

.nf-field-element .ninja-forms-field { background-color: #f1efed; padding: 4px 10px; }
.nf-form-fields-required { font-size: 13px; margin-bottom: 20px; }
.nf-field-element .btn {background-color: #4d4d4d;font-size: 13px; font-weight: 700; border-radius: 4px; padding: 8px 20px 8px 20px; color: #fff;}
.nf-field-description {font-size: 13px; margin-bottom: 20px; margin-top: -10px; order: 15 !important;}
.field-wrap input[type=submit] {background-color: #292929;font-size: 15px; font-weight: 700; border-radius: 4px; padding: 18px 30px 18px 30px; color: #fff;}
.nf-field-element .btn:hover, .field-wrap input[type=submit]:hover{background-color: var(--e-global-color-secondary);}
.nf-field-element .nf-fu-progress {height: 5px; margin-bottom: 0; box-shadow: none; -webkit-box-shadow: none; background-color: transparent;}

.darkbg hr { background-color: #fff !important; }
.darkbg p a { color: var(--theme-palette-color-1) !important; }
.darkbg p a:hover { color: var(--theme-palette-color-1); opacity: 0.8; text-decoration: underline; }
p + hr {margin-bottom: var(--theme-content-spacing) !important;}

.elementor-image-gallery .gallery.gallery-size-full { display: flex;  }
.elementor-image-gallery .gallery.gallery-size-full .gallery-item {max-width: unset !important; width: auto !important; }

.sl-overlay { background-color: #000 !important; opacity: 0.85 !important; }

.single-post .entry-content hr { width: 100%; border-top: 2px var(--theme-palette-color-2) solid; margin: 40px 0; }

.people-archive{padding:40px 0}
.school-year-section{margin-bottom:60px}
.school-year-title{margin-bottom:30px;font-size:2em;border-bottom:2px solid var(--theme-palette-color-1);padding-bottom:10px}
.people-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}
.people-card{text-align:center}
.people-link{text-decoration:none;color:inherit;display:block}
.people-image{margin-bottom:15px;aspect-ratio:1;overflow:hidden}
.people-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.people-link:hover .people-image img{transform:scale(1.05)}
.people-title{margin:0;font-size:1.1em;line-height:1.4}


.single-people .entry-header{margin-top:30px;margin-bottom:30px;text-align:center}
.single-people .entry-title{margin:0;font-size:2.5em}
.people-content-wrapper{display:grid;grid-template-columns:500px 1fr;gap:40px;align-items:start}
.people-image img{width:100%;height:auto;display:block}


@media (max-width: 1024px) {
    .people-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 991px) {
    .people-content-wrapper{grid-template-columns:1fr;gap:30px}
    .people-image{max-width:500px;margin:0 auto}
}
@media (max-width: 768px) {
    .custom-posts-grid {grid-template-columns: repeat(2, 1fr) !important;}
    .nf-field-container {width: 100% !important; margin-left: 0 !important;}
    .people-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 480px) {
    .custom-posts-grid {grid-template-columns: 1fr !important;}
    .people-grid{grid-template-columns:1fr}
}

.hero-section.is-width-constrained {max-width: var(--theme-block-wide-max-width); width: var(--theme-block-width); margin: 0 auto;}

.entry-content figcaption { font-size: 12px; padding: 2px 20px; }


footer * { color: #fff !important; }
footer a { color: var(--theme-palette-color-1) !important; }
footer a:hover { color: #fff !important; text-decoration: underline !important; }