@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,700&family=EB+Garamond:ital@0;1&family=Pinyon+Script&display=swap');

*{margin: 0; padding: 0; box-sizing: border-box;}

body {
    font-family: 'EB Garamond', serif;
    position: relative;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: url('images/wedphoto6.webp') no-repeat center center/cover;
    
    z-index: -1;
    will-change: transform; 
}



/*==================LOADING SCREEN==================*/
/* Covers the whole screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Or your theme color */
    z-index: 9999; /* Sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out; /* Smooth fade out */

	touch-action: none;
}

.loader-content {
    text-align: center;
}

.loader-content h3{
	font-size: 1rem;
	font-style: italic;
}
.loader-content h1 {
	font-family: 'Cinzel', serif;
	font-size: 2.8rem;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
}
.loader-content h4{
	font-size: 1.2rem;
	font-family: 'Pinyon Script', cursive;
}




/*==================INVITATION POP-UP==================*/
.invitation-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;

	touch-action: none;
}
.invitation-overlay {
	animation: fadeIn 0.8s ease;
}

.popup-content {
	background: linear-gradient(rgba(0, 0, 0, 0.4)),
				url("images/wedphoto2.webp")
				no-repeat center center/cover;
	color: white;
	text-align: center;
	padding: 2rem;
	width: 100%;
	height: 100%;
	animation: slideUp 0.5s ease;
}

.popup-content h1 {
	font-family: 'Cinzel', serif;
	font-size: 2.8rem;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
}

.popup-content h2 {
	margin-top: 4.5rem;
	margin-bottom: 15rem;
	font-size: 2rem;
	font-family: 'Cinzel', serif;
	letter-spacing: 2px;
}
.popup-content h3{
	font-size: 1rem;
	font-style: italic;
}
.popup-content h4{
	font-size: 1.2rem;
	font-family: 'Pinyon Script', cursive;
}
.popup-content h5{
	margin-top: 5px;
	font-size: 1.6rem;
}
.popup-content p{
	font-size: 1.2rem;
	font-style: italic;
}

.popup-content button {
	background: black;
	color: white;
	border: 1px solid black;
	padding: 0.7rem 1.5rem;
	cursor: pointer;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	border-radius: 3px;

	font-family: 'Cinzel', serif;
	font-size: 1rem;
	font-weight: 100;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.popup-content button:hover {
	background: white;
	color: black;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-50px);
  }
}

.fade-out-up {
  animation: fadeOutUp 0.6s ease forwards;
}



/*==================MUSIC BUTTON==================*/
.song-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;  
    width: 50px;
    height: 50px;
    
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    cursor: pointer;
    
    /* The Animation Setup */
    animation: spin 4s linear infinite;
    animation-play-state: paused;
}

.song-btn.playing {
    animation-play-state: running;
}
.song-btn span {
    font-size: 24px; /* Icon size */
}

/* The Spinning Animation Keyframes */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}




/*==================HOMER==================*/
.home{
	text-align: center;
	height: 900px;
	background-color: rgba(0, 0, 0, 0.4);
}
.home .title{
	display: inline-block;
	margin-top: 20px;
}

.home .title img{
	width: 110px;
	height: 110px;
	margin-bottom: 22.5rem;
}

.home .title h4{
	color: white;
	font-size: 1.25rem;
	font-style: italic;
	letter-spacing: 1px;
}
.home .title h1{
	color: white;
	font-family: 'Cinzel', serif;
	font-size: 4.375rem;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
}
.home .title h2{
	color: white;
	font-size: 2.1875rem;
	font-family: 'Pinyon Script', cursive;
}
.home .title h3{
	color: white;
	font-size: 1.25rem;
	font-style: italic;
	letter-spacing: 1px;
}

@media (max-width: 750px){
	.home .title h4{
		font-size: 0.9375rem;
	}
	.home .title h1{
		font-size: 3.75rem;
	}
	.home .title h2{
		font-size: 1.875rem;
	}
	.home .title h3{
		font-size: 0.75rem;
	}
}
@media (max-height: 870px){
	.home{
		height: 850px;
	}
	.home .title img{
		margin-bottom: 15rem;
	}
}




/*==================PROFILE==================*/
.profile{
	background: url('https://images.unsplash.com/photo-1638132035918-90a22beaab3b?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1932') no-repeat center center/cover;
	height: auto;
	padding: 30px;
}

.profile > h1{
	margin-top: 0;
	line-height: 3;
	text-align: center;
	font-family: 'Pinyon Script', cursive;
	font-size: 3.125rem;
}

