main {
  padding-top: 150px;
  padding-bottom: 160px;
  width: 100%;
}

section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

section h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -2%;
  text-align: center;
}

.option-selector-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 40px;
}

.option-selector-list {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.option-selector-arrow {
  cursor: pointer;
}

.option-selector-item {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -5%;
  text-align: center;
  vertical-align: middle;
  background-color: #f6f6f6;
  border-radius: 200px;
  padding: 8px 14px;
  color: #231f20;
  cursor: pointer;
  user-select: none;
}

.selected-item {
  color: #fff;
  background-color: #231f20;
}

.beforeafter-image-list {
  display: grid;
  width: 100%;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.beforeafter-image-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.beforeafter-image-box {
  flex: 1;
  width: 100%;
  aspect-ratio: 305 / 340;
  position: relative;
}

.beforeafter-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.befor-image-title {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 13px;
  color: #000;
  background-color: rgba(255, 255, 255);
  opacity: 0.8;
  padding: 4px 6px;
  z-index: 3;
  border: 1px solid #d8d8d8;
}

.after-image-title {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 13px;
  color: #ffffff;
  background-color: #231f20;
  opacity: 0.8;
  padding: 4px 6px;
  z-index: 3;
}

.filterd-blur {
  filter: blur(4px);
  transition: filter 0.3s ease;
}

.after-locked-container {
  width: 100%;
  aspect-ratio: 305 / 340;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6);
}

.after-locked-container > div {
  color: #fff;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

.beforeafter-item-title {
  margin-top: 20px;
  font-weight: 700;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: -2%;
  margin-bottom: 40px;
}

.beforeafter-image-list-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.beforeafter-image-list-pagination .pagination-arrow {
  cursor: pointer;
  padding: 10px;
}

.beforeafter-image-list-pagination .pagination-number {
  font-size: 14px;
  padding: 4px 14px;
  cursor: pointer;
  color: #231f20;
}

.pagination-numbers .active {
  font-weight: 700;
  color: #fff;
  background-color: #ef487b;
}

/* 태블릿 및 모바일 스타일 (768px 이하) */
@media (max-width: 768px) {
  main {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  section {
    padding: 0 20px;
  }

  section h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .option-selector-container {
    margin-bottom: 20px;
    gap: 0;
    justify-content: center;
  }

  .option-selector-list {
    gap: 16px;
    padding: 0 4px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .option-selector-item {
    font-size: 12px;
    padding: 10px 12px;
  }

  .option-selector-arrow {
    display: none;
  }

  .beforeafter-image-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .beforeafter-image-container {
    width: 100%;
  }

  .beforeafter-item-title {
    font-size: 16px;
    margin-top: 12px;
    margin-bottom: 20px;
  }

  .befor-image-title,
  .after-image-title {
    font-size: 12px;
    padding: 3px 5px;
  }

  .after-locked-container > div {
    font-size: 12px;
    margin-top: 8px;
  }
}
