/* Add this to the TOP of your CSS editor */
#menu-backer.menu-backer.is-empty {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.main-footer{
display:none;
}

.border-link {
  display: inline-block;
  width: 180px;
  padding: 8px 12px;
  border: 1px solid grey;
  text-align: center;
  text-decoration: none;
  color: #800000 !important;
  margin: 5px 0;
  background: white;
}

.main-search-button{
  display: none !important;
}

.main-header__top-bar .container .top-bar__advanced-search {
  display: none !important;
}

.legend-block {
  border: 1px solid gray;
  border-radius: 8px;
}

/* 1. THE HERO CONTAINER */
.block.block-listOfPages {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f4f4f4; /* Background color behind the overlap */
    padding-bottom: 50px;
}


/* 2. STYLE THE ACTUAL IMAGE */
.media-render.file img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* This is key for the banner look */
    object-position: center 30%; /* Adjusts the "crop" to show the building */
    display: block;
}

/* 3. THE FLOATING LIST (The Overlap) */
/* We target the block that follows the media embed */
.block-listOfPages > div > ul {
    position: relative;
    margin: -100px auto 50px auto; /* Pulls it 100px up over the image */
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 99; /* Ensures it stays on top of the image */
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
}
/* Hide ghost ULs */
.block-listOfPages ul ul { display: none; }

/* 4. THE TAG LINKS */
.block-listOfPages li a {
    display: block;
    padding: 12px 16px;
    background: #ffffff;
    color: #222;
    text-decoration: none;
    border-left: 4px solid #800000; /* Deep Scarlet Accent */
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 5. HOVER EFFECTS */
.block-listOfPages li a:hover {
    background: #800000;
    color: #fff;
    transform: scale(1.05) translateX(5px);
    box-shadow: 5px 5px 15px rgba(128, 0, 0, 0.3);
}

/* Add a "Directory" Label before the list */
.block-listOfPages > div > ul::before {
    content: "CAMPUS BUILDINGS INDEX";
    grid-column: 1 / -1; /* Spans across all columns */
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Target the image on building pages */
 .block-media.grid-span-3 {
    /* This allows the image to overflow its 25% boundary */
    overflow: visible !important; 
    z-index: 10;
}

 .block-media.grid-span-3 .media-render.file img {
    /* Increase width beyond 100% of the span-3 container */
    width: 130% !important; 
    max-width: none !important;
    
    /* Pull it to the right so it doesn't overlap the text too much */
    margin-left: -30%; 
    
    border: 1px solid #ddd;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Add a hover zoom since it's now a focal point */
 .block-media.grid-span-3 .media-render.file img:hover {
    transform: scale(1.1);
    z-index: 20;
}
  