/* Shared styles for the gallery pages (gallery.html, gallery-submit.html,
   gallery-submit-pro.html, gallery-view.html). The password-gate rules below
   mirror the pattern already used on rsvp.html so the two feel consistent. */

.access-wrap {
	max-width: 560px;
	margin: 0 auto 30px auto;
	padding: 0 15px;
}

.access-card {
	background: rgba(255, 255, 255, 0.96);
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
	padding: 34px 30px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.access-card h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.access-card p {
	margin-bottom: 0;
	color: #666;
}

.lock-row {
	margin-top: 22px;
}

.lock-input {
	height: 46px;
	border-radius: 10px;
	border: 1px solid #ddd;
	box-shadow: none;
	padding-left: 14px;
}

.lock-input:focus {
	border-color: #b07a7a;
	box-shadow: 0 0 0 2px rgba(176, 122, 122, 0.12);
}

.unlock-btn {
	height: 46px;
	border-radius: 10px;
	padding-left: 20px;
	padding-right: 20px;
	width: 100%;
}

.access-note {
	margin-top: 14px;
	font-size: 14px;
	color: #888;
}

.access-error {
	display: none;
	margin-top: 14px;
	color: #9b3b3b;
	background: rgba(155, 59, 59, 0.08);
	border: 1px solid rgba(155, 59, 59, 0.15);
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
}

#gallery-shell {
	display: none;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

#gallery-shell.show {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.form-control {
	border-radius: 10px;
	box-shadow: none;
	border: 1px solid #ddd;
}

.form-control:focus {
	border-color: #b07a7a;
	box-shadow: 0 0 0 2px rgba(176, 122, 122, 0.12);
}

/* Landing page buttons */
.gallery-choice-wrap {
	max-width: 900px;
	margin: 0 auto;
}

.gallery-choice {
	display: block;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
	padding: 34px 20px;
	text-align: center;
	margin-bottom: 20px;
	text-decoration: none;
	color: #333;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-choice:hover,
.gallery-choice:focus {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
	color: #333;
	text-decoration: none;
}

.gallery-choice i {
	font-size: 34px;
	color: #7a8a55;
	display: block;
	margin-bottom: 14px;
}

.gallery-choice span {
	font-size: 17px;
	font-weight: 600;
	display: block;
}

.gallery-choice small {
	display: block;
	margin-top: 6px;
	color: #888;
	font-weight: 400;
}

/* Submit page */
.submit-wrap {
	max-width: 720px;
	margin: 0 auto;
}

.dropzone {
	margin-top: 18px;
	border: 2px dashed #ccc;
	border-radius: 16px;
	padding: 46px 20px;
	text-align: center;
	color: #888;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone i {
	font-size: 30px;
	display: block;
	margin-bottom: 10px;
	color: #aaa;
}

.dropzone.dragover {
	border-color: #7a8a55;
	background: rgba(122, 138, 85, 0.06);
	color: #556;
}

.dropzone.is-disabled {
	opacity: 0.5;
	pointer-events: none;
}

.file-queue {
	margin-top: 20px;
}

.file-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.file-row .file-name {
	flex: 1 1 auto;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-row .file-status {
	flex: 0 0 auto;
	font-size: 13px;
	color: #888;
	min-width: 90px;
	text-align: right;
}

.file-row .file-status.ok { color: #3d6b23; }
.file-row .file-status.err { color: #9b3b3b; }

.file-progress {
	flex: 0 0 120px;
	height: 6px;
	border-radius: 999px;
	background: #eee;
	overflow: hidden;
}

.file-progress > i {
	display: block;
	height: 100%;
	width: 0%;
	background: #7a8a55;
	transition: width 0.15s ease;
}

.submit-actions {
	margin-top: 22px;
	text-align: center;
}

.submit-summary {
	margin-top: 16px;
	font-size: 14px;
	color: #666;
	text-align: center;
}

/* View page */

/* `clear: both` is load-bearing: the heading above this is a Bootstrap
   column (col-md-8), which is floated. A flex container establishes a block
   formatting context, and a BFC box may not overlap a float — without the
   clear, this bar gets squeezed into the narrow strip of space beside the
   floated heading instead of spanning the full width below it. */
.filter-bar {
	clear: both;
	max-width: 1180px;
	margin: 0 auto 26px;
	padding: 0 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: flex-start;
	justify-content: space-between;
}

.filter-field {
	flex: 1 1 200px;
}

/* On phones, give each filter group its own full-width row instead of
   trying to spread them across a line too narrow to hold them. */
@media (max-width: 600px) {
	.filter-bar {
		justify-content: flex-start;
	}

	.filter-field,
	.pro-toggle-wrap,
	.filter-actions {
		flex: 1 1 100%;
	}

	.pro-toggle-wrap,
	.filter-actions {
		margin-top: 4px;
	}
}

.filter-field label {
	display: block;
	font-size: 13px;
	color: #777;
	margin-bottom: 6px;
}

.filter-field select {
	width: 100%;
}

.type-filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.plain-check {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	color: #444;
	font-weight: normal;
	margin-bottom: 0;
	cursor: pointer;
}

.plain-check input {
	margin: 0;
}

.pro-toggle-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	/* Offsets these controls past the label height of the fields beside
	   them, so everything in the bar lines up on one visual baseline. */
	margin-top: 25px;
}

.filter-actions {
	margin-top: 25px;
}

.pro-toggle {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
}

.pro-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.pro-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccc;
	border-radius: 999px;
	transition: 0.2s;
}

.pro-toggle-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	top: 3px;
	background: white;
	border-radius: 50%;
	transition: 0.2s;
}

.pro-toggle input:checked + .pro-toggle-slider {
	background: #7a8a55;
}

.pro-toggle input:checked + .pro-toggle-slider:before {
	transform: translateX(20px);
}

.gallery-empty {
	text-align: center;
	color: #888;
	padding: 60px 20px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 15px;
}

.gallery-tile {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: #eee;
}

.gallery-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

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

.gallery-tile .tile-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 999px;
}

.gallery-tile .tile-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 30px;
	background: rgba(0, 0, 0, 0.18);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gallery-tile .tile-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 5px 8px;
	font-size: 11px;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Lightbox */
.lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.lightbox-overlay.show {
	display: flex;
}

.lightbox-media-wrap {
	max-width: 92vw;
	max-height: 78vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-media-wrap img,
.lightbox-media-wrap video {
	max-width: 92vw;
	max-height: 78vh;
	border-radius: 6px;
}

.lightbox-caption-row {
	margin-top: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

.lightbox-caption {
	color: #fff;
	font-size: 15px;
	text-align: center;
}

.lightbox-download {
	border-radius: 8px;
}

.lightbox-close {
	position: absolute;
	top: 18px;
	right: 24px;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	background: none;
	border: 0;
}

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 40px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px 16px;
	opacity: 0.8;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }
