.rf-banner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 25px;
    margin: 25px 0 15px;
    border-radius: 5px;

    color: #fff;
    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.rf-banner.acc {
    background: linear-gradient(
        90deg,
        #2a0a0a 0%,
        #5a0f0f 40%,
        #b32020 100%
    );
}

.rf-banner.bell {
    background: linear-gradient(
        90deg,
        #0a2a18 0%,
        #0f5a2f 40%,
        #20b36a 100%
    );
}

.rf-banner.cora {
    background: linear-gradient(
        90deg,
        #0a1a2a 0%,
        #0f3f7a 40%,
        #2a7fff 100%
    );
}

.rf-title {
    font-size: 18px;
    font-weight: 600;
    z-index: 2;
}

.rf-banner img {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);

    height: 70px;
    opacity: 1;

    z-index: 1;
    pointer-events: none;

    filter: none;
}

.rf-banner.acc img {
    filter: drop-shadow(0 0 12px rgba(255, 60, 60, 0.7))
            drop-shadow(0 0 24px rgba(255, 60, 60, 0.4));
}

.rf-banner.bell img {
    filter: drop-shadow(0 0 12px rgba(60, 255, 140, 0.7))
            drop-shadow(0 0 24px rgba(60, 255, 140, 0.4));
}

.rf-banner.cora img {
    filter: drop-shadow(0 0 12px rgba(80, 160, 255, 0.7))
            drop-shadow(0 0 24px rgba(80, 160, 255, 0.4));
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    grid-auto-rows: 140px;
    margin-bottom: 30px;
}

.masonry-item {
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Sizes */
.masonry-item.small {
    grid-column: span 2;
    grid-row: span 1;
}

.masonry-item.medium {
    grid-column: span 2;
    grid-row: span 2;
}

/* Featured only appears once */
.masonry-item.featured {
    grid-column: span 4;
    grid-row: span 3;
}

@media (max-width: 992px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .masonry-item.featured,
    .masonry-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .masonry-item,
    .masonry-item.small,
    .masonry-item.medium,
    .masonry-item.large,
    .masonry-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }
}

html { scroll-behavior: smooth; }

#race-gallery-nav {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.race-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.race-btn:hover { transform: scale(1.1); text-decoration: none; }
.race-btn img   { width: 40px; height: 40px; pointer-events: none; display: block; }

.race-acc:hover  { border-color: #c0392b; box-shadow: 0 0 12px rgba(192,57,43,0.45); }
.race-bell:hover { border-color: #1a7a3c; box-shadow: 0 0 12px rgba(26,122,60,0.45); }
.race-cora:hover { border-color: #2980b9; box-shadow: 0 0 12px rgba(41,128,185,0.45); }
@media (max-width: 767px) {
  #race-gallery-nav {
    display: none;
  }
}