/* GAR Ad Banner Styles */

.gar-ad-banner {
    position: relative;
    max-width: 310px;
    margin: auto;
}

.gar-ad-banner a {
    color: inherit;
    text-decoration: none;
}

/* Left Nav Banner Styles */
.gar-ad-banner--left-nav-banner {
    margin-bottom: 45px;
    clear: both;
}

.gar-ad-banner--left-nav-banner img {
    max-width: 310px;
    max-height: 310px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gar-ad-banner__text { 
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    text-align: center;
    border: none;
}

.gar-ad-banner__text:hover {
    text-decoration: underline;
}

/* Divi column-specific display rules */
.c1 .gar-ad-banner--left-nav-banner {
    display: none;
}

.c2 .gar-ad-banner--left-nav-banner {
    display: block;
    clear: both;
    text-align: center;
    margin-top: 35px;
}

@media only screen and (min-width: 1080px) {
    .c1 .gar-ad-banner--left-nav-banner {
        display: block;
    }
    .c2 .gar-ad-banner--left-nav-banner {
        display: none;
    }
}

/* Pop-out Banner Styles */
.gar-ad-banner--popout-banner {
    position: fixed;
    right: -240px;
    top: 230px;
    max-width: 240px;
    min-width: 240px;
    z-index: 988;
    transition-property: right;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;
}

.gar-ad-banner--popout-banner--pop-out-tall {
    height: 325px;
}

.gar-ad-banner--popout-banner--pop-out-short {
    height: 240px;
}

.gar-ad-banner--popout-banner.has-border {
    right: -241px;
}

.gar-ad-banner--popout-banner.is-active {
    right: 0;
}

/* Pop-out Banner Trigger Button */
.gar-ad-banner__trigger {
    background-color: inherit;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 70%;
    font-size: 34px;
    color: inherit;
    height: 3rem;
    width: 3.125rem;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: 0;
    position: absolute;
    left: -50px;
    top: 0;
    transition: left 0.5s ease-in-out;
}

.gar-ad-banner__trigger:not(.is-active) {
    /* Custom icon inherits the text color from parent */
    color: inherit;
}

.gar-ad-banner__trigger::before {
    font-weight: 900;
    content: "X";
}


.gar-ad-banner--popout-banner.has-border .gar-ad-banner__trigger {
    left: -57px;
}


/* Pop-out Banner Content */
.gar-ad-banner__content {
    position: relative;
    height: 100%;
}

.gar-ad-banner__image {
    max-width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}