/* Responsive Styles */
@media (max-width: 1700px) {
.main-title {
    font-size: 60px;
}	
}	
@media (max-width: 1500px) {
	#site-header {
		position: fixed;
		padding: 20px 40px;
	}
	div.responsive label, div#cons_info_component_personal_info_section, div#cons_info_component_contact_info_section, .survey-question-container.survey-question-3 {
		margin-bottom: 10px;
		font-size: 24px;
	}

	div.responsive textarea {
		height: 100px;
	}

	.main-title {
		font-size: 32px;
	}

	.modal-content, .modal-content-inner {
		padding: 48px;
	}
		
	#view-all-modal span.close-modal {
		top: 0;
		right: 0;
		padding-right: 27px;
	}
	
	.image-item.top, .image-item.middle, .image-item.bottom {
		min-width: 300px;
		min-height: 300px;
	}
	.image-item.bottom {
		bottom: 10%;
	}
	
	.city-window {
		width: 3px !important;
		height: 2px !important;
	}
	.city-light-beacon {
		width: 4px;
		height: 3px;
	}
	
	#add-message-btn {
		padding: 16px;
		width: 245px;
		font-size: 20px;
	}
}

@media (max-height: 750px) {
	div.responsive textarea {
		height: 100px;
	}	
}
	
/* Tablets */
@media (max-width: 1199px) {
	.edge-blur {
		display: none;
	}
	
	div.responsive label {
		margin-bottom: 5px;
		font-size: 16px;
	}
	div#cons_info_component_personal_info_section, div#cons_info_component_contact_info_section, .survey-question-container.survey-question-3 {
		margin-bottom: 15px;
	}
	
	.logo img {
		max-width: 250px;
	}
	
	#circlesBG2 {
		background: url(https://giving.nyulangone.org/nursesday/img/Vector_resized.png);
		background-size: contain;
		background-position: left;
		background-repeat: no-repeat;
	}
	
	.intro h2 {
		font-size: 32px;
		margin: 0 0 15px;
	}
    
    .modal-content {
		width: 90%;
    }
	
	#scrollbar-container {
		bottom: 20px;
	}
	#scrollbar-track {
		width: 95%;
	}
	.message-inner, .image-inner {
		filter: none !important;
	}
	.message-item.top {
		top: 12% !important;
	}
	.message-item.middle {
		top: 20% !important;
	}
	.image-item.top {
		top: 12% !important;
	}
	
	.city-window {
		width: 2px !important;
		height: 1px !important;
	}
	.city-light-beacon {
		width: 3px;
		height: 3px;
	}
	
	#bottom-ui {
		bottom: 20px;
	}
	
	#add-message-btn {
		padding: 16px;
		width: 245px;
		font-size: 20px;
	}
	
}

