/*
 * "Улаан гэр галерей / Red Ger Gallery" page built in the manager (components/GalleryPage.tsx). The hero and the
 * news cards reuse programs.css / home.css; sizes here are the Elementor page's: content 1320 px with 20 px inner
 * padding, logo column 30 %, titles Inter 18 px upper case in the page colour, text Andika 16.2 px, schedule rows
 * 65 px with a #f0f0f0 header, red (#990d01) call-out. On phones the schedule becomes a list of cards.
 */

.acm-gp-in {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
}
.acm-gp-text {
  font-family: var(--font-body);
  font-size: 16.2px;
  line-height: 1.3;
  color: var(--acm-text);
}
.acm-gp-text p {
  margin: 0 0 1.5em;
}
.acm-gp-caption p {
  margin-bottom: 1em;
}

/* ───────── intro ───────── */

.acm-gp-intro__in {
  display: flex;
  align-items: center;
  gap: 40px;
}
.acm-gp-intro__logo {
  flex: 0 0 calc(30% - 20px);
}
.acm-gp-intro__logo img {
  display: block;
  width: 100%;
  max-width: 356px;
  height: auto;
}
.acm-gp-intro__body {
  flex: 1 1 0;
  min-width: 0;
}

/* ───────── schedule ───────── */

.acm-gp-schedule {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
.acm-gp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14.4px;
  line-height: 1.7;
  color: var(--acm-text);
}
.acm-gp .acm-gp-table th {
  padding: 10px;
  background: #f0f0f0;
  font-family: var(--font-body);
  font-size: 14.4px;
  font-weight: 700;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  color: var(--acm-text);
}
.acm-gp .acm-gp-table th.acm-gp-table__desc {
  text-align: center;
}
.acm-gp-table td {
  height: 65px;
  padding: 10px;
  border-bottom: 1px solid #54595f;
  text-align: center;
  vertical-align: middle;
}
.acm-gp-table tbody tr:nth-child(even) td {
  background: #f0f0f0;
}
.acm-gp-table .acm-gp-table__desc {
  width: 65%;
  text-align: start;
}
.acm-gp-table__month {
  font-weight: 700;
  white-space: nowrap;
}
.acm-gp-table th:first-child,
.acm-gp-table td:first-child {
  width: 5%;
}

/* ───────── red call-out ───────── */

.acm-gp-banner {
  margin-top: 70px;
  background: #990d01;
}
.acm-gp-banner__in {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 70px;
}
.acm-gp-banner__text {
  flex: 1 1 0;
  min-width: 0;
}
.acm-gp-banner__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 32.4px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: normal;
  text-transform: none;
  color: #f8f8f8;
}
.acm-gp-banner__lead {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.4;
  color: #fff;
}
.acm-gp .acm-gp-banner__button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 26px;
  border-radius: 4px;
  background: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: #990d01;
  transition: background-color 0.2s;
}
.acm-gp .acm-gp-banner__button:hover {
  background: #ffe7e3;
}
.acm-gp-banner__images {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acm-gp-banner__images a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}
.acm-gp-banner__images a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.acm-gp-banner__images img {
  transition: transform 0.4s ease;
}
.acm-gp-banner__images a:hover img {
  transform: scale(1.05);
}
.acm-gp-banner__images img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

/* ───────── news ───────── */

.acm-gp-news {
  margin-top: 40px;
}
.acm-gp-news .acm-gp-news__title {
  color: #007e5d;
}

@media (max-width: 1024px) {
  .acm-gp-banner__in {
    flex-direction: column;
    align-items: stretch;
  }
  .acm-gp-table .acm-gp-table__desc {
    width: 50%;
  }
}

@media (max-width: 767px) {
  .acm-gp-intro__in {
    flex-direction: column;
    gap: 20px;
  }
  .acm-gp-intro__logo {
    flex-basis: auto;
    width: 70%;
    max-width: 280px;
  }
  .acm-gp-title {
    text-align: center;
  }
  /* the schedule as a list of cards */
  .acm-gp-schedule {
    padding: 0 20px;
  }
  .acm-gp-table thead {
    display: none;
  }
  .acm-gp-table,
  .acm-gp-table tbody,
  .acm-gp-table tr,
  .acm-gp-table td {
    display: block;
    width: auto;
  }
  .acm-gp-table tr {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: #f5f5f5;
  }
  .acm-gp-table tbody tr:nth-child(even) td {
    background: none;
  }
  .acm-gp-table td {
    height: auto;
    padding: 2px 0;
    border: 0;
    text-align: start;
  }
  .acm-gp-table td:first-child {
    display: none;
  }
  .acm-gp-table .acm-gp-table__month {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--accent);
  }
  .acm-gp-table .acm-gp-table__desc {
    width: auto;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.35;
  }
  .acm-gp-table td:nth-child(4),
  .acm-gp-table td:nth-child(5) {
    display: inline-block;
    margin-right: 14px;
    font-size: 14px;
    color: #69727d;
  }
  .acm-gp-table td:nth-child(4)::before,
  .acm-gp-table td:nth-child(5)::before {
    content: attr(data-label) ": ";
  }
  .acm-gp-banner__title {
    font-size: 22px;
    line-height: 1.3;
  }
  .acm-gp-banner__in {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .acm-gp-banner__images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
