* {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

/*HEADER STUFF*/

.header-left {
  border-right-color: #E76F51;
  border-right-style: solid;
  border-right-width: 2px;
  box-sizing: border-box;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  font-size: 18px;
  font-weight: bold;
  color: #0F172A;
  background-color: #fcb53e;
  width: 24%;
  height: 100%;
}
.header-center {
  border-right-color: #E76F51;
  border-right-style: solid;
  border-right-width: 2px;
  border-left-color: #E76F51;
  border-left-style: solid;
  border-left-width: 2px;
  box-sizing: border-box;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  font-size: 18px;
  font-weight: bold;
  color: #0F172A;
  background-color: #fcb53e;
  width: 24%;
  height: 100%;
}
.header-right {
  border-left-color: #E76F51;
  border-left-style: solid;
  border-left-width: 2px;
  box-sizing: border-box;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  font-size: 18px;
  font-weight: bold;
  color: #0F172A;
  background-color: #fcb53e;
  width: 24%;
  height: 100%;
}

#header-menu {
  background-color: #fcb53e;
  color: #fcb53e;
  margin-top: 10px;
  width: 100%;
  height: 22px;
  overflow: visible;
  font-size: 0;
}
/*DROPDOWN STUFF*/

.dropdown {
  display: inline-block;
  position: relative;
  overflow: visible;
}

.header-right.dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  overflow: visible;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  background-color: #2bb891;
  text-decoration: none;
}

.dropdown-content a:hover {
  color: #0F172A;
  background-color: #00a4bd;
}

/*END DROPDOWN*/

header {
  background-color: #2C3E50;
  position: fixed;
  z-index: 3;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 42px;
  overflow: visible;
}

/*END HEADER*/

.search-list {
  width: 30%;
  background-color: #d08856;
  color: #aa210f;
}

/* FORM STUFF */
.create-form {
  width: 100%;
  background-color: white;
  color: #0F172A;
  border-style: solid;
  border-color: #0c9dd6;
  padding: 2%;
}

p {
  white-space: pre-line;
}
.form-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  width: auto;
}

.form-label {
  background-color: white;
  color: #0F172A;
}
.form-input {
  border-style: ridge;
  margin: auto;
  background-color: #efefef;
  margin: 3px;
  color: #0F172A;
}

#error-label {
  color: #aa210f;
  font-size: small;
  font-style: italic;
}

.form-success-notice {
  color: #1a7a3c;
  font-size: small;
  font-style: italic;
  font-weight: 600;
  margin: 4px 0;
}

.form-submit-button {
  margin: 10px;
}

/* END FORM */

/* BODY STUFF */

#body-background {
  position: fixed;
  z-index: 1;
  height: 90%;
  width: 100%;
  top: 42px;
  color: #0F172A;
  background-color: white;
  overflow: scroll;
  flex-grow: 1;
}
/* END BODY */

/* FOOTER STUFF */
footer {
  background-color: #2C3E50;
  z-index: 2;
  color: #E76F51;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 24px;
  font-weight: bold;
}

footer a {
  color: #E76F51;
}
/* END FOOTER */

/* SEARCH LISTS STUFF */

#search-form {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#search-form input[type="text"] {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 60%;
  background: #f1f1f1;
}

#search-form button {
  float: left;
  width: 20%;
  padding: 10px;
  background: #2196f3;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
}

#search-form button:hover {
  background: #0b7dda;
}

.search-result {
  box-sizing: border-box;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#list-collection {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  overflow-x: auto;
}

.list-wrapper {
  flex: 1 0 33.33%;
}

.list-of-all {
  width: 100%;
  overflow: auto;
  max-height: 100%;
}

.list-header {
  font-size: large;
  font-weight: bold;
}

/* END SEARCH LISTS */

/* USER STUFF */

.user-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.user-info-wrapper h1 {
  margin-bottom: 10px;
  color: #333;
}

.user-info-wrapper p {
  margin-bottom: 10px;
  color: #666;
}

.profile-picture {
  size: fixed;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.profile-picture-square {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.profile-name-top {
  text-align: center;
  margin: 8px 0 16px;
  font-size: 2rem;
  line-height: 1.2;
  color: #222;
  width: 100%;
}

.profile-page > .visibility-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas:
    "pic desc"
    "user desc"
    "web social";
  column-gap: 28px;
  row-gap: 10px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0 12px;
}

.profile-hero .profile-picture-square {
  grid-area: pic;
  margin: 0;
}

.profile-short-desc-wrap {
  grid-area: desc;
  display: flex;
  align-items: center;
  min-height: 200px;
}

.profile-short-desc {
  margin: 0;
  white-space: pre-wrap;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.45;
  max-width: 28rem;
}

.profile-short-desc-secondary {
  max-width: 820px;
  margin: 0 auto 12px;
  padding: 0 12px;
}

.profile-extra-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
  padding: 0 12px;
}

.profile-extra-links a {
  color: #222;
  text-decoration: underline;
  word-break: break-word;
}

.profile-extra-links-pre-description {
  justify-content: space-evenly;
}

.profile-hero .profile-username {
  grid-area: user;
  margin: 0;
  text-align: center;
  color: #666;
  width: 100%;
}