@media (max-width: 991px) {
	.mobile-bg {
		position: fixed;
		bottom: 0;
		background: #000;
		width: 100%;
		height: 40px;
	}
	#skyline-container {
		bottom: 30px;
	}
	#site-header {
		padding: 20px 25px;
		grid-template-columns: auto;
	}
	
	#site-header .logo, #bottom-ui button#add-message-btn {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 12px;
	}
	
	#site-header .title-container, .policy {
		grid-column: span 3;
		grid-row: 2;
		width: 100%;
		text-align: center;
	}
	
	#site-header .donate-button, #bottom-ui button#view-all-btn {
		margin: 0 0 12px auto;
		grid-column: 3;
		grid-row: 1;
	}
	
	#bottom-ui {
        bottom: 25vw;
		height: auto;
        padding: 0 20px;
		grid-template-columns: 2fr 0fr 2fr;
		grid-gap: 10px;
		gap: 10px;
		row-gap: 15px;
    }
    
    #message-thermometer {
		display: none;
	}
	
	#bottom-ui button#add-message-btn {
		max-width: 100%;
		margin: 0 auto;
		padding: 12px 30px;
		font-size: 18px;
		grid-column: span 1;
		width: 100%;
		order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        grid-column: unset;
        grid-row: unset;
	}
	
	#bottom-ui button#view-all-btn {
		max-width: 100%;
		border: 2px solid #fff;
		padding: 16px 30px;
		font-size: 16px;
		margin: 0 auto;
		width: 100%;
		font-weight: 500;
		border-radius: 4px;
		text-decoration: none;
	}
	
	.welcome-message .modal-content {
		border: none !important;
	}
	
	.welcome-message-header {
		font-size: 24px;
	}
	
	.welcome-message span.close-message-modal {
		top: 10px !important;
		padding-right: 8px !important;
		right: 0 !important;
	}
	
	#message-modal .modal-content {
		max-width: 90%;
		border-radius: 16px;
	}
	
	.btn-donate {
        font-size: 14px;
		padding: 12px 20px;
    }

    /* Mobile #bottom-ui: Add Your Message full width, View all messages as text link, Privacy Policy pinned bottom */
    #bottom-ui {
        bottom: 0;
        padding: 0 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        height: auto;
        row-gap: 14px;
    }
	
    #bottom-ui button#view-all-btn {
        order: 2;
        background: transparent;
        border: none;
        color: #fff;
        text-decoration: underline;
        padding: 0;
        width: auto;
        max-width: none;
        margin: 12px 0;
        font-size: 18px;
        font-weight: 500;
        border-radius: 0;
        grid-column: unset;
        grid-row: unset;
		color: rgba(208, 177, 231, 1);
    }
    #bottom-ui .policy {
        order: 3;
        text-align: center;
        margin: 64px 0 0;
        grid-column: unset;
        grid-row: unset;
        width: 100%;
		text-decoration: underline;
    }
    #bottom-ui .policy a {
        background: rgba(0, 0, 0, 0.7);
        padding: 6px 16px;
        border-radius: 20px;
        display: inline-block;
    }
	
}	
@media (max-width: 767px) {
	.modal-content {
		margin: 0 auto;
		border: none;
		border-radius: 0px;
		width: 100%;
	}
	
	/*#add-message-modal .modal-content {
		height: 100vh;
		margin-top: 100px;
	}
	
	#view-all-modal .modal-content, #message-modal .modal-content {
		height: 100vh;
		margin-top: 100px;
	}
	
	.view-all-messages-container, .main-messages-container {
		height: 100%;
		max-height: 100%;
	}*/
	
	#all-messages-container {
		padding-right: 20px;
	}
	
	.message-item {
		max-width: 250px;
		min-width: 250px;
	}
	
	.intro h2 {
		text-align: left;
		padding-right: 80px;
	}
	
	#thank-you-content h2 {
		font-size: 24px;
	}
	
	div#cons_info_component_personal_info_section, div#cons_info_component_contact_info_section, .survey-question-container.survey-question-3 {
		margin-bottom: 20px;
	}
	
	div.responsive textarea {
		height: 150px;
	}
	
	div#personal_info_section_one {
		grid-row-gap: 20px;
		grid-gap: 20px;
		gap: 20px;
	}
	
	input#ACTION_SUBMIT_SURVEY_RESPONSE, button#closeMessage2 {
		max-width: 100%;
		width: 100%;
	}
	
	.image-item.bottom {
		top: 8%;
	}
	
	#modal-message {
		font-size: 24px;
	}
	#scrollbar-track {
		width: 90%;
	}
	.message-text.has-read-more:after {
		bottom: -3px;
	}
	
	.close-modal svg, .close-message-modal svg {
		width: 30px;
		height: 30px;
	}
	
	#message-modal .modal-content {
		padding: 32px;
	}

	input#ACTION_SUBMIT_SURVEY_RESPONSE, button#closeMessage2 {
		padding: 12px 24px;
	}

}

