body {
  /* margin: 0;
    font-family: sans-serif; */
  /* background-color: #fae6f7; */
  width: 25%;
  margin: auto;
  border: #cd8b06 5px double;
}

@media screen and (max-width: 768px) {
  body {
    width: 100%;
    border: none;
  }
}

@media screen and (max-width: 480px) {
  body {
    width: 100%;
    border: none;
  }
}

@media (max-width: 600px) {
  body {
    width: 100%;
    border: none;
  }
}

@media (max-width: 991px) {
  body {
    width: 100%;
    border: none;
  }
}

@media (max-width: 575px) {
  body {
    width: 100%;
    border: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body {
    width: 100%;
  }
}

/* Phone (max-width: 767px) */
@media (max-width: 767px) {
  body {
    width: 100%;
  }
}

/* 1. Base Styles (Large Desktop / Default) */
.video-bg {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 25%; /* Using a fixed max-width is safer than 25% for high-res screens */
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* 2. Tablets (iPad, Surface, etc.) */
@media screen and (max-width: 1024px) {
  .video-bg {
    max-width: 100%; /* Removes the restriction for tablets */
    width: 100%;
  }
}

/* 3. Mobile Phones (iPhone, Android) */
@media screen and (max-width: 767px) {
  .video-bg {
    width: 100%;
    /* Ensures the video stays centered even if aspect ratios change */
    object-position: center; 
  }
}
 



@media screen and (max-width: 768px) {
  .weddingAbout {
    width: 100%;
    border: none;
  }
}

@media screen and (max-width: 480px) {
  .weddingAbout {
    width: 100%;
    border: none;
  }
}

@media (max-width: 600px) {
  .weddingAbout {
    width: 100%;
    border: none;
  }
}

@media (max-width: 991px) {
  .weddingAbout {
    width: 100%;
    border: none;
  }
}

@media (max-width: 575px) {
  .weddingAbout {
    width: 100%;
    border: none;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .weddingAbout {
    width: 100%;
  }
}

/* Phone (max-width: 767px) */
@media (max-width: 767px) {
  .weddingAbout {
    width: 100%;
  }
}

.logo-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: -20px; /* Pulls title closer to logo */
}

.wedding-logo {
  width: 80px; /* Size for mobile */
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  animation: fadeInDown 2s ease;
}

/* Optional: Golden Glow for the logo */
.logo-glow {
  filter: drop-shadow(0 0 10px rgba(230, 167, 42, 0.6));
}

.kbach_khmer {
  width: 30%;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Changed to 100vh to fill the whole screen height for the invitation look */
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;

  /* --- NEW FLEXBOX PROPERTIES FOR VERTICAL ALIGNMENT --- */
  display: flex;
  flex-direction: column; /* Stacks the content vertically */
  justify-content: space-between; /* Pushes content to the top, center, and bottom */
  align-items: center; /* Centers items horizontally */
  text-align: center;
  color: white;
}

/* Specific text styles for your content (Khmer fonts) */
.style_text {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.style_text_2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsiveness for Text Sizes */
@media (max-width: 600px) {
  .style_text {
    font-size: 1.8rem;
  }
  .style_text_2 {
    font-size: 1.1rem;
  }
}

/*** Spinner Start ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition: opacity 0.8s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  transition: 0.5s;
  z-index: 99;
}

/*** Button Start ***/
.btn {
  font-weight: 600;
  transition: 0.5s;
}

.btn-square {
  width: 32px;
  height: 32px;
}

.style_text {
  font-family: "Moulpali", sans-serif;
  font-size: 24px;
  font-weight: 500;
  font-style: normal;
}

.style_text_1 {
  font-family: "Dangrek", sans-serif !important;
  font-weight: 400;
  font-size: 22px;
  font-style: normal;
}

.style_text_2 {
  font-family: "Battambang", sans-serif !important;
  font-weight: 400;
  font-size: 15px;
  font-style: normal;
}

/* Hello */

.vireak ul li {
  font-size: 16px;
  text-align: justify;
  text-align: center;
}

.responsive-bg-img {
  position: absolute;
  bottom: -200px;

  width: 100%;
  z-index: -1;
  pointer-events: none;
}
/* 
@media (max-width: 991px) {
  .responsive-bg-img {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .responsive-bg-img {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .responsive-bg-img {
    width: 100%; 
    opacity: 0.2;
  }
}

/* Phone (max-width: 767px) */
/* @media (max-width: 767px) {
  .responsive-bg-img {
    width: 100%;
  }
} */

/* Khmer Text Spacing & Styling */
.khmer-title {
  font-family: "Moul", serif;
  color: #cd8b06;
}

.khmer-schedule {
  font-family: "Battambang", cursive;
  color: #cd8b06;
}

.day-header {
  font-family: "Moul", serif;
  font-size: 1rem;
  margin-top: 20px;
}

.schedule-item {
  margin-bottom: 5px;
  font-size: 15px;
  list-style: none;
}

.battambang-thin {
  font-family: "Battambang", system-ui;
  font-weight: 100;
  font-style: normal;
}

.btn-sm-square {
  width: 34px;
  height: 34px;
}

.btn-md-square {
  width: 44px;
  height: 44px;
}

.btn-lg-square {
  width: 56px;
  height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}

.btn-primary-outline-0 {
  color: var(--bs-white) !important;
  border: 1px solid var(--bs-primary);
}

.btn-light-outline-0 {
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-light);
}

.btn-primary-outline-0:hover {
  background: var(--bs-secondary) !important;
  color: var(--bs-white) !important;
  border: 1px solid var(--bs-primary);
}

.btn-light-outline-0:hover {
  background: var(--bs-primary) !important;
  color: var(--bs-white) !important;
  border: 1px solid var(--bs-secondary);
}

.img-border {
  border-color: var(--bs-secondary);
  border-style: double;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Great Vibes", cursive;
  font-weight: 700;
}

/*** Navbar Start ***/
.sticky-top {
  transition: 0.5s;
  background: var(--bs-white);
}

.navbar .navbar-nav .nav-link {
  padding: 10px 15px;
  font-family: "Petit Formal Script", cursive;
  font-weight: 600;
  font-size: 16px;
  transition: 0.5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top.bg-white .navbar .navbar-nav .nav-link:hover,
.sticky-top.bg-white .navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

@media (min-width: 1200px) {
  .navbar .navbar-collapse .border-top {
    border-top: none !important;
  }
}
/*** Navbar End ***/

/*** Carousel Start ***/
.carousel-item {
  position: relative;
  min-height: 100vh;
}

.carousel-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item .carousel-caption {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: end;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  background-size: cover;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0;
}

.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
  background: transparent;
}

#carouselId .carousel-indicators {
  padding-bottom: 30px;
}

#carouselId .carousel-indicators li {
  border-top: 10px solid var(--bs-white);
  border-bottom: 10px solid var(--bs-white);
  border-right: 5px solid var(--bs-white);
  border-left: 5px solid var(--bs-white);
  margin-right: 10px;
  transition: 0.5s;
}