.profile-links-row {
  display: contents;
}

.profile-link-website {
  grid-area: web;
  margin: 0;
  text-align: center;
}

.profile-link-social {
  grid-area: social;
  margin: 0;
  text-align: center;
}

.profile-link a {
  color: #222;
  text-decoration: underline;
  word-break: break-word;
}

.profile-description {
  white-space: pre-wrap;
  color: #333;
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0 12px;
}

.profile-picture-bar {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.opt-in-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: normal;
  background: transparent;
  color: inherit;
  margin: 8px 0;
}

.opt-in-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.opt-in-readonly {
  margin-top: 12px;
}

.admin-notes-form {
  margin-top: 12px;
}

.admin-notes-input {
  display: block;
  width: 100%;
  min-height: 10em;
  box-sizing: border-box;
  resize: vertical;
}

.admin-notes-form .form-submit-button {
  margin-top: 8px;
}

.gallery-caption-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
}

.gallery-item .gallery-caption-edit {
  position: relative;
  z-index: 4;
  padding-top: 6px;
  background: #fff;
}

.gallery-caption-input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #ccc;
  background: #efefef;
  color: #0F172A;
}

@media (max-width: 640px) {
  .gallery-caption-edit {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gallery-caption-input,
  .gallery-caption-edit .form-submit-button {
    width: 100%;
    box-sizing: border-box;
  }
}

.slider-caption-editor {
  max-width: 900px;
  width: 90%;
  margin: 12px auto 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 640px) {
  .profile-name-top {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .profile-picture-square {
    width: 160px;
    height: 160px;
  }

  .profile-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
      "pic desc"
      "user desc"
      "links links";
    column-gap: 14px;
    row-gap: 8px;
    justify-items: stretch;
    text-align: left;
    max-width: 100%;
  }

  .profile-hero .profile-picture-square {
    width: 120px;
    height: 120px;
  }

  .profile-short-desc-wrap {
    min-height: 120px;
    justify-content: flex-start;
    width: 100%;
  }

  .profile-short-desc {
    text-align: left;
    max-width: none;
  }

  .profile-hero .profile-username {
    text-align: center;
  }

  .profile-links-row {
    grid-area: links;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
  }

  .profile-link-website,
  .profile-link-social {
    grid-area: auto;
    text-align: center;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .profile-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "desc"
      "pic"
      "user"
      "web"
      "social";
    justify-items: center;
    text-align: center;
    max-width: 560px;
  }

  .profile-short-desc-wrap {
    min-height: 0;
    justify-content: center;
    width: 100%;
  }

  .profile-short-desc {
    text-align: center;
    max-width: none;
  }
}

/* END USER */

/* PHOTO GALLERY — Pinterest-style vertical masonry via CSS multi-column.
   Option A: Express + Handlebars SSR, no React, no infinite-scroll gallery grid,
   no LTR reading-order requirement. Lightweight native CSS is enough.
   Important: do not use display:grid here — it forced shared row heights / gaps. */

.gallery-wrapper {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 20px auto;
}

.gallery-grid,
.gallery-masonry {
  display: block;
  column-count: 3;
  column-gap: 12px;
  column-fill: balance;
}

.gallery-grid .gallery-item,
.gallery-masonry .gallery-item,
.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  cursor: zoom-in; /* hint: double-click to enlarge */
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .gallery-grid,
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid,
  .gallery-masonry {
    column-count: 1;
  }
}

/* Per-picture caption: a bar pinned to the bottom of the image.
   Collapsed to one line by default; click it to expand the full text. */
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 6px 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item.caption-open .gallery-caption {
  white-space: normal;
  overflow: visible;
  background-color: rgba(0, 0, 0, 0.82);
}

.gallery-delete-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(170, 33, 15, 0.85);
  color: white;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 5px;
}

.gallery-delete-button:hover {
  background-color: rgba(170, 33, 15, 1);
}

/* Enlarged-picture overlay (double-click a picture). */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-image {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

.gallery-lightbox-caption {
  margin-top: 12px;
  color: white;
  font-size: 16px;
  text-align: center;
  max-width: 90%;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* Messages Stuff */
.message-send {
  background-color: #4caf50; /* Green */
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

#messages-wrapper {
  margin: 3px;
  padding-left: 5px;
  padding-right: 5px;
  size: fixed;
  width: 50%;
  max-height: 50%;
  border-width: 2px;
  color: #0F172A;
  border-style: solid;
  border-color: #0c9dd6;
  overflow: auto;
}

.message-sender {
  display: inline-block;
  font-size: smaller;
  color: #aaaaaa;
  margin: 5px;
}

.message-text {
  display: block;
  margin: 5px;
}

.delete-comment-button {
  display: inline-block;
}

.message {
  margin: 5px;
  background-color: #f0f0f0;
}

.messages-container {
  overflow: auto;
  max-height: 25%;
  display: flex;
  flex-direction: column-reverse;
}

/* End Messages */

/* Friend Request Stuff */

#friend-request-wrapper {
  size: fixed;
  width: 50%;
  height: 25%;
  border-style: solid;
  border-width: 2px;
  border-color: #aaaaaa;
  overflow: auto;
}

#friend-request {
  background-color: #eeeeee;
}

