.stelle-grid{
  display:grid;align-items: start;
  gap:18px;
  grid-template-columns:repeat(var(--stelle-cols, 3), minmax(0,1fr));
}
  
@media (max-width: 991px){
  .stelle-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px){
  .stelle-grid{ grid-template-columns:1fr; }
}

.stelle-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  min-height:240px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;  align-self: start;    /* extra safety */
  height: auto;
}

.stelle-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.stelle-logo{
  width:84px;height:84px;
  border-radius:999px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
}

.stelle-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.stelle-logo-fallback{
  color:#fff;
  font-weight:700;
  font-size:18px;
  line-height:1;
}

.stelle-title{
  font-size:22px;
  line-height:1.15;
  margin:0 0 10px;
  font-weight:750;
  color:#111;
}

.stelle-text, .stelle-expand__inner{
  color:#000;
  font-size:18px;
  line-height:1.45;
  margin:0 0 18px;
}

.stelle-bottom{
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:14px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-top:auto;
}

.stelle-apply{
  background:#111;
  color:#fff !important;
  text-decoration:none !important;
  padding:10px 14px;
  font-size:13px;
  font-weight:650;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:110px;
  cursor: pointer;
  transition:transform .12s ease, opacity .12s ease;
}

.stelle-apply:hover{ transform:translateY(-1px); opacity:.95; }

.stelle-card.is-open .stelle-apply {
  background: #444;
}
/* smooth accordion */
.stelle-expand{
  max-height: 0;
  overflow: hidden;
  transition: max-height .8s ease;
}

.stelle-card.is-open .stelle-expand{
  /* max-height will be set by JS for perfect animation */
}

.stelle-contact {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* .stelle-card.is-open .stelle-text--preview{
  display:none;
} */


.tribe-compatibility-container{
    padding: 40px 40px 0 !important;
}

.tribe-events-widget {
    margin-bottom: 0 !important;
}

body.body_style_wide:not(.expand_content) [class*=content_wrap] > .content,.sidebar_hide.narrow_content .post_item_single.post_type_post{
  width: 100% !important;
}

.post_footer, .author_info, .related_wrap, .comments_wrap, .post_meta_categories, .post_meta, .tribe-events-c-view-selector__content{
  display: none !important;
}


/* =========================
   CPT Gallery
   ========================= */

.cpt-gallery {
  display: grid;
  grid-template-columns: repeat(var(--cpt-cols, 3), minmax(0, 1fr));
  gap: 24px;
}

/* Tablet */
@media (max-width: 991px) {
  .cpt-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 575px) {
  .cpt-gallery {
    grid-template-columns: 1fr;
  }
}

.cpt-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f4f4f4;
}

.cpt-gallery-item img {
  width: 100%;
    height: 400px;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Hover effect */
.cpt-gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.5);
}

/* Optional focus accessibility */
.cpt-gallery-item:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
/* Optional pagination styling */
.cpt-gallery-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cpt-gallery-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
}

.cpt-gallery-pagination .page-numbers.current {
  border-color: rgba(0,0,0,0.35);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

html:not(.edit-post-visual-editor):has(.no-scroll) {
  overflow: hidden !important;
}

body.no-scroll {
  overflow: hidden;
  height: 100%;
}

/* Overlay */
.hidden-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  padding: 20px;

  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hidden state */
.hidden-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Inner popup box (first child element inside popup) */
.hidden-popup > * {
  width: 100%;
  border-radius: 14px;
      padding: 20px 5px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

  transform: translateY(40px);
  transition: transform 0.3s ease;
}

/* Slight slide animation when hidden */
.hidden-popup.hidden > * {
  transform: translateY(75px);
}

input.wpcf7-form-control.wpcf7-date.wpcf7-validates-as-required.wpcf7-validates-as-date {
    background: none;
    color: var(--theme-color-input_text);
    padding: 10px 0px 10px 0px;
}

input[type=number], input[type=number].filled{
  color: black !important;
}

.elementor-7074 .elementor-element.elementor-element-637990e {
    height: var(--spacer-size) !important;
}

.stelle-empty{
  padding: 50px 20px;
  border-radius: 14px;
  text-align: center;
}

.stelle-empty h3{
  margin: 0 0 10px;
}

.stelle-empty p{
  margin: 0;
}

.tribe-events-c-subscribe-dropdown__container{
  display: none !important;
}