/* =====================================================================
   gallery-card-group / activities photo grid
   Matches redesign-front-end: .aa-section, .aa-h2, .aa-photo, .aa-badge, .aa-round-btn
   ===================================================================== */

:root {
  --bg: #f9f7f5;
  --aa-gcg-orange: #f05d19;
  --aa-gcg-orange-dark: #d94e10;
  --aa-gcg-teal: #1d3533;
  --aa-gcg-teal-2: #396a65;
  --aa-gcg-chip-bg: #f2f5f4;
  --aa-gcg-radius-img: 16px;
  --aa-gcg-maxw: 1440px;
}

/* Content modules — same page surface as redesign-front-end body --bg */
.aa-section {
  padding: 40px 0;
  background: var(--bg);
}

/* Match redesign container-xl when Bootstrap 4 lacks it */
.aa-gallery-card-group > .container-xl {
  max-width: var(--aa-gcg-maxw);
  margin: 0 auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .aa-gallery-card-group > .container-xl {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.aa-h2 {
  font-family: "Montserrat Alternates", system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  text-align: left;
  margin: 0 0 24px;
  font-weight: 600;
  color: var(--aa-gcg-teal);
}

@media (min-width: 768px) {
  .aa-section {
    padding: 48px 0;
  }

  .aa-h2 {
    font-size: 44px;
    margin-bottom: 32px;
  }
}

@media (min-width: 992px) {
  .aa-section {
    padding: 56px 0;
  }

  .aa-h2 {
    font-size: 54px;
    line-height: 1;
  }
}

.aa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--aa-gcg-chip-bg);
  color: var(--aa-gcg-teal-2);
  font-family: "Open Sans", system-ui, Arial, sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.aa-round-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  background: var(--aa-gcg-orange);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.aa-round-btn:hover,
.aa-round-btn:focus {
  background: var(--aa-gcg-orange-dark);
  transform: translateY(-1px);
  color: #fff;
}

.aa-round-btn__arrow {
  width: 12px;
  height: 12px;
  position: relative;
  display: block;
}

.aa-round-btn__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.aa-photogrid {
  margin-left: -12px;
  margin-right: -12px;
}

.aa-photogrid > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
  margin-bottom: 24px;
}

.aa-photo {
  position: relative;
  height: 220px;
  border-radius: var(--aa-gcg-radius-img);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(29, 53, 51, 0) 20%, rgba(29, 53, 51, 0.9)), var(--img);
  background-size: cover;
  background-position: center;
}

.aa-photo__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 1px;
}

.aa-photo__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.aa-photo__title {
  margin: 0;
  color: #fff;
  font-family: "Montserrat Alternates", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .aa-photo {
    height: 300px;
    padding: 28px;
  }

  .aa-photo__title {
    font-size: 28px;
  }

  .aa-photo--wide {
    height: 300px;
  }
}

@media (min-width: 992px) {
  .aa-photo {
    height: 355px;
    padding: 40px;
  }

  .aa-photo__title {
    font-size: 36px;
    line-height: 43px;
  }
}
