/* Font families */
.font-gilda { font-family: "Gilda Display", serif; }
.font-montserrat { font-family: "Montserrat", sans-serif; }
.font-poppins { font-family: "Poppins", sans-serif; }
.font-roboto { font-family: "Roboto", sans-serif; }
.font-pinyon { font-family: "Pinyon Script", cursive; }

.bg-quotes-section {
  background-image: url('./bg-quotes.png');
  background-color: #77624f;
  background-size: 100% auto; 
  background-position: top center;
  background-repeat: repeat-y; 
}
.bg-btn-mempelai {
  background-color: #77624F;
}

/* Colors */
.text-brown-cover { color: #77624F; }
.text-title-section { color: #CBAA5C; }
.text-primary { color: #77624F; }
.text-onPrimary { color: #F1E9DF; }
.text-secondary { color: #CBAA5C; }
.text-black-cover { color: #000000; }
.text-black-soft { color: #181818; }

/* Background Colors */
.bg-green-cover { background-color: #585C4C; }
.bg-countdown { background-color: #77624F; }
.bg-green-guest { background-color: #F1EDE4; }

/* Border Color */
.border-green { border-color: #A6A69A; }

/* Shadow */
.shadoww {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

/* Transform */
.-scale-x-100 { 
    transform: scaleX(-1); 
}

/* Border radius */
.rounded-4xl {
  border-radius: 2rem;
}

/* Animation */
.animate-zoom-in {
  animation: zoomIn 9s forwards;
  will-change: transform, opacity;
}

/* Keyframes */
@keyframes zoomIn {
  0%, 87.5% {
    opacity: 0;
    transform: scale(0);
  }
  93.75% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section */
#section-guest {
  background-attachment: fixed;
  background-size: 450px auto;
  background-position: center center;
  opacity: 1;
}

.section-penutup {
  background-position: center center;
  background-size: cover;
  width: 100%;
  height: 100vh;
}

.map-embed > iframe {
  width: 200px;
  max-width: 200px;
}

@media (min-width: 768px) {
  .map-embed > iframe {
    width: 100%;
    max-width: 100%;
  }
}

.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin-bottom: 20px; 
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Slide Up */
.slide-up-enter-active,
.slide-up-leave-active {
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  will-change: transform, opacity;
}

.slide-up-enter,
.slide-up-leave-to {
  transform: translateY(-100%);
  opacity: 0;
}

/* Fade */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 1s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

/* Swiper Components - Responsive Design */
#section-schedule .swiper {
  width: 100%;
  max-width: 300px;
  height: 475px;
  border-radius: 115px 115px 0 0;
  border: 4px solid #868A78;
  overflow: hidden;
}

#section-countdown .swiper {
  width: 100%;
  height: 520px;
  overflow: hidden;
}

#section-quotes .swiper {
  width: 100%;
  max-width: 300px;
  height: 450px;
  border-radius: 32px 32px 0px 0px;
  overflow: hidden;
}

#section-guest .swiper {
  width: 100%;
  max-width: 300px;
  height: 225px;
  border-radius: 1rem;
  border: 4px solid #DFB584;
  overflow: hidden;
  margin: 0 auto;
  margin-bottom: 1rem;
}

#section-penutup .swiper {
  width: 260px;
  height: 275px;
  border-radius: 115px 115px 0 0;
  border: 4px solid #868A78;
  overflow: hidden;
  margin: 0 auto;
}

@media (min-width: 768px) {
  #section-schedule .swiper,
  #section-countdown .swiper,
  #section-story .swiper {
    height: 600px;
  }

  #section-guest .swiper {
    max-width: 400px;
    height: 300px;
  }

  #section-penutup .swiper {
    width: 260px;
    height: 350px;
  }
}

@media (min-width: 1024px) {
  #section-schedule .swiper,
  #section-story .swiper {
    max-width: 500px;
    height: 800px;
  }

  #section-guest .swiper {
    max-width: 500px;
    height: 425px;
  }

  #section-penutup .swiper {
    width: 260px;
    height: 475px;
  }
}

@media (min-height: 700px) {
  #section-penutup .swiper {
    height: 400px;
    width: 250px;
  }
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Bride and Groom Image Styling */
.bride-groom-image-container {
	width: 327px;
	height: 383px;
	min-width: 327px;
	min-height: 383px;
}

.bride-groom-image {
	width: 60%;
	height: 75%;
	object-fit: cover;
	border-radius: 8px;
}


/* Gallery Grid Styling */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px; /* Standardized gap */
}

.gallery-grid-item {
	overflow: hidden; /* Ensures the image fits within the container */
	border-radius: 8px; /* Optional: adds rounded corners */
}

.gallery-grid-item:nth-child(3n + 1) {
	grid-column: span 2;
}

.gallery-grid-item:nth-child(3n + 2) {
	grid-column: span 2;
}

.gallery-grid-item:nth-child(3n + 3) {
	grid-column: span 4;
}

.gallery-grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	will-change: transform;
}


.z-custom {
  z-index: 9999;
}

.animate-spin-slow {
  animation: spin 4s linear infinite;
  will-change: transform;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Custom Countdown Styles */
.custom-countdown-box {
  width: 200px;
  height: 200px;
  background: #FBECD7;
  border-radius: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  margin: 0 8px;
  /* Optimized for mobile responsiveness */
  /* Performance: Uses flexbox for better layout performance */
}
.circle-outline {
  width: 48px;
  height: 48px;
  border: 5px solid #6E2428;
  border-radius: 50%;
  margin-bottom: 12px;
}
.countdown-label {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #6E2428;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .custom-countdown-box {
    width: 120px;
    height: 120px;
    border-radius: 2rem;
  }
  .countdown-label {
    font-size: 1.2rem;
  }
  .circle-outline {
    width: 32px;
    height: 32px;
    border-width: 3px;
  }
}
