* {
	padding: 0px;
	margin: 0px;
	box-sizing: border-box;
	font-size: 16px;
}

.slackey-regular {
	font-family: "Slackey", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.fuzzy-bubbles-regular {
	font-family: "Fuzzy Bubbles", sans-serif;
	font-weight: 400;
	font-style: normal;
}

header {
	text-align: center;
	margin-bottom: 1em;
}

header h1{
	font-family: "Slackey", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 4em;
	color: #ff4081;
}

header h1:hover {
	color: #2d9cdb;
}

header h3 {
	margin-top: -1em;
}

/* About modal window */

/*GALLERY CSS */
#gallery {
	column-count: 1; /* phones (default) */
	column-gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 8px;
}

#gallery img {
	width: 100%;
	display: block;
	margin: 0 0 12px;
	break-inside: avoid;
}

/* Overlay background */
/* Lock body scroll when lightbox is open */
.body-lock {
	overflow: hidden;
}

/* Fullscreen backdrop */
#lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .9);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: env(safe-area-inset-top, 16px) 16px env(safe-area-inset-bottom, 16px);
	z-index: 1000;
}

/* Hide by default */
#lightbox.hidden {
	display: none;
}

/* Make the inner box scrollable if content is tall */
.lightbox-content {
	max-width: 900px;
	width: 100%;
	max-height: 90vh; /* fits on screen */
	overflow: auto; /* scrolls inside */
	-webkit-overflow-scrolling: touch; /* smooth iOS scroll */
	color: #fff;
	text-align: center;
}

/* Image uses top part of the viewport, never overflows */
#lightbox-img {
	display: block;
	max-width: 100%;
	max-height: 60vh; /* leaves room for caption */
	margin: 0 auto;
	box-shadow: 0 0 20px rgba(0, 0, 0, .5);
}

/* Caption can be very long; it will scroll within .lightbox-content */
.caption {
	padding: 12px 8px 0;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center; /* nicer for long text */
	white-space: pre-wrap; /* respects \n line breaks */
}

/* Close button */
#lightbox .close {
	position: fixed; /* stays tappable while scrolling */
	top: 20px;
	right: 20px;
	font-size: 2rem;
	font-weight: 700;
	color: #ff4081;
	background: transparent;
	border: 0;
	cursor: pointer;
}


/* About Lightbox modifications */
#lightbox.is-about {
  align-items: flex-start;   /* push content to top instead of center */
}

#lightbox.is-about .lightbox-content {
  margin-top: 80px;
  max-width: 768px;
  max-height: none;     /* remove height restriction */
  overflow: visible !important; /* turn off scrolling completely */
}


#lightbox.is-about #lightbox-img {
  display: none;
}

#lightbox.is-about .caption {
  font-size: 1em;
  line-height: 1;
  text-align: center;
  padding-top: 4px;
}


/*Upload Button*/
#upload-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #ff4081; /* bright accent */
	color: #fff;
	border: none;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000; /* above gallery/lightbox */
	transition: background-color 0.2s ease;
}

#upload-btn.hidden {
	display: none;
}

#upload-btn:hover {
	background-color: #e73370;
}

/* Overlay */
#upload-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 3000;
	padding: 16px;
	font-family: "Fuzzy Bubbles", sans-serif;
	font-weight: 400;
	font-style: normal;
}

#upload-modal.hidden {
	display: none;
}

/* Modal box */
.modal-content {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	max-width: 400px;
	width: 100%;
	color: #333;
	position: relative;
}

.modal-content h2 {
	margin-top: 0;
	font-family: 'Fuzzy Bubbles', cursive;
}

.modal-content label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.95rem;
}

.modal-content input, .modal-content textarea {
	width: 100%;
	padding: 8px;
	margin-top: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: inherit;
}

.submit-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 16px;
	background: #ff4081;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.submit-btn:hover {
	background: #e73370;
}

/* Disabled submit */
.submit-btn:disabled {
  background: #ff4081;          
  color: #fff;              
  cursor: not-allowed;      
  opacity: 0.6;             
}

.close {
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 1.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
}

/*Desktop*/
@media (min-width: 1024px) {
	#gallery {
		column-count: 5;
	}
}
