/*
Theme Name: UFL Main - Mercury Child Theme
Template: ufl-main-uni
Version: 1.0.0
*/

@import url("../ufl-main-uni/style.css");

/* These block styles are required for the faculty directory and faculty bios */
@import url("../../plugins/ufl-block/build/faculty-landing/faculty-landing/style-index.css");
@import url("../../plugins/ufl-block/build/faculty-bio/style-index.css");

.Filters__search input {
  border: 1px solid #8c8f94;
}

/* WP ADMIN BAR FIX */
#wpadminbar {
    z-index: 9999999999;
}

.faculty-listing-item .faculty-image {
    width: 100%;
}

.faculty-bio .faculty-headshot {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
}

.faculty-page .faculty-listing-item .faculty-listing-img:after,
.faculty-listing-carousel-wrapper .faculty-listing-carousel .faculty-listing-img:after,
.image-gallery .carousel .carousel-inner .col-image-gallery a:after {
    background-color: #0033ff54;
}

.title-font { font-family: gentonabbitalic!important; }

.title-font::before,
.title-font::after {
    position:absolute;
    content: '';
    bottom: -20px;
    left: 0;
    width: 4px;
    height: 100px;
    background-color:#fa4616;
}

.title-font::after {
    left: unset;
    bottom: 32px;
    right: 0;
    height: calc(100%-32px);
}

.wp-block-table {
  max-width: 1640px;
  padding: 20px 0%;
  scrollbar-color: auto;
}

.photo-top img {
  object-position: top;
}

.wp-block-image.alignleft {
  padding-right: 1.2em;
}

.gap-1 {
	gap: 1em;
}

.gap-1-5 {
	gap: 1.5em;
}

.gap-2 {
	gap: 2em;
}

/* NEWS PAGE */

ul.dropdown-menu>li::before {
    display:none!important;
}

.news-posts {
    max-width: 1700px;
    margin: auto;
}

.card.news-card {
    max-width: unset;
    margin-left: auto;
    margin-right: auto;
}

.news p.card-date {
    display:none!important;
}

.card.news-card .card-img-top {
	aspect-ratio: 5/4;
	object-fit: cover;
	object-position: 50% 35%;
}

/* QUERY LOOP FIXES */

li.wp-block-post,
ul.wp-block-post-template {
padding-left:0!important;
}

li.wp-block-post::before {
display: none!important;    
}

/* SLICK CAROUSEL STYLING */
.slick-arrow::before {
    color: var(--core-orange);
    height: 100%;
    widht: 100%;
}

#content ul.slick-dots>li::before {
    content: '';
}

.slick-dots li button::before,
.slick-dots li.slick-active button::before {
    color: var(--core-orange);
    content: '■';
    font-size: 20px;
}

/* UF LAW GALLERY STYLE */
.uflaw-gallery .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.33em!important;
    align-items: center;
}

.uflaw-gallery .wp-block-gallery .wp-block-image {
    width: 100%!important;
    margin: 0 auto!important;
}

.uflaw-gallery .wp-block-gallery .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(5n + 1),
.uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(5n + 2) {
    grid-column: span 3;
}

.uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(5n + 3),
.uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(5n + 4),
.uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(5n + 5) {
    grid-column: span 2;
}

.uflaw-gallery .wp-block-gallery .wp-block-image:last-child:nth-child(5n + 1),
.uflaw-gallery .wp-block-gallery .wp-block-image:last-child:nth-child(5n + 3) {
    grid-column: 3 / span 2;
}

.uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(5n + 3):nth-last-child(2) {
    grid-column: 2 / span 2;
}

@media (max-width: 600px) {
    .uflaw-gallery .wp-block-gallery {
        grid-template-columns: 1fr;
    }
    .uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(n),
    .uflaw-gallery .wp-block-gallery .wp-block-image:last-child:nth-child(n),
    .uflaw-gallery .wp-block-gallery .wp-block-image:nth-child(n):nth-last-child(n) {
        grid-column: span 1;
    }
}

/* CLICKABLE CARDS */

.click-card {
    position: relative;
}
.click-card a::after {
    cursor: pointer;
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transition: all 0.4s;
	  border-radius: 1rem;
}
.click-card:hover a::after {
    background-color: #0021a510!important;
}

/* SOCIAL MEDIA CTA */

