/* Container for the sponsor scroller */
.sponsor-scroller {
    display: flex;
    overflow: hidden; /* Hide overflow to create the scrolling effect */
    position: relative;
    margin-bottom: 1.5em;
}

/* The scrolled content, holds all sponsor logos */
.sponsor-items {
    display: flex;  /* Align items in a row */
    flex: 1;        /* Take up available space */
    height: inherit; /* Use the height of the parent container */
    animation-name: scrollSponsors;
    animation-timing-function: linear;
    animation-iteration-count: infinite; /* Infinite scroll loop */
}

/* Individual sponsor logos (images) */
.sponsor-logo {
    height: inherit; /* Inherit height from scroller */
}

/* Style for each logo link */
.sponsor-logo a {
    display: flex;
    height: inherit;
    width: max-content;
    margin-right: 50px; /* Add space between logos */
}

/* Style for images inside the sponsor logos */
.sponsor-logo a img {
    height: inherit;
    width: auto;  /* Maintain aspect ratio of logos */
}

/* Keyframe animation for scrolling the logos */
@keyframes scrollSponsors {
    0% {
        transform: translateX(0); /* Start at the original position */
    }
    100% {
        transform: translateX(-100%); /* Scroll to the left */
    }
}

/* single-sponsor.php */
.sponsor-brochure {
    padding: 0 1.5em 0.5em;
}

article.sponsor div.post-thumbnail {
    background: #0092a1;
    text-align: center;
}

article.sponsor img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
    width: auto !important;
    height: inherit;
    text-align: center;
    max-width: 100%;
}

.sponsor-logo a img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
    max-height: inherit !important;
    height: inherit !important;
    width: auto !important;
}

/* archive-sponsor.php*/
.sponsor-archive {
    margin: 0 1.5em;
}

.archive-sponsor-item {
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
    gap: 1em;
    margin-bottom: 1.5em;
    align-items: center;
}

.archive-sponsor-logo {
    align-self: start;
}

.archive-sponsor-logo a img{
    height: 100px !important;
    width: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;    
    text-align: unset !important;
    max-width: 100% !important;
}

.archive-sponsor-title h2.entry-title {
    margin: 0;
}

h1.entry-title{
    display:none;
}

/* Desktop */
@media only screen and (min-width: 1024px) {  

    article.sponsor img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
        max-height: 480px !important;
    }

}

/* All Mobile */
@media only screen and (max-width: 1024px) {  
    
    article.sponsor img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image {
        max-height: 320px !important;
    }

}

/* Vertical Mobile */
@media only screen and (max-width: 640px) {  


}
