.custom-page-content .cpc-image-group {
  margin: 1.5em 0;
  padding: 1em;
  width: 100%;
  box-sizing: border-box;
}

.custom-page-content .cpc-image-group__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
  width: 100%;
  box-sizing: border-box;
}

.custom-page-content .cpc-sub-image {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.custom-page-content .cpc-sub-image__frame {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
}

.custom-page-content .cpc-sub-image__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.custom-page-content .cpc-button-group {
  margin: 1.5em 0;
}

.custom-page-content .cpc-button-group__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1em;
  width: 100%;
  box-sizing: border-box;
}

.custom-page-content .cpc-sub-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  min-width: 8rem;
  min-height: 3rem;
}

.custom-page-content a.cpc-sub-button:hover,
.custom-page-content a.cpc-sub-button:focus {
  transform: translateY(-2px);
  outline: none;
}

.custom-page-content .cpc-sub-button__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
  pointer-events: none;
}

.custom-page-content .cpc-sub-button__text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 0.5rem;
  line-height: 1.3;
}

@media (orientation: portrait) {
  .custom-page-content .cpc-image-group__list,
  .custom-page-content .cpc-button-group__list {
    flex-direction: column;
    align-items: center;
  }
}

@media (orientation: landscape) {
  .custom-page-content .cpc-image-group__list,
  .custom-page-content .cpc-button-group__list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .custom-page-content .cpc-image-group,
  .custom-page-content .cpc-button-group {
    margin: 2em 0;
  }
}
