/* LAST UPDATED: 07.19.2024 - SM */

/* NOTES: 
** .image-with-caption and .icon-section have no CSS properties attached to them on the live site 
*** Found in April 2022: 
        **** The accordion cards share similar classes and weren't put under accordion, so they're going here. 
        ***** The accordion cards tend to be within Bootstrap classes, whereas the ones with SVG's, text, and/or links are in silc-grid classes.
        ****** The accordion cards and image-with-caption sets also have slightly different naming conventions, like the news grid. The accordion cards use single dashes in class names, while the image-with-caption sets use dashes with BEM naming conventions.
        ******* The quadrant block of images with link overlays on landing pages like /about_evms are also using the .image-with-caption classes.
*/

.evms-image-with-caption-link {
    color: var(--primary-dark);
    text-decoration: none;
}

a.evms-image-with-caption-link {
    color: var(--primary-accent);
}

.evms-caret-right::after {
    content: "\00bb";
}

.image-with-caption-media,
.image-with-caption__media {
    height: auto; /* 100% causes the accordion cards to break */
    margin-bottom: 0;
    overflow: hidden;
  	position: relative; /* Added 05.16.2024 for accordion cards */
    width: 100%;
}

/* Added 05.14.2024 specifically for the Icon Section content type */
.icon-section .image-with-caption-image {
  height: 100% !important;
  max-height: 150px; /* Formerly 300px */
}

.icon-adj img {
    display: inline;
    height: 200px;
}

.image-with-caption-media img,
.image-with-caption__media img {
    display: block;
    height: auto; /* 100% causes the accordion cards to break */
    margin: 0 auto;
    object-fit: contain; /* Formerly cover, changed for icon section */
    transition: transform 0.25s ease-in-out;
    -moz-transition: transform 0.25s ease-in-out;
    -o-transition: transform 0.25s ease-in-out;
    -webkit-transition: transform 0.25s ease-in-out;
    width: 100%;
}

/* 05.14.2024 - This class is only used on /community and /about_evms, so it's separated out to override a couple of properties from above */
.image-with-caption__media img {
   height: 100% !important;
   object-fit: cover !important;
}

.image-with-caption-interior,
.image-with-caption__interior {
    height: 100%;
}

.image-with-caption__interior p {
    font-weight: 500;
    margin: 0 !important;
    /* Overrides .module p */
}

.image-with-caption__content {
    box-sizing: border-box;
}

.image-with-caption-stacked.blk-outline .image-with-caption-content,
.image-with-caption__content {
    box-sizing: border-box;
    padding: 20px;
    position: relative;
}

.image-with-caption-stacked .image-with-caption-headline {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.icon-section a .image-with-caption-interior p:last-of-type::after {
    color: var(--primary-accent);
    content: " »";
}

.highlight-wrapper {
    height: clamp(500px, 650px, 700px) !important;
    margin: 15px 0;
    max-width: 380px; /* Added on 03.20.2024 for accordion cards */
    position: relative; /* Added 05.16.2024 for accordion cards */
    width: 100%; /* Added 05.16.2024 for accordion cards */
}

/* Updated 05.16.2024 */
#specializations .more {
    bottom: 0;
    left: 0;
    margin: 25px 0;
    padding: 1.5em 0 0; /* Added 03.20.2024 for accordion cards */
    position: absolute; /* Formerly relative, changed 05.16.2024 */
    right: 0;
}

.specialization {
    align-items: stretch;
    display: flex;
}

.specializations-media {
    margin-top: 15px;
}

/* For quandrant image blocks with link overlays on landing pages like /about_evms */
.image-with-caption--overlay {
    position: relative;
    width: fit-content;
    /* Added 08.23.2022 because overlay would go full-screen width in responsive landscape mode on /community */
}

.image-with-caption--overlay .image-with-caption__media {
    border-radius: 0;
    opacity: 0.8;
}

/* Overlay gradients moved here on 03.12.2024 because overlays are supposed to be in absolute positioning, not first layer relative positioning */
.image-with-caption--overlay .image-with-caption__content {
    background: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.95));
    background: -webkit-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.95));
    bottom: 0;
    color: var(--primary-neutral-light);
    font-size: 80%;
    /* Keeps text on one line */
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
}

/* Added 08.23.2022 from live site after issues with link boxes on /community */
.image-with-caption--overlay:active .image-with-caption__image,
.image-with-caption--overlay:focus .image-with-caption__image,
.image-with-caption--overlay:hover .image-with-caption__image {
    transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
    -webkit-transform: scale(1.2);
}

.image-with-caption__headline {
    color: var(--primary-neutral-light);
    font-size: 1.75em !important;
    /* Only here because the original was an h5 and had to be turned into an h3 for accessibility on /community */
    font-weight: 600;
    margin-bottom: 0.25em;
}

.image-with-caption-interior p {
  margin-top: 0.75em;
}


/***** MEDIA QUERIES *****/
/* May need to be changed, still testing (05.17.2024) */
@media screen and (min-width: 360px) and (max-width: 1024px) {
  .highlight-wrapper {
    margin: 0 auto 1em;
  }
}



@media screen and (min-width: 768px) {
    .image-with-caption-content {
        height: 250px;
    }
}

@media screen and (min-width: 800px) {
    .image-with-caption__content {
        padding-left: 1em;
    }
}

@media screen and (max-width: 991px) {
    .image-with-caption.link-image {
        margin-left: auto;
        margin-right: auto;
        width: 75%;
    }
}

@media screen and (min-width: 992px) {
    .image-with-caption-content {
        height: 300px;
    }

    .silc-grid.about-image-links {
        margin-left: -20px;
    }
}

@media screen and (min-width: 1200px) {
    .image-with-caption-content {
        height: 200px;
    }
}

