
/* =========================================================
   BZ ACADEMY - PISTOL INSTRUCTOR COURSE
   TRAINING GALLERY
   ========================================================= */

.pic-gallery-section,
.pic-gallery-section * {
  box-sizing: border-box;
}

.pic-gallery-section {
  position: relative;
  overflow: hidden;

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: 78px 24px;

  background:
    radial-gradient(circle at 88% 6%, rgba(227, 20, 28, 0.18), transparent 28%),
    radial-gradient(circle at 18% 98%, rgba(227, 20, 28, 0.12), transparent 28%),
    linear-gradient(135deg, #050505 0%, #111111 48%, #050505 100%);

  color: #ffffff;
}

.pic-gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 13px
    );
}

.pic-gallery-section::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 6%;
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0.42;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 13px,
      rgba(227, 20, 28, 0.68) 13px,
      rgba(227, 20, 28, 0.68) 15px
    );
  clip-path: polygon(46% 0, 100% 0, 54% 100%, 0 100%);
}

.pic-gallery-section__inner {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(720px, 1.65fr);
  gap: 58px;
  align-items: center;

  width: 100%;
  max-width: 1560px;
  margin: 0 auto;

  padding: 58px 58px 58px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;

  background:
    radial-gradient(circle at 100% 0%, rgba(227, 20, 28, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(8, 8, 8, 0.96), rgba(5, 5, 5, 0.98));

  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.pic-gallery-section__content {
  max-width: 430px;
}

.pic-gallery-section__kicker {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 26px;

  color: #e3141c;

  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pic-gallery-section__kicker::before {
  content: "";
  width: 32px;
  height: 3px;
  background: #e3141c;
  transform: skewX(-24deg);
}

.pic-gallery-section__title {
  margin: 0;

  color: #ffffff;

  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(58px, 5vw, 92px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.07em;
  text-transform: uppercase;

  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
}

.pic-gallery-section__line {
  width: 120px;
  height: 4px;
  margin: 30px 0 26px;
  background:
    linear-gradient(
      90deg,
      #e3141c 0%,
      #e3141c 62%,
      rgba(227, 20, 28, 0.36) 62%,
      rgba(227, 20, 28, 0.36) 100%
    );
}

.pic-gallery-section__lead {
  margin: 0 0 18px;

  color: #ffffff;

  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.42;
}

.pic-gallery-section__text {
  margin: 0;

  color: rgba(255, 255, 255, 0.72);

  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
}

.pic-gallery-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin-top: 34px;
  min-height: 56px;
  padding: 17px 28px;

  color: #ffffff;
  background: linear-gradient(135deg, #e3141c 0%, #b70910 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;

  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;

  box-shadow: 0 18px 42px rgba(227, 20, 28, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.pic-gallery-section__button:hover,
.pic-gallery-section__button:focus {
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff1f28 0%, #c70912 100%);
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(227, 20, 28, 0.36);
}

.pic-gallery-section__button span {
  font-size: 24px;
  line-height: 0;
  transform: translateY(-1px);
}

/* Gallery grid */
.pic-gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.78fr 0.78fr;
  grid-template-rows: 260px 170px 170px;
  gap: 14px;
}

.pic-gallery-grid__item {
  position: relative;
  overflow: hidden;
  margin: 0;

  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;

  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.pic-gallery-grid__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.32) 100%);
}

.pic-gallery-grid__item img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  transition: transform 0.35s ease, filter 0.35s ease;
}

.pic-gallery-grid__item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.pic-gallery-grid__item--main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.pic-gallery-grid__item--top-right {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.pic-gallery-grid__item--middle-right {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.pic-gallery-grid__item--bottom-left {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.pic-gallery-grid__item--bottom-right {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
}

/* Specific crop positions, adjusted later after you send final photos */
.pic-gallery-grid__item--main img {
  object-position: center center;
}

.pic-gallery-grid__item--top-right img {
  object-position: center center;
}

.pic-gallery-grid__item--middle-right img {
  object-position: center center;
}

.pic-gallery-grid__item--bottom-left img {
  object-position: center center;
}

.pic-gallery-grid__item--bottom-right img {
  object-position: center center;
}

/* Medium desktop */
@media (max-width: 1399px) {
  .pic-gallery-section__inner {
    max-width: 1380px;
    grid-template-columns: minmax(300px, 0.75fr) minmax(650px, 1.55fr);
    gap: 44px;
    padding: 50px;
  }

  .pic-gallery-grid {
    grid-template-rows: 235px 155px 155px;
  }

  .pic-gallery-section__title {
    font-size: clamp(54px, 4.7vw, 82px);
  }
}

/* Tablet */
@media (max-width: 1199px) {
  .pic-gallery-section {
    padding: 64px 20px;
  }

  .pic-gallery-section__inner {
    grid-template-columns: 1fr;
    gap: 42px;
    max-width: 940px;
    padding: 42px 34px;
  }

  .pic-gallery-section__content {
    max-width: 720px;
  }

  .pic-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 300px 190px 190px;
  }

  .pic-gallery-grid__item--main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .pic-gallery-grid__item--top-right {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .pic-gallery-grid__item--middle-right {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .pic-gallery-grid__item--bottom-left {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .pic-gallery-grid__item--bottom-right {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pic-gallery-section {
    padding: 50px 14px;
  }

  .pic-gallery-section::after {
    display: none;
  }

  .pic-gallery-section__inner {
    padding: 34px 18px;
    border-radius: 16px;
  }

  .pic-gallery-section__kicker {
    font-size: 14px;
    letter-spacing: 0.075em;
  }

  .pic-gallery-section__kicker::before {
    width: 24px;
    height: 2px;
  }

  .pic-gallery-section__title {
    font-size: clamp(48px, 14vw, 64px);
  }

  .pic-gallery-section__lead {
    font-size: 16px;
  }

  .pic-gallery-section__text {
    font-size: 15px;
    line-height: 1.6;
  }

  .pic-gallery-section__button {
    width: 100%;
  }

  .pic-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .pic-gallery-grid__item,
  .pic-gallery-grid__item--main,
  .pic-gallery-grid__item--top-right,
  .pic-gallery-grid__item--middle-right,
  .pic-gallery-grid__item--bottom-left,
  .pic-gallery-grid__item--bottom-right {
    grid-column: auto;
    grid-row: auto;
    height: 230px;
  }

  .pic-gallery-grid__item--main {
    height: 280px;
  }
}

@media (max-width: 420px) {
  .pic-gallery-grid__item,
  .pic-gallery-grid__item--main {
    height: 220px;
  }
}
