.photo-cards-scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* hide scrollbars behind arrows */
}

.photo-cards-container {
  display: flex;
  flex-wrap: nowrap; /* keep in one row */
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px;
}

.photo-cards-container::-webkit-scrollbar {
  display: none;
}

.photo-card {
  flex: 0 0 280px; /* fixed width */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
}

.photo-card-image img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* overlay arrows */
.scroll-left,
.scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px 8px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 2;
}

.scroll-left { left: 5px; }
.scroll-right { right: 5px; }



    .photo-card-subtitle {
        font-size: 1.3rem;
    }


/* Variant-specific styles */
.photo-cards-block.square-two .photo-card {
    flex: 0 0 50%;
    max-width: 50%;
}
.photo-cards-block.square-two .photo-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.photo-cards-block.square-two .photo-card-image img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .photo-cards-block.square-two .photo-card {
    flex: 0 0 100%; max-width: 100%;
    }
}

.photo-cards-block.square-three .photo-card {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}
.photo-cards-block.square-three .photo-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.photo-cards-block.square-three .photo-card-image img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

h2.photo-card-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight:600;
}
h2.photo-card-title span.photo-card-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight:400!important;
}

@media (max-width: 768px) {
    .photo-cards-block.square-three .photo-card {
    flex: 0 0 100%; max-width: 100%;
    }
}


.photo-cards-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.photo-cards-dots .dot {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.photo-cards-dots .dot.active {
  background: #333;
}