.profile .profile-contents{
	display: flex;
  	align-items: center;
  	justify-content: center;
  	gap: 2rem;
  	padding: 3rem;
  	margin: 0;
}
.profile .profile-contents h1{
	font-family: 'Cinzel', serif;
	font-size: 2.8125rem;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.profile .profile-contents h2{
	font-size: 2.1875rem;
	color: black;
	font-family: 'Pinyon Script', cursive;
	margin-bottom: 10px;
}
.profile .profile-contents h3{
	font-size: 1.25rem;
	font-style: italic;
	font-weight: 100;
	letter-spacing: 1px;
}


.groom-left{
	flex: 1;
	text-align: right;
}
 .bride-right{
 	flex: 1;
 	text-align: left;
 }
.photo-mid img{
	width: 500px;
	height: auto;
	max-width: 500px;
}

/* Responsive: stack vertically on smaller screens */
/*its like an IF condition, if(max-width = 768px) then ...*/
@media (max-width: 750px) {
	.profile .profile-contents{
		flex-direction: column;
	}
	.groom-left{
		order: 0;
		padding-top: 0;
		text-align: center;
	}
	.bride-right{
		order: 1;
		padding-top: 0;
		text-align: center;
	}
	.photo-mid{
		order: -1;
	}
	.photo-mid img{
		max-width: 480px;
	}
}





/*==================GALLERY==================*/
.gallery{
	background:
		linear-gradient(rgba(0, 0, 0, 0.1)), 
		url('https://images.unsplash.com/photo-1638132035918-90a22beaab3b?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1932')
		no-repeat center center/cover;
	height: auto;
	padding: 30px;
	text-align: center;
	justify-content: center;
}
.gallery > h1{
	line-height: 3;
	text-align: center;
	font-family: 'Pinyon Script', cursive;
	font-size: 50px;
}

/*===SLIDER===*/
.gallery .slider {
	width: 100%;
	display: flex;
	position: relative;
	justify-content: center;
	align-items: center;

	margin-top: 0;
	margin-bottom: 0;
	padding: 20px 0;
	gap: 10px;

	
}
.carousel-container {
	position: relative;
	width: 420px;
	height: 595px;
	overflow: hidden;
	
	box-shadow: 5px 5px 15px -10px black;
}

.carousel-images {
	position: relative;
	width: 420px;
	height: 595px;
}

.carousel-images img {
	position: absolute;
	top: 0;
	left: 0;
	width: 420px;
	height: 595px;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	object-fit: cover;

	will-change: opacity;
    backface-visibility: hidden;
}
.carousel-images img.active {
	opacity: 1;
	z-index: 1;
}

@media (max-width: 750px) {
	.gallery .slider {
    	gap: 0.5rem;
  	}
	.carousel-container{
		height: 350px;
		width: auto;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.carousel-images img{
		padding-top: 123.5px;
		height: 350px;
		width: 100%;
		object-fit: cover;
		object-position: center; /* 👈 ensures center alignment */
		display: block;
	}
}



/*===DATE COUNTDOWN====*/
.the-countdown {
	text-align: center;
	color: white;
	padding: 50px 0;
	font-family: 'Pinyon Script', cursive;
	font-size: 50px;
}


.countdown h3 {
	letter-spacing: 4px;
	font-size: 14px;
	margin-bottom: 20px;
}

.timer {
	display: flex;
	justify-content: center;
	gap: 25px;
}

.time-box {
	background: black;
	border-radius: 10px;
	width: 80px;
	height: 90px;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	font-weight: bold;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	position: relative;
	transition: .3s;
}
.time-box:hover{
	color: black;
	background: white;
	box-shadow: 0 5px 10px -10px black;
}

.time-box span {
	font-size: 36px;
	font-family: 'Cinzel', serif;
	position: relative;
}

.time-box::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
	background: #ccc;
	transform: translateY(-50%);
}

.time-box p {
	font-size: 14px;
	color: black;
	font-weight: 700;
	letter-spacing: 1px;
	font-family: 'EB Garamond', serif;
	font-style: italic;

	position: absolute;
	bottom: -25px;
}
.ended{
	padding: 20px 50px;
	border-radius: 15px;
	background: white;
	color:black;

	font-family: 'Cinzel', serif;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
	box-shadow: 0 15px 15px -17px black;
	transition: .3s;
	animation: fadeIn 1s ease-in-out;
}
.ended:hover{
	background: black;
	color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}




/*==================LOCATION---INFO==================*/
.location-info{
	background: url('https://images.unsplash.com/photo-1638132035918-90a22beaab3b?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1932') no-repeat center center/cover;
	height: auto;
	padding: 30px;
	text-align: center;
}

.location-info h1{
	font-family: 'Pinyon Script', cursive;
	font-size: 50px;
	margin-bottom: 10px;
	margin-top: 30px;
}

.location-info .location-contents{
	display: flex;
	align-items: center;
	justify-content: center;
}

.location-info .location-contents h4{
	font-size: 20px;

	font-style: italic;
	letter-spacing: 2px;
	font-weight: 700;
	line-height: 2;
}
.location-info .location-contents h2{
	font-size: 58px;
	font-family: 'Pinyon Script', cursive;
}
.location-info .location-contents h3{
	font-family: 'Cinzel', serif;
	font-size: 35px;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
}
.location-info .location-contents p{
	font-size: 19px;
	
	font-style: italic;
	letter-spacing: 1px;
	line-height: 1.5;
	font-weight: 100;
}
.location-info .location-contents a{
	text-decoration: none;
	line-height: 6;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	
	color: white;
	background: black;
	padding: 15px 40px 15px 40px;
	border-radius: 3px;
	transition: .5s;
}
.location-info .location-contents a:hover{
	color: black;
	background: white;
	border: 1px solid black;
}

.location-info img{
	width: 220px;
	height: 100%;
}

.location-info .church{
	flex: 1;
	padding: 6rem;
}
.location-info .wed-reception{
	flex: 1;
	padding: 6rem;
}

/* Single location (matrimony only page) */
.location-info .location-contents.location-single {
	justify-content: center;
}
.location-info .location-contents.location-single .church {
	flex: none;
	max-width: 600px;
}


@media (max-width: 750px) {
  .location-info .location-contents{
    flex-direction: column;
  }
  .location-info .church{
    order: 0;
    padding-top: 0;
    padding: 2rem;
  }
  .location-info .wed-reception{
  	order: 0;
  	padding-top: 0;
  	padding: 2rem;
  }
}



/*==================QUOTE==================*/
.quote{
  background: 
    linear-gradient(rgba(0, 0, 0, 0.8)),
    url('https://plus.unsplash.com/premium_photo-1670430623154-24626c42fb33?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1170')
      no-repeat center center/cover;
	display: flex;
	flex-direction: column;
	height: auto;
	padding: 50px 30px;
	text-align: center;
	align-items: center; 
	justify-content: center;
}

.quote p{
	max-width: 800px;
	margin-bottom: 20px;

	color: white;
	font-style: italic;
	letter-spacing: 1px;
	font-size: 20px;
}

.quote h4{
	color: white;
	font-size: 20px;
	font-family: 'Pinyon Script', cursive;
	letter-spacing: 3px;
}


/*==================FAQ==================*/
.faq{
	background: 
		linear-gradient(rgba(0, 0, 0, 0.8)),
		url('https://images.unsplash.com/photo-1638132035918-90a22beaab3b?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1932')
		no-repeat center center/cover;
	display: flex;
	flex-direction: row;
	max-width: none;

	gap: 50px;
	height: auto;
	padding: 30px;
	color: rgb(232, 232, 232);
}
.faq h1{
	flex: 1;

	font-family: 'Pinyon Script', cursive;
	font-size: 3rem;
	line-height: 1.1;

	letter-spacing: 2px;
	align-content: center;
}
.faq-contents {
    flex: 2;
}

.faq-point {
	display: flex; 
	gap: 30px;
	border-top: 1px solid #555;
	padding: 13px 0 0 0;
}

.faq-point span {
	font-size: 1.5rem;
	opacity: 0.8;
	min-width: 40px;

	font-family: 'Cinzel', serif;
	font-weight: 400;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.faq-point-info h2 {
	margin-top: 0;
	font-size: 1.5rem;
	font-weight: 400;
	margin-bottom: 15px;

	font-family: 'Cinzel', serif;
	font-weight: 400;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.faq-point-info p {
	line-height: 1.5;
	opacity: 0.8;
	margin-bottom: 15px;
	font-style: italic;
	font-size: 1.2rem;
	letter-spacing: 1px;

	text-align: justify;
}

.faq-point-info a {
	color: #fff;
	text-decoration: underline;
	transition: .3s;
}
.faq-point-info a:hover {
	text-decoration: none;
	font-weight: 800;
	text-shadow: 0 0 12px white;
}


@media (max-width: 750px) {
	.faq{
		flex-direction: column;
	}
	.faq h1{
		font-size: 2rem;
		text-align: center;
		justify-content: center;
	}
}


/*==================IMAGE LINE==================*/
.image-line{
	background: 
    linear-gradient(rgba(0, 0, 0, 0.8)),
    url('https://plus.unsplash.com/premium_photo-1670430623154-24626c42fb33?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1170')
      no-repeat center center/cover;
	display: flex;
	height: auto;
	padding: 150px 30px;
	justify-content: center;

	color: white;
}
.image-line h1{
	font-family: 'Pinyon Script', cursive;
	font-size: 3rem;
	line-height: 1.5;
}




/*==================THE-DRAFTED==================*/
.wishes{
	background: url('https://images.unsplash.com/photo-1638132035918-90a22beaab3b?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1932') no-repeat center center/cover;
	height: auto;
	padding: 30px;

	display: flex;  
	flex-direction: column;
	align-items: center;  
	text-align: center; 

}
.wishes > h1{
	font-size: 45px;
	font-family: 'Pinyon Script', cursive;	
}
.wishes > p{
	font-size: 20px;
	font-style: italic;
	letter-spacing: 1px;
}


/* ===FORM=== */
form{
	display: flex;
	flex-direction: column;
	margin-top: 30px;
	gap: 1rem;
	max-width: 500px;
}
form .form-group{
	text-align: left;
}
form .form-group label{
	font-family: 'Cinzel', serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 2;
	font-weight: 700;
}

form .form-group input[type=text]{
	display: flex;
	max-width: 400px;
	min-width: 400px;
	height: 40px;
	padding: 10px;
	border: none;
	background: rgb(217, 217, 217);
	transition: .3s;

	font-family: 'EB Garamond', serif;
	font-size: 17px;
	letter-spacing: 1px;
}
form .form-group textarea{
	border: none;
	padding: 10px;
	max-width: 400px;
	min-width: 400px;
	background: rgb(217, 217, 217);

	font-family: 'EB Garamond', serif;
	font-size: 17px;
	letter-spacing: 1px;
	transition: .3s;
}

form .form-group input[type=text]:focus,
form .form-group textarea:focus {
	outline: none;
	border-color: #000;
	background-color: rgba(255,255,255,1);
	box-shadow: 0 0 6px rgba(0,0,0,0.3);
}


form .form-selection{
	display: flex;
	flex-direction: column;
}
form .form-selection > label{
	text-align: left;
	
	font-family: 'Cinzel', serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 1px;
	text-transform: uppercase;
}

form .form-selection select{
	border: none;
	padding: 10px;
	background: rgb(217, 217, 217);

	font-family: 'Cinzel', serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 2;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}
form .form-selection select:focus {
	outline: none;
	background: white;
	border-color: #000;
	box-shadow: 0 0 6px rgba(0,0,0,0.3);
}


form .form-selection .choices-inpt {
	display: flex;
	justify-content: center;
	flex-direction: column;
	padding: 10px;
	gap: 5px;
}

form .form-selection legend{
	text-align: left;
	margin-left: 20px;
}

.choices-inpt input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #959595;
	border-radius: 50%;
	outline: none;
	cursor: pointer;
	position: relative;
	transition: all 0.25s ease-in-out;
	background-color: #fff;
}

.choices-inpt input[type="radio"]:hover {
	border-color: black;
	box-shadow: black;
}
.choices-inpt input[type="radio"]:checked {
	border-color: black;
	background-color: black;
	box-shadow: 0 0 8px rgba(0,0,0, 0.4);
}


.choices-inpt label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'EB Garamond', serif;
	font-size: 17px;
	letter-spacing: 0.5px;
	color: #959595;
	cursor: pointer;
	transition: color 0.3s;
}
.choices-inpt label:hover {
	color: black;
}
.choices-inpt input[type="radio"]:checked + label,
.choices-inpt label:has(input[type="radio"]:checked) {
	color: black;
}


.submit-btn {
	margin: auto;
	border: none;
	border: 1px solid black;
	background: black;
	color: white;
	width: 200px;
	padding: 15px 0;

	font-family: 'EB Garamond', serif;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 1px;

	transition: .5s;
}
.submit-btn:hover {
	background: white;
	color: black;
}

.hidden{
	display: none;
}

/*===========MESSAGE MODAL===========*/
.message-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	animation: fadeIn 0.3s ease;
}