.social-media-cta ul.wp-block-social-links,
.social-media-cta ul.wp-block-social-links li {
    padding-left: 0!important;
}

.social-media-cta ul.wp-block-social-links li,
.social-media-cta ul.wp-block-social-links svg {
    width: 50px;
    height: 50px;
}

.social-media-cta ul.wp-block-social-links a {
	transition: all 0.2s ease-in-out;
}

.social-media-cta ul.wp-block-social-links a:hover {
    filter: grayscale(1) brightness(0);
}

.social-media-cta ul.wp-block-social-links li::before {
    display: none!important;
}

/* UFL TAB BLOCK FIXES */

.tab-block .tab-block-wrapper .desktop-tab-link-col .tab-link {
    text-align:right;
    position:relative;
    line-height: 1.6;
}

.tab-block .tab-block-wrapper .desktop-tab-link-col .tab-link.active,
.tab-block .tab-block-wrapper .desktop-tab-link-col .tab-link:not(.collapsed) {
    background: linear-gradient( 90deg, transparent, transparent, #f4f6f6);
}

/* SITE FOOTER */

.footer-heading {
	position: relative;
	margin-bottom: 38px;
}

.footer-address-col .footer-heading {
	width: 70%;
}

.footer-heading::after {
    content: '';
    width: 96%;
    height: 4px;
    background: #E8552F;
    display: inline-block;
    position: absolute;
    left: 0;
    bottom: -4px;
}

.custom-social-icons svg {
	font-size: 32px;
	transition: all 0.2s 
ease-in-out;
}

.custom-social-icons a:hover svg {
	fill: var(--core-blue)!important;
}

.copyright-section::before {
    position: absolute;
    top: -24px;
    content: '';
    height: 2px;
    width: 100%;
    background: rgba(from var(--core-orange) r g b / 0.5);
}

.copyright-section #menu-footer-website-1 * {
    font-size: 16px!important;
}

/* Hide unused last 2 footer columns */
.footer-col:last-of-type,
.footer-col:nth-of-type(4) {
	display: none;
}

ul#menu-footer-contact a {
    font-family: "IBM Plex light";
}

.footer-wrapper .footer .footer-section .footer-col-logo img {
  object-position: top;
}

#cmplz-document p,#cmplz-document li,#cmplz-document td,.editor-styles-wrapper .cmplz-unlinked-mode p,.editor-styles-wrapper .cmplz-unlinked-mode li,.editor-styles-wrapper .cmplz-unlinked-mode td {
    font-size: 18px;
}

/* Mobile enhancements for wide tables */

@media screen and (max-width: 1239px) {
  .wide-table {
    position: relative;
    overflow-x: auto;
  }

  .wide-table .wp-block-table table th:nth-child(-n + 1),
  .wide-table .wp-block-table table td:nth-child(-n + 1) {
    position: sticky;
    left: 0;
    background-color: #f9f9f9;
    z-index: 2;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.1);
  }

  .wide-table .wp-block-table table th:nth-child(-n + 2),
  .wide-table .wp-block-table table td:nth-child(-n + 2) {
    min-width: unset;
    white-space: nowrap;
  }

  .wide-table .wp-block-table::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 85px;
    background: linear-gradient(
      to left,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0)
    );
    pointer-events: none;
    z-index: 1;
  }

  @keyframes arrow {
    from {
      right: 20px;
    }
    to {
      right: 25px;
    }
  }

  .wide-table .wp-block-table::before {
    position: absolute;
    top: 37px;
    right: 20px;
    content: "→";
    color: var(--core-orange);
    font-size: 30px;
    animation: arrow 0.5s ease infinite alternate;
    z-index: 2;
  }
}

/*   FACULTY BIO FIXES   */
.faculty-bio ul>li {
    position: relative;
}

#content ol li::before {
    margin-left: -55px;
    width: 50px;
}

.site-main>.form-inline {
    max-width: 900px;
    padding: 0 8%;
    margin: 64px auto;
}

/* SEARCH STYLING FIXES */

.search-modal .gsc-results-wrapper-nooverlay.gsc-results-wrapper-visible {
    max-width: unset;
}

.search-modal .gsc-results-wrapper-nooverlay.gsc-results-wrapper-visible>* {
    margin: auto;
    max-width: 935px;
}