.tharaphoto-couples-archive {
  display: grid;
  gap: 24px 18px;
  margin: 0;
}

.tharaphoto-couples-archive.columns-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tharaphoto-couples-archive.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tharaphoto-couples-archive.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tharaphoto-couples-archive.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tharaphoto-couples-archive.columns-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tharaphoto-couples-archive.columns-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tp-couple-card {
  margin: 0;
}

.tp-couple-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.tp-couple-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #d9d7d1;
}

.tharaphoto-couples-archive.columns-3 .tp-couple-image-wrap {
  aspect-ratio: 15 / 11;
}

.tp-couple-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 260ms ease, filter 260ms ease;
  will-change: transform;
}

.tp-couple-image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6f6f6f;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-couple-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 220ms ease;
  background: rgba(244, 243, 240, 0.68);
  z-index: 2;
}

.tp-couple-overlay::before {
  content: '';
  width: 46px;
  height: 46px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d67943;
  box-shadow: 0 0 0 1px rgba(214, 121, 67, 0.2);
}

.tp-couple-link:hover .tp-couple-overlay,
.tp-couple-link:focus .tp-couple-overlay,
.tp-couple-link:focus-visible .tp-couple-overlay {
  opacity: 1;
  background: rgba(244, 243, 240, 0.56);
}

.tp-couple-overlay::after {
  content: '';
  width: 17px;
  height: 17px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#fff, #fff) center / 2px 17px no-repeat,
    linear-gradient(#fff, #fff) center / 17px 2px no-repeat;
}

.tp-couple-link:hover .tp-couple-image,
.tp-couple-link:focus .tp-couple-image,
.tp-couple-link:focus-visible .tp-couple-image {
  transform: scale(1.08, 1.08);
  filter: saturate(1.03);
}

.tp-couple-link:hover .tp-couple-overlay::before,
.tp-couple-link:focus .tp-couple-overlay::before,
.tp-couple-link:focus-visible .tp-couple-overlay::before {
  opacity: 0.5;
}

.tp-couple-caption {
  display: block;
  margin-top: 10px;
  text-align: center;
  text-transform: none;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: #365870;
  font-size: calc(0.76rem + 1pt);
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.tp-couple-card.is-featured .tp-couple-image-wrap,
.tp-couple-card.is-featured .tp-couple-image,
.tp-couple-card.is-featured .tp-couple-overlay {
  border-radius: 20px;
}

.tp-couples-empty {
  color: #6f6f6f;
}

.tp-couples-pagination {
  margin-top: 26px;
  text-align: center;
}

.tp-couples-pagination ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tp-couples-pagination a,
.tp-couples-pagination span {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid #d5d0c8;
  border-radius: 6px;
  color: #514f4b;
  text-decoration: none;
}

.tp-couples-pagination .current {
  background: rgba(193, 212, 226, 0.8);
  color: #365870;
  border-color: rgba(193, 212, 226, 0.8);
}

@media (max-width: 1024px) {
  .tharaphoto-couples-archive.columns-3,
  .tharaphoto-couples-archive.columns-4,
  .tharaphoto-couples-archive.columns-5,
  .tharaphoto-couples-archive.columns-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tharaphoto-couples-archive.columns-2,
  .tharaphoto-couples-archive.columns-3,
  .tharaphoto-couples-archive.columns-4,
  .tharaphoto-couples-archive.columns-5,
  .tharaphoto-couples-archive.columns-6 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