/* Small Mobile Phones */
@media (max-width: 480px) {
	.logo img {
		max-width: 200px;
	}
	
	.message-item.bottom {
		bottom: 12% !important;
	}
	
	#slideshow-track .message-text {
		font-size: 20px;
	}
	.intro h2 {
		font-size: 23px;
	}
		.modal-content, .modal-content-inner {
		padding: 20px;
	}
}

/* Small Mobile Phones */
@media (max-width: 399px) {
	#site-header {
		padding: 20px;
	}
	
	.main-title {
		font-size: 26px;
	}
	
	.subtitle {
		font-size: 16px;
	}
	
	.logo img {
		max-width: 150px;
	}
	
	div.responsive textarea {
		height: 100px;
	}
	
	.image-item.top, .image-item.middle, .image-item.bottom {
		min-width: 230px;
		min-height: 230px;
	}
	
	#add-message-modal .modal-content {
		top: 0;
	}
	
	/*#add-message-modal.modal.modal-visible.thank-you-content .modal-content {
		top: 18%;
		height: auto;
		margin-top: 100px;
		max-height: fit-content;
	}*/
	
	.message-item.top {
		top: 5%;
	}
	.message-item.middle {
		top: 8%;
	}
	
	#thank-you-content h2 {
		font-size: 20px;
	}

	#scrollbar-track {
		width: 85%;
	}
	#bottom-ui .policy {
		margin: 32px 0 0;
	}
}

@media (max-width: 369px) {
	div.responsive textarea {
		height: 50px;
	}
	
	.image-item.top, .image-item.middle, .image-item.bottom {
		min-width: 200px;
		min-height: 200px;
	}
}

/* Short viewport — shrink header + slideshow items so they don't overlap */
@media (max-height: 800px) {
    #site-header {
        padding: 20px 40px 12px;
    }
    .logo img {
        max-width: 200px;
    }
    .subtitle {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .main-title {
        font-size: 36px;
    }
    .btn-donate {
        padding: 12px 20px;
        font-size: 14px;
    }
    .message-item.top,
    .combined-item.top,
    .image-item.top {
        margin-top: 90px;
    }
    .message-item.middle,
    .image-item.middle {
        margin-top: 90px;
        top: 15%;
    }
    .message-item.bottom,
    .combined-item.bottom,
    .image-item.bottom {
        margin-bottom: 140px;
    }
    .image-item,
    .image-item.bottom {
        min-width: 260px;
        min-height: 260px;
    }
    #slideshow-track .message-text {
        font-size: 20px;
        -webkit-line-clamp: 4;
    }
    .message-item {
        max-width: 420px;
        min-width: 340px;
    }
    .combined-item {
        max-width: 340px;
        min-width: 340px;
    }
}

@media (max-height: 600px) {
    #site-header {
        padding: 12px 30px 8px;
    }
    .logo img {
        max-width: 160px;
    }
    .subtitle {
        font-size: 12px;
    }
    .main-title {
        font-size: 26px;
    }
    .message-item.top,
    .combined-item.top,
    .image-item.top {
        margin-top: 70px;
    }
    .message-item.bottom,
    .combined-item.bottom,
    .image-item.bottom {
        margin-bottom: 100px;
    }
    .image-item,
    .image-item.bottom {
        min-width: 200px;
        min-height: 200px;
    }
    #slideshow-track .message-text {
        font-size: 17px;
        -webkit-line-clamp: 3;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .logo img {
		max-width: 150px;
	}
}

/* Mobile width wins over short-height rules — combined queries placed last so they override */
@media (max-width: 1700px) and (max-height: 800px) {
    .main-title { font-size: 60px; }
}
@media (max-width: 1500px) and (max-height: 800px) {
    .main-title { font-size: 32px; }
}
@media (max-width: 399px) and (max-height: 800px) {
    #site-header {
        padding: 20px 20px 12px;
    }
	.main-title { font-size: 23px; }
    .subtitle { font-size: 16px; }
}
@media (max-width: 399px) and (max-height: 600px) {
    .main-title { font-size: 22px; }
    .subtitle { font-size: 14px; }
}