/* Affinity Event Photo Reactions. Sizes in px: the site's root font drops to 9px on phones. */
.popup-gallery a.affpr-ph { position: relative; }

/* Top left: round translucent button, like Quick Messages */
.affpr-btn {
	position: absolute; left: 10px; top: 10px; z-index: 3;
	width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #18325c linear-gradient(119deg, #070b16 0%, #18325d 15%, #18325d 28%, #090d16 48%, #18325d 65%, #183262 81%, #090d18 100%); border: 2px solid #c9a54c;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.affpr-ph:has(> .affpr-btn) .affpr-sum { left: 56px; top: 15px; }
.affpr-btn:hover, .affpr-btn:focus-visible { background: #0f2240 linear-gradient(119deg, #070b16 0%, #18325d 15%, #18325d 28%, #090d16 48%, #18325d 65%, #183262 81%, #090d18 100%); filter: brightness(1.25); transform: scale(1.06); outline: none; }

/* The picker: white pill below the button */
.affpr-menu {
	position: absolute; left: 8px; top: 58px; z-index: 4;
	display: flex; align-items: center; gap: 0; padding: 4px 6px;
	background: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); white-space: nowrap;
}
.affpr-menu[hidden] { display: none; }
.affpr-react {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1;
	cursor: pointer; transition: transform .1s ease;
}
.affpr-react img.emoji { width: 26px !important; height: 26px !important; margin: 0 !important; }
.affpr-react:hover { transform: scale(1.2); }
.affpr-react[aria-pressed="true"] { background: #f5ecd5; }
.affpr-report { font-size: 13px; font-weight: 700; color: #b3261e; padding: 4px 10px 4px 6px; cursor: pointer; font-family: inherit; }
.affpr-report:hover { text-decoration: underline; }

/* Top left: emoji + count in a dark holder, beside the smiley when it shows */
.affpr-sum {
	position: absolute; left: 10px; top: 10px; z-index: 3;
	display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 7px;
	background: rgba(10, 20, 32, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer;
	animation: affprIn .25s ease;
}
.affpr-sum-e { font-size: 17px; margin-right: -2px; }
.affpr-sum-e img.emoji { width: 17px !important; height: 17px !important; margin: 0 !important; }
.affpr-sum-n { margin-left: 6px; }
@keyframes affprIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* Who reacted */
.affpr-pop {
	position: absolute; z-index: 100001; min-width: 180px; max-width: 300px;
	background: #fff; color: #18325c; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	padding: 12px 34px 10px 14px; font-size: 14px; line-height: 1.35;
}
.affpr-pop-x { position: absolute; top: 6px; right: 10px; font-size: 22px; line-height: 1; color: #6b6f7b; cursor: pointer; }
.affpr-pop-row { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.affpr-pop-row + .affpr-pop-row { border-top: 1px solid #eee5d3; }
.affpr-pop-e { font-size: 20px; }
.affpr-pop-e img.emoji { width: 20px !important; height: 20px !important; }
.affpr-pop-n { font-weight: 700; min-width: 14px; }
.affpr-pop-names { color: #2d3748; }
.affpr-pop-load, .affpr-pop-note { color: #6b6f7b; font-size: 13px; }
.affpr-pop-note { margin-top: 6px; }

/* Report pop-up */
body.affpr-locked { overflow: hidden; }
.affpr-modal {
	position: fixed; inset: 0; z-index: 100002; background: rgba(10, 20, 32, 0.6);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.affpr-modal-box {
	background: #fff; color: #2d3748; border-radius: 18px; padding: 22px; width: 100%; max-width: 440px;
	max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); font-size: 15px;
}
.affpr-modal-box h3 { margin: 0 0 12px; color: #18325c; font-size: 22px; }
.affpr-modal-box p { margin: 0 0 10px; font-size: 15px; }
.affpr-modal-img { display: block; width: 120px; height: 150px; object-fit: cover; border-radius: 12px; border: 2px solid #c9a54c; margin: 0 0 12px; }
.affpr-modal-text { width: 100%; box-sizing: border-box; border: 1px solid #e6dfcf; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; resize: vertical; }
.affpr-modal-text:focus { outline: none; border-color: #c9a54c; box-shadow: 0 0 0 3px rgba(201, 165, 76, 0.2); }
.affpr-modal-err { color: #b3261e; min-height: 1em; margin-top: 6px !important; font-size: 14px !important; }
.affpr-modal-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.affpr-modal-btns button {
	border-radius: 999px !important; padding: 9px 18px !important; font-size: 15px !important; line-height: 1.3 !important;
	cursor: pointer; font-family: inherit; margin: 0 !important; box-shadow: none !important;
}
.affpr-modal-cancel { background: #fff !important; color: #18325c !important; border: 1px solid #c9a54c !important; }
.affpr-modal-send { background: #b3261e !important; color: #fff !important; border: 1px solid #b3261e !important; }
.affpr-modal-send[disabled] { opacity: .6; cursor: default; }

.affpr-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100003;
	background: #18325c; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.affpr-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 767px) {
	.affpr-btn { width: 36px; height: 36px; left: 8px; top: 8px; }
	.affpr-menu { left: 4px; top: 50px; }
	.affpr-react { width: 34px; height: 34px; font-size: 22px; }
	.affpr-sum { left: 8px; top: 8px; }
	.affpr-ph:has(> .affpr-btn) .affpr-sum { left: 50px; top: 11px; }
}

/* Real 👍 emoji in the react button (22 Nov 2026) */
.affpr-emo{font-size:20px;line-height:1;display:block;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}

/* Event updates (27 Nov 2026): button top right (bottom level with the date, set by the script); counts in a row above the text */
.affu-card:has(> .affpr-ubar) { position: relative; }
.affu-card:has(> .affpr-ubar .affpr-btn) .affu-head { padding-right: 48px; }
.affpr-ubar { position: static; display: flex; align-items: center; justify-content: flex-end; margin: 0; }
.affpr-ubar .affpr-btn { position: absolute; left: auto; right: 14px; top: 14px; width: 32px; height: 32px; }
.affpr-ubar .affpr-btn .affpr-emo { font-size: 16px; }
.affpr-ubar .affpr-sum, .affpr-ph.affpr-ubar:has(> .affpr-btn) .affpr-sum { position: static; left: auto; top: auto; margin: -8px 0 16px; height: 28px; font-size: 13px; padding: 0 10px 0 7px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(201, 165, 76, 0.55); }
.affpr-ubar .affpr-sum-e { font-size: 15px; }
.affpr-ubar .affpr-menu { left: auto; right: 10px; top: 54px; }
@media (max-width: 767px) { .affpr-ubar .affpr-btn { right: 10px; width: 30px; height: 30px; } .affpr-ubar .affpr-menu { right: 6px; } }

/* Bottom left: "Uploaded by Sarah" on member photos (28 Nov 2026) */
.affpr-by { position: absolute; left: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(9,13,24,.62); color: #fff; font: 600 12px/1.2 Lato, sans-serif; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
@media (max-width: 767px) { .affpr-by { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 9px; } }

/* Event photos: centred, just above the "Moments worth sharing" overlay (starts 88% down the 1080x1350 image) (28 Nov 2026) */
.affpr-gallery:not(.affpr-venue) .affpr-by { left: 50%; transform: translateX(-50%); bottom: calc(11.6% + 10px); }
@media (max-width: 767px) { .affpr-gallery:not(.affpr-venue) .affpr-by { left: 50%; bottom: calc(11.6% + 6px); } }

/* Venue photos: centred at the bottom (Terry, 28 Nov 2026) */
.affpr-venue .affpr-by { left: 50%; transform: translateX(-50%); }
