/*
 Theme Name:   Stowe Child for COR2E
 Description:  Developed by DXG for COR2E
 Author:       Natalie Lacroix - https://dxgroup.core.uconn.edu
 Template:     cornerstone
 Version:      1
*/
@import url(../beecher-stowe/css/bs-color-husky-blue.css);
@import url(../beecher-stowe/css/bs-font-compressed.css);

@media (min-width: 768px) {
    .facilities-wrap-element,.workshop-wrap  {
        width:100%;
        grid-template-columns: repeat(auto-fill, 49%);
        display: grid;
        justify-content: space-between;
        margin-bottom:20px;
    }

    .workshop-element{
        height: 100%;
    }
}

@media (min-width: 992px) {
    .facilities-wrap-element,.workshop-wrap {
        grid-template-columns: repeat(auto-fill, 32%);
        display: grid;
        justify-content: space-between;
    }
}

.workshop-element{
    padding: 20px;
    background: #f0f2f7;
    border-left: 4px solid #D10026;
    height: auto;
    display:block;
    margin-bottom:20px;
}

.workshop-element:hover{
    text-decoration:none;
}

.workshop-date{
    color:#6e6e6e;
}

.workshop-category{
    background:#c7d7f0;
    padding:0px 5px;
    width:max-content;
}

.workshop-excerpt{
    color:#000e2f;
}

.workshop-element:hover h2{
    text-decoration:underline;
}

.facilities-wrap-element.row:before,.workshop-wrap.row:before, .facilities-wrap-element.row:after,.workshop-wrap.row:after {
    display: none;
}

.facilities-element {
padding-left:0px;
padding-right:0px;
}

/*loading*/
.htmx-request{
    opacity:0.5;
    filter: blur(1px)
}

.facility-photo-wrap img{
    filter: brightness(50%);
    height:100px;
    object-fit:cover;
}

.facility-photo-wrap {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Ensure positioning is relative to this container */
    margin-bottom:20px;
}

.facility-details {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 0; /* Start from the left edge */
    width: 100%; /* Make sure it spans the full width */
    text-align: center; /* Center text horizontally */
    transform: translateY(-50%); /* Vertically center it using translate */
    max-width: 100%; /* Ensure it doesn't overflow the parent container */
    word-wrap: break-word; /* Break long words to avoid overflow */
    word-break: break-word; /* Ensures long unbreakable words also wrap */
    padding: 5px; /* Optional: Adds space around the text */
}

.facility-details h3 {
    font-weight: 400;
    font-size: 16px; /* Set the font size to 16px */
    margin: 0; /* Remove default margin */
    white-space: normal; /* Allow wrapping */
    overflow: hidden; /* Optional: Hide overflow text */
    text-overflow: ellipsis; /* Optional: Add ellipsis for very long titles */
}


@media (max-width: 767px) {
    .facility-details {
        top: 50%; /* Ensure it stays centered */
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1rem; /* Adjust font size for smaller screens */
    }
}


/*form*/
.category-filter-dropdown, #facility-search{
    font-size:16px!important;
    border: 1px solid #ced4da;
}

#facility-search:focus{
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/*card*/
@media (min-width: 768px) {
    .contacts-row{
        display:flex;
        align-items:stretch;
        flex-wrap:wrap;
    }
}

@media (max-width: 991px){
    .contacts-row .card{
        width:100%;
    } 
}

/*form*/
/* Grid System (row and col-lg-4) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}
.col-lg-4 {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 992px) {
    .col-lg-4 {
        width: 33.33333333%;
    }
}

/* Gutters (g-3 = 1rem spacing) */
.g-3 > * {
    margin-bottom: 1rem;
}

/* Form Labels */
.form-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Form Control (input) */
.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Form Select */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='1.5' viewBox='0 0 16 16'%3E%3Cpath d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  width: 100%;
}

/* Larger Select Size */
.form-select-lg {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    padding-left:0.75rem;
}
