.ba-gallery {
  width: 100%;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #0f172a;
  -webkit-user-select: none;
  user-select: none;
}

.ba-gallery * {
  box-sizing: border-box;
}

.ba-header {
  max-width: 980px;
  width: 92%;
  margin: 0 auto 34px;
  text-align: center;
}

.ba-section-title,
.ba-grid-title {
  margin: 0;
  color: #024690 !important;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ba-section-title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.02;
}

.ba-grid-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 24px;
}

.ba-subtitle {
  max-width: 620px;
  margin: 12px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}

.ba-mobile-hint {
  display: none;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  margin: -10px 0 16px;
}

.ba-hof-grid,
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1380px;
  width: 92%;
  margin: 0 auto;
}

.ba-hof-grid {
  margin-bottom: 64px;
}

.ba-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 39, 66, 0.06);
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background: #f6f9fb;
}

.ba-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f6f9fb;
}

.ba-image:first-child {
  border-right: 1px solid #ffffff;
}

.ba-image img,
.ba-protected-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.ba-image-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  cursor: default;
}

.ba-image-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.ba-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #011C3A;
  border: 1px solid rgba(15, 39, 66, 0.08);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.ba-card-body {
  padding: 16px 16px 18px;
  text-align: center;
}

.ba-caption {
  margin: 0;
  color: #011C3A;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.ba-hof-name {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.ba-divider {
  max-width: 1380px;
  width: 92%;
  height: 1px;
  margin: 0 auto 42px;
  background: #e6edf3;
}

.ba-load-wrap {
  text-align: center;
  margin-top: 36px;
}

.ba-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid #d9e3ec;
  border-radius: 999px;
  background: #ffffff;
  color: #011C3A;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 39, 66, 0.06);
}

.ba-result-card.is-ba-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .ba-hof-grid,
  .ba-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 92%;
  }
}

@media (max-width: 767px) {
  .ba-header {
    width: 90%;
    margin-bottom: 26px;
  }

  .ba-subtitle {
    font-size: 14px;
    line-height: 1.55;
  }

  .ba-mobile-hint {
    display: block;
  }

  .ba-hof-grid,
  .ba-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 14px;
    width: 100%;
    padding: 0 16px 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ba-hof-grid::-webkit-scrollbar,
  .ba-grid::-webkit-scrollbar {
    display: none;
  }

  .ba-hof-grid {
    margin-bottom: 46px;
  }

  .ba-card {
    min-width: 88%;
    max-width: 88%;
    flex: 0 0 88%;
    scroll-snap-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(15, 39, 66, 0.07);
  }

  .ba-result-card.is-ba-hidden {
    display: block;
  }

  .ba-label {
    left: 9px;
    bottom: 9px;
    min-width: 42px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .ba-card-body {
    padding: 13px 12px 15px;
  }

  .ba-caption {
    font-size: 14px;
  }

  .ba-hof-name {
    font-size: 12px;
  }

  .ba-divider {
    width: 90%;
    margin-bottom: 34px;
  }

  .ba-load-wrap {
    display: none !important;
  }
}