.button-wrapper {
  align-content: center;
  display: inline-block;
  size: auto;
  width: 9%;
}

.request-sender {
  color: black;
  display: inline-block;
  width: 80%;
}
.accept-button {
  background-color: greenyellow;
  display: inline-block;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.reject-button {
  background-color: red;
  display: inline-block;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

/* End Friend Request */

/* Weather */

.weather-data {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.forecast {
  flex: 1 0 10%;
  margin: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.forecast img {
  width: 50%;
  height: auto;
}

/* End Weather */

/* Main Page */
.home-image {
  display: block;
  width: auto;
  height: 55%;
  margin: auto;
}

.logo-image {
  display: block;
  width: auto;
  height: 300px;
}

.welcome-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#index-main {
  height: 100%;
  width: 80%;
  margin: auto;
}

main {
  height: 100%;
  width: 100%;
  margin: auto;
}

p.index {
  text-align: center;
  font-size: 20px;
}

.mortgage-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mortgage-logo {
  display: block;
  width: auto;
  height: 200px;
  margin: auto;
}
/* End Main Page */

/* Event Page */

.event-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.event-page-header {
  text-align: center;
  margin-bottom: 20px;
  position: static;
  height: auto;
  width: auto;
  background: transparent;
  z-index: auto;
}

.event-page-name {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
}

.event-page-schedule {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.event-page-tag {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.event-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-image-container {
  width: 40%;
  max-width: 360px;
  flex-shrink: 0;
  margin: 0;
}

.event-image {
  width: 100%;
  height: auto;
  display: block;
}

.event-info-box,
.event-short-description,
.event-leaders-inline,
.event-participants-section,
.event-collaborators-section,
.event-manual-members-box {
  background: #ececec;
  padding: 12px 14px;
  margin: 0 0 12px 0;
}

.event-manual-members-box h4 {
  margin: 0 0 8px;
}

.event-manual-members-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.event-short-description {
  white-space: pre-line;
}

.event-members-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}

.event-leaders-inline {
  list-style: none;
}

.event-leaders-inline li {
  margin-bottom: 4px;
}

.leader-title-text {
  font-weight: 600;
}

.event-section-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.event-participants-section {
  margin-bottom: 12px;
}

.event-groups-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}

.event-groups-line p,
.event-links {
  margin: 0;
}

.event-primary-links,
.event-additional-links {
  display: grid;
  gap: 6px 10px;
  margin: 8px 0;
}

.event-primary-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-additional-links {
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  justify-content: center;
  align-items: center;
}

.event-slideshow-section {
  margin: 28px 0;
  width: 100%;
}

.event-full-width,
.event-location-section {
  max-width: 100%;
  text-align: center;
  margin: 24px auto;
}

.location-heading {
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .event-page {
    padding-top: 16px;
  }

  .event-container {
    flex-direction: column;
  }

  .event-image-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .event-members-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .event-image-container {
    order: -1;
  }

  .event-page-header {
    margin-bottom: 12px;
  }

  .event-page-name {
    font-size: 1.45rem;
    line-height: 1.08;
  }

  .event-page-schedule {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .event-image {
    max-height: 62vh;
    object-fit: contain;
  }

  .event-primary-links,
  .event-additional-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile landscape: keep flyer top-right, shrink column so it fits */
@media (max-width: 900px) and (orientation: landscape) {
  .event-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .event-content {
    flex: 1 1 auto;
    min-width: 0;
  }

  .event-image-container {
    width: 26%;
    max-width: 180px;
    margin: 0 0 0 auto;
    flex-shrink: 0;
    align-self: flex-start;
  }

  .event-image {
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: contain;
  }

  .event-page-name {
    font-size: 1.35rem;
  }

  .event-page-schedule {
    font-size: 1rem;
  }
}

/* End Event Page */

/* Edit Event: stack form, flyer, slideshow (avoid side-by-side cutoff) */
.edit-game-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

.edit-game-page .edit-game-form-wrap {
  display: block;
  width: 100%;
  margin-top: 0;
}

.edit-game-page .create-form {
  width: 100%;
  box-sizing: border-box;
}

.edit-game-page .event-description-input,
.edit-game-page .event-short-description-input,
.edit-game-page .event-private-description-input {
  display: block;
  width: 100%;
  min-height: 9em;
  box-sizing: border-box;
  resize: vertical;
}

.edit-game-page .event-list-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.edit-game-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.edit-game-media .form-wrapper {
  display: block;
  width: 100%;
  margin-top: 0;
}

.edit-game-flyer h3,
.edit-game-slideshow h3 {
  margin: 0 0 10px 0;
  text-align: center;
}

.edit-game-flyer-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  border: 1px solid #ccc;
}

.edit-game-slideshow .picture-slider {
  width: 100%;
}

/* Events list page */

.events-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 16px 0 24px;
  text-align: center;
  position: static;
  height: auto;
  width: auto;
  background: transparent;
  z-index: auto;
}

.events-page-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.events-page-title {
  margin: 8px 0 0 0;
  font-size: 2rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.2;
}

.past-events-section {
  margin-top: 28px;
}

.events-page .list-of-all {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.events-page .search-result {
  margin-top: 0;
  padding: 12px 16px;
}

/* Group Page */

.group-page-header {
  text-align: center;
  margin: 12px 0 20px;
}

.group-page-name {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
}

.group-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas:
    "pic desc"
    "links links"
    "long long";
  column-gap: 24px;
  row-gap: 14px;
  align-items: start;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 12px;
}

.group-hero-left {
  grid-area: pic;
  display: flex;
  justify-content: center;
}

.group-image,
.group-image-square {
  width: 200px;
  height: 200px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

.group-short-desc-wrap {
  grid-area: desc;
  display: flex;
  align-items: center;
  min-height: 200px;
}

.group-short-desc {
  margin: 0;
  white-space: pre-wrap;
  color: #444;
  line-height: 1.45;
}

.group-long-desc {
  grid-area: long;
  white-space: pre-wrap;
  color: #333;
  line-height: 1.55;
}

.group-links {
  grid-area: links;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  width: 100%;
}

.group-links a {
  font-weight: 600;
}

.group-full-width {
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 0 12px;
}

.group-slideshow-section {
  margin: 24px auto;
}

.group-slideshow-empty {
  text-align: center;
  margin: 12px 0 16px;
}

.group-extra-links {
  display: flex;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.group-manual-members-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.group-manual-members-row li {
  min-width: 0;
}

.group-long-description-input,
.group-private-description-input,
.edit-user-description-input,
.edit-user-private-description-input {
  display: block;
  width: 100%;
  min-height: 10em;
  box-sizing: border-box;
  resize: vertical;
}

.message-to-admin-input {
  display: block;
  width: 100%;
  min-height: 5em;
  box-sizing: border-box;
  resize: vertical;
}

.additional-links-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 12px;
}

.additional-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 700px) {
  .group-manual-members-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .additional-link-row {
    grid-template-columns: 1fr;
  }
}

.group-extra-links a {
  font-weight: 600;
}

.title-person-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  margin: 6px 0;
}

.title-person-sep {
  white-space: pre;
}

.leader-title-text {
  font-weight: 600;
}

@media (max-width: 640px) {
  .group-page-name {
    font-size: 1.5rem;
  }

  .group-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "pic"
      "desc"
      "links"
      "long";
    justify-items: center;
    text-align: center;
    row-gap: 12px;
  }

  .group-short-desc-wrap {
    min-height: 0;
    justify-content: center;
    width: 100%;
  }

  .group-links {
    justify-content: center;
  }

  .group-image,
  .group-image-square {
    width: 160px;
    height: 160px;
  }

  .title-person-line {
    justify-content: center;
  }
}
/* End Group Page */

/* MISC. STUFF */

.hidden {
  display: none;
}

.edit-button {
  background-color: #4caf50; /* Green */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.join-button {
  background-color: #4caf50; /* Green */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.delete-button {
  background-color: #aa210f; /* Red */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

.leave-button {
  background-color: #aa210f; /* Red */
  color: white;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

#password {
  font-size: 8pt;
}
/* END MISC. */

/* ===== REUSABLE SPACING UTILITIES ===== */
/* Small, composable helpers so page-specific spacing tweaks live in CSS
   instead of inline style="" attributes. Extend the scale as needed
   (e.g. .mt-10, .mb-20) to keep markup free of inline styles. */
.mt-5 {
  margin-top: 5px;
}
.mb-5 {
  margin-bottom: 5px;
}
.my-5 {
  margin-top: 5px;
  margin-bottom: 5px;
}
/* ===== END UTILITIES ===== */

.event-leaders-list {
  margin: 0 0 16px 0;
}

.event-leader-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.event-leader-row dt {
  font-weight: 600;
  margin: 0;
}

.event-leader-row dd {
  margin: 0;
}

.event-admin-line {
  margin: 16px 0;
}

.leader-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
}

/* Manual-add rows have no Title field — only Person + Remove — so they need
   their own 2-column track instead of falling into the 3-column layout's
   wide middle (1.4fr) track meant for Person. */
.leader-row-no-title {
  grid-template-columns: 1fr auto;
}

.leader-row .remove-leader-row {
  justify-self: end;
  align-self: center;
}

.leader-suggestions {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 180px;
  overflow: auto;
}

.leader-suggestions li {
  margin: 0;
}

.leader-suggestion-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
}

