.container {
  width: 100%;
  background: #fffdf7;
  min-height: 100vh;
}
.wrapper {
  width: 100%;
  margin: 0 auto;
}

[class^="layer"] {
  position: absolute;
  z-index: 1;
  transform: translateX(-50%);
}

section {
  max-width: 640px;
  width: 100%;
  margin: 60px auto;
}

section .wrap {
  background: #fffdf7;
}

section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secMain {
  max-width: 100%;
  min-height: 200vh;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #fffdf7 url('../img/mainbg.png') top center / cover no-repeat;
  background-attachment: fixed;
  position: relative;
}

/* Start of Selection */
.secMain .dim {
  content: '';
  display: block;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, #fffdf7 0%, rgba(255, 253, 247, 0) 100%);
  position: absolute;
  bottom: -1px;
  left: 0;
  transform: rotate(180deg);
  z-index: 1;
}
/* End of Selection */

.secVideo .videoHeader {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.secVideo .videoHeader h3 {
  font-size: 18px;
  font-weight: 700;
  color: #7d6452;
}

.imgListWrap {
  width: 100%;
  margin: 0 auto;
}

#weddingGallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

#weddingGallery .item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
  cursor: pointer;
}

#weddingGallery .item.hidden {
  display: none;
}

#weddingGallery .item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#weddingGallery .item:hover img {
  transform: scale(1.05);
}

#weddingGallery .item .desc {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  right: 15px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #FFF;
  text-align: right;
}

#loadMoreBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 20px auto;
  padding: 0 20px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #f2ede6;
  color: #7d6452;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 5px;
}

.error {
  text-align: center;
  color: #ff0000;
  padding: 20px;
}


.secSnapshot {
}

.secSnapshot .wrap {
  max-width: 800px;
  margin: 0 auto;
  background: #FFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.secSnapshot .snapshotHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.secSnapshot .snapshotHeader h3 {
  font-size: 18px;
  font-weight: 700;
  color: #7d6452;
}

.secSnapshot .snapshotHeader p {
  font-size: 15px;
  font-weight: 400;
  color: #7d6452;
}

