/* Event + award photo mosaic */

.company-photos {
  position: relative;
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(240, 90, 20, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 80%, rgba(240, 90, 20, 0.07), transparent 50%),
    var(--color-bg, #FFF8F3);
  overflow: hidden;
}

.company-photos--home {
  padding: 56px 0 64px;
  margin-top: 8px;
}

.company-photos__header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.company-photos__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text, #3F2A1E);
}

.company-photos__desc {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted, #8A6E5C);
}

.company-photos__mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: minmax(220px, 28vw) minmax(200px, 24vw);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.company-photos__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--photo-frame-pad, #F0E6DC);
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-photos__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.company-photos__shot:hover img {
  transform: scale(1.02);
}

.company-photos__shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFF8F3;
  background: rgba(63, 42, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.company-photos__shot--1 img {
  object-position: center;
}

.company-photos__shot--2 {
  grid-column: 2;
  grid-row: 1;
}

.company-photos__shot--3 {
  grid-column: 2;
  grid-row: 2;
  /* overlay 4th on small? keep 4 in second column as split - change grid */
}

/* 4-shot layout: large left, three stacked right becomes cramped — use 2x2 on large */
@media (min-width: 900px) {
  .company-photos__mosaic {
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
    grid-template-rows: minmax(240px, 26vw) minmax(220px, 22vw);
  }

  .company-photos__shot--1 {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .company-photos__shot--2 {
    grid-column: 2;
    grid-row: 1;
  }

  .company-photos__shot--3 {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .company-photos__shot--4 {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 899px) {
  .company-photos__mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    auto-rows: minmax(180px, 42vw);
  }

  .company-photos__shot--1 {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 240px;
  }

  .company-photos__shot--2,
  .company-photos__shot--3,
  .company-photos__shot--4 {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .company-photos {
    padding: 48px 0 56px;
  }

  .company-photos__mosaic {
    grid-template-columns: 1fr;
    gap: 10px;
    auto-rows: minmax(200px, 55vw);
  }

  .company-photos__shot--1 {
    grid-column: 1;
  }
}