.leader-suggestion-btn:hover {
  background: #eef6f8;
}

@media (max-width: 640px) {
  .leader-row {
    grid-template-columns: 1fr;
  }
}

/* ===== VISIBILITY / PROFILE / SLIDER ===== */
.visibility-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  vertical-align: middle;
}

.visibility-public,
.visibility-badge:not(.visibility-private) {
  background-color: #e8f0e9;
  color: #2f5d34;
}

.visibility-private,
.visibility-badge.visibility-private {
  background-color: #f3e8e6;
  color: #8a3b2f;
}

.profile-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 28px;
  justify-content: center;
}

.profile-left {
  flex: 0 0 180px;
}

.profile-name {
  margin: 0 0 12px 0;
  color: #222;
}

.profile-username {
  color: #666;
  margin-top: 8px;
}

.profile-right {
  flex: 1 1 280px;
  min-width: 0;
}

.profile-statement {
  white-space: pre-wrap;
  color: #444;
  margin-bottom: 12px;
}

.profile-link {
  margin: 6px 0;
}

.profile-link-label {
  font-weight: 600;
  margin-right: 6px;
}

.description-box {
  white-space: pre-wrap;
  padding: 12px 14px;
  background-color: #f7f7f5;
  border-left: 3px solid #bbb;
  color: #333;
  margin-bottom: 12px;
}