.secSnapshot .thumb {
  width: 100%;
  height: 100%;
  background: #eeeae3;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.secSnapshot .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secSnapshot .snapshotContent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Start of Selection */
.secSnapshot .snapshotContent .snapshotList {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
}

.secSnapshot .snapshotContent .snapshotList .item {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumb {
  width: 100%;
  height: 100%;
  background: #eeeae3;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumbVideo {
  width: 100%;
  height: 100%;
  position: relative;
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumbVideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumbVideo .dim {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumbVideo .icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.secSnapshot .snapshotContent .snapshotList .item .snapshotThumb .desc,
.secSnapshot .snapshotContent .snapshotList .item .snapshotThumbVideo .desc {
  position: absolute;
  opacity: 0;
}

.secSnapshot .button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.secSnapshot .snapshotContent .snapshotList .empty-message {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #7d6452;
  position: absolute;
  top: 0;
  left: 0;
}

.secSnapshot .snapshotContent .snapshotList .empty-message .icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  background-color: rgba(125, 100, 82, 0.2);
  background-size: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* End of Selection */

.secSnapshot .button button {
  padding: 10px 20px;
  border-radius: 5px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.footer {
  padding: 0;
  background: #000;
}

.footer .wrap {
  margin: 0 auto;
  padding: 30px;
  text-align: center;
}

.footer .wrap p {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}


.modal,
.modalGallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalGallery {
  display: none;
}

.modalGallery.active {
  display: flex;
}

.modalGallery .modalGalleryContainer {
  max-width: 640px;
}

.modalGallery .modalGalleryContainer .swiper {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.modalGallery .modalGalleryContainer .swiper-wrapper {
  align-items: center;
}

.modalGallery .modalGalleryContainer .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
  transition: opacity 0.3s ease;
  cursor: pointer;
  position: relative;
}

.modalGallery .modalGalleryContainer .swiper-slide.swiper-slide-active {
  opacity: 1;
}

.modalGallery .modalGalleryContainer .swiper-slide .imageContainer,
.modalGallery .modalGalleryContainer .swiper-slide .videoContainer {
  font-size: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.modalGallery .modalGalleryContainer .swiper-slide .imageContainer img {
  width: 100%;
  object-fit: cover;
  pointer-events: none;
}

.modalGallery .modalGalleryContainer .swiper-slide .videoContainer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.modalGallery .modalGalleryContainer .swiper-slide .videoContainer .dim {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.modalGallery .modalGalleryContainer .swiper-slide .videoContainer .playBtn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath fill='%23ffffff' d='M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z'/%3E%3C/svg%3E");
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: center;
}

.modalGallery .modalGalleryContainer .swiper-slide .videoContainer .pauseBtn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3C!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--%3E%3Cpath fill='%23ffffff' d='M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z'/%3E%3C/svg%3E");
  background-size: 30px;
  background-repeat: no-repeat;
  background-position: center;
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

.modalGallery .modalGalleryContainer .swiper-slide .desc {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  right: 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #FFF;
  text-align: right;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
}

.modalGallery .modalGalleryContainer .modalGalleryClose {
  position: absolute;
  z-index: 100;
  top: 20px;
  right: 20px;
}

.modalGallery .modalGalleryContainer .modalGalleryClose button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalGallery .modalGalleryContainer .modalGalleryClose button i {
  width: 30px;
  height: 30px;
}

.fraction .swiper-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
}

.fraction .swiper-pagination-fraction {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
}

.fraction .swiper-pagination-current {
  color: #fff;
  font-weight: 700;
}

.fraction .swiper-pagination-total {
  color: #fff;
  font-weight: 400;
}


@media (max-width: 768px) {

  section {
    overflow: hidden;
  }

  .secMain {
    min-height: 100vh;
    background:url('../img/mainbg-m.jpg') top center / cover no-repeat;
  }

  .secVideo .wrap {
    width: calc(100% - 20px);
    padding: 30px 10px;
    margin: 0 auto;
  }

  .secSnapshot .snapshotContent .snapshotList {
    grid-template-columns: repeat(3, 1fr);
  }

  .secSnapshot .wrap {
    width: calc(100% - 20px);
    padding: 30px 10px;
  }

  .secMap .adress .adressItem p {
    flex-wrap: wrap;
  }
}

/* PC/Mobile Display Control */
.pc-block {
  display: block;
}

.pc-none {
  display: none;
}

.m-block {
  display: none;
}

.m-none {
  display: block;
}

@media (max-width: 768px) {
  .pc-block {
    display: none;
  }

  .pc-none {
    display: block;
  }

  .m-block {
    display: block;
  }

  .m-none {
    display: none;
  }
}



.page-dots {
    color: #7d6452;
    padding: 0 5px;
}

/* Prompt Modal Styles */
.modal-input {
    margin: 15px 0;
}

.prompt-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.prompt-input:focus {
    border-color: #666;
    outline: none;
}

.boardPagination,
.snapshotPagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
}

.boardPagination button,
.snapshotPagination button {
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #7d6452;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.boardPagination button:hover,
.snapshotPagination button:hover {
    background: #f5f5f5;
}

.boardPagination button.active,
.snapshotPagination button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.boardPagination .page-dots,
.snapshotPagination .page-dots {
    color: #7d6452;
    padding: 0 5px;
}

/* 더 보기 버튼 스타일 */
.snapshotMore {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
}

.snapshotMore .load-more-btn {
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 999px;
    background: #000;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 5px;
}

.snapshotMore .load-more-btn:hover {
    background: #7d6452;
    color: #fff;
    border-color: #7d6452;
}

.snapshotMore .load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.snapshotMore .load-more-btn .icon {
    width: 16px;
    height: 16px;
    background-size: contain;
}

/* 배경음악 컨트롤 */
.musicControl {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
}

.musicBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #7d6452;
  border-radius: 30px;
  color: #7d6452;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.musicBtn .icon.music {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg data-v-429c47e5='' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d6452' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath data-v-429c47e5='' d='M16 9L22 15M22 9L16 15M13 3L7 8H5C3.89543 8 3 8.89543 3 10V14C3 15.1046 3.89543 16 5 16H7L13 21V3Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.musicBtn .icon.pause {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg data-v-429c47e5='' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d6452' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath data-v-429c47e5='' d='M16 9C16.5 9.5 17 10.5 17 12C17 13.5 16.5 14.5 16 15M19 6C20.5 7.5 21 10 21 12C21 14 20.5 16.5 19 18M13 3L7 8H5C3.89543 8 3 8.89543 3 10V14C3 15.1046 3.89543 16 5 16H7L13 21V3Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.modalPhone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
}

.modalPhone.active {
  display: block;
}

.modalPhone .modalPhoneContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 430px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-size: 0;
}

.modalPhone .modalPhoneContainer .modalClose {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  z-index: 100;
}

.modalPhone .modalPhoneContainer .modalClose i {
  width: 30px;
  height: 30px;
}

.modalPhone .modalPhoneContainer .modalPhoneContent {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.modalPhone .modalPhoneContainer .modalPhoneContentTitle {
  text-align: center;
  background: #7d6452;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 20px;
  position: relative;
}

@media (max-width: 768px) {

  .modalPhone .modalPhoneContainer {
    width: calc(100% - 40px);
  }  
}

/* Custom Alert/Confirm Modal */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.custom-modal .modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.custom-modal .modal-content.loading::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.custom-modal .modal-content.loading::before {
  content: '';
  width: 48px;
  height: 6px;
  display: block;
  margin: auto;
  position: relative;
  border-radius: 4px;
  color: #FFF;
  box-sizing: border-box;
  animation: animloader 0.6s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px));
  z-index: 12;
}

.custom-modal .modal-message {
  font-size: 16px;
  color: #7d6452;
  line-height: 1.5;
}

.custom-modal .modal-progress {
  width: 100%;
  height: 10px;
  background: #e2dddb;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.custom-modal .modal-progress .progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #7d6452;
  transition: width 0.3s ease;
}

.custom-modal .progress-info {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  text-align: center;
}

.custom-modal .modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.custom-modal .modal-button {
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-width: 80px;
}

.custom-modal .modal-button.confirm {
  background: #7d6452;
  color: #fff;
}

.custom-modal .modal-button.cancel {
  background: #eeeae3;
  color: #7d6452;
}

.secBoard {
  padding: 0;
  display: none;
}

.secBoard .wrap {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  background: none;
}

.secPopup {
  padding: 0;
}

.secPopup .wrap {
  max-width: 430px;
  margin: 0 auto;
  background: none;
}

.secPopup .popupList {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
} 

.secPopup .popupList .popupItem {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.secPopup .popupList .popupItem h3 {
  font-size: 18px;
  font-weight: 700;
  color: #7d6452;
}

.secPopup .popupList .popupItem p {
  font-size: 15px;
  font-weight: 400;
  color: #7d6452;
  text-align: center;
}

.secPopup .popupList .popupItem .popupBtnWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.secPopup .popupList .popupItem .popupBtn {
  padding: 10px 30px;
  border-radius: 5px;
  background: #7d6452;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}