/* Additional styling for tiles are in resource_filter_grid */
.resource-carousel .resource-tile .img-fluid {
  margin-top:0!important;
}
.resource-carousel .tile-link {
  bottom: 15px!important;
}
.resource-carousel h2 {
  text-align: center;
}
:root {
  --gap: 24px;
  --transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.slider-container {
  width: 90%;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  margin:auto;
}
.slider-wrapper {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  margin: 0 auto;
}
.slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: var(--gap);
}
.card {
  flex: 0 0 100%;
  display: flex;
  transition: transform 0.3s ease;
  overflow-y: visible;
  border: 0;
  background-color: var(--lightgray);
  border-radius: 0;
}
.resource-carousel .buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 50;
}
.resource-carousel .buttons button {
  background: #ffffff00;
  color: var(--darkgray);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.resource-carousel .buttons button:hover {
  color: var(--tertiarycolor);
}
.resource-carousel .buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resource-carousel .noarrows {
  display: none;
}
@media screen and (max-width: 979.98px) {
  .resource-carousel .noarrows {
  display: flex;
  }
}
@media screen and (min-width: 680px) and (max-width: 979.98px) {
  .slider-wrapper {
    max-width: 100%;
  }
  .card {
    flex: 0 0 calc(50% - var(--gap)/2);
  }
}
@media screen and (max-width: 679.98px) {
  .slider-wrapper {
    max-width: min(var(--card-width), 100%);
  }
  .card {
    width: calc(100% - 2rem);
    min-width: auto;
  }
  .slider-container {
    width: 70%;
  }
}
@media screen and (max-width: 368px) {
  :root {
    --card-width: 280px;
  }
  .slider-wrapper {
    max-width: 100%;
  }
  .card {
    width: calc(100% - 2rem);
    min-width: auto;
  }
}
@media screen and (min-width: 980px) {
  .slider-wrapper {
    max-width: 100%;
  }
  .card {
    flex: 0 0 calc((100% - var(--gap) * 2) / 3);
  }
}