.profile-section {
  margin-bottom: 24px;
}

.picture-bar-description {
  color: #555;
  margin-bottom: 10px;
}

.private-box {
  padding: 12px 14px;
  background-color: #faf6f5;
  border: 1px solid #e8d8d4;
  border-radius: 6px;
}

.admin-editing-banner {
  padding: 10px 14px;
  margin-bottom: 14px;
  background-color: #fff8e1;
  border: 1px solid #f0d989;
  border-radius: 6px;
  color: #5c4a06;
}

.muted {
  color: #888;
}

.private-entity {
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
}

.picture-slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 24px auto;
}

.picture-slider-portrait {
  max-width: 420px;
}

.picture-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  overflow: hidden;
  border-radius: 6px;
}

.picture-slider-portrait .picture-slider-viewport {
  aspect-ratio: 3 / 4;
}

.picture-slider-slide {
  display: none;
  margin: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.picture-slider-slide.is-active {
  display: block;
}

.picture-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.picture-slider-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  min-height: 2.2em;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.picture-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.picture-slider-prev {
  left: 8px;
}

.picture-slider-next {
  right: 8px;
}

.picture-slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.picture-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.picture-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background-color: #ccc;
  cursor: pointer;
}

.picture-slider-dot.is-active {
  background-color: #555;
}

.slider-delete-button {
  z-index: 3;
}

@media (max-width: 640px) {
  .profile-left {
    flex-basis: 100%;
  }

  .picture-slider-viewport {
    aspect-ratio: 4 / 3;
  }

  .picture-slider-portrait .picture-slider-viewport {
    aspect-ratio: 3 / 4;
  }
}
/* ===== END VISIBILITY / PROFILE / SLIDER ===== */

/* ===== HOME FACADE ===== */
.home-facade-page {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

#index-main.home-facade-page {
  width: 100%;
  height: auto;
  margin: 0;
}

.facade-scene {
  --facade-scale-width: min(92vw, 980px);
  --building-width: min(61vw, 595px);
  --gold: #c9bd42;
  --glass: #536b6a;
  --shadow: rgba(0, 0, 0, 0.35);
  position: relative;
  min-height: 1340px;
  padding: 42px 0 62px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255,255,255,0.86) 0 9%, rgba(255,255,255,0) 22%),
    radial-gradient(ellipse at 78% 18%, rgba(255,255,255,0.62) 0 8%, rgba(255,255,255,0) 20%),
    linear-gradient(180deg, #acd8ee 0%, #bde3f3 48%, #d6eef8 100%);
  overflow: hidden;
}

.facade-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 8%, rgba(255,255,255,0.5) 0 7%, rgba(255,255,255,0) 18%),
    radial-gradient(ellipse at 63% 30%, rgba(255,255,255,0.34) 0 8%, rgba(255,255,255,0) 20%);
  pointer-events: none;
}

.facade-shell {
  position: relative;
  z-index: 1;
  width: var(--facade-scale-width);
  max-width: calc(100vw - 18px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.facade-billboard {
  position: relative;
  z-index: 4;
  width: min(82vw, 760px);
  max-width: calc(100vw - 42px);
  padding: 7px 7px 14px;
  background: #2a2a28;
  border: 3px solid #3e4240;
  box-shadow: 0 14px 0 #3f3f3d, 0 18px 18px rgba(0, 0, 0, 0.28);
}

.facade-billboard-screen {
  position: relative;
  aspect-ratio: 16 / 7.5;
  background: #050505;
  border: 2px solid #151515;
  overflow: hidden;
}

.home-billboard-video,
.facade-video-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050505 url("/public/images/home/billboard-poster.svg") center / cover no-repeat;
}

.facade-video-overlay {
  position: absolute;
  left: 0;
  right: 154px;
  bottom: 0;
  z-index: 2;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e2528;
  font: 500 13px/1.3 Arial, Helvetica, sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.facade-video-overlay span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facade-video-overlay.is-hidden {
  display: none;
}

.facade-video-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.facade-video-btn {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: black;
  font: 700 16px/1 Arial, Helvetica, sans-serif;
  padding: 6px 8px;
  cursor: pointer;
}

.facade-video-btn:hover,
.facade-video-btn:focus-visible {
  background: grey;
  outline: 2px solid #f7df35;
  outline-offset: 2px;
}

.facade-billboard-lip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background: linear-gradient(90deg, #3b3d3b, #72736f 48%, #373935);
}

.facade-billboard-pole {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  width: 54px;
  height: 86px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #747a76, #c3c6bf 46%, #737a75);
  clip-path: polygon(18% 0, 82% 0, 82% 70%, 50% 100%, 18% 70%);
  box-shadow: 0 8px 10px rgba(0,0,0,0.22);
}

.facade-building {
  position: relative;
  z-index: 2;
  width: var(--building-width);
  max-width: calc(100vw - 36px);
  margin-top: 98px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 18%, transparent 82%, rgba(0,0,0,0.08)),
    #cfd1cc;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15), 0 22px 42px rgba(0,0,0,0.24);
}

.facade-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 38px;
  background:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,0.18) 0 1px, transparent 2px),
    linear-gradient(#a7aaa4, #7f837e);
  border-bottom: 3px solid #242424;
}

