{# Wrappers #}
.resource__scroller {
  position: relative;
  overflow-x: visible;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resource-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;  /* Firefox */
    margin-right: -40%;  /* to let it extend off to the right */
    padding-right: 40%;  /* to keep the container size correct for scroll calculations */
}

.resource-cards::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}

.resource-cards > * {
    scroll-snap-align: start;
    flex-basis: calc(80% - 8px);
    min-width: calc(80% - 8px);
}

.resource-cards a {
    text-decoration: none;
    color: #031123;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .resource-cards > * {
        flex-basis: calc(60% - 8px);
        min-width: calc(60% - 8px);
    }
}

@media (min-width: 1024px) {
    .resource-cards > * {
        flex-basis: calc(40% - 8px);
        min-width: calc(40% - 8px);
    }
}

{# Image #}
.resource-card .image {
    position: relative;
    border-radius: 1rem;
    border-top-left-radius: 0;
    overflow: hidden;
    height: 340px;
}

.resource-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.3s;
}

{# Content #}
.resource-card .content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-card .content .resource-label {
    font-size: 0.875rem;
    color: #32373E;
}

.resource-card .content .headline {
    /* font-size: clamp(1.125rem, 2.5vw, 1.5rem); */
    font-size: clamp(18px, 15.771px + 0.571vw, 24px);
}

.resource-card .content .text *:last-child {
    margin-bottom: 0;
}

{# Hover Effects #}
.resource-cards a:hover .image img {
    transform: scale(1.05);
}

.resource-cards a:hover .headline {
    text-decoration: underline;
}

{# Bottom Section #}
.resource-cards__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(from #09213f r g b / 30%)
}

.resource__scroller .gha__nav-arrows {
    display: flex !important;
    width: auto;
}