/**
 * Past Highlights — full image visible (no crop), equal grid tiles
 * /delhi/{year}, /mumbai/{year}, /chennai/{year}
 */

section.tabbing-section-div.gallery-past-highlights .container-fluid {
  padding-left: max(15px, 2vw);
  padding-right: max(15px, 2vw);
  overflow: visible;
}

section.tabbing-section-div.gallery-past-highlights .section-wrapper,
section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  row-gap: 20px;
  margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
  margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
}

section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .row > [class*="col-"] {
  display: flex;
  margin-bottom: 0;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* Fixed tile size = aligned grid; image fits inside without cropping */
section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .row > [class*="col-"] > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  line-height: 0;
  padding: 6px;
  box-sizing: border-box;
  background: #eef2f6;
  border: 1px solid #dde4ec;
}

section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .image-main-pg {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

@media screen and (min-width: 992px) {
  section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .row > [class*="col-"] > a {
    aspect-ratio: 4 / 3;
    min-height: 200px;
  }
}

@media screen and (min-width: 576px) and (max-width: 991px) {
  section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .row > [class*="col-"] > a {
    aspect-ratio: 4 / 3;
  }
}

@media screen and (max-width: 575px) {
  section.tabbing-section-div.gallery-past-highlights .post-item-wrapper.padding-btm-gallry .row > [class*="col-"] > a {
    aspect-ratio: 1 / 1;
  }
}