.facade-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 7px;
  color: #111;
  text-decoration: none;
  text-align: center;
  font-size: clamp(11px, 1.35vw, 15px);
  font-weight: 800;
  line-height: 1.05;
  border-right: 1px solid rgba(0,0,0,0.24);
}

.facade-nav a:last-child {
  border-right: 0;
}

.facade-nav a:hover,
.facade-nav a:focus-visible {
  color: #063d54;
  background: rgba(255,255,255,0.2);
  outline: 2px solid #f7df35;
  outline-offset: -2px;
}

.facade-brick-zone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 86px 62px;
  background:
    linear-gradient(180deg, rgba(42, 51, 70, 0.1), transparent 62%),
    linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,0.18) 28px 31px),
    repeating-linear-gradient(90deg, #713126 0 58px, #51251f 58px 62px);
}

.facade-brick-zone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: rgba(191, 126, 136, 0.58);
}

.facade-top-panel {
  position: relative;
  z-index: 2;
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: 0 5px 12px rgba(0,0,0,0.22);
  overflow: hidden;
}

.facade-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #fff, #f2f2ee);
}

.facade-top-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.facade-top-panel:focus-visible {
  outline: 3px solid #f7df35;
  outline-offset: 3px;
}

.facade-residence-sign {
  position: relative;
  z-index: 5;
  width: 74%;
  margin: -28px auto 0;
  padding: 14px 18px 17px;
  background: #fff312;
  border-radius: 9px;
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
  box-shadow: 0 13px 0 #4d4d4a, 0 18px 16px rgba(0,0,0,0.35);
}

.facade-residence-sign h1 {
  margin: 0;
  color: #8b2b65;
  text-align: center;
  font-size: clamp(28px, 4.1vw, 42px);
  line-height: 1.03;
  font-weight: 900;
}

.facade-balcony-zone {
  position: relative;
  min-height: 342px;
  padding-top: 28px;
  background:
    linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)),
    repeating-linear-gradient(0deg, transparent 0 72px, rgba(122,122,118,0.35) 72px 75px),
    repeating-linear-gradient(90deg, #bec1bc 0 118px, #999e99 118px 121px);
}

.facade-side-logo {
  position: absolute;
  z-index: 8;
  left: -86px;
  top: 648px;
  width: 72px;
  height: 72px;
  background:
    linear-gradient(#050505, #050505) right 27% / 30px 8px no-repeat,
    linear-gradient(#050505, #050505) right 73% / 30px 8px no-repeat;
  border-radius: 50%;
}

.facade-side-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14px;
  top: 31%;
  width: 38px;
  height: 8px;
  background: #050505;
}

.facade-side-logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -14px;
  bottom: 31%;
  width: 38px;
  height: 8px;
  background: #050505;
}

.facade-side-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,0.35));
}

.facade-side-logo:focus-visible {
  outline: 3px solid #f7df35;
  border-radius: 50%;
}

.facade-upper-door {
  width: 104px;
  height: 154px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7e93a;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.08;
  background: linear-gradient(90deg, #80877f 0 10px, #243c41 10px calc(100% - 10px), #80877f calc(100% - 10px));
  border: 4px solid #303b39;
  box-shadow: inset 0 0 0 2px rgba(218, 220, 213, 0.28);
  text-decoration: none;
}

.facade-upper-door img {
  display: block;
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.facade-balcony {
  position: relative;
  width: 82%;
  height: 86px;
  margin: -8px auto 0;
  border-bottom: 14px solid #73746f;
  background: linear-gradient(#4f514d, #2f322f);
  box-shadow: 0 8px 11px rgba(0,0,0,0.22);
}

.facade-balcony::before,
.facade-balcony::after {
  content: "";
  position: absolute;
  bottom: -46px;
  width: 12px;
  height: 34px;
  background: #333532;
  border-radius: 0 0 5px 5px;
}

.facade-balcony::before {
  left: 26%;
}

.facade-balcony::after {
  right: 26%;
}

.facade-rail {
  position: absolute;
  inset: 12px 0 10px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, #151716 18px 27px),
    linear-gradient(#171918 0 7px, transparent 7px calc(100% - 8px), #171918 calc(100% - 8px));
}

.facade-banner {
  position: absolute;
  z-index: 4;
  top: -12px;
  width: 80px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px rgba(0,0,0,0.25));
}

.facade-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.facade-banner:focus-visible,
.facade-upper-door:focus-visible {
  outline: 3px solid #f7df35;
  outline-offset: 4px;
}

.facade-banner-left {
  left: 34px;
}

.facade-banner-right {
  right: 34px;
}

/* Hover call-outs on the towels + RIC3 Fam sign — sized to whatever text is
   typed (width: max-content) rather than a fixed box, capped at a readable
   width so a long note wraps instead of spanning the whole scene. */
.facade-hover-tip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -8px);
  width: max-content;
  max-width: 220px;
  padding: 8px 12px;
  background: rgba(20, 24, 26, 0.92);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 30;
}

.facade-hover-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 24, 26, 0.92);
}