.message-modal.hidden {
	display: none;
}

.message-modal .modal-content {
	background: white;
	padding: 40px;
	border-radius: 10px;
	text-align: center;
	max-width: 400px;
	width: 90%;
	animation: slideUp 0.3s ease;
}

.message-modal .modal-icon {
	font-size: 60px;
	display: block;
	margin-bottom: 20px;
}

.message-modal .modal-icon.success {
	color: #28a745;
}

.message-modal .modal-icon.error {
	color: #dc3545;
}

.message-modal .modal-content h2 {
	font-family: 'Cinzel', serif;
	font-size: 24px;
	margin-bottom: 15px;
	letter-spacing: 2px;
}

.message-modal .modal-content p {
	font-size: 16px;
	color: #666;
	margin-bottom: 25px;
	line-height: 1.5;
}

.message-modal .modal-close-btn {
	background: black;
	color: white;
	border: 1px solid black;
	padding: 12px 40px;
	cursor: pointer;
	border-radius: 3px;
	font-family: 'Cinzel', serif;
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

.message-modal .modal-close-btn:hover {
	background: white;
	color: black;
}

.submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/*===========FOOTER===========*/
footer{
	background: #000;
	height: auto;
	padding: 40px;
	padding-bottom: 150px;
	text-align: center;
	align-items: center; 
	justify-content: center;
}
footer h4{
	color: white;

}
footer h1{
	color: white;
}
footer img{
	margin-top: 30px;

	border-radius: 500px;
	width: 5rem;
	height: 5rem;
	object-fit: cover;
}






/* ====RESPONSIVENESS FOR EVERYTHING====*/
/* ============================
    MOBILE TEXT & LAYOUT FIXES
   ============================ */
@media (max-width: 750px) {
	.location-info .location-contents h2 {
        font-size: 2.6rem;       /* "Holy Matrimony" - was 58px */
        line-height: 1.2;
    }

    .location-info .location-contents h3 {
        font-size: 1rem;     /* Venue Name - was 35px */
        margin-bottom: 15px;
        line-height: 1.4;
    }


	.faq h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .faq-point-info h2 {
        font-size: 1.2rem ; /* Was 1.5rem */
        line-height: 1.3;
    }

    .faq-point-info p {
        font-size: 1rem ; /* Was 1.2rem */
        text-align: left; /* Easier to read on phone than justify */
    }
    
    .faq-point span {
        font-size: 1.2rem ; /* Shrink the numbers (01, 02) */
        min-width: 30px;
    }

    .popup-content {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Forces content to middle of screen */
    }

    .popup-content h1 {
        font-size: 2.2rem ; /* Shrink names */
    }

    .popup-content h2 {
        margin-top: 0rem ;    /* Remove huge top gap */
        margin-bottom: 7rem ; /* Remove huge bottom gap */
        font-size: 1.2rem ;
    }

    .home .title h1 {
        font-size: 2.8rem ; 
    }
    
    .home .title h2 {
        font-size: 1.5rem ;
    }

    /* --- 4. Fix Profile/Groom & Bride Text --- */
    .profile > h1 {
        font-size: 2.5rem ;
    }
    
    .profile .profile-contents h1 {
        font-size: 1.8rem ; /* Name size */
    }
}

@media (max-width: 768px) {

    /* 1. FIX THE ZOOM: Force the body to stop overflowing */
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    /* 2. FIX THE GALLERY: Make it fit inside the screen frame */
    .carousel-container {
        width: 90vw ; /* 90% of screen width */
        height: auto ; /* Height adjusts automatically */
        aspect-ratio: 420 / 595; /* Keeps the rectangle shape */
    }
    
    .carousel-images {
        width: 100% ;
        height: 100% ;
    }

    .carousel-images img {
        width: 100% ;
        height: 100% ;
        object-fit: cover;
        padding-top: 0 ; /* Remove any padding that pushes it down */
    }

    /* 3. FIX THE FORM: Stop the inputs from being wider than the phone */
    form {
        width: 100% ;
        padding: 0 20px; /* Adds safe space on sides */
    }

    form .form-group input[type=text],
    form .form-group textarea {
        min-width: 0 ; /* Override the 400px limit */
        width: 100% ;  /* Fill the available phone width */
    }
	/* form .form-group input[type=text]{
		height: 40px;
	} */

    /* 4. FIX THE TITLE: Prevent giant text from breaking layout */
    .home .title h1 {
        font-size: 12vw ; /* Scales relative to screen width */
    }
    
    .home .title img {
        margin-bottom: 15rem ; /* Reduces the huge gap */
    }
}