#carouselId .carousel-indicators li.active {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  border-right: 15px solid var(--bs-primary);
  border-left: 15px solid var(--bs-primary);
}
/*** Carousel End ***/

/*** Wedding Story Start ***/
.story .story-timeline,
.story .story-timeline .row {
  position: relative;
}

.story .story-timeline::before,
.story .story-timeline::after {
  position: absolute;
  content: "";
  width: 15px;
  height: 15px;
  background: var(--bs-secondary);
  border-radius: 10px;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
}

.story .story-timeline::after {
  top: auto;
  bottom: -7px;
}

.story .story-timeline .row::after {
  position: absolute;
  content: "\f004";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 30px;
  color: var(--bs-secondary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .story .story-timeline::before,
  .story .story-timeline::after,
  .story .story-timeline .row::after {
    display: none;
  }
}
/*** Wedding Story End ***/

/* 1. Force the parent and container to be edge-to-edge */
.wedding-date-bg {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

.wedding-date-bg .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Fix the background image styling */
.wedding-date-bg .wedding-date {
  position: relative;
  width: 100% !important;
  min-height: 100vh; /* Full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  /* Background logic */
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
    url(../images/bg-count-date.png);

  background-position: center center;
  background-size: cover; /* This removes the pink sidebars */
  background-repeat: no-repeat;
  overflow: hidden;
}

/* 3. Ensure the content stays on top and centered */
.wedding-date-bg .wedding-date-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Removed the massive 500px margin-top to let Flexbox handle centering */
}

/* 4. Fix for the overlay to prevent it from blocking layout */
.wedding-date-bg .wedding-date::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 5. Fix for the date header box */
.wedding-date-bg .wedding-date-content .d-inline-block {
  margin-top: 0 !important; /* Overriding your inline 500px margin */
  margin-bottom: 2rem !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
/*** Wedding Date End ***/

/*** Wedding Timeline Start ***/
@media (max-width: 576px) {
  .wedding-timeline .wedding-content .heart-circle {
    display: none;
  }
}
/*** Wedding Timeline End ***/

/*** Gallery Start ***/
.gallery .gallery-img {
  position: relative;
  overflow: hidden;
}

.gallery .gallery-img .hover-style {
  width: 0;
  height: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 1s;
}

.gallery .gallery-img:hover .hover-style {
  width: auto;
  height: auto;
  border: 600px solid rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.gallery .gallery-img img {
  transition: 0.5s;
}

.gallery .gallery-img:hover img {
  transform: scale(1.3);
}

.gallery .gallery-item .gallery-overlay {
  transition: 0.5s;
}

.gallery .gallery-item:hover .gallery-overlay {
  background: transparent !important;
  border: 0 !important;
}

.gallery .gallery-img .search-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.5s;
  opacity: 0;
  z-index: 2;
}

.gallery .gallery-img:hover .search-icon {
  opacity: 1;
}
/*** Gallery End ***/

/*** team Start ***/
.team .team-item {
  position: relative;
  overflow: hidden;
}

.team .team-item .team-content {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  transition: 0.5s;
  z-index: 4;
}

.team .team-item:hover .team-content {
  background: rgba(0, 0, 0, 0.5);
}

.team .team-item .team-content {
  text-align: center;
}

.team .team-item .team-social {
  position: absolute;
  top: -180px;
  right: 15px;
  z-index: 5;
  transition: 0.5s;
}

.team .team-item:hover .team-social {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 5;
}

.team .team-item .team-img {
  position: relative;
  overflow: hidden;
  border-color: var(--bs-secondary);
  border-style: double;
}

.team .team-item .team-img .team-img-main {
  position: relative;
  z-index: 3;
}

.team .team-item .team-img .team-img-main img,
.team .team-item .team-img .team-img-bg img {
  transition: 0.5s;
}

.team .team-item:hover .team-img .team-img-main img,
.team .team-item:hover .team-img .team-img-bg img {
  transform: scale(1.1);
}
/*** Team End ***/

/*** Contact Us Start ***/
.RSVP-form {
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
  object-fit: cover;
}
/*** Contact Us End ***/

/*** Footer Start ***/
.footer {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../img/footer-bg.jpg) center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer .footer-item a.btn-link,
.footer .footer-item p {
  line-height: 35px;
  font-size: 17px;
  color: var(--bs-light);
  transition: 0.5s;
}

.footer .footer-item a.btn-link:hover {
  color: var(--bs-primary);
  letter-spacing: 2px;
}

@media (max-width: 992px) {
  .footer .text-start,
  .footer .text-center,
  .footer .text-end {
    text-align: center !important;
  }
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bs-dark) !important;
}
/*** copyright end ***/

/* Base Image Style */
.album-img {
  border-radius: 10px;
  width: 100%;
  object-fit: cover; /* Prevents image stretching */
  display: block;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* Hover Effect */
.album-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Adds depth on hover */
  z-index: 10; /* Ensures the zoomed image sits above others */
}

/* Fix for "Touching the Screen" */
.rowss {
  margin-left: 0;
  margin-right: 0;
}

/* Container for the zoom effect */
.img-wrapper {
  overflow: hidden; /* Prevents the zoom from overlapping other text */
  border-radius: 10px;
}

.contact {
  margin-bottom: 12px; /* Increased spacing for better touch targets */
  font-size: 16px; /* Slightly larger for readability */
  font-family: "Calibri", sans-serif;
  color: #475521;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px; /* Modern way to space icon and text */
}

.contact p {
  margin: 0; /* Critical: removes default paragraph spacing */
  white-space: nowrap; /* Prevents phone numbers from breaking into two lines */
}

.contact i {
  font-size: 18px; /* Makes icons slightly more prominent */
  color: #475521; /* Matches your header color for brand consistency */
}

/* Make links look like plain text */
.contact a {
  text-decoration: none;
  color: inherit;
}

.rowss {
  display: flex;
  justify-content: center;
}

/* Button Section */
.button-container {
  position: fixed;
  bottom: 130px;

  text-align: center;
  width: 100%;
  z-index: 100;
}

.invite-text {
  color: #e6a72a;
  font-family: "Moul", sans-serif;
  margin-bottom: 50px;
  font-size: 1.3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.khmer-wedding-btn {
  text-decoration: none;
  padding: 15px 35px;
  font-family: "Moul", sans-serif;
  font-size: 14px;
  color: #ffffff !important;
  background: linear-gradient(180deg, #ffd500 0%, #d89000 50%, #ffd500 100%);
  clip-path: polygon(
    8% 0%,
    92% 0%,
    100% 30%,
    100% 70%,
    92% 100%,
    8% 100%,
    0% 70%,
    0% 30%
  );
  transition: all 0.3s ease;
  border: none;
}

/* Animations */
@keyframes goldGlow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(230, 167, 42, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(230, 167, 42, 0.8), 1px 1px 2px #000;
  }
}

.refined-animation {
  animation: goldGlow 2s ease-in-out infinite;
}