.facade-banner:hover .facade-hover-tip,
.facade-banner:focus-visible .facade-hover-tip,
.facade-side-logo:hover .facade-hover-tip,
.facade-side-logo:focus-visible .facade-hover-tip {
  opacity: 1;
  visibility: visible;
}

/* The RIC3 Fam badge sits near the left edge of the scene — anchor the tip to
   the badge's left edge and let it grow rightward instead of centering, so it
   doesn't run off-screen. */
.facade-hover-tip-side {
  left: 0;
  transform: translateY(-8px);
}

.facade-hover-tip-side::after {
  left: 20px;
  transform: none;
}

.facade-storefront {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 34px;
  align-items: end;
  padding: 92px 86px 0;
  min-height: 472px;
  background:
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)),
    repeating-linear-gradient(0deg, transparent 0 72px, rgba(122,122,118,0.35) 72px 75px),
    repeating-linear-gradient(90deg, #cfd1cc 0 118px, #a2a7a2 118px 121px);
}

.facade-family-wall {
  position: absolute;
  z-index: 1;
  top: -20px;
  left: 50%;
  width: 68%;
  max-width: 520px;
  height: auto;
  transform: translateX(-50%);
  opacity: 0.82;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.facade-store {
  position: relative;
  z-index: 2;
}

.facade-awning {
  height: 88px;
  margin: 0 auto -6px;
  border-radius: 46px 46px 8px 8px;
  border-bottom: 10px solid #333532;
  background:
    repeating-linear-gradient(90deg, #d75c4b 0 35px, #f1eee2 35px 70px);
  box-shadow: 0 8px 10px rgba(0,0,0,0.22);
}

.facade-awning-small {
  width: 92%;
}

.facade-awning-large {
  width: 100%;
}

.facade-door,
.facade-window {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 274px;
  background: linear-gradient(90deg, var(--gold) 0 12px, var(--glass) 12px calc(100% - 12px), var(--gold) calc(100% - 12px));
  border: 4px solid #161914;
  box-shadow: inset 0 0 0 8px rgba(238,225,59,0.35);
  text-decoration: none;
}

.facade-door {
  height: 302px;
}

.facade-door > img:not(.facade-volunteer-sign) {
  width: 74%;
  max-height: 112px;
  transform: translateY(-20px);
}

.facade-window img {
  width: 78%;
  max-height: 160px;
  transform: translateY(-18px);
}

.facade-door:focus-visible,
.facade-window:focus-visible {
  outline: 3px solid #f7df35;
  outline-offset: 4px;
}

.facade-door-handle {
  position: absolute;
  right: 18px;
  top: 46%;
  width: 16px;
  height: 48px;
  border: 4px solid #9e9c67;
  border-radius: 9px;
}

.facade-volunteer-sign {
  position: absolute;
  right: -28px;
  top: 58%;
  width: 86px;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: scaleY(1.18);
  transform-origin: center;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,0.22));
}

.facade-people {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: -10px;
  width: 45%;
  max-width: 338px;
  aspect-ratio: 460 / 330;
  pointer-events: none;
}

.facade-person {
  position: absolute;
  bottom: 0;
  width: auto;
  object-fit: contain;
}

.facade-person-girl {
  left: 6%;
  height: 82%;
}

.facade-person-man {
  left: 37%;
  height: 123%;
}

.facade-person-boy {
  right: 6%;
  height: 82%;
}

.facade-ground {
  position: relative;
  height: 64px;
  background: #4e524e;
  border-top: 5px solid rgba(0,0,0,0.18);
}

.facade-ground::before {
  display: none;
}

.home-admin-link {
  text-align: center;
  margin: 16px 0 28px;
}

