/**
 * @file
 * Subtheme specific CSS.
 */


.navbar-toggler {
    position: absolute;
    right: 20px;
    border: none;
}


#block-barrio-k-main-menu ul {
    font-weight: bold;
}
/* 1. Main Navbar Container */
#navbar-main {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr; /* Force only one row */
  align-items: center;    /* Standard vertical centering */
  justify-items: center;  /* Horizontal centering for the middle column */
  width: 100%;
  min-height: 80px; 
  padding: 0 15px;
  margin: auto;
}

/* 2. Unwrap the Drupal Region */
#navbar-main > .region--nowrap {
  display: contents; 
}

/* 3. Logo (Row 1, Col 1) */
.navbar-brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  margin: 0 !important;
}

/* 4. The Menu (Row 1, Col 2) */
@media (min-width: 992px) {
  #CollapsingNavbar.collapse {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    height: 100%; /* Fill the row height to ensure alignment */
  }
}

/* 5. Social Media (Row 1, Col 3) */
#block-barrio-k-socialmedia {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
}

/* 6. Kill the hidden P-tag offsets */
#block-barrio-k-socialmedia p {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  gap: 15px;
}

/* 7. Mobile View (Resetting the grid) */
@media (max-width: 991px) {
  #navbar-main {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .navbar-brand, #block-barrio-k-socialmedia {
    flex: 0 0 auto;
  }
  
  #CollapsingNavbar {
    flex: 0 0 100%;
    order: 10;
  }

  #block-barrio-k-socialmedia {
    display: none;
  }
}

@media (min-width: 1200px) { 
    #navbar-main {
        max-width: 1140px;
    } 
}
@media (min-width: 1400px) { 
    #navbar-main { 
        max-width: 1320px; 
    }
}
@media (min-width: 1600px) {
    #navbar-main {
        max-width: 1520px; 
    }
}





#flexslider-1 .flex-direction-nav a {
    display: block;
    opacity: 1;
    background-color: white;
    width: 27px;
    height: 40px;
}
#flexslider-1 .flex-direction-nav a:before {
    font-size: 26px;
    padding: 4px;
}
#flexslider-1 .flex-direction-nav .flex-prev{
    left: 0;
}

#flexslider-1 .flex-direction-nav .flex-next {
    right: 0;
}

/* Container setup */
.slide-item {
  display: flex;
  flex-wrap: wrap; /* Allows stacking on mobile */
  align-items: stretch; /* Forces equal height columns */
  flex-direction: column-reverse;
  overflow: hidden;
}

/* Left Side Styling */
.slide-left {
  background-color: #e8460d;
  color: #ffffff;
  flex: 0 0 100%; /* Full width on mobile */
  display: flex;
  align-items: center; /* Vertically centers the text content */
  padding: 4rem 3rem 3rem;
}

.slide-content {
  width: 100%;
}

.slide-content p {
    font-size: 2em;
    font-weight: bold;
    line-height: 1.1em;
}

/* Right Side (Image) Styling */
.slide-right {
  flex: 0 0 100%; /* Full width on mobile */
  line-height: 0; /* Removes potential whitespace at bottom of image */
}

.slide-right img {
  width: 100%;
  height: auto; /* Keeps image sharp and proportional */
  display: block;
  object-fit: cover; /* Ensures image fills space without stretching */
}

.slide-right .field--type-entity-reference {
    margin: 0;
}

.slide-right .field--type-image img {
    margin: 0;
}

.slide-right .field--name-field-user-picture img {
    margin: 0;    
}

/* Button Styling (Optional adjustments) */
.slide-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background-color: #e8460d;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #fff;
}

.slide-button:hover {
    background-color: #fff;
    color: #000;
}

/* Responsive Breakpoints (Bootstrap Defaults) */
@media (min-width: 768px) {
  .slide-item {
    flex-direction: row;
    align-items: stretch;
  }
  .slide-left {
    flex: 0 0 40%; 
    padding: 2em 1em 2em 2em;
  }
  
  .slide-right {
    flex: 0 0 60%;
  }

  .slide-content p {
    font-size: 1.5em;
  }

  .slide-button {
    margin-top: 0.2em;
    font-size: 0.8em;
  }
}

@media (min-width: 992px) {
  .slide-item {
    flex-direction: row;
    align-items: stretch;
  }
  .slide-left {
    flex: 0 0 40%; 
    padding: 2.5em 5em;
  }
  
  .slide-right {
    flex: 0 0 60%;
  }

  .slide-content p {
    font-size: 2em;
  }

  .slide-button {
    margin-top: 1em;
  }
}

@media (min-width: 1200px) {
  .slide-item {
    flex-direction: row;
    align-items: stretch;
  }
  .slide-left {
    flex: 0 0 40%; 
    padding: 3.5em 5em;
  }
  
  .slide-right {
    flex: 0 0 60%;
  }

  .slide-content p {
    font-size: 2.5em;
  }

  .slide-button {
    margin-top: 1em;
  }
}


#block-barrio-k-ticker, iframe.tickerFrame {
    height: 48px;
}

@media (max-width: 888px) {
  #block-barrio-k-ticker, iframe.tickerFrame {
		height: 96px;
	}
}




.tileContent {
    margin:0 auto;
    max-width:1160px;
}

.regContent {
    font-size: 1.3em;
    max-width: 940px;
    padding: 10px 20px;
    text-align: center;
    margin: 0 auto;
}


.tile-heading {
    font-size: 1.5em;
    color:#e8460d;
    text-align: center;
    font-weight: bold;
}

.flex-container-tile {
    display: grid;
    grid-template-columns: repeat(auto-fill, 350px);
    justify-items: start;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.flex-item-tile {
    width: 350px;
    height: 350px;
    font-weight: bold;
    font-size: 2em;
    text-align: left;
    background-repeat:no-repeat;
    border: 5px solid #e8460d;
    position: relative;
}

.tile-title-w {
    color: #ffffff;
    padding: 0 10px 3px 10px;
}

.tile-title-b {
    color: #000000;
    padding: 0 10px 3px 10px;
}

.tile-title-w-bg {
    color: #ffffff;
    background-color: rgba(0,0,0,0.5);
    padding: 0 10px 3px 10px;
}

.tile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color:#fff;
    border-radius:50%;
    color:#63483b;
    position:absolute;
    bottom: 15px;
    right: 15px;
}

.tile-arrow:hover {
    color:#e8460d;
}

.tile-arrow:visited {
    color:#63483b;
}

#cboxLoadedContent img {
display: block;
  max-width: 100% !important;
  /* 90vh prevents the image from being taller than 90% of the screen height */
  max-height: 85vh !important; 
  width: auto !important;
  height: auto !important;
  margin: 0 auto;
}

#cboxLoadedContent {
overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#block-barrio-k-webform {
    max-width: 600px;
    margin: 0 auto;
}

#block-barrio-k-webform h2 {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
}

footer.site-footer {
    background: #f1f1f1;
    padding: 0;
}

.flex-container-footer {
    color:black;
    display:flex;
    flex-wrap:wrap;
    font-size:1.2em;
    gap:1.1em;
    margin:0 auto;
    max-width:1160px;
    padding:1rem;
}

.flex-item-footer {
    flex:1 1 18%;
    min-width:140px;
    padding:1rem;
}

@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1520px;
    }
}