@media (max-width: 1024px) {
  .facade-scene {
    --facade-scale-width: min(88vw, 760px);
    --building-width: min(58vw, 476px);
    min-height: 1040px;
  }

  .facade-brick-zone {
    padding-left: 58px;
    padding-right: 58px;
    gap: 34px;
  }

  .facade-side-logo {
    left: -72px;
    top: 626px;
    width: 58px;
    height: 58px;
    background:
      linear-gradient(#050505, #050505) right 27% / 24px 6px no-repeat,
      linear-gradient(#050505, #050505) right 73% / 24px 6px no-repeat;
  }

  .facade-storefront {
    padding-left: 58px;
    padding-right: 58px;
  }
}

@media (max-width: 768px) {
  .facade-scene {
    --facade-scale-width: calc(100vw - 8px);
    --building-width: min(66vw, 442px);
    min-height: 980px;
    padding-top: 18px;
  }

  .facade-billboard {
    width: min(86vw, 600px);
  }

  .facade-building {
    margin-top: 84px;
  }

  .facade-brick-zone {
    padding: 16px 42px 38px;
    gap: 28px;
  }

  .facade-residence-sign {
    width: 78%;
  }

  .facade-side-logo {
    left: -64px;
    top: 544px;
    width: 54px;
    height: 54px;
    background:
      linear-gradient(#050505, #050505) right 27% / 22px 6px no-repeat,
      linear-gradient(#050505, #050505) right 73% / 22px 6px no-repeat;
  }

  .facade-side-logo::before,
  .facade-side-logo::after {
    right: -10px;
    width: 30px;
    height: 6px;
  }

  .facade-balcony {
    width: 86%;
    height: 76px;
    border-bottom-width: 12px;
  }

  .facade-banner {
    width: 62px;
    height: 70px;
  }

  .facade-banner-left {
    left: 28px;
  }

  .facade-banner-right {
    right: 28px;
  }

  .facade-storefront {
    grid-template-columns: 0.88fr 1.25fr;
    gap: 20px;
    padding: 64px 42px 0;
  }

  .facade-door,
  .facade-window {
    height: 210px;
  }

  .facade-door {
    height: 232px;
  }

  .facade-people {
    width: 39%;
    right: 22px;
    bottom: -8px;
  }
}

@media (max-width: 520px) {
  .facade-scene {
    --building-width: 84vw;
    min-height: 900px;
    padding-bottom: 28px;
  }

  .facade-shell {
    max-width: 100vw;
  }

  .facade-billboard {
    width: calc(100vw - 44px);
    padding: 5px 5px 11px;
  }

  .facade-billboard-pole {
    width: 40px;
    height: 72px;
  }

  .facade-building {
    max-width: 84vw;
    margin-top: 72px;
  }

  .facade-nav {
    height: 34px;
  }

  .facade-nav a {
    padding: 0 4px;
    font-size: 10px;
  }

  .facade-brick-zone {
    padding: 13px 32px 34px;
    gap: 20px;
  }

  .facade-residence-sign {
    width: 82%;
    padding: 11px 12px 14px;
  }

  .facade-residence-sign h1 {
    font-size: 27px;
  }

  .facade-balcony-zone {
    min-height: 258px;
  }

  .facade-upper-door {
    width: 72px;
    height: 108px;
    font-size: 8px;
  }

  .facade-side-logo {
    left: -36px;
    top: 428px;
    width: 42px;
    height: 42px;
    background:
      linear-gradient(#050505, #050505) right 27% / 18px 5px no-repeat,
      linear-gradient(#050505, #050505) right 73% / 18px 5px no-repeat;
  }

  .facade-side-logo::before,
  .facade-side-logo::after {
    right: -3px;
    width: 18px;
    height: 5px;
  }

  .facade-balcony {
    width: 88%;
    height: 62px;
    border-bottom-width: 10px;
  }

  .facade-rail {
    inset: 9px 0 8px;
    background:
      repeating-linear-gradient(90deg, transparent 0 12px, #151716 12px 19px),
      linear-gradient(#171918 0 6px, transparent 6px calc(100% - 7px), #171918 calc(100% - 7px));
  }

  .facade-banner {
    top: -6px;
    width: 48px;
    height: 56px;
  }

  .facade-banner-left {
    left: 22px;
  }

  .facade-banner-right {
    right: 22px;
  }

  .facade-storefront {
    gap: 14px;
    padding: 54px 28px 0;
    min-height: 320px;
  }

  .facade-awning {
    height: 56px;
    background:
      repeating-linear-gradient(90deg, #d75c4b 0 24px, #f1eee2 24px 48px);
  }

  .facade-door,
  .facade-window {
    height: 176px;
    border-width: 3px;
  }

  .facade-door {
    height: 196px;
  }

  .facade-volunteer-sign {
    right: -8px;
    top: 47%;
    width: 58px;
  }

  .facade-door-handle {
    right: 10px;
    height: 34px;
  }

  .facade-people {
    width: 40%;
    right: 10px;
    bottom: -7px;
  }

  .facade-ground::before {
    left: -72px;
    width: 122px;
    height: 88px;
  }
}

@media (max-width: 380px) {
  .facade-scene {
    --building-width: 84vw;
  }

  .facade-building {
    max-width: 84vw;
  }

  .facade-brick-zone {
    padding-left: 26px;
    padding-right: 26px;
    gap: 16px;
  }

  .facade-storefront {
    padding-left: 22px;
    padding-right: 22px;
  }
}

.home-edit-thumb-wide {
  max-width: 220px;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-edit-wrapper {
  max-width: 720px;
  display: block;
  margin: 24px auto 80px;
  width: min(94vw, 960px);
}

.home-hotspot-edit {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #ddd;
}

.home-hotspot-link-label {
  display: block;
}

.home-hotspot-link-label .form-input {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

.home-hotspot-coords {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.home-edit-thumb {
  max-height: 60px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .home-hotspot-coords {
    grid-template-columns: 1fr 1fr;
  }
}
/* ===== END HOME FACADE ===== */
